﻿/* =================================================================
   1. CSS CUSTOM PROPERTIES (Theme Variables)
   Update colors here - they apply everywhere automatically
   ================================================================= */
:root {
    /* Royal Blue Primary Colors */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    /* Silver Gray Secondary Colors */
    --silver-gray: #94a3b8;
    --silver-gray-light: #cbd5e1;
    --silver-gray-dark: #64748b;
    /* Light Theme Colors - IMPROVED CONTRAST */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8fafc;
    --bg-tertiary-light: #e2e8f0;
    --text-primary-light: #0f172a;
    --text-secondary-light: #475569;
    --text-tertiary-light: #64748b;
    --border-light: rgba(226, 232, 240, 0.8);
    --card-bg-light: rgba(255, 255, 255, 0.95);
    /* Dark Theme Colors */
    --bg-primary-dark: #1e293b;
    --bg-secondary-dark: #0f172a;
    --bg-tertiary-dark: #1e293b;
    --text-primary-dark: #f1f5f9;
    --text-secondary-dark: #cbd5e1;
    --text-tertiary-dark: #94a3b8;
    --border-dark: rgba(59, 130, 246, 0.2);
    --card-bg-dark: rgba(30, 41, 59, 0.7);
}

/* =================================================================
   2. BASE STYLES & TYPOGRAPHY
   ================================================================= */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary-light);
    color: var(--text-primary-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

    body.dark-mode .hero-card {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(59, 130, 246, 0.2);
    }

        body.dark-mode .hero-card .text-gray-500 {
            color: #cbd5e1 !important;
        }

/* Main Card */
.hero-card-main {
    transform: rotateY(-5deg) rotateX(5deg);
    animation: cardFloat 6s ease-in-out infinite;
}

.card-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.hero-card-main:hover .card-glow {
    opacity: 1;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressPulse 2s ease-in-out infinite;
}

/* Stats Cards - Enhanced Styling */
.stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .stat-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px -15px rgba(37, 99, 235, 0.4);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: rotateY(180deg) scale(1.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark-mode .stat-label {
    color: #94a3b8;
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-progress {
    transform: scaleX(1);
}

/* Floating Cards */
.hero-card-float {
    position: absolute;
    padding: 1rem 1.25rem;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-card-float-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.hero-card-float-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1s;
}

/* Tech Stack Icons */
.tech-stack-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tech-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: techIconFloat 3s ease-in-out infinite;
}

body.dark-mode .tech-icon {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.2);
}

.tech-icon:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px -15px rgba(37, 99, 235, 0.5);
    border-color: var(--primary-blue);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.scroll-indicator-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--primary-blue), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

/* Animations */
@keyframes cardFloat {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0px);
    }

    50% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(-20px);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

@keyframes techIconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scrollDot {
    0%, 100% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-card-float-1 {
        top: 5%;
        right: -5%;
    }

    .hero-card-float-2 {
        bottom: 10%;
        left: -3%;
    }
}

@media (max-width: 768px) {
    .hero-card-float-1,
    .hero-card-float-2 {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 1rem auto;
        max-width: 300px;
    }

    .stat-card {
        padding: 1.25rem 0.75rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .tech-icon {
        width: 48px;
        height: 48px;
    }
}

/* =================================================================
   8. ABOUT SECTION
   ================================================================= */
#about {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

    /* About Section Description - IMPROVED CONTRAST */
    #about p.text-gray-600,
    #about p {
        color: #475569;
    }

body.dark-mode #about {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

    body.dark-mode #about p {
        color: #cbd5e1;
    }

/* About Content Cards */
.about-content-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .about-content-card p {
        color: #475569;
    }

body.dark-mode .about-content-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

    body.dark-mode .about-content-card p {
        color: #cbd5e1;
    }

.about-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -15px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-blue);
}

.about-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.about-content-card:hover .about-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.5);
}

/* Technology Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

body.dark-mode .tech-badge {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary-blue-light);
}

.tech-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.1);
}

/* Feature Cards */
.feature-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .feature-card p {
        color: #475569;
    }

body.dark-mode .feature-card {
    background: rgba(30, 41, 59, 0.7);
}

    body.dark-mode .feature-card p {
        color: #cbd5e1;
    }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -15px rgba(37, 99, 235, 0.4);
}

.feature-card-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover .feature-card-glow {
    opacity: 1;
}

.feature-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-card-border {
    width: 100%;
}

