/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & General Styles
2.  Header & Navigation
3.  Hero Section & General Section Styling
4.  Services, Approach & Results
5.  Process (Split Screen) Section
6.  Deep Dive (Accordion) & Tech Stack
7.  Testimonial & Final CTA
8.  Footer
9.  Sub-Page Styles (Contact, Legal)
10. Animations & Keyframes
11. Responsive Media Queries
================================================
*/

/* 1. :root Variables & General Styles */
:root {
    --color-primary: #FF4500;
    /* OrangeRed */
    --color-dark: #121212;
    --color-light: #F5F5F5;
    --color-text: #A9A9A9;
    --color-border: #222222;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 90px;
    --transition-speed: 0.3s;
    --section-padding: 120px 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--color-border);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* 2. 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(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    max-height: 80px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--color-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
    cursor: pointer;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--color-light);
    transition: all 0.3s ease-in-out;
}

/* 3. Hero Section & General Section Styling */
#hero {
    padding: 100px 0 0 0 ;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
}

#hero h1 {
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.cursor {
    color: var(--color-primary);
    animation: blink 1s step-end infinite;
}

.conviction-text {
    font-size: 2rem;
    font-family: var(--font-heading);
    line-height: 1.4;
    letter-spacing: 1px;
    color: var(--color-light);
    max-width: 900px;
}

.section-title {
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

/* 4. Services, Approach & Results */
.services-grid,
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: var(--color-border);
}

.service-item,
.approach-item {
    background-color: var(--color-dark);
    padding: 2rem;
}

.service-item h3 {
    color: var(--color-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 6rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.stat-item h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* 5. Process (Split Screen) Section */
.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.process-steps .step {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.process-steps .step:last-child {
    border-bottom: none;
}

.process-steps h3 {
    margin-bottom: 1rem;
}

.process-visual {
    position: relative;
}

.sticky-image {
    position: sticky;
    top: 120px;
    height: 500px;
    background-color: #222;
    /* Placeholder for image */
}

/* 6. Deep Dive (Accordion) & Tech Stack */
.faq-container {
    max-width: 900px;
    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;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

#tech-stack {
    padding: 60px 0;
}

.scroller {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.scroller-inner {
    display: flex;
    gap: 3rem;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.scroller-inner span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #444;
    white-space: nowrap;
}

/* 7. Testimonial & Final CTA */
#testimonial {
    border-bottom: none;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-light);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.author h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

#final-cta {
    background-color: var(--color-primary);
}

#final-cta h2,
#final-cta p {
    color: #fff;
}

/* 8. Footer */
#main-footer {
    background-color: var(--color-dark);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col a,
.footer-col li,
.footer-col p {
    color: var(--color-text);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* 9. Sub-Page Styles */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-dark);
    border: 1px solid var(--color-border);
    color: #fff;
}

.contact-info-wrapper {
    border: 1px solid var(--color-border);
    padding: 2rem;
}

.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

/* 10. Animations & Keyframes */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11. Responsive Media Queries */
@media (max-width: 992px) {
    #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;
    }

    .contact-grid,
    .process-layout {
        grid-template-columns: 1fr;
    }

    .process-visual {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}