@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;600;800&family=Inter:wght@300;400;600&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0b0b0b;
    --text-color: #f1f1f1;
    --accent-red: #F8014C;
    --accent-orange: #FF6B00;
    --gradient-accent: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Epilogue', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Glassmorphism utilities */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Typography Helpers */
.text-gradient,
.text-gradient .word,
.text-gradient .char {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding: 0.1em 0.1em;
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(248, 1, 76, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

/* Navbar */
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background 0.3s ease, padding 0.3s ease;
    mix-blend-mode: difference;
}

.navbar.scrolled {
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    mix-blend-mode: normal;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: -15px;
    left: 0;
}

.dropdown > a {
    padding-right: 15px;
}

.dropdown > a::before {
    content: '\25BC';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    opacity: 0.6;
    pointer-events: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(11, 11, 11, 0.95);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 101;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: #fff;
    padding: 12px 20px;
    display: block;
    font-size: 0.75rem;
    text-align: center;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-red);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Hero Section */
.hero {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 125px;
    padding-bottom: 25px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/red_grid.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: -2;
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes electric-glitch {
    0% { filter: drop-shadow(0 0 10px var(--accent-red)) hue-rotate(0deg) brightness(1); transform: translate(0); }
    10% { filter: drop-shadow(0 0 20px var(--accent-red)) hue-rotate(45deg) brightness(1.5); transform: translate(-2px, 2px); }
    20% { filter: drop-shadow(0 0 5px var(--accent-orange)) hue-rotate(-45deg) brightness(0.8); transform: translate(2px, -2px); }
    30% { filter: drop-shadow(0 0 15px var(--accent-red)) hue-rotate(0deg) brightness(1.2); transform: translate(0); }
    40% { filter: drop-shadow(0 0 10px var(--accent-red)) hue-rotate(0deg) brightness(1); transform: translate(0); }
    100% { filter: drop-shadow(0 0 10px var(--accent-red)) hue-rotate(0deg) brightness(1); transform: translate(0); }
}
.electric-glitch {
    animation: electric-glitch 3s infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 1.5rem;
}

.hero-title .line {
    overflow: hidden;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #d0d0d0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    gap: 25px;
    justify-content: center;
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a0a0a0;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #a0a0a0;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.8rem;
}

/* SplitText Animation Classes */
.split-line {
    overflow: hidden;
}

.split-word {
    transform: translateY(100%);
    display: inline-block;
}

/* Grid Layouts */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.campaign-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.logos-marquee-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8rem;
    padding-right: 8rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .campaign-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logos-marquee-wrapper {
        gap: 6rem;
        padding-right: 6rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .campaign-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        font-size: 0.8rem !important;
        padding: 0.8rem 1.5rem !important;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .logos-marquee-wrapper {
        gap: 4rem;
        padding-right: 4rem;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    .marquee-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    .container {
        padding: 0 5%;
    }
    
    .marquee-content span {
        font-size: 1rem;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* --- GLOBAL MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    /* Override all inline grids to be single column */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Reset span columns */
    div[style*="grid-column: span"] {
        grid-column: 1 / -1 !important;
    }

    /* Fix inline grids */
    div[style*="grid-template-columns: repeat("] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Fix 50/50 flex layouts (Contact page, Timelines, etc) */
    div[style*="width: 45%"], 
    div[style*="width: 50%"],
    div[style*="width: 40%"],
    div[style*="width: 60%"] {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    /* Convert specific inline flex rows to columns */
    div[style*="display: flex; justify-content: space-between; align-items: center; width: 100%;"],
    div[style*="display: flex; gap: 4rem; justify-content: space-between;"],
    div[style*="display: flex; gap: 2rem;"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* Fix timeline styling (hide center dots and lines) */
    .timeline-line,
    div[style*="width: 10px; height: 10px; background: var(--accent-red)"],
    div[style*="width: 10px; height: 10px; background: var(--accent-orange)"] {
        display: none !important;
    }
    
    /* Footer tweaks */
    .footer .container > div {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
    }
    .footer .container > div > div {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .footer .container > div > div > a {
        margin: 0.5rem 0;
    }
    
    /* Ensure form inputs take full width */
    input, textarea, select {
        width: 100% !important;
    }
    
    /* Preloader logo */
    .preloader-logo img {
        width: 100px !important;
    }

    /* Mobile Menu styles */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 6rem 2rem 2rem;
        text-align: center;
        border-bottom: none;
        box-shadow: none;
        z-index: 99;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }
    
    .nav-links.mobile-active {
        display: flex !important;
    }
    
    .dropdown-content {
        display: block !important;
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-top: 10px !important;
        transform: none !important;
    }
    
    .dropdown-content a {
        padding: 8px !important;
        color: #a0a0a0 !important;
        font-size: 1.2rem !important;
    }
    
    .dropdown > a::before {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        color: #fff;
        z-index: 102;
        position: relative;
    }
    
    .nav-container .btn-secondary {
        display: none !important; /* Hide 'Book Strategy Call' button on mobile header to save space */
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    div[style*="grid-template-columns: repeat(12"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    div[style*="grid-column: span 8"], div[style*="grid-column: span 4"] {
        grid-column: span 1 !important;
    }
}