/* ========== CSS RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff88;
    --primary-cyan: #00d4ff;
    --primary-purple: #b366ff;
    --dark-bg: #0a0a0a;
    --card-bg: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glow-green: rgba(0, 255, 136, 0.3);
    --glow-cyan: rgba(0, 212, 255, 0.3);
}

/* Light Theme Variables */
html[data-theme="light"] {
    --primary-green: #059669;
    /* was #10a347 */
    --primary-cyan: #0284c7;
    /* was #0088cc */
    --dark-bg: #f0fdf8;
    /* was #f8f9fa */
    --text-primary: #0f172a;
    /* was #1a1a1a */
    --text-secondary: #475569;
    /* was #666666 */
    --glow-green: rgba(5, 150, 105, 0.35);
    /* was 0.15 */
    --glow-cyan: rgba(2, 132, 199, 0.30);
    /* was 0.15 */
}

html[data-theme="light"] body {
    background: linear-gradient(145deg, #ecfdf5 0%, #eff6ff 50%, #faf5ff 100%) fixed;
}

@media (max-width: 768px) {
    html[data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(5, 150, 105, 0.20);
        box-shadow: 0 10px 40px rgba(5, 150, 105, 0.12);
    }
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --primary-green: #00ff88;
    --primary-cyan: #00d4ff;
    --primary-purple: #b366ff;
    --dark-bg: #0a0a0a;
    --card-bg: #151515;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glow-green: rgba(0, 255, 136, 0.3);
    --glow-cyan: rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite;
}

html[data-theme="light"] .particle {
    opacity: 0.75;
    width: 5px;
    height: 5px;
}

/* html[data-theme="light"] .particle {
    opacity: 0.3;
} */

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 10s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 3s;
    animation-duration: 28s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 7s;
    animation-duration: 22s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.8;
    }

    50% {
        transform: translate(-100px, 100px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translate(150px, 50px) scale(1.2);
        opacity: 0.7;
    }
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

html[data-theme="light"] .navbar {
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 249, 250, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--glow-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-glow {
    opacity: 1;
}

.nav-menu {
    display: flex;
    flex: 1 1 auto;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    max-width: 860px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-cyan));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 220px;
}

.btn-signin {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-signin:hover {
    color: var(--primary-green);
}

.btn-contribute {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    color: var(--dark-bg);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--glow-green);
}

.btn-contribute:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    margin-bottom: 2rem;
    animation: glow 3s ease-in-out infinite;
}

html[data-theme="light"] .badge {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.10), rgba(2, 132, 199, 0.10));
    border: 1px solid rgba(16, 163, 71, 0.2);
}

.badge span {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px var(--glow-green);
    }

    50% {
        box-shadow: 0 0 20px var(--glow-green), 0 0 30px var(--glow-cyan);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-green);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-green);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-3px);
}

html[data-theme="light"] .btn-secondary {
    border: 2px solid rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .btn-secondary:hover {
    border-color: var(--primary-green);
    background: rgba(16, 163, 71, 0.1);
}

/* ========== HERO VISUAL ========== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.orb-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary-cyan), var(--primary-green), var(--dark-bg));
    box-shadow:
        0 0 60px var(--glow-green),
        0 0 100px var(--glow-cyan),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    animation: orbPulse 4s ease-in-out infinite, orbRotate 20s linear infinite;
    position: relative;
    z-index: 2;
}

html[data-theme="light"] .orb {
    box-shadow:
        0 0 60px rgba(5, 150, 105, 0.45),
        0 0 100px rgba(2, 132, 199, 0.30),
        inset 0 0 60px rgba(0, 0, 0, 0.05);
}

.orb::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    filter: blur(20px);
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes orbRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

html[data-theme="light"] .orb-ring {
    border-color: rgba(5, 150, 105, 0.45);
}

.ring-2 {
    width: 500px;
    height: 500px;
    border-color: rgba(0, 212, 255, 0.1);
    animation-delay: 1s;
}

html[data-theme="light"] .ring-2 {
    border-color: rgba(0, 136, 204, 0.15);
}

@keyframes ringPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

.floating-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 255, 136, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
    animation: textFloat 6s ease-in-out infinite;
}

@keyframes textFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -55%) rotate(2deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== TEASER SECTION ========== */
.teaser {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.teaser-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.mystery-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    position: relative;
}

.mystery-icon svg {
    width: 100%;
    height: 100%;
}

.mystery-icon circle {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 2;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 3s ease-out forwards, rotateCircle 4s linear infinite;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--glow-green), transparent);
    border-radius: 50%;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.teaser-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.teaser-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* ========== TEAM SECTION ========== */
