:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --primary-neon: #00f3ff;
    --secondary-neon: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000000 100%);
    z-index: -2;
}

/* Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-neon);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 300px;
    /* Push content up to avoid overlap with event showcase */
}

.hero-content {
    position: relative;
    z-index: 20;
    /* Ensure it stays above the event showcase */
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-neon), 0 0 40px var(--secondary-neon);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-neon {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--primary-neon);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-neon:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 30px var(--primary-neon);
    transform: translateY(-2px);
}

/* Sections */
.section-container {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    border-left: 5px solid var(--secondary-neon);
    padding-left: 1rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Grid Layouts */
.g1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.g1-visual {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-box {
    color: #555;
    font-family: var(--font-heading);
    border: 2px dashed #333;
    padding: 2rem;
    text-transform: uppercase;
}

.tech-card h3 {
    color: var(--primary-neon);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.tech-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.tech-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.g1-advanced-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Demo Section */
.demo-section {
    margin-top: 2rem;
    border: 1px solid var(--secondary-neon);
    background: rgba(188, 19, 254, 0.05);
}

.demo-section h3 {
    color: var(--secondary-neon);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.demo-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.project-image-placeholder {
    height: 200px;
    background: #151520;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    color: #666;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 1rem;
    text-transform: uppercase;
}

/* Footer Section */
.footer-section {
    background: #000;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.edtech-info,
.contact-info {
    text-align: center;
}

.edtech-info h3,
.contact-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: #fff;
}

.link-highlight {
    color: var(--secondary-neon);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--secondary-neon);
}

.footer-logo {
    height: 30px;
    margin-top: 1rem;
    opacity: 0.7;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {

    .g1-grid,
    .g1-advanced-grid,
    .demo-steps,
    .projects-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

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

    /* Mobile Nav */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    /* Affiliations Overflow Fix */
    .affiliations-section .scrolling-banner {
        overflow-x: hidden;
        /* Ensure it doesn't scroll the page */
    }

    .affiliations-section .banner-content {
        animation: none;
        /* Disable scrolling animation */
        flex-wrap: wrap;
        /* Wrap logos */
        justify-content: center;
        /* Center logos */
        width: 100%;
        /* fit container */
    }

    .affiliations-section .banner-content img {
        margin: 1rem;
        /* Adjust spacing */
        height: 60px;
        /* Resize for mobile */
    }
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.tech-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.5), transparent);
    margin: 1.5rem 0;
}

.project-image-container {
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Affiliations Scrolling Banner */
.affiliations-section {
    padding: 4rem 0;
    background: #000;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.scrolling-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    /* Prevent line breaks */
}

.banner-content {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
    align-items: center;
}

.banner-content img {
    height: 90px;
    margin: 0 3rem;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.banner-content img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

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

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

/* Event Showcase Section */
.event-showcase {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1.5rem;
    border: 1px solid var(--neon-accent);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    background: rgba(10, 10, 10, 0.9);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.event-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 2rem;
    align-items: center;
}

.event-logo img {
    max-width: 150px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.event-details {
    text-align: center;
}

.event-details h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.highlight-text {
    color: var(--neon-accent);
    text-shadow: 0 0 10px var(--neon-accent);
}

.event-location {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-description {
    font-style: italic;
    color: #aaa;
}

.event-banner img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.event-banner img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--neon-accent);
}

@media (max-width: 768px) {
    .event-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .event-logo img {
        margin: 0 auto;
    }
}

/* Responsive adjustments for Event Showcase in Hero */
@media (max-width: 768px) {
    .event-showcase {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
        flex-direction: column;
    }
}