/* Feature Icon Container */
.feature-icon-container {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
    border-radius: 16px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card:hover .feature-icon-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.feature-card:hover .feature-icon-container svg {
    color: white;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 24px;
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .stats-bar {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.stat-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.stat-item-modern:hover .stat-icon-modern {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.5);
}

.stat-number-modern {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

body.dark-mode .stat-number-modern {
    color: var(--primary-blue-light);
}

.stat-label-modern {
    font-size: 0.875rem;
    color: var(--silver-gray-dark);
    font-weight: 500;
}

body.dark-mode .stat-label-modern {
    color: var(--silver-gray);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

/* =================================================================
   ABOUT — CINEMATIC SCROLL ENGINE  (BIDIRECTIONAL)
   ================================================================= */
/*
 * Forward:  anim-heading → anim-subheading → anim-content  (scroll down)
 * Reverse:  anim-content → anim-subheading → anim-heading  (scroll up)
 *
 * Children use CSS transitions (not animations) so reverse works.
 * Two delay sets per child:
 *   base state  = reverse delays  (last item fades first)
 *   anim-content = forward delays (first item appears first)
 * Parent opacity is a binary instant switch; children own the visual stagger.
 */

.about-cinematic-section { min-height: 270vh; position: relative; }

.about-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
}

.about-container-inner { padding-top: 5rem; padding-bottom: 2rem; }

.about-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

/* ── Badge ────────────────────────────────────────────────────── */
.about-badge-phase {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-cinematic-section.anim-heading .about-badge-phase {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease 0.1s, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}

/* ── Headline ─────────────────────────────────────────────────── */
.about-cinematic-heading {
    font-size: clamp(2.5rem, 6.5vw, 5.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    max-width: 900px;
    opacity: 0;
    transform: translateY(36px);
    /* reverse transitions */
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        font-size 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-cinematic-section.anim-heading .about-cinematic-heading {
    opacity: 1;
    transform: translateY(0);
    /* forward transitions */
    transition:
        opacity 0.85s ease 0.28s,
        transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.28s,
        font-size 0.95s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Heading shrinks when content is live, grows back when removed */
.about-cinematic-section.anim-content .about-cinematic-heading {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

/* ── Subheading ───────────────────────────────────────────────── */
.about-sub-phase {
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
    margin-top: 0 !important;
    /* reverse: fade fast, collapse height only after opacity is 0 */
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        max-height 0.45s ease 0.45s;
}
.about-cinematic-section.anim-subheading .about-sub-phase {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
    /* forward: expand height first, then fade in */
    transition:
        opacity 0.65s ease 0.15s,
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
        max-height 0.6s ease 0.05s;
}

/* ── Content grid — parent controls space, children control visibility ── */
.about-content-phase {
    max-height: 0;
    overflow: hidden;
    /* parent opacity: binary instant switch (children own the stagger) */
    opacity: 0;
    pointer-events: none;
    margin-top: 0 !important;
    /* reverse: children stagger out (~0.6s total), then height collapses */
    transition:
        opacity 0.01s 0.62s,
        max-height 0.5s ease 0.64s,
        margin-top 0.5s ease 0.64s;
}
.about-cinematic-section.anim-content .about-content-phase {
    max-height: 800px;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    margin-top: 2rem !important;
    /* forward: expand height, parent shows instantly */
    transition:
        opacity 0.01s,
        max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
        margin-top 0.55s ease 0.05s;
}

/* ── Children: base opacity 0 + REVERSE stagger delays ─────────── */
/* Reverse order: last item (4th) fades first, 1st stays longest  */
.about-content-phase .about-content-card,
.about-content-phase .flex.flex-wrap,
.about-content-phase .pt-2 {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.about-content-phase .space-y-5 > *:nth-child(4) { transition-delay: 0s;    }
.about-content-phase .space-y-5 > *:nth-child(3) { transition-delay: 0.07s; }
.about-content-phase .space-y-5 > *:nth-child(2) { transition-delay: 0.14s; }
.about-content-phase .space-y-5 > *:nth-child(1) { transition-delay: 0.21s; }

.about-content-phase .feature-card {
    opacity: 0;
    transition: opacity 0.38s ease;
}
.about-content-phase .grid.grid-cols-2 > .feature-card:nth-child(4) { transition-delay: 0s;    }
.about-content-phase .grid.grid-cols-2 > .feature-card:nth-child(3) { transition-delay: 0.09s; }
.about-content-phase .grid.grid-cols-2 > .feature-card:nth-child(2) { transition-delay: 0.16s; }
.about-content-phase .grid.grid-cols-2 > .feature-card:nth-child(1) { transition-delay: 0.23s; }

.about-content-phase .tech-badge {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.about-content-phase .tech-badge:nth-child(6) { transition-delay: 0s;    }
.about-content-phase .tech-badge:nth-child(5) { transition-delay: 0.05s; }
.about-content-phase .tech-badge:nth-child(4) { transition-delay: 0.09s; }
.about-content-phase .tech-badge:nth-child(3) { transition-delay: 0.12s; }
.about-content-phase .tech-badge:nth-child(2) { transition-delay: 0.15s; }
.about-content-phase .tech-badge:nth-child(1) { transition-delay: 0.18s; }

/* ── Children: visible + FORWARD stagger delays (override base) ─── */
/* Forward order: 1st item appears first */
.about-cinematic-section.anim-content .about-content-card,
.about-cinematic-section.anim-content .flex.flex-wrap,
.about-cinematic-section.anim-content .pt-2 {
    opacity: 1;
}
.about-cinematic-section.anim-content .space-y-5 > *:nth-child(1) { transition-delay: 0.22s; }
.about-cinematic-section.anim-content .space-y-5 > *:nth-child(2) { transition-delay: 0.35s; }
.about-cinematic-section.anim-content .space-y-5 > *:nth-child(3) { transition-delay: 0.47s; }
.about-cinematic-section.anim-content .space-y-5 > *:nth-child(4) { transition-delay: 0.59s; }

.about-cinematic-section.anim-content .feature-card { opacity: 1; }
.about-cinematic-section.anim-content .grid.grid-cols-2 > .feature-card:nth-child(1) { transition-delay: 0.27s; }
.about-cinematic-section.anim-content .grid.grid-cols-2 > .feature-card:nth-child(2) { transition-delay: 0.39s; }
.about-cinematic-section.anim-content .grid.grid-cols-2 > .feature-card:nth-child(3) { transition-delay: 0.51s; }
.about-cinematic-section.anim-content .grid.grid-cols-2 > .feature-card:nth-child(4) { transition-delay: 0.63s; }

.about-cinematic-section.anim-content .tech-badge { opacity: 1; }
.about-cinematic-section.anim-content .tech-badge:nth-child(1) { transition-delay: 0.52s; }
.about-cinematic-section.anim-content .tech-badge:nth-child(2) { transition-delay: 0.60s; }
.about-cinematic-section.anim-content .tech-badge:nth-child(3) { transition-delay: 0.68s; }
.about-cinematic-section.anim-content .tech-badge:nth-child(4) { transition-delay: 0.76s; }
.about-cinematic-section.anim-content .tech-badge:nth-child(5) { transition-delay: 0.84s; }
.about-cinematic-section.anim-content .tech-badge:nth-child(6) { transition-delay: 0.92s; }

/* ── Stats bar ──────────────────────────────────────────────────── */
.about-stats-out { padding: 5rem 0; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .about-cinematic-section { min-height: 240vh; }
    .about-sticky-container  { align-items: flex-start; padding-top: 1rem; }
    .about-cinematic-heading { font-size: clamp(2rem, 9vw, 3rem); }
    .about-cinematic-section.anim-content .about-cinematic-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
    .about-cinematic-section.anim-content .about-content-phase     { max-height: 1400px; }
}

/* =================================================================
       MISSION & VALUES SECTION
       ================================================================= */

#mission-values {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

    /* About Section Description - IMPROVED CONTRAST */
    #mission-values p.text-gray-600,
    #mission-values p {
        color: #475569;
    }

    body.dark-mode #mission-values p {
        color: #cbd5e1;
    }

body.dark-mode #mission-values {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Mission Card */
.mission-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

body.dark-mode .mission-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

body.dark-mode .mission-card:hover {
    box-shadow: 0 20px 60px -15px rgba(59, 130, 246, 0.4);
}

/* Mission Card Glow */
.mission-card-glow {
    position: absolute;
    inset: -150px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.mission-card:hover .mission-card-glow {
    opacity: 1;
}

/* Mission Icon Wrapper */
.mission-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
    border-radius: 12px;
    transition: all 0.4s ease;
}

body.dark-mode .mission-icon-bg {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.2));
}

.mission-card:hover .mission-icon-wrapper {
    transform: scale(1.08) rotate(-3deg);
}

.mission-card:hover .mission-icon-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.mission-card:hover .mission-icon-wrapper svg {
    color: white;
}

/* Mission Card Border */
.mission-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 24px 24px;
}

.mission-card:hover .mission-card-border {
    width: 100%;
}

/* Value Cards */
.value-card {
    position: relative;
    padding: 2rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.dark-mode .value-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

body.dark-mode .value-card:hover {
    box-shadow: 0 20px 60px -15px rgba(59, 130, 246, 0.4);
}

/* Value Card Glow */
.value-card-glow {
    position: absolute;
    inset: -150px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.value-card:hover .value-card-glow {
    opacity: 1;
}

/* Value Icon Wrapper */
.value-icon-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
    border-radius: 16px;
    transition: all 0.4s ease;
}

body.dark-mode .value-icon-bg {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.2));
}

.value-card:hover .value-icon-wrapper {
    transform: scale(1.08) rotate(-3deg);
}

.value-card:hover .value-icon-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.value-card:hover .value-icon-wrapper svg {
    color: white;
}

/* Value Title */
.value-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

body.dark-mode .value-title {
    color: #f1f5f9;
}

/* Value Description */
.value-description {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    flex-grow: 1;
}

body.dark-mode .value-description {
    color: #cbd5e1;
}

/* Value Card Border */
.value-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 20px 20px;
}

.value-card:hover .value-card-border {
    width: 100%;
}

/* =================================================================
   9. SERVICES SECTION
   ================================================================= */
body.dark-mode #services {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Service Cards */
.service-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .service-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

body.dark-mode .service-card:hover {
    box-shadow: 0 20px 60px -15px rgba(59, 130, 246, 0.4);
}

/* Featured Service Cards */
.service-card-featured {
    border: 2px solid rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(239, 246, 255, 1) 100%);
}

body.dark-mode .service-card-featured {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 58, 138, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

.service-card-featured:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 25px 70px -20px rgba(37, 99, 235, 0.5);
}

/* Service Badge */
.service-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px -3px rgba(239, 68, 68, 0.4);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

.service-badge-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px -3px rgba(139, 92, 246, 0.4);
}

/* Service Card Glow */
.service-card-glow {
    position: absolute;
    inset: -150px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover .service-card-glow {
    opacity: 1;
}

/* Service Icon Wrapper */
.service-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
    border-radius: 20px;
    transition: all 0.4s ease;
}

body.dark-mode .service-icon-bg {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.2));
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.08) rotate(-3deg);
}

