/* ==========================================================================
   Sections - Page-Specific Styles
   ========================================================================== */

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Animated Mesh Gradient Background */
.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(92, 164, 248, 0.05), transparent 70%);
}

.hero-blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--brand-blue);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--brand-purple);
    animation-delay: -5s;
}

/* Interactive Network Canvas (Desktop Only) */
.hero-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px),
(hover: none) {
    .hero-network-canvas {
        display: none;
    }

    .hero-blob {
        display: none;
    }
}

/* Mobile Animated Background */
.hero-mobile-mesh {
    display: none;
}

@media (max-width: 768px),
(hover: none) {
    .hero-mobile-mesh {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
        background: radial-gradient(ellipse 80% 50% at 50% 20%,
                rgba(92, 164, 248, 0.08) 0%,
                transparent 60%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 40px);
    }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* --- TECH SCROLLER --- */
.tech-strip {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    white-space: nowrap;
}

.tech-track {
    display: inline-flex;
    gap: 60px;
    padding-right: 60px;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.tech-item {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tech-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-purple);
    border-radius: 50%;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- SERVICES SECTION --- */
.services {
    padding: var(--space-3xl) 0;
}

.services-header {
    max-width: 700px;
    margin-bottom: var(--space-xl);
}

.services-header p {
    margin-top: var(--space-sm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* --- HOW IT WORKS / PROCESS SECTION --- */
.process-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #080a0f 50%, var(--bg-color) 100%);
    border-top: 1px solid var(--border-light);
}

.process-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.process-header p {
    margin-top: var(--space-sm);
    color: var(--text-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    position: relative;
}

/* Connecting line */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-light) 10%,
            var(--border-light) 90%,
            transparent 100%);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: var(--space-sm);
    transition: opacity 0.4s ease;
}

.process-step:hover .step-number {
    opacity: 0.7;
}

.step-content {
    background: var(--surface-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.4s var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.process-step:hover .step-content {
    border-color: rgba(92, 164, 248, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(92, 164, 248, 0.1);
    border: 1px solid rgba(92, 164, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--brand-blue);
    transition: all 0.4s ease;
}

.process-step:hover .step-icon {
    background: rgba(92, 164, 248, 0.15);
    border-color: rgba(92, 164, 248, 0.4);
    box-shadow: 0 0 20px rgba(92, 164, 248, 0.2);
}

.step-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- PHILOSOPHY SECTION --- */
.philosophy {
    padding: var(--space-3xl) 0;
    background: linear-gradient(to bottom, var(--bg-color), #080a0f);
    border-top: 1px solid var(--border-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.philosophy-content h2 {
    margin-bottom: var(--space-md);
}

.philosophy-content p {
    margin-bottom: var(--space-sm);
}

.philosophy-features {
    border-left: 1px solid var(--border-light);
    padding-left: var(--space-lg);
}

.philosophy-feature {
    margin-bottom: var(--space-lg);
}

.philosophy-feature:last-child {
    margin-bottom: 0;
}

.philosophy-feature h4 {
    color: #fff;
    margin-bottom: var(--space-xs);
}

.philosophy-feature p {
    font-size: 0.9rem;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    padding: var(--space-3xl) 0;
    background: linear-gradient(to bottom, #080a0f, var(--bg-color));
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.testimonials-header h2 {
    margin-top: var(--space-xs);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--surface-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(92, 164, 248, 0.3);
    transform: translateY(-4px);
}

.testimonial-content {
    margin-bottom: var(--space-md);
}

.quote-icon {
    color: var(--brand-blue);
    opacity: 0.6;
    margin-bottom: var(--space-sm);
}

.testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    color: #fff;
    font-size: 1rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: var(--space-3xl) 0;
    padding-top: 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* --- CTA SECTION --- */
.cta {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-box {
    background: radial-gradient(circle at top, #1e2230 0%, var(--surface-color) 100%);
    border: 1px solid var(--border-light);
    padding: 100px var(--space-md);
    border-radius: var(--radius-lg);
    position: relative;
}

.cta-box h2 {
    margin-bottom: var(--space-sm);
}

.cta-box p {
    margin-bottom: 30px;
}

/* --- 404 PAGE --- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
}

.error-page p {
    margin-bottom: 32px;
    font-size: 1.2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - env(safe-area-inset-bottom, 0px));
        min-height: -webkit-fill-available;
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: var(--space-lg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-features {
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-left: 0;
        padding-top: var(--space-lg);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .process-timeline::before {
        display: none;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-content {
        padding: var(--space-md);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: var(--space-xl) var(--space-md);
    }

    /* Mobile Performance */
    .tech-track {
        will-change: auto;
    }

    .card,
    .step-content,
    .testimonial-card {
        transition: none;
    }

    .card:hover,
    .step-content:hover,
    .testimonial-card:hover {
        transform: none;
    }
}