.team {
    min-height: 100vh;
    padding: 7rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.team-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    animation: teamGlowFloat 12s ease-in-out infinite;
}

.team-bg-glow-1 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3), transparent 70%);
    top: 8%;
    left: -80px;
}

.team-bg-glow-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.28), transparent 70%);
    right: -120px;
    bottom: 5%;
    animation-delay: 2s;
}

@keyframes teamGlowFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.team-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.team-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.team-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
    position: relative;
    z-index: 1;
}

.team-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.75), rgba(15, 15, 15, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    overflow: visible;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    padding: 4.5rem 1.4rem 1.4rem;
    isolation: isolate;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.5), rgba(0, 212, 255, 0.4), rgba(179, 102, 255, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 14% 8% auto;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2), transparent 70%);
    filter: blur(30px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.team-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 55px rgba(0, 255, 136, 0.25), 0 0 24px rgba(0, 212, 255, 0.18);
}

.team-card:hover::before {
    opacity: 0.95;
}

.team-card:hover::after {
    opacity: 1;
}

.team-image-wrap {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 255, 136, 0.16);
    position: absolute;
    top: -54px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.16), rgba(0, 212, 255, 0.16));
    z-index: 2;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.12);
}

.team-card:hover .team-image-wrap {
    border-color: rgba(0, 255, 136, 0.65);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 255, 136, 0.28);
}

.team-content {
    padding: 0.5rem 0.4rem 0.2rem;
    text-align: center;
}

.team-name {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.team-role {
    color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.95rem;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    min-height: 84px;
}

.team-socials {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.7rem;
    justify-content: center;
}

.team-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all 0.32s ease;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.team-social-link svg {
    width: 18px;
    height: 18px;
}

.team-social-link:hover {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
}

.team-social-link.github-link:hover {
    background: linear-gradient(135deg, #171515, #2f2f2f);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}

.team-social-link.linkedin-link:hover {
    background: linear-gradient(135deg, #0A66C2, #25a1ff);
    box-shadow: 0 0 22px rgba(37, 161, 255, 0.45);
}

/* ========== BRANCH SELECTION SECTION ========== */
.arena {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
}

.arena-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.arena-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 3rem;
    position: relative;
}

.sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    box-shadow:
        0 0 40px var(--glow-green),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    animation: sphereFloat 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere-inner {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary-green), transparent);
}

@keyframes sphereFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.arena-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.arena-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.branch-selection {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, var(--glow-green), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.branch-card:hover::before {
    opacity: 0.1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 60px var(--glow-green);
}

.branch-code {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
}

.branch-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    transition: color 0.3s ease;
}

.branch-card:hover .branch-label {
    color: var(--text-primary);
}

.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.branch-card:hover .card-glow {
    opacity: 1;
}

/* ========== SEMESTER SELECTION SECTION ========== */
.semester-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
}

.semester-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.semester-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.semester-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.semester-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.semester-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.semester-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, var(--glow-cyan), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.semester-card:hover::before {
    opacity: 0.1;
    animation: shimmer 1.5s infinite;
}

.semester-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 60px var(--glow-cyan);
}

.semester-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1rem;
}

.semester-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    transition: color 0.3s ease;
}

.semester-card:hover .semester-label {
    color: var(--text-primary);
}

/* ========== SUBJECTS SECTION ========== */
.subjects {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

.subjects-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subjects-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.selected-info {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

#selected-branch,
#selected-semester {
    color: var(--primary-green);
    font-weight: 600;
}

.subjects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.subject-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 400px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
}

.card-code {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 700;
    letter-spacing: 1px;
}

