@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz@6..96&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Glitch&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --bg-primary: #0A0F0D;
    --bg-secondary: #111816;
    --accent-primary: #00FF88;
    --accent-secondary: #00C96B;
    --text-primary: #E6F9F0;
    --text-secondary: #9BB8A8;
    --border-color: #1F2A26;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --font-glitch: 'Rubik 80s Fade', system-ui;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.neon-text {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    font-family: inherit;
    /* Allow parent font to cascade */
}

/* Specific rule if needed, or just let it inherit */
/* But neon-text was setting --font-accent before. Check if used elsewhere. */
/* If used elsewhere, it might break. better to be specific. */


p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-secondary);
    color: var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(10, 15, 13, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-accent);
    color: var(--text-primary);
}

.nav-links a {
    color: var(--text-secondary);
    margin-left: 30px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links .btn-secondary {
    margin-left: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 10% 100px;
    min-height: 100vh;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

/* Typewriter Cursor Effect */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Fade-in animation */
.fade-in-delayed {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-delayed.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    min-height: 1.6em;
    /* Reserve space */
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    /* Wallpoet doesn't strictly have italic, but we keep it if browser synthesizes or just for fallback */
    color: var(--accent-secondary);
    min-height: 1.4em;
    /* Reserve space */
    font-family: 'Wallpoet', cursive;
    letter-spacing: 1px;
}

.cta-group {
    margin-bottom: 3rem;
}

.cta-group .btn-primary {
    margin-right: 20px;
}

.social-proof {
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 15px;
    display: inline-block;
}

/* Scrollytelling Canvas Setup */
#sticky-scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-primary);
    /* Ensure seamless blend */
}

#cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;

    /* Film Grain Implementation */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E"),
        radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.6) 100%);
    background-size: 200px 200px, cover;
    background-repeat: repeat, no-repeat;

    /* Blending to hide artifacts */
    mix-blend-mode: overlay;
    opacity: 0.15;
    /* Subtle grain */
}

/* Neon Pulse Overlay */
#neon-pulse-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, rgba(0, 255, 136, 0) 65%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: neonFlash 3s infinite ease-in-out;
}

@keyframes neonFlash {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Fonts */
.hero h1 {
    font-family: 'Monoton', cursive;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 2.5rem;
    line-height: 1.1;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* We will handle size via JS/CSS to ensure it covers */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Smoothing Pipeline: Blur artifacts -> Boost Contrast -> Adjust Tone */
    /* blur(0.5px) hides the 'exploding' blocky pixels from upscaling */
    filter: blur(0.5px) contrast(1.2) saturate(1.1) brightness(0.95);
    background: url('ezgif-8676267131dcc361-png-split/ezgif-frame-001.png') center/cover no-repeat;
}

/* Loading indicator removed */

/* Services Section */
/* Services Section */
.services {
    padding: 100px 10%;
    background-color: transparent;
    /* Changed from var(--bg-primary) to allow canvas visibility */
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Rubik Glitch', system-ui;
    font-size: 3.5rem;
    /* Increase size for impact */
    letter-spacing: 2px;
}

.section-header p {
    font-family: 'Scheherazade New', serif;
    font-size: 1.5rem;
    /* Slightly larger for this elegant font */
    color: #FFFFFF;
    /* Deep white */
    font-weight: 700;
    /* Bold */
    max-width: 600px;
    margin: 0 auto;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    /* Increased max-width for 2 cols */
    margin: 0 auto;
}

.service-row {
    background-color: rgba(17, 24, 22, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
}

.service-row:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    transform: translateY(-5px);
}

.service-content h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-details {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.service-details h4 {
    color: var(--text-primary);
    margin: 20px 0 10px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.service-list {
    list-style: none;
    margin-bottom: 20px;
}

.service-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 0.8rem;
    top: 3px;
}

.service-results {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.service-example {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Cost Section */
.cost-section {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(17, 24, 22, 0.9), rgba(0, 0, 0, 0.9));
    border-radius: 20px;
    border: 1px solid var(--accent-secondary);
    margin-top: 40px;
    grid-column: 1 / -1;
}

.cost-section h3 {
    margin-bottom: 20px;
}

.roi-highlight {
    font-size: 1.3rem;
    margin: 20px 0 40px;
    font-family: var(--font-heading);
}

.large-cta {
    padding: 15px 40px;
    font-size: 1.1rem;
}


/* Process Section */
.process {
    padding: 100px 10%;
    background-color: rgba(17, 24, 22, 0.8);
    /* Semi-transparent secondary bg */
    position: relative;
    z-index: 10;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-primary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    font-family: var(--font-accent);
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    opacity: 1;
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.8), 0 0 50px rgba(0, 255, 136, 0.4);
    transform: scale(1.1);
}

.step h3 {
    position: relative;
    z-index: 1;
    color: var(--accent-secondary);
    margin-bottom: 15px;
}

.center-cta {
    text-align: center;
}

.center-cta h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: #FFFFFF;
}

/* FAQ Section */
.faq {
    padding: 100px 10%;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    background-color: rgba(17, 24, 22, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-secondary);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust if content is longer */
    padding-bottom: 25px;
    /* Ensure padding matches p */
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.cta-banner {
    background: linear-gradient(135deg, rgba(17, 24, 22, 0.95), rgba(0, 0, 0, 0.95));
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.cta-banner h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 1px;
    font-weight: 700;
}

.cost-section h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: 'Libre Baskerville', serif;
    letter-spacing: 1px;
    /* Slightly less tracking for serif */
    font-weight: 700;
}

.cta-banner p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}



/* Footer */
.footer {
    padding: 50px 10%;
    background-color: #050807;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-family: var(--font-accent);
    color: var(--text-primary);
}

.footer-links a {
    color: var(--text-secondary);
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 0.8rem;
    color: rgba(155, 184, 168, 0.5);
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 10%;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

#why-us .section-header p {
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
    /* Deep white enhancement */
    opacity: 1;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.feature-card {
    background-color: rgba(17, 24, 22, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.2);
    background-color: rgba(20, 30, 25, 1);
    z-index: 5;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-result {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    font-family: var(--font-accent);
}

/* Highlight card for track record */
.feature-card.highlight {
    background: linear-gradient(135deg, rgba(17, 24, 22, 0.95), rgba(0, 201, 107, 0.1));
    border-color: var(--accent-secondary);
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
}

.stats-list li::before {
    content: '★';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.8rem;
}

/* Responsiveness */
@media (max-width: 900px) {
    .h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column-reverse;
        /* Stack visual on top/bottom */
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-top: 50px;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-group .btn-primary {
        margin-right: 0;
        width: 100%;
        max-width: 300px;
    }

    .cta-group .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .social-proof {
        border-left: none;
        border-top: 3px solid var(--accent-primary);
        padding-left: 0;
        padding-top: 15px;
        margin-top: 20px;
        display: inline-block;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
    }

    .nav-links {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
    }

    .nav-links .btn-secondary {
        margin-left: 0;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .process,
    .services,
    .why-us,
    .faq {
        padding: 60px 5%;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 cols */
    }
}

@media (max-width: 1200px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .service-row {
        padding: 25px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-header h3 {
    font-family: 'Rubik Glitch', system-ui;
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

#service {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-secondary);
    cursor: not-allowed;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}