:root {
   speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #020b16 !important;
    color: #e0e6ed !important;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Allow clicks to pass through */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    /* Adjusted for fixed navbar */
    position: relative;
    z-index: 1;
    min-height: 80vh;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--primary-color);
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(2, 11, 22, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(2, 11, 22, 0.95);
    border: 1px solid var(--glass-border);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
}

.dropdown-menu li a:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Offset for header */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    background-clip: text;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Featured Event */
.highlight-section {
    background: linear-gradient(rgba(2, 11, 22, 0.8), rgba(2, 11, 22, 0.8)), url('placeholder-bg.jpg');
    /* Add abg image if available */
    background-size: cover;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.event-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.event-info {
    flex: 1;
    min-width: 300px;
}

.badge {
    background: #ff0055;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.event-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.event-details {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-item .value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.event-features {
    flex: 1;
    min-width: 300px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
}

.event-features ul {
    margin-bottom: 30px;
}

.event-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Leaderboard Table */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2px;
    /* Border padding */
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table th {
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.loading-text {
    text-align: center !important;
    padding: 40px !important;
    color: var(--text-muted);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.team-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #333;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 2px solid var(--text-muted);
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #01050a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Contact Form */
.contact-section {
    position: relative;
    /* background: linear-gradient(to bottom, var(--bg-color), #050f1a); Removed to match other pages */
    min-height: 100vh;
    /* Ensure full height */
    display: flex;
    align-items: center;
}

.contact-form {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ========================= */
/* Join Us Page               */
/* ========================= */

.join-hero {
    padding: 180px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.join-hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
}

.join-hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Benefits Grid */
.benefits-section {
    padding-top: 60px;
    min-height: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 28px;
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 240, 255, 0.08);
}

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

.benefit-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Join Form */
.join-form-section {
    padding-top: 40px;
}

.join-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

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

.join-form .form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.join-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.join-form .form-group select option {
    background: #0a1628;
    color: #fff;
    padding: 10px;
}

.btn-submit {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    padding: 16px 30px;
    margin-top: 10px;
}

.btn-submit .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 240, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover .btn-glow {
    width: 300px;
    height: 300px;
}

/* ========================= */
/* Contact Us Page – Cards    */
/* ========================= */

.contact-info-section {
    padding-top: 160px;
    padding-bottom: 40px;
    min-height: auto;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 50px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 28px 30px;
    border-radius: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.1);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card-icon {
    color: var(--primary-color);
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.15);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.contact-card-value {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.contact-card-action {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-action {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* Team Description Cards     */
/* ========================= */

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 40px;
}

.teams-desc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.team-desc-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.team-desc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.team-desc-card:hover::before {
    transform: scaleX(1);
}

.team-desc-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.1);
    transform: translateY(-4px);
}

.team-desc-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.team-desc-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ========================= */
/* FAQ Accordion               */
/* ========================= */

.faq-accordion {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.open {
    border-color: rgba(0, 240, 255, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: var(--glass-bg);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 240, 255, 0.05);
}

.faq-chevron {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
    background: rgba(0, 240, 255, 0.02);
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 22px 18px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary-color);
}

/* ========================= */
/* Forgot Password             */
/* ========================= */

.forgot-password-row {
    text-align: right;
    margin-top: -6px;
    margin-bottom: 8px;
}

.forgot-password-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-color);
}

/* ========================= */
/* Password Strength           */
/* ========================= */

.password-strength {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    display: block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================= */
/* Contact Extras (Map/Hours)  */
/* ========================= */

.contact-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-extra-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 18px;
}

.contact-map-wrapper,
.contact-hours-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
}

