:root {
    --bg-color: #05060e;
    /* Deep Space Black */
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);

    --primary: #6c5ce7;
    /* Cosmic Purple */
    --secondary: #00cec9;
    /* Cyan Neon */
    --accent: #e84393;
    /* Nebula Pink */

    --text-main: #ffffff;
    --text-muted: #b2bec3;

    --glow-primary: 0 0 20px rgba(108, 92, 231, 0.6);
    --glow-secondary: 0 0 20px rgba(0, 206, 201, 0.6);
}

@property --k {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

/* Core Purpose Icon Rotation */
.core-purpose-header:hover .core-purpose-icon {
    transform: rotate(360deg);
}

.core-purpose-icon {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* SVG Reveal Component */
/* Premium Visual Showcase (Non-Interactive) */
.visual-showcase {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-image {
    width: 100%;
    height: 100%;
    background: url('../images/core_purpose_reveal.png');
    background-size: cover;
    background-position: center;
    animation: infiniteZoom 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    filter: brightness(0.7);
}

@keyframes infiniteZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15) rotate(1deg);
    }
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, transparent 20%, rgba(5, 6, 14, 0.8) 80%);
    pointer-events: none;
}

.visual-text-mask {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 243, 255, 0.1);
    padding: 20px 40px;
    letter-spacing: 15px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.visual-text-mask::before {
    content: 'ZEN';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 206, 201, 0.3);
    width: 100%;
    text-align: center;
}

.visual-decoration {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    pointer-events: none;
}

.visual-decoration::before {
    content: 'SYSTEM_ACTIVE';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.6rem;
    color: var(--secondary);
    letter-spacing: 2px;
    opacity: 0.5;
}

/* Smooth Scrolling Detail */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
    color: var(--text-main);
    overflow-x: hidden;
    animation: pageReveal 1.5s ease-out;
}

@keyframes pageReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Background Animation Canvas */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navbar */
/* Glass-Pilled Floating Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* GSAP will handle initial fade in from 0 */
    animation: navFloat 6s ease-in-out infinite;
}

@keyframes navFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

.nav-container {
    background: rgba(10, 11, 24, 0.6);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.8rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.3));
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
    padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Auth Buttons & Portal */
.portal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

.portal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #8e44ad);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white !important;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: 0.3s;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.avatar-circle {
    width: 20px;
    height: 20px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.65rem;
}

.logout-icon {
    color: #ff4757;
    font-size: 1.1rem;
    transition: 0.3s;
    opacity: 0.7;
}

.logout-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.signup-btn {
    background: rgba(0, 206, 201, 0.1);
    color: var(--secondary) !important;
    border: 1px solid var(--secondary);
    border-radius: 50px;
    padding: 8px 20px !important;
}

.signup-btn::after {
    display: none !important;
}

.signup-btn:hover {
    background: var(--secondary);
    color: var(--bg-color) !important;
    box-shadow: var(--glow-secondary);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero h1,
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(108, 92, 231, 0.5));
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.btn-glow {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--primary);
    box-shadow: var(--glow-primary);
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
    display: block;
    text-shadow: var(--glow-secondary);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 8%;
    /* Adjust gap for similar spacing */
    flex-wrap: wrap;
    padding: 6rem 5%;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
    margin: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--accent);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Global Headings */
h1,
h2 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(108, 92, 231, 0.3));
}

h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(108, 92, 231, 0.5));
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: 10px;
}

/* Cards (Glassmorphism) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    justify-content: center;
    /* Center cards when row is not full */
    align-items: stretch;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    /* Glowing side bar for vibe */
    backdrop-filter: blur(10px);
    /* More subtle blur */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border-radius: 40px 5px;
    /* Restored: TL/BR 40px, TR/BL 5px (the "cut" look) */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.2);
}

.card h3,
.card h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    color: white;
}

/* Domain Specific Cards */
.domain-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.5rem !important;
    min-height: 100px;
}

