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

:root {
    /* Premium Neo-Bento Dark Theme */
    --accent-color: #E63946;
    --crimson-primary: #E63946;
    --crimson-bright: #FF4D5A;
    --crimson-dark: #A82530;
    --crimson-glow: rgba(230, 57, 70, 0.15);
    /* Subdued, elegant glow */
    --blood-red: #7A1D25;
    --dark-red: #4D1217;

    /* True absolute dark backgrounds for maximum OLED pop */
    --bg-black: #050505;
    --bg-dark: #0A0A0A;
    --bg-darker: #020202;

    --text-primary: #F8F9FA;
    --text-secondary: #ADB5BD;

    /* Neo-Bento Glass Settings - Ultra thin borders, sharp corners */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-highlight: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    /* Fluid Typography via clamp */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --h1-size: clamp(2.5rem, 8vw, 5rem);
    --h2-size: clamp(2rem, 5vw, 3.5rem);
    --h3-size: clamp(1.25rem, 3vw, 1.75rem);
    --p-size: clamp(1rem, 2vw, 1.15rem);

    /* Standardized Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-body);
    font-size: var(--p-size);
    line-height: 1.6;
    background: var(--bg-black);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Soften text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Animated Mesh Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--bg-dark) 0%, var(--bg-black) 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200vw;
    height: 200vh;
    top: -50vh;
    left: -50vw;
    background:
        radial-gradient(circle at 20% 40%, rgba(230, 57, 70, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(168, 37, 48, 0.03) 0%, transparent 40%);
    animation: meshFlow 30s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes meshFlow {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-5%) scale(1.1);
    }
}

h1,
h2,
h3,
h4,
.logo,
.hero-title,
.section-title,
.rank-number {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* Neo-Bento Glass Card Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px 0 var(--glass-shadow),
        inset 0 1px 0 0 var(--glass-border-highlight);
    /* Top highlight line for depth */
    padding: clamp(1.5rem, 4vw, 2.5rem);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Base hover - tilt will be added via JS */
.glass-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(25, 20, 20, 0.65);
    box-shadow:
        0 16px 48px 0 rgba(0, 0, 0, 0.6),
        0 0 24px var(--crimson-glow),
        inset 0 1px 0 0 rgba(230, 57, 70, 0.2);
    transform: translateY(-4px);
}

/* Navigation - Premium Frosted Header */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo-image {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.4));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--crimson-primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + 2rem) 2rem 2rem;
    /* Account for fixed nav */
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: var(--h1-size);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
    /* Elegant text glow instead of harsh drop shadow */
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Subtle gradient text for "ESPADA" emphasis if needed */
.hero-title-highlight {
    background: linear-gradient(135deg, var(--crimson-bright), var(--crimson-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.3));
}

.hero-subtitle {
    font-size: var(--h3-size);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: var(--p-size);
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Premium Animated Neo-Bento CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3.5rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(168, 37, 48, 0.05));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 32px 0 var(--glass-shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 10px rgba(230, 57, 70, 0.1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.6s backwards;
    z-index: 1;
}

/* Base glowing outline */
.cta-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--crimson-primary), transparent, var(--crimson-bright), transparent);
    background-size: 200% 200%;
    z-index: -1;
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: animateGlow 3s linear infinite;
}

/* Glassy interior */
.cta-button::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    z-index: -1;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes animateGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    color: #fff;
    box-shadow:
        0 15px 40px rgba(230, 57, 70, 0.4),
        0 0 20px rgba(230, 57, 70, 0.2);
    border-color: transparent;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover::after {
    background: var(--crimson-primary);
}

.cta-button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* Click Ripple Effect (Fix for the JS bug) */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 0;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* Clean text rendering instead of heavy glow */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--crimson-primary);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.about-card {
    text-align: center;
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--crimson-primary);
    filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.3));
}

.about-card h3 {
    font-size: var(--h3-size);
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Leaders Section - Premium Avatars */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.leader-card {
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.leader-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    /* Premium ring setup */
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px 0 var(--glass-shadow),
        inset 0 0 0 4px rgba(255, 255, 255, 0.05),
        /* Inner ring */
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Remove old heavy glowing shapes */
.leader-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-bright), transparent 60%);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
}

.leader-card:hover .leader-avatar {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow:
        0 16px 48px 0 rgba(0, 0, 0, 0.6),
        inset 0 0 0 4px rgba(230, 57, 70, 0.1),
        0 0 40px var(--crimson-glow);
}

.leader-card:hover .leader-avatar::after {
    opacity: 1;
}

.leader-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--crimson-primary);
    font-weight: 700;
}

.leader-role {
    font-size: 1.2rem;
    color: var(--crimson-bright);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.leader-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Rankings Section - Interactive Bento */
.rankings-container {
    display: grid;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 0 var(--glass-border-highlight);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--crimson-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(25, 20, 20, 0.7);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(230, 57, 70, 0.05);
}

.rank-card:hover::before {
    transform: scaleY(1);
}

.rank-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--crimson-primary);
    min-width: 80px;
    font-family: var(--font-heading);
    /* Clean text, no messy shadows */
    text-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rank-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--p-size);
}

