/* ==========================================
   Quantum Chain - Main Stylesheet
   ========================================== */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #030308;
    --bg-secondary: #08080f;
    --bg-card: #0c0c16;
    --cyan: #06b6d4;
    --cyan-bright: #22d3ee;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --pink: #d946ef;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --glow-cyan: rgba(6, 182, 212, 0.4);
    --glow-purple: rgba(139, 92, 246, 0.3);
}

html, body {
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100vw;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays for grid children */
.services-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.48s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ==========================================
   Animated Background Effects
   ========================================== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-effects::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 800px 800px at 80% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 600px 600px at 60% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 14s; animation-delay: 0s; background: var(--cyan); }
.particle:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; background: var(--blue); }
.particle:nth-child(3) { left: 40%; animation-duration: 12s; animation-delay: 4s; background: var(--purple); }
.particle:nth-child(4) { left: 55%; animation-duration: 16s; animation-delay: 1s; background: var(--cyan); width: 2px; height: 2px; }
.particle:nth-child(5) { left: 70%; animation-duration: 20s; animation-delay: 3s; background: var(--blue); }
.particle:nth-child(6) { left: 85%; animation-duration: 15s; animation-delay: 5s; background: var(--purple); width: 4px; height: 4px; }
.particle:nth-child(7) { left: 33%; animation-duration: 17s; animation-delay: 7s; background: var(--cyan); width: 2px; height: 2px; }
.particle:nth-child(8) { left: 62%; animation-duration: 13s; animation-delay: 6s; background: var(--blue); }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100px) translateX(40px);
        opacity: 0;
    }
}

/* Grid Pattern Overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================
   Layout
   ========================================== */
.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================
   Navigation
   ========================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(3, 3, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    animation: navSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px var(--glow-cyan);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 20px 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    max-height: 400px;
    padding: 20px 0 10px;
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color 0.3s ease, padding-left 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu a:active {
    color: var(--cyan);
    padding-left: 8px;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

.mobile-menu .nav-cta {
    display: inline-block;
    margin-top: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s, background 0.3s ease;
}

.mobile-menu.open .nav-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-badge-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 25%, var(--purple) 50%, var(--blue) 75%, var(--cyan) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 4s ease-in-out infinite;
}

@keyframes gradientShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 1.5s ease-out 1s backwards;
}

.scroll-indicator span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px -15px var(--glow-cyan);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   Hero Visual / Quantum Atom Animation
   ========================================== */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1.2s ease-out 0.3s backwards;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quantum-atom {
    position: relative;
    width: 400px;
    height: 400px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 280px;
    height: 100px;
    border-color: rgba(6, 182, 212, 0.3);
    animation: rotateOrbit 8s linear infinite;
}

.orbit-2 {
    width: 280px;
    height: 100px;
    border-color: rgba(59, 130, 246, 0.4);
    transform: translate(-50%, -50%) rotate(60deg);
    animation: rotateOrbit 10s linear infinite reverse;
}

.orbit-3 {
    width: 280px;
    height: 100px;
    border-color: rgba(139, 92, 246, 0.5);
    transform: translate(-50%, -50%) rotate(120deg);
    animation: rotateOrbit 12s linear infinite;
}

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotateZ(0deg) rotateX(70deg); }
    to { transform: translate(-50%, -50%) rotateZ(360deg) rotateX(70deg); }
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 60px var(--glow-cyan),
        0 0 120px var(--glow-purple);
    animation: nucleusPulse 3s ease-in-out infinite;
}

@keyframes nucleusPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.electron {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--cyan);
}

.electron-1 {
    top: 50%;
    right: 60px;
    animation: electronMove1 8s linear infinite;
}

.electron-2 {
    top: 80px;
    left: 120px;
    background: var(--blue);
    box-shadow: 0 0 20px var(--blue);
    animation: electronMove2 10s linear infinite;
}