.domain-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.domain-card i {
    min-width: 50px;
    text-align: center;
    transition: transform 0.3s;
}

.domain-card h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.domain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.2);
    border-color: var(--secondary);
}

/* Icon Animations removed as per user request */
.card i {
    transition: color 0.3s ease;
}

.card:hover i {
    transform: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Footer */
/* Modern Footer Redesign */
footer {
    position: relative;
    background: #05060e;
    padding: 60px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-align: left;
}

.footer-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: -1vw;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
}

.footer-column h4 {
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-pod {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: 0.4s;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-pod:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.footer-cta-box {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.footer-cta-box span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.footer-cta-box strong {
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bg-text {
        font-size: 40vw;
    }
}

/* Registration Steps Section */
.registration-steps {
    padding: 8rem 10%;
    position: relative;
    background: transparent;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

/* Connector Line for Desktop */
.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), var(--secondary), transparent);
    z-index: 0;
    opacity: 0.3;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 206, 201, 0.1);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.step-card:hover .step-icon-wrapper {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--glow-primary);
}

.step-icon-wrapper i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}

.step-card:hover .step-icon-wrapper i {
    color: white;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive Behaviour */
@media (max-width: 992px) {
    .steps-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .steps-container::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .step-card::after {
        content: '\f107'; /* fa-angle-down */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        color: var(--secondary);
        font-size: 1.5rem;
        opacity: 0.5;
    }

    .step-card:last-child::after {
        display: none;
    }
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Loader Styles */
#skeleton-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Pure black for maximum contrast */
    z-index: 9999;
    padding: 80px 10%;
    overflow-y: hidden;
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.sk-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skeleton-item {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle outline for visibility */
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.sk-hero {
    height: 45vh;
    width: 100%;
}

.sk-title {
    height: 60px;
    width: 40%;
    margin: 20px auto;
}

.sk-text {
    height: 20px;
    width: 70%;
    margin: 0 auto;
}

.sk-subtitle {
    height: 30px;
    width: 30%;
    margin: 0 auto;
}

.sk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.sk-card {
    height: 300px;
    width: 100%;
}

.sk-card-sm {
    height: 150px;
    width: 100%;
}

#skeleton-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

#skeleton-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(11, 13, 29, 0.95);
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .countdown-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 10px;
        flex: 1 1 40%;
        /* 2 items per row */
    }

    .countdown-number {
        font-size: 2rem;
    }

    .section,
    .stats-section {
        padding: 3rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem !important;
        border-radius: 20px 5px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn-glow {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
        /* Override inline styles */
        text-align: center;
    }

    .stat-item {
        width: 100%;
        margin-bottom: 2rem;
    }

    .card {
        padding: 1.2rem !important;
        border-radius: 15px 5px !important;
    }
}

/* Sponsors Page */
.sponsor-section {
    text-align: center;
    margin-bottom: 4rem;
}

.sponsor-tier-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(108, 92, 231, 0.4));
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.05);
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.sponsor-card:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.sponsor-card i {
    font-size: 3rem;
    color: white;
}

.sponsor-card img {
    max-width: 80%;
    max-height: 80%;
    filter: grayscale(100%);
    transition: 0.3s;
}

.sponsor-card:hover img {
    filter: grayscale(0%);
}

/* Event Filter Toggle */
.toggle-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    position: relative;
    /* Base for indicator */
}

.toggle-indicator {
    position: absolute;
    top: 5px;
    height: calc(100% - 10px);
    background: var(--primary);
    border-radius: 50px;
    box-shadow: var(--glow-primary);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.toggle-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.toggle-btn.active {
    color: white;
}

.toggle-btn:hover:not(.active) {
    color: white;
}

/* Legacy Section (Home) */
.legacy-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d8e0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;

}

/* Event Filter Toggle */
.toggle-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    position: relative;
    /* Base for indicator */
}