.service-card:hover .service-icon-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.service-card:hover .service-icon-wrapper svg {
    color: white;
}

/* Service Title */
.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

body.dark-mode .service-title {
    color: #f1f5f9;
}

/* Service Description - IMPROVED CONTRAST */
.service-description {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

body.dark-mode .service-description {
    color: #cbd5e1;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .service-features li {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        font-size: 0.875rem;
        color: #64748b;
        font-weight: 500;
    }

body.dark-mode .service-features li {
    color: #94a3b8;
}

.service-features li svg {
    flex-shrink: 0;
}

/* Service CTA */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.08));
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
    align-self: flex-start;
}

body.dark-mode .service-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.15));
    color: var(--primary-blue-light);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-cta:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border-color: var(--primary-blue);
    transform: translateX(4px);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}

/* Service Card Border */
.service-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 24px 24px;
}

.service-card:hover .service-card-border {
    width: 100%;
}

/* =================================================================
   10. IMPROVED LIGHT MODE CONTRAST - GLOBAL TEXT FIXES
   ================================================================= */
body {
    color: #1e293b;
}

    body.dark-mode {
        color: #e2e8f0;
    }

/* Hero Section Text Contrast */
#home p {
    color: #475569;
}

body.dark-mode #home p {
    color: #cbd5e1;
}

