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

:root {
    --primary-purple: #6A0DAD;
    --secondary-white: #FFFFFF;
    --accent-yellow: #FFD700;
    --light-purple: #9B59B6;
    --dark-purple: #4A0E4E;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --shadow: 0 4px 15px rgba(106, 13, 173, 0.2);
    --border-radius: 15px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Floating Background Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.floating-circle {
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-yellow));
}

.floating-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

.floating-triangle.triangle-up {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--primary-purple);
}

.floating-triangle.triangle-down {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--accent-yellow);
}

.floating-star {
    background: var(--accent-yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.floating-diamond {
    background: linear-gradient(45deg, var(--light-purple), var(--primary-purple));
    transform: rotate(45deg);
}

/* Floating Animation Classes */
.float-slow { animation: floatAcross 20s linear infinite; }
.float-medium { animation: floatAcross 15s linear infinite; }
.float-fast { animation: floatAcross 10s linear infinite; }
.float-diagonal { animation: floatDiagonal 18s linear infinite; }
.float-up { animation: floatUp 25s linear infinite; }

@keyframes floatAcross {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatDiagonal {
    0% {
        transform: translateX(-100px) translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% {
        transform: translateX(0px) translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% {
        transform: translateX(50px) translateY(-100px) rotate(180deg);
        opacity: 0;
    }
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--secondary-white);
}

.loader-character {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    animation: loaderBounce 1.5s ease-in-out infinite;
}

.loader-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-yellow);
}

.loader-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Enhanced Loader Progress */
.loader-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto 15px;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-yellow), #FFC107);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.loader-percentage {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
}

@keyframes loaderBounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Navigation Styles */
.navbar {
    background: var(--secondary-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-logo:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
    padding-right: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(251, 191, 36, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--accent-yellow);
    transform: scale(1.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-yellow));
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.1);
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-yellow));
    color: white;
    transform: translateX(5px);
}

.dropdown-menu a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    margin: 3px 0;
    transition: 0.3s;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--secondary-white);
}

.btn-primary:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-white);
    border: 2px solid var(--secondary-white);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--secondary-white);
    transform: translateY(-2px);
}

.btn-yellow {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.btn-yellow:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--secondary-white);
    min-height: 100vh;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.3)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,215,0,0.2)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1" fill="rgba(255,215,0,0.4)"/></svg>') repeat;
    animation: parallaxFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes parallaxFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-3px); }
    75% { transform: translateY(-15px) translateX(2px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--accent-yellow);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-yellow); }
}

/* Mobile Typing Effect Adjustments */
@media (max-width: 768px) {
    .typing-effect {
        white-space: normal;
        overflow: visible;
        border-right: none;
        animation: mobileTyping 2s ease-in-out;
        line-height: 1.2;
        text-align: center;
        display: block;
        width: 100%;
    }

    @keyframes mobileTyping {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        50% {
            opacity: 0.5;
            transform: translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.3;
    }
}

/* Speech Bubbles */
.speech-bubble {
    background: var(--secondary-white);
    color: var(--text-dark);
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid var(--accent-yellow);
    max-width: 200px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--accent-yellow);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--secondary-white);
}

.highlight {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #E8E8E8;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #D0D0D0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-characters {
    position: relative;
    height: 400px;
}

/* Character Positioning */
.char {
    position: absolute;
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 3D Character Animations */
.char:hover {
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg) scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(106,13,173,0.4)) brightness(1.1);
}

.char.animate-3d-float {
    animation: float3D 4s ease-in-out infinite;
}

.char.animate-3d-rotate {
    animation: rotate3D 6s linear infinite;
}

.char.animate-3d-bounce {
    animation: bounce3D 2s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% {
        transform: perspective(1000px) translateY(0px) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: perspective(1000px) translateY(-15px) rotateY(5deg) rotateX(2deg);
    }
    50% {
        transform: perspective(1000px) translateY(-10px) rotateY(0deg) rotateX(-2deg);
    }
    75% {
        transform: perspective(1000px) translateY(-20px) rotateY(-5deg) rotateX(1deg);
    }
}

@keyframes rotate3D {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(90deg) rotateX(5deg);
    }
    50% {
        transform: perspective(1000px) rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: perspective(1000px) rotateY(270deg) rotateX(-5deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) rotateX(0deg);
    }
}

@keyframes bounce3D {
    0%, 100% {
        transform: perspective(1000px) translateY(0px) rotateX(0deg) scale(1);
    }
    50% {
        transform: perspective(1000px) translateY(-25px) rotateX(10deg) scale(1.05);
    }
}

/* Cursor Following Effects */
.cursor-following {
    z-index: 10;
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.6)) brightness(1.2);
    transform-origin: center center;
}

.cursor-following::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: cursorGlow 1.5s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes cursorGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Volcano Character Entry Animation */
.char-volcano-entry {
    animation: volcanoEntry 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateY(-200vh) rotate(720deg) scale(0.3);
    opacity: 0;
}

