/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --black: #000000;
    --navy: #020b1a;
    --neon-blue: #00d2ff;
    --neon-green: #00ffb3;
    --neon-red: #ff3b3b;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass-bg: rgba(2, 11, 26, 0.4);
    --glass-border: rgba(0, 210, 255, 0.15);
    --glass-blur: blur(12px);
    --ffm-gold: #ffb800;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background: var(--black);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =========================================
   2. TYPOGRAPHY
========================================= */
h1, h2, h3, .logo { 
    font-family: 'Orbitron', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   3. ANIMATIONS
========================================= */
@keyframes neon-flicker {
    0%, 18%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 5px var(--neon-blue), 0 0 70px var(--neon-blue);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.9;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes border-glow {
    0%, 100% { 
        border-color: rgba(0, 210, 255, 0.3); 
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); 
    }
    50% { 
        border-color: var(--neon-blue); 
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.4); 
    }
}

#animatedHeader span {
  display: inline-block;
  opacity: 0;
  animation: letter-cinematic 6s ease-in-out infinite;
}

/* MAIN ANIMATION */
#animatedHeader span {
  display: inline-block;
  animation: cinematic-letter 7s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes cinematic-letter {
  0% {
    transform: translateX(-100vw) rotate(-180deg);
    opacity: 0;
    color: #f0fbff;
    text-shadow: 0 0 2px #f0fbff;
  }

  40% {
    opacity: 1;
  }

  20% {
    transform: translateX(20px) rotate(10deg); /* overshoot (bounce) */
    color: var(--neon-blue);
    text-shadow: 0 0 4px var(--neon-blue);
  }

  75% {
    transform: translateX(-5px) rotate(-20deg); /* bounce back */
  }

  100% {
    transform: translateX(0) rotate(0deg);   /* FINAL POSITION */
    color: #f0fbff;
    text-shadow: 0 0 5px #f0fbff;
    opacity: 1;
  }
}


/* =========================================
   4. BACKGROUND & VIDEO
========================================= */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.03;
}

.video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(2, 11, 26, 0.6),
        rgba(0, 0, 0, 0.9)
    );
    z-index: -1;
}

/* =========================================
   5. NAVIGATION
========================================= */
#navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 60px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 1.2rem 3%; 
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.logo { 
    font-size: 1.2rem; 
    letter-spacing: 2px; 
}

.logo span { 
    color: var(--neon-blue); 
    animation: neon-flicker 4s infinite;
}

.nav-logo {
    width: 35px; 
    height: auto; 
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.7));
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 0.8rem; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--neon-blue); 
    text-shadow: 0 0 8px var(--neon-blue); 
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--neon-blue);
    cursor: pointer;
    transition: 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-btn { 
    background: var(--neon-blue); 
    color: black; 
    padding: 5px 10px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 2px; 
    transition: 0.2s;
    margin-left: 10px;
}

.nav-btn:hover { 
    box-shadow: 0 0 9px var(--neon-blue); 
    transform: scale(1.05); 
}

/* =========================================
   6. HERO SECTION
========================================= */
.hero {
    height: 100vh; 
    position: relative; 
    overflow: hidden;
    background: radial-gradient(circle at center, var(--navy) 0%, var(--black) 100%);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    margin-top: 50px;
}

#home::before { 
    content: ""; 
    position: absolute; 
    top: 40%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 80%; 
    height: 80%;
    background: url('assets/ELA.png') no-repeat center/contain;
    opacity: 0.07; 
    z-index: 0; 
    pointer-events: none;
}