#home .badge span {
    color: var(--primary-blue);
}

body.dark-mode #home .badge span {
    color: var(--primary-blue-light);
}

/* About Section Text Contrast */
#about h3 {
    color: #0f172a;
}

body.dark-mode #about h3 {
    color: #f1f5f9;
}

#about p {
    color: #475569;
}

body.dark-mode #about p {
    color: #cbd5e1;
}

/* Services Section Enhanced Contrast */
#services h2 {
    color: #0f172a;
}

body.dark-mode #services h2 {
    color: #f1f5f9;
}

#services p {
    color: #475569;
}

body.dark-mode #services p {
    color: #cbd5e1;
}

#technologies p {
    color: #475569;
}

body.dark-mode #technologies p {
    color: #cbd5e1;
}

#portfolio p {
    color: #475569;
}

body.dark-mode #portfolio p {
    color: #cbd5e1;
}

#testimonials p {
    color: #475569;
}

body.dark-mode #testimonials p {
    color: #cbd5e1;
}

#contact p {
    color: #475569;
}

body.dark-mode #contact p {
    color: #cbd5e1;
}

/* General Card Text */
.card h4, .card h3, .card-title {
    color: #1e293b !important;
}

body.dark-mode .card h4,
body.dark-mode .card h3,
body.dark-mode .card-title {
    color: #f1f5f9 !important;
}

.card p {
    color: #475569 !important;
}

body.dark-mode .card p {
    color: #cbd5e1 !important;
}

/* Badge Improved Contrast */
.badge {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary-blue-dark) !important;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

body.dark-mode .badge {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--primary-blue-light) !important;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Stats Text Contrast */
.stat-label, .stat-label-modern {
    color: #64748b !important;
}

body.dark-mode .stat-label,
body.dark-mode .stat-label-modern {
    color: #94a3b8 !important;
}

/* =================================================================
   11. TECHNOLOGIES SECTION
   ================================================================= */
body.dark-mode #technologies {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Tech Category Header */
.tech-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.tech-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

body.dark-mode .tech-category-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.25));
}

.tech-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

body.dark-mode .tech-category-title {
    color: #f1f5f9;
}

.tech-category-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.3), transparent);
}

body.dark-mode .tech-category-line {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), transparent);
}

/* Tech Cards */
.tech-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

body.dark-mode .tech-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px -15px rgba(37, 99, 235, 0.35);
    border-color: rgba(37, 99, 235, 0.5);
}

body.dark-mode .tech-card:hover {
    box-shadow: 0 20px 50px -15px rgba(59, 130, 246, 0.4);
}

/* Featured Tech Cards */
.tech-card-featured {
    border: 2px solid rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, white 0%, rgba(239, 246, 255, 0.8) 100%);
}

body.dark-mode .tech-card-featured {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 58, 138, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

.tech-featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    font-size: 0.625rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px -3px rgba(37, 99, 235, 0.5);
    z-index: 10;
}

.tech-featured-badge-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 12px -3px rgba(139, 92, 246, 0.5);
}

/* Tech Card Glow */
.tech-card-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.tech-card:hover .tech-card-glow {
    opacity: 1;
}

/* Tech Card Shine Effect */
.tech-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.tech-card:hover .tech-card-shine {
    transform: rotate(45deg) translateX(100%);
}

/* Tech Icon Container */
.tech-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover .tech-icon-container {
    transform: scale(1.15) rotate(5deg);
}

    .tech-card:hover .tech-icon-container i {
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    }

/* Tech Name & Version */
.tech-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.375rem;
    transition: color 0.3s ease;
}

body.dark-mode .tech-name {
    color: #f1f5f9;
}

.tech-card:hover .tech-name {
    color: var(--primary-blue);
}

body.dark-mode .tech-card:hover .tech-name {
    color: var(--primary-blue-light);
}