@keyframes volcanoEntry {
    0% {
        transform: translateY(-200vh) rotate(720deg) scale(0.3);
        opacity: 0;
        filter: brightness(2) hue-rotate(60deg);
    }
    20% {
        opacity: 0.7;
        filter: brightness(1.8) hue-rotate(40deg);
    }
    40% {
        transform: translateY(-50px) rotate(360deg) scale(0.8);
        opacity: 1;
        filter: brightness(1.5) hue-rotate(20deg);
    }
    60% {
        transform: translateY(20px) rotate(180deg) scale(1.1);
        filter: brightness(1.2) hue-rotate(10deg);
    }
    80% {
        transform: translateY(-10px) rotate(0deg) scale(0.95);
        filter: brightness(1.1) hue-rotate(0deg);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
        filter: brightness(1) hue-rotate(0deg);
    }
}

/* Volcano Particle Effects */
.char-volcano-entry::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle,
        rgba(255, 69, 0, 0.8) 0%,
        rgba(255, 140, 0, 0.6) 30%,
        rgba(255, 215, 0, 0.4) 60%,
        transparent 100%);
    border-radius: 50%;
    animation: volcanoParticles 2s ease-out forwards;
    pointer-events: none;
    z-index: -1;
}

@keyframes volcanoParticles {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(2);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
}

/* Staggered Animation Delays */
.char:nth-child(1) { animation-delay: 0.1s; }
.char:nth-child(2) { animation-delay: 0.3s; }
.char:nth-child(3) { animation-delay: 0.5s; }
.char:nth-child(4) { animation-delay: 0.7s; }
.char:nth-child(5) { animation-delay: 0.9s; }

.feature-char { animation-delay: 0.2s; }
.form-char { animation-delay: 0.4s; }
.about-char { animation-delay: 0.6s; }
.activity-char { animation-delay: 0.8s; }
.news-char { animation-delay: 1.0s; }
.event-char { animation-delay: 1.2s; }
.gallery-char { animation-delay: 1.4s; }
.member-char { animation-delay: 1.6s; }
.team-char { animation-delay: 1.8s; }
.achievement-char { animation-delay: 2.0s; }
.contribution-char { animation-delay: 2.2s; }
.dept-char { animation-delay: 2.4s; }
.stat-char { animation-delay: 2.6s; }
.spotlight-char { animation-delay: 2.8s; }
.join-char { animation-delay: 3.0s; }
.cta-char { animation-delay: 3.2s; }
.story-char { animation-delay: 3.4s; }
.registration-char { animation-delay: 3.6s; }
.values-char { animation-delay: 3.8s; }
.join-team-char { animation-delay: 4.0s; }
.recognition-char { animation-delay: 4.2s; }

/* Volcano Screen Shake Effect */
.volcano-screen-shake {
    animation: volcanoShake 3s ease-out;
}

@keyframes volcanoShake {
    0%, 100% { transform: translateX(0); }
    2% { transform: translateX(-2px) translateY(1px); }
    4% { transform: translateX(2px) translateY(-1px); }
    6% { transform: translateX(-1px) translateY(2px); }
    8% { transform: translateX(1px) translateY(-2px); }
    10% { transform: translateX(-2px) translateY(1px); }
    12% { transform: translateX(2px) translateY(-1px); }
    14% { transform: translateX(-1px) translateY(1px); }
    16% { transform: translateX(1px) translateY(-1px); }
    18% { transform: translateX(0); }
}

/* Volcano Background Flash */
.volcano-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
        rgba(255, 69, 0, 0.3) 0%,
        rgba(255, 140, 0, 0.2) 30%,
        rgba(255, 215, 0, 0.1) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: volcanoFlash 2s ease-out;
}

@keyframes volcanoFlash {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0.4; }
    30% { opacity: 0.6; }
    40% { opacity: 0.2; }
    50% { opacity: 0.4; }
    60% { opacity: 0.1; }
    100% { opacity: 0; }
}

/* Enhanced Volcano Particles */
.char-volcano-entry::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 69, 0, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(255, 140, 0, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 215, 0, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    animation: volcanoSparks 2s ease-out forwards;
    pointer-events: none;
    z-index: -1;
}

@keyframes volcanoSparks {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(3) rotate(0deg);
    }
    25% {
        opacity: 0.9;
        transform: translateX(-50%) scale(2.5) rotate(90deg);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(2) rotate(180deg);
    }
    75% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1.5) rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5) rotate(360deg);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--secondary-white);
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: loadingPulse 2s ease-in-out infinite;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.loading-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: loadingText 3s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Loading Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-yellow);
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px auto 15px;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-yellow), #FFC107);
    border-radius: 3px;
    animation: loadingProgress 3s ease-out forwards;
    transform: translateX(-100%);
}

.loading-percentage {
    font-size: 1rem;
    opacity: 0.9;
    animation: loadingCount 3s ease-out forwards;
}