#home::after {
    content: ""; 
    position: absolute; 
    inset: 0; 
    pointer-events: none; 
    z-index: 0; 
    opacity: 0.07;
    background-image:
        url("assets/character_1.png"),
        url("assets/character_5.png"),
        url("assets/character_2.png"),
        url("assets/character_3.png");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-position:
        116% 10%,
        -27% 10%,
        85% 150%,
        8% 50%;
    background-size:
        42% auto,
        50% auto,
        32% auto,
        50% auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 { 
    font-size: clamp(1.6rem, 6vw, 5.5rem);
    margin: 10px 0;
    letter-spacing: -1px;
    line-height: 1.2;
    max-width: 100%;
    padding: 0 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.tagline { 
    color: var(--neon-blue); 
    font-weight: 800; 
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.collab-banner {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 300px;
    background: transparent;
    border: 1.5px solid rgba(12, 50, 58, 0.35);
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-size: 0.9rem;
    z-index: 2;
    animation: glow-breath 3s infinite;
}

.collab-banner .x-icon {
    color: var(--neon-blue);
    font-style: normal;
    font-weight: 1000;
}

/* =========================================
   7. CONTENT LAYOUT
========================================= */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 90px 20px; 
    position: relative; 
    z-index: 1; 
}

.section-title { 
    margin-bottom: 40px; 
    border-left: 4px solid var(--neon-blue); 
    padding-left: 15px;
    font-size: 2rem;
}

.feature-grid, .event-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}

.feature-card,
.event-card,
.form-wrapper,
.proposal-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 10px;
    transition: 0.4s ease;
}

.feature-card:hover,
.event-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* =========================================
   8. PLAYER ID CARD
========================================= */
.id-card-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin: 40px 0; 
}

.id-card {
    width: 350px; 
    height: 220px; 
    background: linear-gradient(135deg, #050505 0%, #0a1528 100%);
    border: 1px solid var(--neon-blue); 
    border-radius: 12px; 
    padding: 20px; 
    position: relative;
    animation: float 5s ease-in-out infinite, border-glow 3s infinite;
}

.id-header { 
    display: flex; 
    justify-content: space-between; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    padding-bottom: 10px; 
    margin-bottom: 15px; 
}

.id-auth { 
    font-size: 0.6rem; 
    background: var(--neon-blue); 
    color: black; 
    padding: 2px 8px; 
    border-radius: 2px; 
}

.id-body { 
    display: flex; 
    gap: 15px; 
}

.id-photo-placeholder { 
    width: 80px; 
    height: 100px; 
    background: #111; 
    border: 1px dashed var(--text-dim); 
}

.id-details p { 
    font-size: 0.8rem; 
    margin-bottom: 5px; 
    color: var(--text-dim); 
}

.id-details span { 
    color: white; 
    font-weight: bold; 
}

.id-footer { 
    position: absolute; 
    bottom: 10px; 
    right: 20px; 
    font-size: 0.6rem; 
    opacity: 0.5; 
}

/* =========================================
   9. ADMIN PANEL
========================================= */
.admin-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.85); 
    display: none; 
    align-items: center; 
    justify-content: center;
    z-index: 2000;
}

.admin-modal.active {
    display: flex;
}

.admin-panel {
    width: 90%;
    max-width: 520px;
    background: linear-gradient(180deg, #050b14, #02060b);
    border: 1px solid #00d2ff;
    border-radius: 12px;
    padding: 25px 25px 30px;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.25);
    animation: border-glow 2s infinite;
}

.admin-panel h2 {
    font-family: 'Orbitron';
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--neon-blue);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: 0.3s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 210, 255, 0.15);
}

.actions {
    display: flex;
    gap: 5px;
}

.actions a {
    font-size: 0.8rem;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: 0.3s;
    cursor: pointer;
}

.actions .verify {
    color: var(--neon-green);
}

.actions .verify:hover {
    background: rgba(0, 255, 179, 0.2);
}

.actions .del {
    color: var(--neon-red);
}

.actions .del:hover {
    background: rgba(255, 59, 59, 0.2);
}

/* =========================================
   10. FORM INPUTS & BUTTONS
========================================= */
.input-box {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    background: #050b14;
    border: 1px solid #222;
    color: #fff;
    font-family: 'Rajdhani';
    border-radius: 6px;
    transition: 0.3s;
}

.input-box:focus {
    outline: none;
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.input-box::placeholder {
    color: #666;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #222;
    padding: 15px;
    color: white;
    font-family: 'Rajdhani';
    margin-bottom: 20px;
    transition: 0.3s;
    border-radius: 6px;
}

input:focus,
textarea:focus { 
    border-color: var(--neon-blue); 
    outline: none; 
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25); 
}