.tech-version {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

body.dark-mode .tech-version {
    color: #94a3b8;
}

/* Tech Stats Cards */
.tech-stat-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

    .tech-stat-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

/* Blue Stat */
.tech-stat-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.5);
}

    .tech-stat-blue:hover {
        box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* Indigo Stat */
.tech-stat-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.5);
}

    .tech-stat-indigo:hover {
        box-shadow: 0 20px 60px -15px rgba(99, 102, 241, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* Purple Stat */
.tech-stat-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.5);
}

    .tech-stat-purple:hover {
        box-shadow: 0 20px 60px -15px rgba(139, 92, 246, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* Orange Stat */
.tech-stat-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 40px -10px rgba(249, 115, 22, 0.5);
}

    .tech-stat-orange:hover {
        box-shadow: 0 20px 60px -15px rgba(249, 115, 22, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* Tech Stat Elements */
.tech-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-stat-card:hover .tech-stat-icon {
    transform: scale(1.15) rotate(-5deg);
    background: rgba(255, 255, 255, 0.25);
}

.tech-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tech-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tech-stat-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.tech-stat-card:hover .tech-stat-glow {
    opacity: 1;
}

/* =================================================================
   12. PORTFOLIO SECTION
   ================================================================= */
body.dark-mode #portfolio {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .portfolio-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.35);
    border-color: rgba(37, 99, 235, 0.5);
}

body.dark-mode .portfolio-card:hover {
    box-shadow: 0 25px 60px -15px rgba(59, 130, 246, 0.4);
}

/* Portfolio Card Glow */
.portfolio-card-glow {
    position: absolute;
    inset: -150px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card-glow {
    opacity: 1;
}

/* Portfolio Image */
.portfolio-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

/* Portfolio Image Overlay */
.portfolio-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-image-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
}

/* Portfolio View Button */
.portfolio-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}

    .portfolio-view-btn:hover {
        background: var(--primary-blue);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.5);
    }

/* Portfolio Category Badge */
.portfolio-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

body.dark-mode .portfolio-category-badge {
    background: rgba(30, 41, 59, 0.95);
    color: var(--primary-blue-light);
}

/* Portfolio Content */
.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

/* Portfolio Title */
.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

body.dark-mode .portfolio-title {
    color: #f1f5f9;
}

.portfolio-card:hover .portfolio-title {
    color: var(--primary-blue);
}

body.dark-mode .portfolio-card:hover .portfolio-title {
    color: var(--primary-blue-light);
}

/* Portfolio Description - IMPROVED CONTRAST */
.portfolio-description {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
}

body.dark-mode .portfolio-description {
    color: #cbd5e1;
}

/* Portfolio Features */
.portfolio-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.portfolio-feature-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

body.dark-mode .portfolio-feature-item {
    color: #94a3b8;
}

/* Portfolio Tech Stack */
.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tech-tag {
    padding: 0.375rem 0.875rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

body.dark-mode .portfolio-tech-tag {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-blue-light);
    border-color: rgba(59, 130, 246, 0.3);
}

.portfolio-tech-tag:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Portfolio Stats */
.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

body.dark-mode .portfolio-stats {
    border-color: rgba(59, 130, 246, 0.2);
}

.portfolio-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

body.dark-mode .portfolio-stat {
    color: #94a3b8;
}

/* Portfolio CTA */
.portfolio-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.08));
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    margin-top: auto;
}

body.dark-mode .portfolio-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.15));
    color: var(--primary-blue-light);
    border-color: rgba(59, 130, 246, 0.3);
}

.portfolio-cta:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}

/* Portfolio Card Border */
.portfolio-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 24px 24px;
}

.portfolio-card:hover .portfolio-card-border {
    width: 100%;
}

/* =================================================================
   13. TESTIMONIALS SECTION
   ================================================================= */
body.dark-mode #testimonials {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.dark-mode .testimonial-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.35);
    border-color: rgba(37, 99, 235, 0.4);
}

body.dark-mode .testimonial-card:hover {
    box-shadow: 0 20px 60px -15px rgba(59, 130, 246, 0.4);
}

/* Testimonial Card Glow */
.testimonial-card-glow {
    position: absolute;
    inset: -150px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.testimonial-card:hover .testimonial-card-glow {
    opacity: 1;
}

/* Quote Icon */
.testimonial-quote-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.4s ease;
}

body.dark-mode .testimonial-quote-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.2));
}

.testimonial-card:hover .testimonial-quote-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.5);
}

/* Rating Stars */
.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

    .testimonial-rating svg {
        transition: transform 0.3s ease;
    }

.testimonial-card:hover .testimonial-rating svg {
    transform: scale(1.1);
}

    .testimonial-card:hover .testimonial-rating svg:nth-child(1) {
        transition-delay: 0s;
    }

    .testimonial-card:hover .testimonial-rating svg:nth-child(2) {
        transition-delay: 0.05s;
    }

    .testimonial-card:hover .testimonial-rating svg:nth-child(3) {
        transition-delay: 0.1s;
    }

    .testimonial-card:hover .testimonial-rating svg:nth-child(4) {
        transition-delay: 0.15s;
    }

    .testimonial-card:hover .testimonial-rating svg:nth-child(5) {
        transition-delay: 0.2s;
    }

/* Testimonial Text - IMPROVED CONTRAST */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    position: relative;
}

body.dark-mode .testimonial-text {
    color: #cbd5e1;
}

/* Testimonial Author */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin-top: auto;
}

body.dark-mode .testimonial-author {
    border-color: rgba(59, 130, 246, 0.2);
}

/* Avatar Wrapper */
.testimonial-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .testimonial-avatar {
    border-color: rgba(30, 41, 59, 1);
}

.testimonial-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-avatar-ring {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
}

/* Author Info */
.testimonial-author-info {
    flex-grow: 1;
}

.testimonial-author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

body.dark-mode .testimonial-author-name {
    color: #f1f5f9;
}

.testimonial-author-role {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

body.dark-mode .testimonial-author-role {
    color: #94a3b8;
}

/* Company Badge */
.testimonial-company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

body.dark-mode .testimonial-company-badge {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-blue-light);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Testimonial Card Border */
.testimonial-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 24px 24px;
}