/* Loading Animations */
@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

@keyframes loadingText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes loadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadingProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

@keyframes loadingCount {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Loading Characters */
.loading-characters {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.loading-char {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.3;
    animation: loadingCharFloat 4s ease-in-out infinite;
}

.loading-char:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.loading-char:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.loading-char:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.loading-char:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes loadingCharFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.6;
    }
}

.char::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, transparent 40%, rgba(255,215,0,0.1) 50%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(106,13,173,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: 50%;
    animation: particleGlow 3s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.2) rotate(360deg);
    }
}

.char1 {
    top: 20px;
    right: 50px;
    width: 100px;
}

.char2 {
    bottom: 100px;
    left: 20px;
    width: 90px;
}

.char3 {
    top: 150px;
    right: 150px;
    width: 80px;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes slideLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounceSlow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Animation Classes */
.animate-bounce { animation: bounce 2s infinite; }
.animate-slide-left { animation: slideLeft 1s ease-out; }
.animate-fade-in { animation: fadeIn 1.5s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-slide-right { animation: slideRight 1s ease-out; }
.animate-fade-up { animation: fadeUp 1s ease-out; }
.animate-bounce-slow { animation: bounceSlow 3s infinite; }

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--secondary-white);
}

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

.feature-card {
    background: var(--secondary-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.feature-char {
    position: absolute;
    width: 60px;
    height: auto;
    bottom: 10px;
    right: 10px;
    opacity: 0.8;
}

/* Stay Updated Section */
.stay-updated {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
}

.form-section {
    text-align: center;
    position: relative;
}

.form-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-section p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.update-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-message {
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: -20px;
    right: 50px;
}

/* About Section */
.about-club {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-characters {
    position: relative;
    height: 300px;
}

.about-char {
    position: absolute;
    width: 100px;
    height: auto;
}

.about-char:first-child {
    top: 20px;
    left: 20px;
}

.about-char:last-child {
    bottom: 20px;
    right: 20px;
}

/* Footer */
.footer {
    background: var(--primary-purple);
    color: var(--secondary-white);
    padding: 50px 0 20px;
    position: relative; /* anchor waves to footer */
    margin-top: 120px; /* space for waves above footer */
}

/* Pre-footer band behind waves (match section gray) */
.footer::before {
    content: '';
    position: absolute;
    top: -120px; /* matches margin-top space */
    left: 0;
    width: 100%;
    height: 120px; /* cover area behind waves */
    background: #F8F9FA; /* neutral section gray */
    z-index: 0;
}



.footer .wave {
    position: absolute;
    top: -100px; /* place wave just above footer */
    left: 0;
    width: 100%;
    height: 100px;
    background: url(img/temp/wave.png);
    background-size: 1000px 100px;
}

.footer .wave#wave1 {
    z-index: 1000;
    opacity: 1;
    top: -100px;
    animation: animatWave 6s linear infinite;
}

.footer .wave#wave2 {
    z-index: 999;
    opacity: 0.5;
    top: -110px;
    animation: animatWave_02 6s linear infinite;
}

.footer .wave#wave3 {
    z-index: 1000;
    opacity: 0.2;
    top: -105px;
    animation: animatWave 5s linear infinite;
}

.footer .wave#wave4 {
    z-index: 1000;
    opacity: 0.7;
    top: -115px;
    animation: animatWave_02 5s linear infinite;
}

@keyframes animatWave {
    0% {
        background-position-x: 1000px;
    }

    100% {
        background-position-x: 0px;
    }
}

@keyframes animatWave_02 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 1000px;
    }
}


.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.footer-section p {
    line-height: 1.6;
    color: #E8E8E8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #D0D0D0;
}

/* Enhanced Footer Styles */
.footer-section {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    transition: left 0.5s ease;
}

.footer-section:hover::before {
    left: 100%;
}

/* Footer Form Styles */
.footer-form {
    margin-top: 15px;
}

.footer-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-direction: column;
}

