/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --bg-dark-primary: #090A0C;
    --bg-dark-secondary: #0f1419;
    --bg-dark-tertiary: #1a1f2e;
    --bg-dark-card: rgba(255, 255, 255, 0.08);
    --bg-dark-card-hover: rgba(255, 255, 255, 0.12);
    --text-dark-primary: #ffffff;
    --text-dark-secondary: #a0a9c0;
    --text-dark-tertiary: #6b7280;
    --border-dark-primary: rgba(255, 255, 255, 0.1);
    --border-dark-secondary: rgba(255, 255, 255, 0.05);

    --bg-light-primary: #e2e8f0;
    --bg-light-secondary: #cbd5e1;
    --bg-light-tertiary: #94a3b8;
    --bg-light-card: rgba(226, 232, 240, 0.9);
    --bg-light-card-hover: rgba(241, 245, 249, 0.95);
    --text-light-primary: #0f172a;
    --text-light-secondary: #1e293b;
    --text-light-tertiary: #475569;
    --border-light-primary: rgba(15, 23, 42, 0.15);
    --border-light-secondary: rgba(15, 23, 42, 0.1);

    --accent-blue: #3d7eff;
    --accent-purple: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --animation-duration: 150ms;
    --animation-curve: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark-primary);
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Theme Classes */
.section-dark {
    --bg-primary: var(--bg-dark-primary);
    --bg-card: var(--bg-dark-card);
    --bg-card-hover: var(--bg-dark-card-hover);
    --text-primary: var(--text-dark-primary);
    --text-secondary: var(--text-dark-secondary);
    --text-tertiary: var(--text-dark-tertiary);
    --border-primary: var(--border-dark-primary);
    background: var(--bg-dark-primary);
    color: var(--text-dark-primary);
}

.section-light {
    --bg-primary: var(--bg-light-primary);
    --bg-card: var(--bg-light-card);
    --bg-card-hover: var(--bg-light-card-hover);
    --text-primary: var(--text-light-primary);
    --text-secondary: var(--text-light-secondary);
    --text-tertiary: var(--text-light-tertiary);
    --border-primary: var(--border-light-primary);
    background: var(--bg-light-primary);
    color: var(--text-light-primary);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark-primary);
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark-secondary);
    transition: all 0.3s ease;
}

.nav.light-section {
    background: rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}

.nav.light-section .nav-link {
    color: var(--text-light-secondary);
}

.nav.light-section .nav-link:hover {
    color: var(--text-light-primary);
}

.nav.light-section .nav-toggle span {
    background: var(--text-light-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark-secondary);
    border: 1px solid var(--border-dark-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 1000px 500px at 20% 90%, rgba(15, 23, 42, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse 750px 400px at 80% 10%, rgba(30, 41, 59, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse 500px 750px at 10% 50%, rgba(51, 65, 85, 0.6) 0%, transparent 60%);
    pointer-events: none;
    animation: smokeRise 20s ease-in-out infinite alternate;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 850px 450px at 60% 20%, rgba(71, 85, 105, 0.5) 0%, transparent 65%),
        radial-gradient(ellipse 550px 650px at 30% 70%, rgba(30, 41, 59, 0.6) 0%, transparent 65%);
    pointer-events: none;
    animation: smokeRise 25s ease-in-out infinite alternate-reverse;
    z-index: 2;
}

@keyframes smokeRise {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    25% { transform: translateY(-8px) scale(1.02); opacity: 0.6; }
    50% { transform: translateY(-12px) scale(0.98); opacity: 0.5; }
    75% { transform: translateY(-6px) scale(1.01); opacity: 0.7; }
    100% { transform: translateY(-3px) scale(1); opacity: 0.45; }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 350px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controller-icon {
    width: 280px;
    height: 200px;
    animation: controllerFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.2));
}

@keyframes controllerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbPulse 4s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: rgba(102, 126, 234, 0.15);
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: rgba(118, 75, 162, 0.15);
    bottom: -20px;
    right: -20px;
    animation-delay: 1.5s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: rgba(102, 126, 234, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 3s;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.orb-3 {
    animation-name: orbPulseCenter;
}

@keyframes orbPulseCenter {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.8; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #667eea;
}

.section-light .about-icon {
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-700);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Vision Section */
.vision {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.flashlight-spot-1, .flashlight-spot-2, .flashlight-spot-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.flashlight-spot-1 {
    width: 400px;
    height: 400px;
    background: rgba(102, 126, 234, 0.06);
    top: 10%;
    left: -5%;
    animation: spotDrift 15s ease-in-out infinite alternate;
}

.flashlight-spot-2 {
    width: 300px;
    height: 300px;
    background: rgba(118, 75, 162, 0.06);
    bottom: 10%;
    right: -5%;
    animation: spotDrift 18s ease-in-out infinite alternate-reverse;
}

.flashlight-spot-3 {
    width: 250px;
    height: 250px;
    background: rgba(102, 126, 234, 0.04);
    top: 50%;
    left: 50%;
    animation: spotDrift 20s ease-in-out infinite alternate;
}

@keyframes spotDrift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 15px); }
    100% { transform: translate(10px, -10px); }
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.vision-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark-primary);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.vision-card:hover {
    background: var(--bg-dark-card-hover);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vision-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
    margin-bottom: 1rem;
    line-height: 1;
}

.vision-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.vision-card p {
    color: var(--text-dark-secondary);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* Contact Section */
.contact {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 3rem;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark-primary);
    border-radius: 12px;
    color: var(--text-dark-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
}

.social-card:hover {
    background: var(--bg-dark-card-hover);
    color: #ffffff;
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-dark-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-dark-secondary);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark-tertiary);
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-dark-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark-secondary);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dark-tertiary);
    font-size: 0.85rem;
}

/* Cursor effect */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9, 10, 12, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-dark-primary);
    }

    .nav-links.active {
        display: flex;
    }

    .nav.light-section .nav-links {
        background: rgba(226, 232, 240, 0.95);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-graphic {
        width: 250px;
        height: 200px;
    }

    .controller-icon {
        width: 200px;
        height: 150px;
    }

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

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

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

    .social-links-large {
        flex-direction: column;
        align-items: center;
    }

    .social-card {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }
}