.testimonial-card:hover .testimonial-card-border {
    width: 100%;
}

/* =================================================================
   14. CONTACT SECTION
   ================================================================= */
body.dark-mode #contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

body.dark-mode .contact-form-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.2);
}

.contact-form-card:hover {
    box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.2);
}

/* Form Header */
.contact-form-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.dark-mode .contact-form-header {
    border-color: rgba(59, 130, 246, 0.2);
}

.contact-form-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
}

body.dark-mode .contact-form-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.25));
}

.contact-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

body.dark-mode .contact-form-title {
    color: #f1f5f9;
}

.contact-form-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
}

body.dark-mode .contact-form-subtitle {
    color: #94a3b8;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

body.dark-mode .form-label {
    color: #e2e8f0;
}

.form-label svg {
    color: var(--primary-blue);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.form-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    font-weight: 600;
    font-size: 1.0625rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}

    .form-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px -8px rgba(37, 99, 235, 0.6);
    }

.form-submit-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.form-submit-btn:hover .form-submit-glow {
    transform: translateX(100%);
}

/* Privacy Note */
.form-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    font-size: 0.8125rem;
    color: #64748b;
}

body.dark-mode .form-privacy-note {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #94a3b8;
}

/* Contact Info Cards */

.contact-info-header {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-info-header {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-info-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.dark-mode .contact-info-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

.contact-info-card:hover {
    transform: translateX(4px);
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px -10px rgba(37, 99, 235, 0.3);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

body.dark-mode .contact-info-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.25));
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.5);
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-info-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

body.dark-mode .contact-info-label {
    color: #f1f5f9;
}

.contact-info-link {
    font-size: 0.9375rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-mode .contact-info-link {
    color: #94a3b8;
}

.contact-info-link:hover {
    color: var(--primary-blue);
}

body.dark-mode .contact-info-link:hover {
    color: var(--primary-blue-light);
}

.contact-info-text {
    font-size: 0.9375rem;
    color: #64748b;
}

body.dark-mode .contact-info-text {
    color: #94a3b8;
}

/* Social Links */
.contact-social-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.contact-social-section {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-social-section {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

.contact-social-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}

.contact-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

body.dark-mode .contact-social-btn {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-social-btn:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.5);
}

/* Response Time Badge */
.contact-response-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 112, 0.05), rgba(5, 150, 105, 0.05));
    border: 1px solid rgba(16, 185, 112, 0.2);
    border-radius: 20px;
}

body.dark-mode .contact-response-badge {
    background: linear-gradient(135deg, rgba(16, 185, 112, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 112, 0.3);
}

@media (max-width: 400px) {
    .contact-social-links {
        flex-wrap: wrap;
    }
}

/* =================================================================
   15. FOOTER STYLES
   ================================================================= */
.modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #e2e8f0;
    position: relative;
    padding: 5rem 0 0;
}

.footer-main-content {
    padding-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Footer Background */
.footer-gradient-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.15), transparent 50%), radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1), transparent 50%);
    opacity: 0.4;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.3;
}

/* Floating Elements */
.footer-float-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    filter: blur(60px);
}

.footer-float-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: float 20s ease-in-out infinite;
}

.footer-float-2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    animation: float 15s ease-in-out infinite reverse;
}

.footer-float-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 30%;
    animation: float 18s ease-in-out infinite;
    animation-delay: 2s;
}

/* Footer Logo */

/* Footer Logo */
.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.5);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.footer-logo-subtext {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary-blue-light);
    letter-spacing: 2px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 1rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
}

    .footer-newsletter-input::placeholder {
        color: #64748b;
    }

    .footer-newsletter-input:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.footer-newsletter-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .footer-newsletter-btn:hover {
        transform: translateX(4px);
        box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.5);
    }

/* Column Title */
.footer-column-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

    .footer-column-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-blue), transparent);
        border-radius: 2px;
    }

/* Footer Links */
.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

    .footer-link svg {
        flex-shrink: 0;
        opacity: 0;
        transform: translateX(-8px);
        transition: all 0.3s ease;
    }

    .footer-link:hover {
        color: var(--primary-blue-light);
        transform: translateX(4px);
    }

        .footer-link:hover svg {
            opacity: 1;
            transform: translateX(0);
        }

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue-light);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.footer-contact-link,
.footer-contact-text {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

    .footer-contact-link:hover {
        color: var(--primary-blue-light);
    }

/* Social Buttons */

.footer-social-section {
    margin-top: 1.5rem;
}

.footer-social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-social-links {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
}

.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .footer-social-btn:hover {
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
        color: white;
        transform: translateY(-4px);
        border-color: var(--primary-blue);
        box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.5);
    }

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 2.5rem 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 0;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-copyright-highlight {
    color: var(--primary-blue-light);
    font-weight: 600;
}

.footer-bottom-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

    .footer-bottom-link:hover {
        color: var(--primary-blue-light);
    }