.footer-form-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.footer-form-group input:focus {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.footer-form-group .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.footer-form-group .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Map Iframe Styles */
.map-iframe {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.map-iframe:hover {
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-yellow), #FFC107);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.social-icon:hover i {
    color: var(--secondary-white);
    transform: scale(1.2);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #E8E8E8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 10px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -10px;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--secondary-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: #E8E8E8;
    margin-bottom: 30px;
}

.header-char {
    position: absolute;
    width: 70px;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.header-char.char1 {
    top: 20px;
    right: 15%;
}

.header-char.char2 {
    bottom: 30px;
    left: 15%;
}

.header-char.char3 {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
}

/* Activities Section */
.activities-section {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.activity-card {
    background: var(--secondary-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.activity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--secondary-white);
}

.activity-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.activity-features {
    list-style: none;
    margin-bottom: 20px;
}

.activity-features li {
    padding: 5px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.activity-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

.activity-char {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: 15px;
    right: 15px;
    opacity: 0.8;
}

/* Join Activities CTA */
.join-activities {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-char {
    position: absolute;
    width: 70px;
    height: auto;
    bottom: -20px;
    right: 10%;
}

/* Newspaper Styles */
.featured-article {
    padding: 80px 0;
    background: var(--secondary-white);
}

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

.featured-badge {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-purple);
}

.featured-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.featured-image {
    position: relative;
    text-align: center;
}

.article-image {
    width: 200px;
    height: auto;
    border-radius: var(--border-radius);
}

.featured-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: -10px;
    right: 20px;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.news-card {
    background: var(--secondary-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-category {
    background: var(--primary-purple);
    color: var(--secondary-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-author {
    color: var(--text-light);
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--dark-purple);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.news-char {
    position: absolute;
    width: 45px;
    height: auto;
    bottom: 10px;
    right: 10px;
    opacity: 0.7;
}

/* Share Story Section */
.share-story {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
}

.story-content {
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.story-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.story-form {
    text-align: left;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}

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

.story-char {
    position: absolute;
    width: 70px;
    height: auto;
    bottom: -20px;
    right: 50px;
}

/* Events Styles */
.events-section {
    padding: 80px 0;
    background: var(--secondary-white);
}

.past-events {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.event-card {
    background: var(--secondary-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 20px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.3);
}

.event-card.past {
    opacity: 0.8;
}

.event-date {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--secondary-white);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-date.past-date {
    background: linear-gradient(135deg, #95A5A6, #7F8C8D);
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}

.event-content {
    flex: 1;
}

.event-category {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.event-category.past-category {
    background: #BDC3C7;
    color: var(--text-dark);
}

.event-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-details {
    margin-bottom: 20px;
}

.event-details span {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event-details i {
    color: var(--primary-purple);
    margin-right: 8px;
    width: 15px;
}

.event-char {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: 15px;
    right: 15px;
    opacity: 0.7;
}

/* Registration Section */
.registration-section {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
}

.registration-content {
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.registration-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.registration-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.registration-form {
    text-align: left;
}

.registration-form select {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
    background: var(--secondary-white);
}

.registration-char {
    position: absolute;
    width: 70px;
    height: auto;
    bottom: -20px;
    left: 50px;
}

/* Gallery Styles */
.gallery-filter {
    padding: 40px 0;
    background: var(--secondary-white);
    border-bottom: 1px solid #E8E8E8;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-purple);
    color: var(--secondary-white);
    transform: translateY(-2px);
}

.gallery-section {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.9), rgba(155, 89, 182, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: var(--secondary-white);
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.gallery-info i {
    font-size: 2rem;
    color: var(--accent-yellow);
}

.gallery-char {
    position: absolute;
    width: 40px;
    height: auto;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    opacity: 0.8;
}

/* Gallery Stats */
.gallery-stats {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--secondary-white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #E8E8E8;
}

.stat-char {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: -20px;
    right: 20px;
    opacity: 0.7;
}

/* Achievements Styles */
.achievement-stats {
    padding: 80px 0;
    background: var(--secondary-white);
}

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

.stat-card {
    background: var(--secondary-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-white);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
}

.stat-card .stat-char {
    position: absolute;
    width: 60px;
    height: auto;
    bottom: 10px;
    right: 10px;
    opacity: 0.6;
}

/* Major Achievements */
.major-achievements {
    padding: 80px 0;
    background: #F8F9FA;
}

.achievements-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.achievements-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-purple), var(--accent-yellow));
    border-radius: 2px;
}

.achievement-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.achievement-item:nth-child(even) {
    flex-direction: row-reverse;
}

.achievement-item:nth-child(even) .achievement-content {
    text-align: right;
}

.achievement-date {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow);
}

.achievement-content {
    background: var(--secondary-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 45%;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-item:nth-child(odd) .achievement-content {
    margin-right: auto;
    margin-left: 55%;
}

.achievement-item:nth-child(even) .achievement-content {
    margin-left: auto;
    margin-right: 55%;
}

.achievement-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.2);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--secondary-white);
}

.achievement-item:nth-child(even) .achievement-icon {
    margin-left: auto;
}

.achievement-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.achievement-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.achievement-item:nth-child(even) .achievement-details {
    justify-content: flex-end;
}

.detail-item {
    background: #F8F9FA;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.detail-item i {
    color: var(--primary-purple);
    margin-right: 5px;
}

.achievement-char {
    position: absolute;
    width: 70px;
    height: auto;
    bottom: -10px;
    right: -10px;
}

/* Student Contributions */
.student-contributions {
    padding: 80px 0;
    background: var(--secondary-white);
}

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

.contribution-card {
    background: var(--secondary-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contribution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

.contributor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--accent-yellow);
}

.contributor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contribution-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 5px;
}

.contribution-title {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--primary-purple);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    font-size: 0.9rem;
}

.contribution-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contribution-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contribution-stats span {
    background: #F8F9FA;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.contribution-stats i {
    color: var(--primary-purple);
    margin-right: 5px;
}

.contribution-char {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: 10px;
    right: 10px;
    opacity: 0.6;
}

/* Recognition Wall */
.recognition-wall {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--secondary-white);
    padding: 80px 0;
    position: relative;
}

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

.recognition-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.recognition-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.recognition-item i {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.recognition-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.recognition-item p {
    color: #E8E8E8;
    line-height: 1.6;
}

.recognition-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: 20px;
    right: 50px;
    opacity: 0.7;
}

/* Star Members Styles */
.star-members-section {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.member-card {
    background: var(--secondary-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

.member-card.featured {
    border: 3px solid var(--accent-yellow);
    background: linear-gradient(135deg, #FFF9E6, var(--secondary-white));
}

.member-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--secondary-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-card.featured .member-badge {
    background: linear-gradient(135deg, var(--accent-yellow), #FFC107);
    color: var(--text-dark);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--primary-purple);
}

.member-card.featured .member-avatar {
    border-color: var(--accent-yellow);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--secondary-white);
}

.member-status.online {
    background: #2ECC71;
}

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

.member-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 5px;
}

.member-title {
    color: var(--accent-yellow);
    font-weight: 600;
    background: var(--primary-purple);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.member-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.member-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #F8F9FA;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat i {
    color: var(--primary-purple);
}

.member-skills {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.skill {
    background: var(--primary-purple);
    color: var(--secondary-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.member-char {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: 15px;
    right: 15px;
    opacity: 0.7;
}

/* Member Spotlight */
.member-spotlight {
    padding: 80px 0;
    background: var(--secondary-white);
}

.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

.spotlight-image {
    position: relative;
    text-align: center;
}

.spotlight-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent-yellow);
    box-shadow: var(--shadow);
}

.spotlight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-yellow), #FFC107);
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow);
}

.spotlight-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.spotlight-title {
    color: var(--accent-yellow);
    font-weight: 600;
    background: var(--primary-purple);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 20px;
}

.spotlight-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.spotlight-achievements {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8F9FA;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.achievement i {
    color: var(--primary-purple);
    font-size: 1.1rem;
}

.spotlight-info blockquote {
    background: linear-gradient(135deg, #F8F9FA, #E8E8E8);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-yellow);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
}

.spotlight-info blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-purple);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: serif;
}

.spotlight-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: -20px;
    right: 50px;
    opacity: 0.7;
}

/* Join Stars Section */
.join-stars {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
    text-align: center;
}

.join-content {
    position: relative;
}

.join-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.join-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.join-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: -30px;
    right: 10%;
    opacity: 0.8;
}

/* Team Styles */
.leadership-team {
    padding: 80px 0;
    background: var(--secondary-white);
}

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

.team-card {
    background: var(--secondary-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

.team-card.president {
    border: 3px solid var(--accent-yellow);
    background: linear-gradient(135deg, #FFF9E6, var(--secondary-white));
}

.team-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--secondary-white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-card.president .team-badge {
    background: linear-gradient(135deg, var(--accent-yellow), #FFC107);
    color: var(--text-dark);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border: 4px solid var(--primary-purple);
}

.team-card.president .team-avatar {
    border-color: var(--accent-yellow);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.team-card:hover .team-social {
    bottom: -25px;
}

.social-link {
    width: 30px;
    height: 30px;
    background: var(--primary-purple);
    color: var(--secondary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.team-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent-yellow);
    font-weight: 600;
    background: var(--primary-purple);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.team-details span {
    background: #F8F9FA;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-details i {
    color: var(--primary-purple);
}

.team-char {
    position: absolute;
    width: 50px;
    height: auto;
    bottom: 15px;
    right: 15px;
    opacity: 0.7;
}

/* Department Heads */
.department-heads {
    padding: 80px 0;
    background: #F8F9FA;
}

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

.department-card {
    background: var(--secondary-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.3);
}

.dept-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--secondary-white);
}

.dept-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--accent-yellow);
}

.dept-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.department-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 5px;
}

.dept-role {
    color: var(--accent-yellow);
    font-weight: 600;
    background: var(--primary-purple);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.dept-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.dept-contact span {
    background: #F8F9FA;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dept-contact i {
    color: var(--primary-purple);
}

.dept-char {
    position: absolute;
    width: 45px;
    height: auto;
    bottom: 10px;
    right: 10px;
    opacity: 0.6;
}

/* Team Values */
.team-values {
    padding: 80px 0;
    background: var(--secondary-white);
    position: relative;
}

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

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.2);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-yellow), #FFC107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.values-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: 20px;
    right: 50px;
    opacity: 0.7;
}

/* Join Team Section */
.join-team {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFC107 100%);
    padding: 60px 0;
    text-align: center;
}

.join-team-content {
    position: relative;
}

.join-team-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.join-team-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-team-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    color: var(--text-dark);
}

.benefit i {
    color: var(--primary-purple);
    font-size: 1.1rem;
}

.join-team-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.join-team-char {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: -30px;
    left: 10%;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        justify-content: center;
        padding: 15px 20px;
        margin: 5px 20px;
        border-radius: 12px;
        position: relative;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(147, 51, 234, 0.05);
        margin: 10px 20px;
        border-radius: 8px;
        border: 1px solid rgba(147, 51, 234, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        margin: 2px;
        justify-content: center;
    }

    .dropdown-arrow {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    /* Prevent dropdown from closing menu */
    .dropdown-toggle {
        pointer-events: auto;
    }

    .dropdown-toggle:active,
    .dropdown-toggle:focus {
        outline: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features-grid,
    .activities-grid,
    .news-grid,
    .events-grid,
    .gallery-grid,
    .members-grid,
    .team-grid,
    .departments-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

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

    .about-content,
    .featured-content,
    .spotlight-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-form-group {
        align-items: center;
    }

    .map-iframe {
        height: 200px !important;
        margin-top: 15px;
    }

    .footer-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .form-group,
    .form-row {
        flex-direction: column;
    }

    .cta-buttons,
    .join-buttons,
    .join-team-buttons {
        flex-direction: column;
        align-items: center;
    }

    .achievements-timeline::before {
        left: 30px;
    }

    .achievement-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .achievement-item:nth-child(even) {
        flex-direction: column;
    }

    .achievement-date {
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 20px;
        align-self: flex-start;
    }

    .achievement-content {
        width: 100%;
        margin: 0 !important;
        text-align: left;
    }

    .achievement-item:nth-child(even) .achievement-content {
        text-align: left;
    }

    .achievement-item:nth-child(even) .achievement-icon {
        margin-left: 0;
    }

    .achievement-item:nth-child(even) .achievement-details {
        justify-content: flex-start;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .member-stats,
    .spotlight-achievements,
    .join-team-benefits {
        flex-direction: column;
        align-items: center;
    }

    .team-details {
        align-items: center;
    }
}

/* Character Rain Animation */
.character-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.falling-character {
    position: absolute;
    animation-timing-function: linear;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

@keyframes characterFall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(0px) rotate(180deg) scale(0.8);
    }
    50% {
        transform: translateY(50vh) rotate(360deg) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(100vh) rotate(540deg) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateY(120vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* Hero Section Responsive Design */
@media (max-width: 1200px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Knowledge Arena Styles */

/* Knowledge Hero Section */
.knowledge-hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    position: relative;
    overflow: hidden;
}

.knowledge-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.4)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,215,0,0.3)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="10" cy="60" r="1" fill="rgba(255,215,0,0.5)"/></svg>') repeat;
    animation: parallaxFloat 20s linear infinite;
    pointer-events: none;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Leaderboard Stage */
.leaderboard-stage {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--light-purple) 100%);
    position: relative;
    overflow: hidden;
}

.leaderboard-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.leaderboard-header .section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.leaderboard-header .section-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.champions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.champion-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.champion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.champion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* First Place Special Styling */
.champion-card.first-place {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
    border: 2px solid #ffd700;
}

.champion-card.first-place::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    height: 6px;
}

.champion-card.first-place:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Second Place */
.champion-card.second-place::before {
    background: linear-gradient(90deg, #c0c0c0, #e5e5e5);
}

/* Third Place */
.champion-card.third-place::before {
    background: linear-gradient(90deg, #cd7f32, #daa520);
}

.champion-rank {
    position: relative;
    margin-bottom: 20px;
}

.rank-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.first-place .rank-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.8rem;
}

.second-place .rank-number {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.third-place .rank-number {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 8px;
}

.first-place .rank-badge {
    color: #fff701;
}

.second-place .rank-badge {
    color: #696969;
}

.third-place .rank-badge {
    color: #cd7f32;
}

.rank-badge i {
    font-size: 1rem;
}

.champion-avatar {
    position: relative;
    margin: 20px 0;
}

.champion-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.first-place .champion-avatar img {
    width: 140px;
    height: 140px;
    border: 6px solid #ffd700;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.champion-card:hover .champion-avatar img {
    transform: scale(1.05);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.first-place .avatar-glow {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, transparent 70%);
}

.champion-card:hover .avatar-glow {
    opacity: 1;
}

.champion-info {
    margin-top: 20px;
}

.champion-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.first-place .champion-name {
    font-size: 1.6rem;
    color: #ffd700;
}

.champion-faculty {
    font-size: 1rem;
    color: #494116;
    margin-bottom: 15px;
    font-weight: 500;
}

.champion-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.first-place .champion-score {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    font-size: 1.2rem;
}

.second-place .champion-score {
    color: #696969;
    background: rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.3);
}

.third-place .champion-score {
    color: #cd7f32;
    background: rgba(205, 127, 50, 0.1);
    border-color: rgba(205, 127, 50, 0.3);
}

.champion-score i {
    color: #ffd700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leaderboard-stage {
        padding: 60px 0;
    }
    
    .leaderboard-header .section-title {
        font-size: 2.2rem;
    }
    
    .leaderboard-header .section-subtitle {
        font-size: 1rem;
    }
    
    .champions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .champion-card {
        padding: 25px;
    }
    
    .champion-card.first-place {
        transform: none;
        order: -1;
    }
    
    .champion-card.first-place:hover {
        transform: translateY(-5px);
    }
    
    .champion-avatar {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 15px;
    }
    
    .champion-avatar img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        margin: 0 auto;
    }
    
    .first-place .champion-avatar img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        margin: 0 auto;
    }
    
    .champion-name {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .first-place .champion-name {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .champion-faculty {
        text-align: center;
    }
    
    .champion-score {
        text-align: center;
    }
    
    .stage-char {
        display: none;
    }
}

/* Stage Character Styles */
.stage-char {
    position: absolute;
    width: 75px;
    height: auto;
    bottom: 40px;
    right: 60px;
    opacity: 0.9;
    z-index: 2;
}

@media (max-width: 480px) {
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .winner-avatar {
        width: 80px;
        height: 80px;
    }
    
    .first-place .winner-avatar {
        width: 100px;
        height: 100px;
    }
    
    .question-content h3 {
        font-size: 1.3rem;
    }
    
    /* Enhanced champion avatar for very small screens */
    .champion-avatar {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 15px;
    }
    
    .champion-avatar img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        margin: 0 auto;
    }
    
    .first-place .champion-avatar img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        margin: 0 auto;
    }
    
    .champion-card {
        padding: 20px 15px;
    }
    
    .champion-name {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .first-place .champion-name {
        font-size: 1.3rem;
        text-align: center;
    }
}

/* Enhanced Knowledge Arena Hero Styles */
.knowledge-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.knowledge-hero .hero-content {
    max-width: 600px;
}

.knowledge-hero .hero-description {
    margin: 20px 0 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.knowledge-hero .hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.knowledge-hero .hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.knowledge-hero .hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.knowledge-hero .hero-characters {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 2;
}

/* Enhanced Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-stats .stat-item:hover::before {
    left: 100%;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-stats .stat-icon {
    font-size: 2rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    display: block;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive for Enhanced Knowledge Arena */
@media (max-width: 768px) {
    .knowledge-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .knowledge-hero .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-stats .stat-item {
        padding: 20px 15px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }

    .hero-stats .stat-icon {
        font-size: 1.5rem;
    }
}

/* Podium Rank Badges */
.podium-base .podium-rank {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-yellow), #ffd166);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 3;
    border: 3px solid #fff;
}

.first-place .podium-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.second-place .podium-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.third-place .podium-rank {
    background: linear-gradient(135deg, #d97706, #b45309);
}

/* Ensure section characters stay inside sections */
.leaderboard-stage .stage-char,
.current-question .question-char,
.submit-answer .answer-char,
.how-it-works .steps-char {
    position: absolute;
    max-width: 22vw;
}

/* Remove any 360deg spin from character animations */
.animate-bounce, .animate-float, .animate-wiggle, .animate-pulse,
.animate-slide-left, .animate-slide-right, .animate-bounce-slow {
    animation-timing-function: ease-in-out;
}

/* Override any unwanted rotate(360deg) on characters */
.stage-char, .question-char, .answer-char, .steps-char, .header-char {
    animation-name: none;
}

/* Re-apply subtle animations without rotation */
.header-char.char1 { animation: bounce 2s infinite; }
.header-char.char2 { animation: slideLeft 1s ease-out; }
.header-char.char3 { animation: float 3s ease-in-out infinite; }

.current-question .question-char { animation: wiggle 2s ease-in-out infinite; }
.submit-answer .answer-char { animation: pulse 2s ease-in-out infinite; }
.how-it-works .steps-char { animation: bounceSlow 3s infinite; }

/* Mobile: hide decorative characters to avoid overlap */
@media (max-width: 768px) {
  .leaderboard-stage .stage-char,
  .current-question .question-char,
  .submit-answer .answer-char,
  .how-it-works .steps-char,
  .knowledge-hero .header-char { display: none; }
}

/* Subtle float for leaderboard character (no rotation) */
.leaderboard-stage .stage-char { animation: float 3s ease-in-out infinite; }

/* Current Question Section */
.current-question {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-white) 0%, #f8f9fa 100%);
    position: relative;
}

.question-card {
    background: var(--secondary-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-purple);
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.question-badge {
    background: var(--primary-purple);
    color: var(--secondary-white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-timer {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.question-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.question-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.question-requirements {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-purple);
}

.question-requirements h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.question-requirements ul {
    list-style: none;
    padding: 0;
}

.question-requirements li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.question-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.1rem;
}

.question-char {
    position: absolute;
    width: 70px;
    height: auto;
    bottom: 30px;
    right: 40px;
    opacity: 0.9;
    z-index: 2;
}

/* Submit Answer Section */
.submit-answer {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    position: relative;
}

/* Section Styles */
.section-title-submit {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-white);
    margin-bottom: 50px;
    position: relative;
}

.section-title-submit::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.answer-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.answer-form {
    background: var(--secondary-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(106, 13, 173, 0.1);
}

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

.form-group {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 1.1rem;
    order: -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    min-height: 60px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.1);
    background: var(--secondary-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--secondary-white);
    border: none;
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(106, 13, 173, 0.3);
}

.answer-char {
    position: absolute;
    width: 75px;
    height: auto;
    bottom: 35px;
    right: 50px;
    opacity: 0.9;
    z-index: 2;
}

/* Responsive Design for Submit Answer */
@media (max-width: 1200px) {
    .answer-form-container {
        max-width: 900px;
    }
    
    .answer-form {
        padding: 50px;
    }
    
    .form-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .answer-form-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .answer-form {
        padding: 40px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 18px 20px;
        min-height: 55px;
    }
    
    .form-group textarea {
        min-height: 180px;
    }
    
    .submit-btn {
        padding: 18px 25px;
        font-size: 1.1rem;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-white) 0%, #f8f9fa 100%);
    position: relative;
}

.how-it-works .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.how-it-works .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step-card {
    background: var(--secondary-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 13, 173, 0.2);
    border-color: var(--primary-purple);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--secondary-white);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.3);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.4);
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.steps-char {
    position: absolute;
    width: 70px;
    height: auto;
    bottom: 30px;
    right: 40px;
    opacity: 0.8;
    z-index: 2;
}