.rank-badge {
    padding: 0.5rem 1.25rem;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-full);
    color: var(--crimson-primary);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.05em;
    box-shadow: inset 0 0 10px rgba(230, 57, 70, 0.05);
}

/* Rank Members - Expandable */
.rank-members {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1rem;
    padding-left: 0;
}

.rank-card.expanded .rank-members {
    max-height: 500px;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.member-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-item:hover {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.expand-icon {
    margin-left: 1rem;
    color: var(--crimson-primary);
    font-size: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Join Section */
.join-section {
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
}

.join-section p {
    font-size: var(--p-size);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Advanced Intersect Animations */
@keyframes fadeUpScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

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

.scroll-reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.scroll-reveal.active {
    animation: fadeUpScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered children for grids */
.grid-stagger>*:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-stagger>*:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-stagger>*:nth-child(3) {
    animation-delay: 0.3s;
}

.grid-stagger>*:nth-child(4) {
    animation-delay: 0.4s;
}

.grid-stagger>*:nth-child(5) {
    animation-delay: 0.5s;
}

.grid-stagger>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design - Mobile First Optimization */
@media (max-width: 768px) {

    /* Full-screen sleek mobile nav overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 6rem 2rem 2rem;
        gap: 0;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered mobile links */
    .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-menu.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-link {
        display: block;
        padding: 1.25rem 0.5rem;
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        color: var(--text-primary);
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0.8rem 1.2rem;
    }

    /* Reduce padding on sections */
    section {
        padding: 3rem 1.2rem;
    }

    /* Performance: disable heavy animations on mobile */
    .animated-bg::before {
        animation: none !important;
    }

    .leader-avatar {
        animation: none !important;
    }

    .leader-avatar::before {
        animation: none !important;
        display: none;
    }

    .cta-button {
        animation: fadeInUp 1s ease 0.6s backwards !important;
    }

    .hero-title {
        animation: fadeInUp 1s ease !important;
    }

    /* Simplify glass card interactions */
    .glass-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Grid stacking */
    .leaders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leader-avatar {
        width: 140px;
        height: 140px;
        font-size: 3rem;
        box-shadow: 0 4px 20px var(--crimson-glow);
    }

    .rank-card {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .rank-number {
        min-width: auto;
        font-size: 2.2rem;
    }

    .rank-badge {
        font-size: 0.75rem;
    }

    .rank-members {
        padding-left: 0;
    }

    .member-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .expand-icon {
        margin-left: 0;
        margin-top: 0.3rem;
    }

    /* Section title sizing */
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }

    /* Hero tweaks */
    .hero {
        padding: 1.5rem;
        min-height: 90vh;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Admin icon mobile */
    .admin-nav-icon {
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .leader-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .member-list {
        grid-template-columns: 1fr;
    }

    .hero-title {
        letter-spacing: 4px;
    }

    .about-icon {
        font-size: 2rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }
}

/* Application Form Styles */
.application-container {
    max-width: 600px;
    margin: 0 auto;
}

.app-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.recruitment-form .input-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.recruitment-form input,
.recruitment-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-primary);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.recruitment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.recruitment-form input:focus,
.recruitment-form textarea:focus {
    border-color: var(--crimson-primary);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.2);
}

.recruitment-form label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
}

.recruitment-form input:focus~label,
.recruitment-form input:not(:placeholder-shown)~label,
.recruitment-form textarea:focus~label,
.recruitment-form textarea:not(:placeholder-shown)~label {
    top: -12px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--crimson-primary);
    background: var(--bg-primary);
    padding: 0 8px;
    border-radius: 4px;
}

/* Modal Popup Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 450px;
    animation: modalSlideIn 0.4s ease;
    border: 2px solid var(--crimson-primary);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 0 30px var(--crimson-glow);
}

.modal-content h3 {
    font-size: 2rem;
    color: var(--crimson-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-close-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-primary));
    color: white;
    border: 2px solid var(--crimson-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--crimson-glow);
    background: linear-gradient(135deg, var(--crimson-primary), var(--crimson-bright));
}

/* Desktop-only hover effects */
@media (hover: hover) and (pointer: fine) {

    /* Glass cards scale on hover only on desktop */
    .glass-card:hover {
        transform: scale(1.08);
        box-shadow: 0 12px 40px var(--glass-shadow), 0 0 40px var(--crimson-glow);
        border-color: var(--crimson-primary);
        z-index: 10;
    }

    /* Leader avatar hover only on desktop */
    .leader-card:hover .leader-avatar {
        transform: scale(1.15);
        box-shadow: 0 12px 50px var(--crimson-glow), 0 0 100px rgba(220, 20, 60, 0.8);
    }

    /* Rank card hover only on desktop */
    .rank-card:hover {
        transform: scale(1.04);
    }

    /* Member item hover only on desktop */
    .member-item:hover {
        background: rgba(220, 20, 60, 0.2);
        border-color: var(--crimson-primary);
        color: var(--crimson-primary);
        transform: scale(1.1);
    }
}

/* Mobile - no hover effects */
@media (hover: none) and (pointer: coarse) {

    .glass-card,
    .leader-avatar,
    .rank-card,
    .member-item {
        transform: none !important;
    }
}

/* Enhanced Navbar Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-symbol {
    font-size: 1.8rem;
    animation: swordSpin 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes swordSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson-primary), var(--crimson-bright));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Services Section */
#services {
    padding: 6rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.service-card {
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--crimson-glow));
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--crimson-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Tools Section */
#tools {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(220, 20, 60, 0.03));
}

.tools-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: -1rem auto 3rem;
    max-width: 600px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-primary));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.tool-card h3 {
    font-size: 1.6rem;
    color: var(--crimson-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tool-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {

    .services-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .tool-card {
        padding: 2rem 1.5rem;
    }

    .logo-symbol {
        font-size: 1.4rem;
    }
}

/* ============================================
   ANNOUNCEMENT BANNER
   ============================================ */

.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-primary), var(--crimson-dark));
    background-size: 200% 200%;
    animation: bannerGradient 4s ease infinite;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 2px 20px rgba(220, 20, 60, 0.4);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.announcement-banner.hidden {
    transform: translateY(-100%);
    display: flex;
    pointer-events: none;
}

