/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & General Styles
2.  Custom Cursor
3.  Header & Navigation
4.  Hero & General Sections
5.  Interactive Services Section
6.  Process (Sticky) & Work Sections
7.  Testimonial, Results & FAQ
8.  Final CTA & Footer
9.  Sub-Page Styles (Contact, Legal)
10. Animations & Keyframes
11. Responsive Media Queries
================================================
*/

/* 1. :root Variables & General Styles */
:root {
    --color-dark: #1A1A1A;
    --color-light: #F0F0F0;
    --color-accent: #BEF264;
    /* Electric Lime */
    --color-border: #333333;

    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;

    --header-height: 100px;
    --transition-speed: 0.4s;
    --section-padding: 140px 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--color-light);
    text-decoration: none;

}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h3 {
    font-size: 2rem;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: 2px solid var(--color-accent);
    transition: all var(--transition-speed) ease;
    font-weight: 700;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* 2. Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-accent);
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

/* 3. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    max-height: 100px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 700;
    position: relative;
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;

}

/* 4. Hero & General Sections */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: block;
}

.hero-subtitle {
    margin-top: 1.5rem;
    max-width: 100%;
    font-size: 3.1rem;
    text-align: center;
}

.section-title {
    margin-bottom: 4rem;
}

/* 5. Interactive Services Section */
.services-interactive-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-list .service-item {
    border-bottom: 1px solid var(--color-border);

}

.services-list .service-item h3 {
    padding: 2rem 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    transition: color var(--transition-speed) ease;
}

.services-list .service-item:hover h3 {
    color: var(--color-accent);
}

.services-image-preview {
    position: relative;
    height: 500px;
}

.services-image-preview .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    background-size: cover;
    background-position: center;
}

.services-image-preview .image-wrapper.active {
    opacity: 1;
}

/* Placeholder images */
#service-image-1 {
    background-image: url('https://via.placeholder.com/600x500/BEF264/1A1A1A?text=Strategy');
}

#service-image-2 {
    background-image: url('https://via.placeholder.com/600x500/BEF264/1A1A1A?text=SEO');
}

#service-image-3 {
    background-image: url('https://via.placeholder.com/600x500/BEF264/1A1A1A?text=Content');
}

#service-image-4 {
    background-image: url('https://via.placeholder.com/600x500/BEF264/1A1A1A?text=Paid+Media');
}

/* 6. Process (Sticky) & Work Sections */
.sticky-parent {
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.process-title-sticky {
    position: sticky;
    top: 120px;
    height: 100vh;
    align-self: start;
}

.process-steps .step {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.work-item {
    border-bottom: 1px solid var(--color-border);
}

.work-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

/* 7. Testimonial, Results & FAQ */
#testimonial {
    text-align: center;
}

.quote {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.author {
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item .stat-number {
    font-size: clamp(4rem, 10vw, 6rem);
    font-family: var(--font-heading);
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;

}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* 8. Final CTA & Footer */
#final-cta {
    background-color: var(--color-accent);
}

#final-cta h2,
#final-cta p,
#final-cta a {
    color: var(--color-dark);
}

#final-cta a:hover {
    background-color: var(--color-dark);
    color: var(--color-accent);
}

#main-footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* 9. Sub-Page Styles */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-light);
}

.legal-content .container {
    max-width: 800px;
}

/* 10. Animations & Keyframes */
.animate-on-load {
    opacity: 0;
}

.hero-title .line span {
    animation: revealUp 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero-title .line:nth-child(2) span {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation: fadeIn 1s 0.8s forwards;
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 1s forwards;
}

@keyframes revealUp {
    from {
        transform: translateY(110%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11. Responsive Media Queries */
@media (max-width: 992px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    #main-nav.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
    }

    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
        z-index: 1001;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #footer-brand {
        grid-column: 1 / -1;
    }

    .services-interactive-layout,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-image-preview,
    .process-title-sticky {
        display: none;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}