/* Responsive Design for How It Works */
@media (max-width: 768px) {
    .how-it-works {
        padding: 80px 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .step-card {
        padding: 30px 25px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .step-card h3 {
        font-size: 1.3rem;
    }
    
    .steps-char {
        display: none;
    }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Large Desktop Screens (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .champion-card {
        padding: 40px 30px;
    }
    
    .answer-form-container {
        max-width: 1200px;
    }
}

/* Medium Desktop Screens (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Small Desktop and Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .champions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .step-card {
        padding: 35px 25px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .champions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .step-card {
        padding: 30px 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .answer-form-container {
        max-width: 600px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .champions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .champion-card {
        padding: 25px 20px;
    }
    
    .champion-avatar {
        width: 60px;
        height: 60px;
    }
    
    .step-card {
        padding: 25px 20px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .answer-form-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .answer-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        min-height: 50px;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Hide characters on mobile for better performance */
    .char {
        display: none !important;
    }
    
    /* Adjust floating elements for mobile */
    .floating-elements {
        display: none;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .champion-card {
        padding: 20px 15px;
    }
    
    .champion-avatar {
        width: 50px;
        height: 50px;
    }
    
    .champion-name {
        font-size: 1rem;
    }
    
    .champion-faculty {
        font-size: 0.8rem;
    }
    
    .step-card {
        padding: 20px 15px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .step-card h3 {
        font-size: 1.1rem;
    }
    
    .step-card p {
        font-size: 0.9rem;
    }
    
    .answer-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        min-height: 45px;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .question-card {
        padding: 20px 15px;
    }
    
    .question-card h3 {
        font-size: 1.2rem;
    }
    
    .question-card p {
        font-size: 0.9rem;
    }
    
    .question-requirements h4 {
        font-size: 1rem;
    }
    
    .question-requirements li {
        font-size: 0.85rem;
    }
    
    /* Navigation adjustments for very small screens */
    .nav-menu {
        padding: 10px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .map-iframe {
        height: 200px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .champion-card {
        padding: 15px 10px;
    }
    
    .step-card {
        padding: 15px 10px;
    }
    
    .answer-form {
        padding: 15px 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        min-height: 40px;
        font-size: 0.85rem;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .char {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .char,
    .floating-elements,
    .nav-menu,
    .footer {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .section {
        padding: 20px 0 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .char,
    .floating-elements {
        display: none !important;
    }
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-yellow) 100%);
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
    border-radius: 0 0 10px 0;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) #f1f1f1;
}

/* Smooth scrolling for all elements */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for specific containers */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 8px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    border-radius: 8px;
    border: 1px solid rgba(241, 241, 241, 0.8);
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
}

/* Animated scrollbar for special sections */
.animated-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-yellow) 50%, var(--light-purple) 100%);
    background-size: 200% 100%;
    animation: scrollbarGradient 3s ease infinite;
}

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

/* Dark mode scrollbar support */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: #2d2d2d;
    }
    
    ::-webkit-scrollbar-thumb {
        border-color: #2d2d2d;
    }
    
    ::-webkit-scrollbar-corner {
        background: #2d2d2d;
    }
    
    * {
        scrollbar-color: var(--primary-purple) #2d2d2d;
    }
}