.btn-main {
    width: 100%;
    padding: 14px;
    background: #00d2ff;
    border: none;
    color: #000;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Rajdhani';
    border-radius: 6px;
}

.btn-main:hover {
    background: #00ffb3;
    letter-spacing: 1px;
    transform: scale(1.02);
}

.btn-close {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Rajdhani';
    transition: 0.3s;
    border-radius: 6px;
}

.btn-close:hover {
    background: #333;
    border-color: var(--neon-blue);
}

.submit-btn { 
    width: 100%; 
    padding: 15px; 
    background: var(--neon-blue); 
    color: black; 
    font-weight: bold; 
    cursor: pointer; 
    border: none; 
    transition: 0.3s;
    border-radius: 6px;
}

.submit-btn:hover { 
    letter-spacing: 2px; 
    background: white; 
}

/* =========================================
   11. FOOTER
========================================= */
.footer { 
    background: rgba(0, 0, 0, 0.95); 
    border-top: 1px solid var(--glass-border); 
    padding: 80px 20px 20px;
    margin-top: 100px;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-about,
.footer-links,
.footer-contact {
    position: relative;
    z-index: 1;
}

.about-text { 
    font-size: 0.9rem; 
    color: var(--text-dim); 
    line-height: 1.6; 
    margin: 20px 0; 
}

.ffm-tag { 
    display: inline-block; 
    padding: 5px 12px; 
    border: 1px solid var(--ffm-gold); 
    color: var(--ffm-gold); 
    font-weight: 700; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    border-radius: 3px;
}

.footer h4 { 
    color: var(--neon-blue); 
    margin-bottom: 20px; 
    font-size: 0.95rem; 
}

.footer-links ul { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 12px; 
}

.footer-links a { 
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 0.85rem; 
    transition: 0.3s; 
}

.footer-links a:hover { 
    color: var(--neon-blue); 
    padding-left: 5px; 
}

.footer-contact p { 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
    color: var(--text-dim); 
}

.footer-contact span { 
    color: white; 
    font-weight: 600; 
}

.footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    padding-top: 25px; 
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p { 
    font-size: 0.75rem; 
    color: #444; 
    letter-spacing: 1px; 
}

.legal { 
    margin-top: 5px; 
    color: var(--neon-blue) !important; 
    opacity: 0.5; 
}

/* =========================================
   12. RESPONSIVE DESIGN
========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links { 
        position: fixed;
        top: 60px;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: 0.4s;
        z-index: 1500;
        list-style: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a { 
        font-size: 1rem;
    }

    .nav-btn { 
        display: none; 
    }

    .container {
        padding: 80px 20px;
    }

    .id-card { 
        width: 300px; 
        height: auto; 
    }

    .section-title {
        font-size: 1.7rem;
    }

    .admin-panel {
        width: 95%;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-grid, .event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        overflow: visible;
    }

    #navbar {
        padding: 1rem 2%;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-logo {
        width: 30px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .section-title {
        font-size: 1.3rem;
        padding-left: 10px;
    }

    .feature-card,
    .event-card {
        padding: 20px;
    }

    .admin-panel {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        overflow: visible;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        padding: 0 12px;
        word-break: break-word;
        text-align: center;
    }
}

@media (max-width: 1024px) {

    .hero {
        overflow: visible;
    }

    #animatedHeader {
        max-width: 100%;
    }

    /* TAGLINE */
    .tagline {
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 0 10px;
    }

    /* COLLAB BANNER */
    .collab-banner {
        padding: 10px 40px;
        font-size: 0.75rem;
        gap: 8px;
    }
}

@media (max-width: 600px) {

    #animatedHeader {
        font-size: 2.0rem;
    }

    /* TAGLINE (smaller on phone) */
    .tagline {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    /* COLLAB BANNER (phone size) */
    .collab-banner {
        padding: 8px 20px;
        font-size: 0.65rem;
        border-width: 1px;
    }
}