.card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 80%;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.subject-code {
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subject-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contributors {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contributor {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contributor::before {
    content: '•';
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.subject-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
}

.subject-card:hover .card-title {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr 1.2fr;
    gap: 2rem;
    align-items: flex-start;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    padding-bottom: 0.5rem;
    line-height: 1.2;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.3;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    text-align: left;
}

.footer-social p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.footer-social a {
    color: var(--primary-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    align-items: flex-start;
}

.footer-quick-links-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.footer-quick-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
    position: relative;
}

.footer-quick-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.footer-quick-links a:hover {
    color: var(--primary-green);
}

.footer-quick-links a:hover::after {
    width: 100%;
}

.footer-quick-links a::before {
    content: "→";
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}

.footer-quick-links a:hover {
    color: var(--primary-green);
    padding-left: 6px;
}

.footer-quick-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .arena-title,
    .team-title,
    .semester-title,
    .subjects-title {
        font-size: 3rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        position: relative;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(10, 10, 10, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 0.35rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-actions {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .branch-selection,
    .team-grid,
    .semester-grid {
        grid-template-columns: 1fr;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .arena-title,
    .team-title,
    .semester-title,
    .subjects-title {
        font-size: 2.5rem;
    }

    .teaser-title {
        font-size: 2.5rem;
    }

    .branch-code {
        font-size: 2.5rem;
    }

    .semester-number {
        font-size: 4rem;
    }
}

/* ========== CONTENT PAGES ========== */
.content-page {
    background:
        radial-gradient(circle at top left, rgba(0, 255, 136, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(0, 212, 255, 0.10), transparent 24%),
        var(--dark-bg);
}

.content-page main {
    position: relative;
    z-index: 1;
    padding-top: 92px;
}

.page-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.5rem 2rem 2rem;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.12);
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    margin-top: 1.2rem;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-subtitle {
    max-width: 760px;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 5rem;
}

.page-section {
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sgpa-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.8rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.sgpa-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sgpa-table th,
.sgpa-table td {
    padding: 1rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.sgpa-table th {
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.06);
}

.sgpa-table td {
    color: var(--text-primary);
}

.sgpa-table input,
.sgpa-table select {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sgpa-table input:focus,
.sgpa-table select:focus {
    outline: none;
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.sgpac-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.sgpac-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.result-box {
    padding: 1.8rem 1.4rem;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--text-primary);
    min-height: 160px;
    display: grid;
    place-items: center;
    gap: 0.65rem;
}

.sgpa-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
}

.sgpa-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.sgpa-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

@media (max-width: 768px) {
    .sgpa-panel {
        padding: 1.2rem;
    }

    .sgpa-table th,
    .sgpa-table td {
        padding: 0.85rem 0.9rem;
    }

    .sgpac-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sgpac-actions,
    .sgpac-actions .btn-primary,
    .sgpac-actions .btn-secondary,
    .sgpac-controls>.btn-primary {
        width: 100%;
    }

    .sgpac-actions {
        justify-content: stretch;
    }

    .result-box {
        min-height: auto;
        padding: 1.4rem 1rem;
    }
}

.result-box h3 {
    font-size: clamp(2.5rem, 4vw, 3.3rem);
    margin: 0;
    letter-spacing: -0.03em;
}

.result-box p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-kicker {
    color: var(--primary-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 0.4rem;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.section-copy {
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

.info-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.info-card,
.contact-card,
.policy-card {
    padding: 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.52);
}

.info-card h3,
.contact-card h3,
.policy-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.info-card p,
.contact-card p,
.policy-card p,
.content-list li {
    color: var(--text-secondary);
}

.content-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.content-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.content-link:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.contact-card .contact-meta {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.4rem;
}

.contact-card a {
    color: var(--primary-cyan);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.content-highlight {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--primary-green);
    border-radius: 14px;
    background: rgba(0, 255, 136, 0.06);
    color: var(--text-secondary);
}

.policy-card ul {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {

    .info-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .page-hero,
    .content-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .info-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-section {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .content-actions {
        flex-direction: column;
    }

    .content-link {
        width: 100%;
    }
}