.electron-3 {
    bottom: 80px;
    left: 120px;
    background: var(--purple);
    box-shadow: 0 0 20px var(--purple);
    animation: electronMove3 12s linear infinite;
}

@keyframes electronMove1 {
    0%, 100% { transform: translateX(0) translateY(-50%); opacity: 1; }
    25% { opacity: 0.3; }
    50% { transform: translateX(-200px) translateY(-50%); opacity: 1; }
    75% { opacity: 0.3; }
}

@keyframes electronMove2 {
    0%, 100% { transform: translate(0, 0); opacity: 1; }
    25% { opacity: 0.3; }
    50% { transform: translate(100px, 150px); opacity: 1; }
    75% { opacity: 0.3; }
}

@keyframes electronMove3 {
    0%, 100% { transform: translate(0, 0); opacity: 1; }
    25% { opacity: 0.3; }
    50% { transform: translate(100px, -150px); opacity: 1; }
    75% { opacity: 0.3; }
}

/* ==========================================
   Stats Row
   ========================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 40px 0 100px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* Stat item hover glow */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.08);
}

.stat-item:hover .stat-value {
    animation: statPop 0.4s ease;
}

@keyframes statPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Services Section
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card--cyan::before {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.service-card--blue::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.service-card--purple::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.service-card--cyan:hover {
    border-color: rgba(6, 182, 212, 0.2);
}

.service-card--blue:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.service-card--purple:hover {
    border-color: rgba(139, 92, 246, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

/* Glowing shimmer on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.06), transparent);
    transition: none;
    pointer-events: none;
}

.service-card:hover::after {
    animation: cardShimmer 0.8s ease forwards;
}

@keyframes cardShimmer {
    from { left: -60%; }
    to { left: 120%; }
}

.service-card--cyan .service-features li::before { background: var(--cyan); }
.service-card--blue .service-features li::before { background: var(--blue); }
.service-card--purple .service-features li::before { background: var(--purple); }

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================
   About Section
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.about-text h2 span {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pillar {
    text-align: center;
    padding: 24px 16px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pillar:hover {
    border-color: rgba(6, 182, 212, 0.25);
    transform: translateY(-4px);
}

.pillar-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.pillar p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-visual {
    position: relative;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-stat:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 40px -20px var(--glow-cyan);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 40px -20px var(--glow-cyan); }
    50% { box-shadow: 0 0 60px -10px var(--glow-cyan), 0 0 80px -20px var(--glow-purple); }
}

.about-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Features / Why Choose Section
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    padding: 100px 0 120px;
}

.contact-wrapper {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.contact-wrapper h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-wrapper > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    align-self: center;
    margin-top: 8px;
}

/* Contact Divider */
.contact-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 400px;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.contact-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
}

.contact-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    border-radius: 12px;
}

.contact-option-text {
    text-align: left;
}

.contact-option-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-option-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   Footer
   ========================================== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   Responsive Design
   ========================================== */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 280px;
        margin: 0 auto;
    }

    .quantum-atom {
        width: 280px;
        height: 280px;
    }

    .orbit-1, .orbit-2, .orbit-3 {
        width: 200px;
        height: 75px;
    }

    .nucleus { width: 60px; height: 60px; }
    .electron { width: 12px; height: 12px; }
    .electron-1 { right: 40px; }
    .electron-2 { top: 60px; left: 90px; }
    .electron-3 { bottom: 60px; left: 90px; }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 40px 0;
    }

    .scroll-indicator { display: none; }
    .section { padding: 80px 0; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    nav { padding: 14px 16px; }
    .nav-links { display: none; }
    .desktop-only { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu { display: flex; }

    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 32px; }
    .section-title { font-size: 1.5rem; word-break: break-word; }
    .section-subtitle { font-size: 0.9rem; }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero-content { gap: 30px; }
    .hero h1 { font-size: 2rem; }
    .hero-description { font-size: 0.95rem; margin-bottom: 24px; }
    .hero-badge { margin-bottom: 16px; padding: 6px 12px; }
    .hero-badge-text { font-size: 0.6rem; }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .hero-visual { max-width: 180px; }
    .quantum-atom { width: 180px; height: 180px; }
    .orbit-1, .orbit-2, .orbit-3 { width: 130px; height: 50px; }
    .nucleus { width: 40px; height: 40px; }
    .electron { width: 8px; height: 8px; }
    .electron-1 { right: 20px; }
    .electron-2 { top: 38px; left: 50px; }
    .electron-3 { bottom: 38px; left: 50px; }

    /* Stats */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 20px 0;
        margin: 16px 0 0;
    }

    .stat-item { padding: 12px 6px; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.72rem; }

    /* Services */
    .services-grid { gap: 14px; }
    .service-card { padding: 24px 20px; border-radius: 18px; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.85rem; margin-bottom: 16px; }
    .service-card::after { display: none; }
    .service-icon { width: 44px; height: 44px; margin-bottom: 16px; }
    .service-features li { font-size: 0.8rem; padding: 6px 0; }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-card { padding: 20px 16px; border-radius: 14px; }
    .feature-card h3 { font-size: 0.88rem; }
    .feature-card p { font-size: 0.78rem; line-height: 1.5; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 12px; border-radius: 10px; }
    .feature-icon svg { width: 18px; height: 18px; }

    /* About */
    .about-text h2 { font-size: 1.6rem; }
    .about-text p { font-size: 0.9rem; }

    .pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 24px;
    }

    .pillar { padding: 14px 8px; border-radius: 12px; }
    .pillar h4 { font-size: 0.75rem; }
    .pillar p { font-size: 0.65rem; }
    .pillar-icon { margin-bottom: 8px; }
    .pillar-icon svg { width: 20px; height: 20px; }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-stat { padding: 20px 14px; border-radius: 14px; }
    .about-stat-value { font-size: 1.6rem; }
    .about-stat-label { font-size: 0.72rem; }

    /* Contact */
    .contact-section { padding: 50px 0 60px; }
    .contact-wrapper { padding: 32px 20px; border-radius: 20px; }
    .contact-wrapper h2 { font-size: 1.4rem; }
    .contact-wrapper > p { font-size: 0.9rem; margin-bottom: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-divider { margin: 28px auto; }

    .contact-form input,
    .contact-form textarea {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .contact-form .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .contact-options { flex-direction: column; gap: 10px; }

    .contact-option {
        padding: 14px 16px;
        border-radius: 12px;
        width: 100%;
    }

    .contact-option-icon { width: 40px; height: 40px; border-radius: 10px; }
    .contact-option-value { font-size: 0.85rem; }
    .contact-option-label { font-size: 0.7rem; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    footer { padding: 24px 0; }
    .footer-tagline { font-size: 0.78rem; }
    .footer-copy { font-size: 0.78rem; }

    /* Kill all fixed overlays that can cause mobile overflow */
    .bg-effects,
    .grid-overlay,
    .particles {
        display: none !important;
    }

    /* Contain all overflow */
    .quantum-atom { overflow: hidden; }
    .hero-visual { overflow: hidden; }
    .container { overflow: hidden; }
    .contact-wrapper { overflow: hidden; }

    /* Stagger delays not needed on mobile */
    .services-grid .reveal,
    .features-grid .reveal { transition-delay: 0s !important; }
}

/* ---- Small phones ---- */
@media (max-width: 420px) {
    .container { padding: 0 14px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-description { font-size: 0.88rem; }
    .section-title { font-size: 1.3rem; }
    .about-text h2 { font-size: 1.3rem; }
    .contact-wrapper h2 { font-size: 1.25rem; }
    .stat-value { font-size: 1.35rem; }
    .stat-label { font-size: 0.68rem; }

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

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

    .pillar {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 12px 14px;
    }

    .pillar-icon { margin-bottom: 0; flex-shrink: 0; }
    .pillar h4 { margin-bottom: 2px; }
}