@keyframes bannerGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.announcement-icon {
    font-size: 1.2rem;
    animation: announcePulse 1.5s ease-in-out infinite;
}

@keyframes announcePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.announcement-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.announcement-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    position: absolute;
    right: 1rem;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Shift navbar down when banner is visible */
.announcement-banner:not(.hidden)~.navbar {
    top: 36px;
}

/* ============================================
   NAV TOGGLE BUTTONS (Theme & Sound)
   ============================================ */

.nav-toggle-btn {
    background: none;
    border: 1px solid rgba(169, 61, 61, 0.25);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-toggle-btn:hover {
    color: var(--crimson-primary);
    border-color: var(--crimson-primary);
    background: rgba(169, 61, 61, 0.08);
    box-shadow: 0 0 12px rgba(169, 61, 61, 0.2);
}

/* ============================================
   MEMBER SPOTLIGHT
   ============================================ */

.spotlight-section {
    text-align: center;
}

.spotlight-container {
    max-width: 700px;
    margin: 0 auto;
}

.spotlight-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--crimson-primary) !important;
    animation: spotlightBorderGlow 3s ease-in-out infinite;
}

@keyframes spotlightBorderGlow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--crimson-glow), inset 0 0 20px rgba(169, 61, 61, 0.05);
    }

    50% {
        box-shadow: 0 0 40px var(--crimson-glow), 0 0 60px rgba(220, 20, 60, 0.2), inset 0 0 30px rgba(169, 61, 61, 0.1);
    }
}

.spotlight-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--crimson-primary);
    box-shadow: 0 0 30px var(--crimson-glow);
    animation: spotlightFloat 4s ease-in-out infinite;
}

@keyframes spotlightFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.spotlight-avatar-inner {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.spotlight-info {
    text-align: left;
}

.spotlight-name {
    font-size: 2rem;
    color: var(--crimson-primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 15px var(--crimson-glow);
}

.spotlight-role {
    font-size: 1.1rem;
    color: var(--crimson-bright);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.spotlight-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.spotlight-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15), transparent 70%);
    animation: spotlightGlowMove 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes spotlightGlowMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 30px);
    }
}

/* ============================================
   TRUE PROFESSIONAL LIGHT THEME
   ============================================ */

[data-theme="light"] {
    --accent-color: #D32F2F;
    --crimson-primary: #D32F2F;
    --crimson-bright: #E53935;
    --crimson-dark: #B71C1C;
    --crimson-glow: rgba(211, 47, 47, 0.15);
    --blood-red: #C62828;
    --dark-red: #A12B2B;

    /* True absolute light backgrounds */
    --bg-black: #FAFAFA;
    --bg-dark: #F5F5F5;
    --bg-darker: #EEEEEE;

    --text-primary: #212121;
    --text-secondary: #5F6368;

    /* Neo-Bento Glass Settings - Crisp, clean daylight glass */
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-highlight: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-shadow: rgba(0, 0, 0, 0.04);
}

/* ============================================
   RESPONSIVE — New Features Update
   ============================================ */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .announcement-text {
        font-size: 0.8rem;
    }

    .spotlight-card {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 2rem 1.5rem;
    }

    .spotlight-info {
        text-align: center;
    }

    .spotlight-avatar {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }

    .spotlight-avatar-inner {
        font-size: 2rem;
    }

    .spotlight-name {
        font-size: 1.5rem;
    }

    .nav-toggle-btn {
        padding: 0.35rem;
    }

    .nav-toggle-btn svg {
        width: 16px;
        height: 16px;
    }
}