:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141933;
    --bg-card: #1a1f3a;
    --bg-hover: #232950;
    --neon-blue: #00d4ff;
    --neon-purple: #b836ff;
    --neon-green: #00ff88;
    --neon-cyan: #00e5ff;
    --neon-red: #ff2366;
    --text-primary: #e8eaf6;
    --text-secondary: #9fa8da;
    --text-muted: #5c6bc0;
    --border-color: #2a3150;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem calc(2rem + var(--safe-right)) 1rem calc(2rem + var(--safe-left));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container img {
    height: 45px;
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    transition: all 0.3s ease;
}

.logo-container img:hover {
    filter: brightness(1.5) drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    transform: scale(1.05);
}

/* Navigation */
nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    position: relative;
}

nav a:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 31, 58, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--border-color);
    }

    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('img/hero-bg.png') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 31, 58, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 1rem 0;
    padding-left: calc(clamp(0, 2vw, 1rem) + var(--safe-left));
    padding-right: calc(clamp(0, 2vw, 1rem) + var(--safe-right));
}

@media (min-width: 992px) {
    .hero {
        padding-top: calc(7rem + var(--safe-top));
    }

    .hero-content {
        padding-left: calc(clamp(2rem, 6vw, 5rem) + var(--safe-left));
        padding-right: calc(clamp(2rem, 6vw, 5rem) + var(--safe-right));
    }

    .hero .cta-buttons {
        margin-bottom: 4rem;
    }

    .hero .scroll-indicator {
        bottom: 0;
    }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 9vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.2rem;
    animation: glow 3s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }
}

@keyframes glow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 20px rgba(0, 212, 255, 0.4)); 
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 40px rgba(184, 54, 255, 0.6)); 
    }
}

.hero .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--neon-green);
    margin-bottom: 3rem;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.cta-button.secondary.learn-more {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.cta-button.secondary.learn-more:hover {
    background: rgba(184, 54, 255, 0.1);
    box-shadow: 0 0 20px rgba(184, 54, 255, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Video Button */
.video-play-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.video-play-btn:hover {
    background: rgba(0, 229, 255, 0.2);
}

/* Section Styles */
section {
    position: relative;
    padding: 5rem calc(2rem + var(--safe-right)) 5rem calc(2rem + var(--safe-left));
    z-index: 1;
}

section:nth-child(even) {
    background: rgba(20, 25, 51, 0.5);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.history-panel {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem 2rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(184, 54, 255, 0.08));
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

.history-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(0, 229, 255, 0.2);
    pointer-events: none;
}

.history-panel-title {
    position: absolute;
    top: -1rem;
    left: 2rem;
    padding: 0.25rem 1.25rem;
    background: var(--bg-primary);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 2px;
    border: 2px solid var(--neon-cyan);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.history-panel .stats-grid {
    margin: 1rem 0 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.2);
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--neon-purple);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.two-column img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Audience Cards */
.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.audience-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateY(-8px);
}

.audience-card .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audience-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.audience-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.audience-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audience-card li:last-child {
    border-bottom: none;
}

.audience-card li i {
    color: var(--neon-green);
    font-size: 1.2rem;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 3rem;
}

.partner-logo {
    padding: 1rem;
    transition: all 0.3s ease;
    filter: grayscale(50%) brightness(0.8);
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
}

.partner-logo img {
    max-height: 80px;
    width: auto;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 14, 39, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 3rem calc(2rem + var(--safe-right)) 1rem calc(2rem + var(--safe-left));
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px) translateX(0);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-logos img {
    max-height: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Video Modal */
#video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#video-modal.active {
    display: flex;
}

.video-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

#close-video {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

#close-video:hover {
    color: var(--neon-red);
    transform: rotate(90deg);
}

#intro-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--neon-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(184, 54, 255, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

#scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(184, 54, 255, 0.3));
    color: white;
}

#scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem calc(1rem + var(--safe-right)) 3rem calc(1rem + var(--safe-left));
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .history-panel {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .history-panel-title {
        position: relative;
        top: 0;
        left: 0;
        display: inline-flex;
        margin-bottom: 1rem;
    }

    #scroll-to-top {
        bottom: 1.5rem;
        right: 0.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