.map-embed iframe {
    border-radius: 10px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-label {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.hours-value {
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 500;
}

.hours-note {
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.hours-note p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ========================= */
/* Authentication Page        */
/* ========================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), 0 0 80px rgba(0, 240, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

/* Wide container for sign-up */
.auth-container-wide {
    max-width: 680px;
    transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form Section Labels */
.form-section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-top: 24px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
}

.form-section-label:first-child {
    margin-top: 0;
}

/* Required asterisk */
.required {
    color: #ff1744;
    font-weight: 400;
}

/* Select inside auth form */
.auth-form select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.auth-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.auth-form select option {
    background: #0a1628;
    color: #fff;
}

/* Textarea inside auth form */
.auth-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Checkbox / Terms */
.auth-checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Toggle Switch */
.auth-toggle {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-btn {
    flex: 1;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-btn.active {
    color: var(--bg-color);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 26px;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: authFadeIn 0.35s ease-out;
}

.auth-form.active {
    display: block;
}

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

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-toggle:hover,
.password-toggle.visible {
    color: var(--primary-color);
}

/* Auth Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--bg-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loader {
    display: inline-flex;
    align-items: center;
}

/* Auth Footer Text */
.auth-footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 24px;
}

.auth-footer-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* ========================= */
/* Toast Notifications        */
/* ========================= */

.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    background: rgba(2, 11, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-color: #00e676;
}

.toast-success .toast-icon {
    color: #00e676;
    font-weight: 700;
    font-size: 1.1rem;
}

.toast-error {
    border-color: #ff1744;
}

.toast-error .toast-icon {
    color: #ff1744;
    font-weight: 700;
    font-size: 1.1rem;
}

.toast-message {
    flex: 1;
}

/* ========================= */
/* Navbar Auth Elements       */
/* ========================= */

.nav-auth {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 10px;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-body);
}

.nav-auth-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    cursor: default;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.nav-logout-btn {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.nav-logout-btn:hover {
    border-color: #ff1744;
    color: #ff1744;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Add mobile menu logic later */
    }

    .hamburger {
        display: block;
    }

    .event-showcase {
        flex-direction: column;
        align-items: stretch;
    }

    .join-hero-title {
        font-size: 2.5rem;
    }

    .join-hero-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .join-form {
        padding: 30px 20px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        padding-top: 120px;
    }

    .auth-container {
        padding: 35px 24px;
    }

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

    .nav-auth {
        margin-left: 0;
        margin-top: 10px;
    }

    .teams-desc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-extra-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 0.88rem;
        padding: 15px 18px;
    }
}

/* Event Header */
.event-header-section {
    padding-top: 150px;
    padding-bottom: 20px;
    text-align: center;
}

.event-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    background-clip: text;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.status-badge.live {
    background: rgba(255, 0, 85, 0.2);
    color: #ff0055;
    border: 1px solid #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.event-brief {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Tab Navigation */
.event-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

.info-block h2,
.tab-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.info-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.guidelines-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.event-content-section {
    padding-top: 40px;
    min-height: auto;
    /* Override section min-height if needed */
}

.register-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Events Grid Listing */
.section-subtitle {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.live-card {
    border-color: rgba(255, 0, 85, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.1);
}

.card-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.live-card .card-status {
    color: #ff0055;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-group input[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--glass-border);
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
}

.card-details {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.btn-text {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .event-title {
        font-size: 2.5rem;
    }
}

/* Tech Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px var(--primary-color);
    border: 2px solid var(--primary-color);
}

.intro-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    animation: pulseLogo 2s infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 240, 255, 0.8);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan 1.5s linear infinite;
}

.intro-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    letter-spacing: 5px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.intro-title::before,
.intro-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.intro-title::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.intro-title::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: #111;
    margin: 0 auto 15px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: progress load 2.5s ease-in-out forwards;
}

.intro-status {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: blink 0.5s infinite alternate;
}

/* Animations */
@keyframes scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        filter: grayscale(100%);
    }

    50% {
        transform: scale(1.05);
        filter: grayscale(0%);
    }

    100% {
        transform: scale(1);
        filter: grayscale(100%);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

@keyframes blink {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(68px, 9999px, 16px, 0);
    }

    40% {
        clip: rect(68px, 9999px, 83px, 0);
    }

    60% {
        clip: rect(13px, 9999px, 98px, 0);
    }

    80% {
        clip: rect(74px, 9999px, 32px, 0);
    }

    100% {
        clip: rect(79px, 9999px, 49px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(72px, 9999px, 60px, 0);
    }

    20% {
        clip: rect(26px, 9999px, 30px, 0);
    }

    40% {
        clip: rect(79px, 9999px, 1px, 0);
    }

    60% {
        clip: rect(4px, 9999px, 16px, 0);
    }

    80% {
        clip: rect(69px, 9999px, 57px, 0);
    }

    100% {
        clip: rect(69px, 9999px, 62px, 0);
    }
} /* ==========================================================================
   TEAM PAGE - FINAL FORCE-SHOW FIX (PASTE AT THE VERY END)
   ========================================================================== */

/* 1. Global Container & Title Glow */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-page-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(3.5rem, 12vw, 5.5rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 6px !important;
    margin: 160px 0 70px !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 40px #00f0ff, 0 0 80px rgba(0, 240, 255, 0.7) !important;
    display: block !important;
}

/* 2. Tier Label Centering */
.tier-section { 
    margin-bottom: 100px !important; 
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tier-label {
    font-family: 'Space Grotesk', sans-serif !important;
    color: #00f0ff !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin-bottom: 50px !important;
    font-size: 1.2rem !important;
    display: inline-block !important;
    border-bottom: 2px solid #00f0ff !important;
    padding: 0 20px 10px !important;
}

/* 3. Grid System (Auto-expanding) */
.team-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px)) !important;
    justify-content: center !important;
    gap: 40px !important;
    width: 100% !important;
    margin: 0 auto !important;
    min-height: 100px !important; /* Force visible if JS is slow */
}

/* 4. MEMBER CARD - FORCE VISIBILITY (Main Fix) */
.member-card, .team-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    padding: 40px 20px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.4s ease !important;
    text-align: center !important;
    
    /* FORCE SHOW: Isse cards gayab nahi honge */
    opacity: 1 !important; 
    visibility: visible !important;
    transform: none !important;
    display: flex !important; /* JS se flex-direction check kar lena */
    flex-direction: column !important;
    align-items: center !important;
}

.member-card:hover {
    transform: translateY(-12px) !important;
    border-color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.08) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2) !important;
}

/* Profile Image Fix */
.img-circle, .team-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    margin-bottom: 20px !important;
    border: 2px solid #00f0ff !important;
    overflow: hidden !important;
    background: #05162a !important;
    display: block !important;
}

.img-circle img, .team-img img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
}

/* Names & Roles */
.member-card h3, .team-card h3 { 
    font-family: 'Space Grotesk', sans-serif !important; 
    font-size: 1.4rem !important; 
    color: #ffffff !important; 
    margin-bottom: 8px !important; 
}

.member-card .role, .team-card .role { 
    color: #00f0ff !important; 
    font-size: 0.9rem !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1.5px !important; 
}

/* Reveal Fallback */
.revealed { opacity: 1 !important; transform: none !important; }