/* Scroll to Top */
.footer-scroll-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    color: var(--primary-blue-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .footer-scroll-top:hover {
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
        color: white;
        border-color: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
    }

.footer-bottom {
    flex-direction: column;
    text-align: center;
}

.footer-bottom-left {
    align-items: center;
}

    @media (max-width: 400px) {
        .footer-social-links {
            flex-wrap: wrap;
        }
    }
/* =================================================================
   16. RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 1024px) {
    .hero-heading {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }

    .card-stack-container {
        max-width: 400px;
    }

    .hero-card-float {
        display: none;
    }

    .stats-bar {
        flex-direction: column;
        text-align: center;
    }

    .stat-item-modern {
        flex-direction: column;
        text-align: center;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .tech-category-title {
        font-size: 1.5rem;
    }

    .tech-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero-modern {
        padding-top: 2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }

    .tech-icon {
        width: 48px;
        height: 48px;
    }

    .shape {
        opacity: 0.2;
    }

    .shape-1, .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3, .shape-4 {
        width: 150px;
        height: 150px;
    }

    .service-card {
        padding: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .tech-card {
        padding: 1.5rem 1rem;
    }

    .portfolio-content {
        padding: 1.5rem;
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.75rem;
        gap: 1.25rem;
    }

    .contact-form-card {
        padding: 1.75rem;
    }
}

/* =================================================================
   17. DARK MODE UTILITY OVERRIDES
   ================================================================= */
body.dark-mode .bg-white {
    background: #1e293b;
}

body.dark-mode .bg-gray-50 {
    background: #0f172a;
}

body.dark-mode .text-gray-600 {
    color: #94a3b8;
}

body.dark-mode .text-gray-800 {
    color: #e2e8f0;
}

body.dark-mode .text-gray-900 {
    color: #f1f5f9;
}

/* =================================================================
   18. FORM VALIDATION STATES
   ================================================================= */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Loading State for Submit Button */
.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-submit-btn.loading {
    pointer-events: none;
}

    .form-submit-btn.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

/* =================================================================
   19. PRINT STYLES
   ================================================================= */
@media print {
    .modern-navbar,
    .modern-footer,
    .cta-primary,
    .cta-secondary,
    .mobile-menu-btn,
    .theme-toggle-btn,
    .scroll-indicator {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-modern,
    #about,
    #services,
    #technologies,
    #portfolio,
    #testimonials,
    #contact {
        background: white;
        page-break-inside: avoid;
    }
}

/* =================================================================
   20. ACCESSIBILITY IMPROVEMENTS
   ================================================================= */
/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .stat-card,
    .service-card,
    .tech-card,
    .portfolio-card,
    .testimonial-card {
        border-width: 2px;
    }
}

/* =================================================================
   END OF STYLES
   ================================================================= */
dark-mode {
    background: var(--bg-secondary-dark);
    color: var(--text-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Custom color utilities */
.text-primary-blue {
    color: var(--primary-blue);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-blue-light {
    background-color: var(--primary-blue-light);
}

.text-silver-gray {
    color: var(--silver-gray);
}

.bg-silver-gray {
    background-color: var(--silver-gray);
}

/* =================================================================
   3. ANIMATIONS & KEYFRAMES
   ================================================================= */
/* Smooth Scroll Reveal - FIXED */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .fade-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

    .animate-fade-in.visible {
        opacity: 1;
    }

/* Staggered Animation Delays for Multiple Items */
.fade-in-up:nth-child(1) {
    transition-delay: 0s;
}

.fade-in-up:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    transition-delay: 0.3s;
}

.fade-in-up:nth-child(5) {
    transition-delay: 0.4s;
}

.fade-in-up:nth-child(6) {
    transition-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes gradientShift {
    to {
        background-position: 200% center;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(5deg) translateY(0px);
    }

    50% {
        transform: rotateY(-3deg) rotateX(3deg) translateY(-10px);
    }
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-15px) translateX(5px);
    }
}

@keyframes techIconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scrollDot {
    0%, 100% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =================================================================
   4. HOVER EFFECTS
   ================================================================= */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

/* =================================================================
   5. GRADIENT TEXT
   ================================================================= */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 25%, var(--primary-blue) 50%, var(--primary-blue-light) 75%, var(--primary-blue) 100% );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
    font-weight: 900;
}

/* =================================================================
   6. NAVBAR STYLES
   ================================================================= */
.modern-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

    .modern-navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }

body.dark-mode .modern-navbar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

    body.dark-mode .modern-navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
    }

/* Logo Styles */
.navbar-logo {
    transition: all 0.3s ease;
}

.logo-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .logo-container::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

.navbar-logo:hover .logo-container::before {
    opacity: 1;
}

