/*
Theme Name: GSM Tech Solutions
Theme URI: https://gsmtechsolutions.com
Author: GSM Tech Solutions
Description: Custom dark theme for digital agency
Version: 1.2
*/

/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #0d1117;
    color: #ffffff;
}

a {
    color: #1f6feb;
    text-decoration: none;
}

a:hover {
    color: #58a6ff;
}

/* =========================
   HEADER / NAVBAR
========================= */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #0d1117;
    border-bottom: 1px solid #161b22;
    transition: box-shadow 0.3s ease;
}

body.admin-bar header {
    top: 32px;
}

header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #58a6ff;
    white-space: nowrap;
}

/* =========================
   MENU
========================= */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    color: #c9d1d9;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #1f6feb;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

.nav-menu .current-menu-item > a {
    color: #1f6feb;
}

/* =========================
   HOME HERO
========================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0d1117, #161b22);
    padding: 40px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #c9d1d9;
}

/* =========================
   BUTTON
========================= */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: #1f6feb;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 500;
}

/* =========================
   SERVICES
========================= */
.services {
    padding: 80px 40px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #161b22;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* =========================
   CTA
========================= */
.cta {
    background-color: #1f6feb;
    padding: 70px 20px;
    text-align: center;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #0d1117;
    border-top: 1px solid #161b22;
    padding: 20px;
    text-align: center;
    color: #8b949e;
}

/* =========================
   HERO ANIMATION
========================= */
.hero h1,
.hero p,
.hero .btn {
    opacity: 0;
    transform: translateY(30px);
}

.hero.animate h1 {
    animation: heroFadeUp 0.9s ease forwards;
}

.hero.animate p {
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.25s;
}

.hero.animate .btn {
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.45s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PAGE HERO (ABOUT, SERVICES, CONTACT)
========================= */
.page-hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, #0d1117, #161b22);
}

.page-title {
    font-size: 42px;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
}

.page-content {
    padding: 60px 20px 100px;
}

.page-content-inner {
    max-width: 900px;
    margin: auto;
    opacity: 0;
    transform: translateY(30px);
}

.page-animate .page-title {
    animation: heroFadeUp 0.9s ease forwards;
}

.page-animate .page-content-inner {
    animation: heroFadeUp 0.9s ease forwards;
    animation-delay: 0.25s;
}

/* =========================
   BLOG – SINGLE POST HERO
========================= */
.post-hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 60px;
    text-align: center;
    width: 100%;
}

.post-hero h1 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 10px;
}

.post-date {
    color: #8b949e;
    font-size: 14px;
}

/* =========================
   BLOG CONTENT
========================= */
.post-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    color: #ddd;
}

.post-content h2 {
    margin-top: 40px;
}

.post-content p {
    line-height: 1.7;
    margin-bottom: 18px;
}
/* =========================
   HERO SLIDER
========================= */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slider .slides {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

/* Overlay for readability */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

/* Text content */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: #c9d1d9;
}