.toggle-indicator {
    position: absolute;
    top: 5px;
    height: calc(100% - 10px);
    background: var(--primary);
    border-radius: 50px;
    box-shadow: var(--glow-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
}

.toggle-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.toggle-btn.active {
    color: white;
}

.toggle-btn:hover:not(.active) {
    color: white;
}

.legacy-image-container {
    text-align: center;
    margin-top: 3rem;
    perspective: 1000px;
    position: relative;
    padding: 20px;
}

.legacy-image {
    max-width: 600px;
    width: 90%;
    aspect-ratio: 16/9;
    object-fit: cover;
    height: auto;
    border-radius: 15px;
    /* Slightly adjusted to fit the frame aesthetic */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

    /* User's Corner Mask Effect */
    --_g: 10%/45% 45% no-repeat conic-gradient(#000 0 0);
    -webkit-mask:
        left var(--_i, ) top var(--_g),
        bottom var(--_i, ) left var(--_g),
        top var(--_i, ) right var(--_g),
        right var(--_i, ) bottom var(--_g);
    mask:
        left var(--_i, ) top var(--_g),
        bottom var(--_i, ) left var(--_g),
        top var(--_i, ) right var(--_g),
        right var(--_i, ) bottom var(--_g);

    filter: grayscale(1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
}

.legacy-image:hover {
    --_i: 10%;
    filter: grayscale(0);
    box-shadow: 0 30px 60px rgba(108, 92, 231, 0.3);
    border-color: var(--secondary);
}

.legacy-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
    z-index: 0;
    filter: blur(50px);
    pointer-events: none;
    animation: pulseGlow 6s infinite alternate;
}

@keyframes pulseGlow {
    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@media (max-width: 768px) {
    .legacy-image {
        max-width: 90%;
    }

    .domain-card-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Enhanced Events Page Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.event-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color), var(--primary));
}

.event-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.event-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.event-date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.register-btn {
    align-self: flex-start;
    padding: 10px 25px !important;
    font-size: 0.8rem !important;
    margin-top: auto;
}

.completed-status {
    align-self: flex-start;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto;
}

.btn-detail {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-detail:hover {
    background: var(--secondary);
    color: var(--bg-color);
    box-shadow: var(--glow-secondary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(10, 11, 20, 0.98);
    border: 1px solid var(--primary);
    margin: 8% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 0 50px rgba(108, 92, 231, 0.3);
    position: relative;
    animation: modalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsiveness for Glass-Pilled Navbar */
@media (max-width: 992px) {
    .glass-nav {
        width: 95%;
        top: 15px;
    }

    .nav-container {
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 11, 24, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        display: flex;
        padding: 1.5rem 0;
        max-height: 500px;
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .portal-item {
        margin: 10px 0 0 0;
        justify-content: center;
    }

    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .legacy-image {
        max-width: 90%;
    }

    .domain-card-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }


}

/* High-Tech Digital Pulse Glitch Avatars */
.avatar-trapezium {
    position: relative;
    height: 65px;
    width: 80px;
    background: rgba(255, 255, 255, 0.05);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-trapezium:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 206, 201, 0.3);
    transform: scale(1.05);
}

.avatar-trapezium img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Avatar Selection Modal */
.avatar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 14, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: modalScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.avatar-modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    /* Increased from 800px to fit 5 items */
    text-align: center;
}

.avatar-grid-select {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Exactly 5 columns */
    gap: 15px;
    /* Slightly reduced gap to fit */
    margin: 30px 0;
}

.avatar-option {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    /* Futuristic Egg Shape */
    /* Transition only safe properties to avoid GSAP conflict */
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1.2;
}

.avatar-option:hover,
.avatar-option.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 206, 201, 0.4);
    transform: translateY(-5px);
    background: rgba(0, 206, 201, 0.05);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-scanner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
    box-shadow: 0 0 10px var(--secondary);
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
}

.avatar-trapezium:hover .avatar-scanner {
    animation: scan 1.5s linear infinite;
}

@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}