.logo-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.navbar-logo:hover .logo-icon {
    transform: rotateY(360deg) scale(1.1);
    color: white;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-subtext {
    margin-top: -4px;
    font-weight: 600;
}

body.dark-mode .logo-subtext {
    color: var(--silver-gray);
}

/* Desktop Navigation Links */
.nav-link-modern {
    position: relative;
    padding: 10px 20px;
    color: #1e293b;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

body.dark-mode .nav-link-modern {
    color: #e2e8f0;
}

.nav-link-modern span {
    position: relative;
    z-index: 2;
}

.nav-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.nav-link-modern:hover::before,
.nav-link-modern.active::before {
    opacity: 1;
}

.nav-link-modern:hover .nav-indicator,
.nav-link-modern.active .nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

.nav-link-modern:hover {
    color: var(--primary-blue);
}

body.dark-mode .nav-link-modern:hover {
    color: var(--primary-blue-light);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .theme-toggle-btn:hover {
        background: rgba(37, 99, 235, 0.1);
        border-color: var(--primary-blue-light);
        transform: translateY(-2px);
    }

.sun-icon,
.moon-icon {
    position: absolute;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    color: #f59e0b;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    color: #3b82f6;
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle-btn {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Modern CTA Button */
.cta-modern-btn {
    position: relative;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

    .cta-modern-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
        color: white;
    }

.cta-btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-modern-btn:hover .cta-btn-glow {
    opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .mobile-menu-btn:hover {
        background: rgba(37, 99, 235, 0.1);
        border-color: var(--primary-blue-light);
    }

/* Hide on large screens */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .hamburger-line {
    background: var(--primary-blue-light);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .mobile-menu.active {
        max-height: 85vh;
    }

.mobile-menu-content {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

body.dark-mode .mobile-nav-link {
    color: #e2e8f0;
}

.mobile-nav-link i {
    width: 20px;
    color: var(--primary-blue);
    font-size: 18px;
}

body.dark-mode .mobile-nav-link i {
    color: var(--primary-blue-light);
}

.mobile-nav-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
    margin: 16px 0;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

    .mobile-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        color: white;
    }

/* =================================================================
   7. HERO SECTION - COMPLETE STYLES
   ================================================================= */
.hero-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

body.dark-mode .hero-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Hero Description Text - IMPROVED CONTRAST */
.hero-content-wrapper p {
    color: #475569;
}

body.dark-mode .hero-content-wrapper p {
    color: #cbd5e1;
}

/* Animated Mesh Gradient Background */
.hero-mesh-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(at 27% 37%, rgba(37, 99, 235, 0.12) 0px, transparent 50%), radial-gradient(at 97% 21%, rgba(59, 130, 246, 0.15) 0px, transparent 50%), radial-gradient(at 52% 99%, rgba(148, 163, 184, 0.1) 0px, transparent 50%), radial-gradient(at 10% 29%, rgba(30, 64, 175, 0.1) 0px, transparent 50%), radial-gradient(at 97% 96%, rgba(37, 99, 235, 0.08) 0px, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    opacity: 0.6;
}

/* Hexagon Background Pattern */
.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.12) 2px, transparent 2px), radial-gradient(circle at 0% 50%, rgba(37, 99, 235, 0.12) 2px, transparent 2px), radial-gradient(circle at 100% 50%, rgba(37, 99, 235, 0.12) 2px, transparent 2px);
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 0 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

body.dark-mode .bg-pattern {
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 2px, transparent 2px), radial-gradient(circle at 0% 50%, rgba(59, 130, 246, 0.2) 2px, transparent 2px), radial-gradient(circle at 100% 50%, rgba(59, 130, 246, 0.2) 2px, transparent 2px);
}

/* Floating Geometric Shapes */
.geometric-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(59, 130, 246, 0.3));
    top: 10%;
    left: 5%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    bottom: 15%;
    right: 10%;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(203, 213, 225, 0.3));
    top: 50%;
    right: 20%;
    animation: float 18s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(37, 99, 235, 0.2));
    bottom: 30%;
    left: 15%;
    animation: float 22s ease-in-out infinite;
    animation-delay: 4s;
}

/* Hero Heading */
.hero-heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* CTA Buttons */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.5);
}

    .cta-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 40px -10px rgba(37, 99, 235, 0.6);
        color: white;
    }

.cta-primary-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cta-primary:hover .cta-primary-glow {
    transform: translateX(100%);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dark-mode .cta-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: var(--primary-blue-light);
    border-color: rgba(59, 130, 246, 0.3);
}

.cta-secondary:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.3);
}

.cta-secondary-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-secondary:hover .cta-secondary-hover {
    opacity: 1;
}

/* Modern Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.dark-mode .stat-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px -15px rgba(37, 99, 235, 0.4);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

body.dark-mode .stat-number {
    color: var(--primary-blue-light);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--silver-gray-light);
    font-weight: 500;
}

body.dark-mode .stat-label {
    color: var(--silver-gray);
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-progress {
    width: 100%;
}

/* Hero Visual - 3D Card Stack */
.card-stack-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    /* Hero Card Text - IMPROVED CONTRAST */
    .hero-card .text-gray-500 {
        color: #64748b !important;
    }

/* =================================================================
   PROCESS SECTION
   ================================================================= */

.process-section-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f8fafc 100%);
}

body.dark-mode .process-section-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.process-connector-line {
    position: absolute;
    top: 24px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), var(--primary-blue-light), var(--primary-blue), transparent);
    z-index: 0;
}

.process-step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.process-step-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.process-node-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    opacity: 0.4;
    animation: processPulse 2s ease-in-out infinite;
}

.process-node-pulse-green {
    border-color: #10b981;
    animation-delay: 0.5s;
}

@keyframes processPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
}

.process-step-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.process-step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.process-step-card:hover::before { opacity: 1; }

.process-step-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px rgba(37, 99, 235, 0.2);
}

body.dark-mode .process-step-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.15);
}

.process-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
}

.process-step-card:hover .process-step-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    transform: scale(1.1);
}

.process-step-icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: #10b981;
}

.process-step-card:hover .process-step-icon-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.process-step-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

body.dark-mode .process-step-title { color: #f1f5f9; }

.process-step-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

body.dark-mode .process-step-desc { color: #94a3b8; }

.process-step-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.process-step-tag-ai {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.3);
}

.process-step-tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

/* =================================================================
   STAGGER ANIMATION SYSTEM
   ================================================================= */

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--delay, 0s);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}
