:root {
    --primary-blue: #1e3a8a;
    --accent-pink: #ff1493;
    --text-white: #ffffff;
    --text-light: #e5e7eb;
    --bg-dark: #000000;
    --bg-space: #0f172a;
    --star-yellow: #fbbf24;
    --star-blue: #60a5fa;
    --star-pink: #f472b6;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-space) 0%, var(--bg-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background-image: 
        /* Bright colorful stars */
        radial-gradient(circle at 15% 25%, #ff1493 2px, transparent 2px),
        radial-gradient(circle at 85% 15%, #00bfff 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 65%, #ffd700 2px, transparent 2px),
        radial-gradient(circle at 75% 85%, #ff69b4 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 75%, #00ffff 2px, transparent 2px),
        radial-gradient(circle at 95% 45%, #9370db 1.5px, transparent 1.5px),
        
        /* Small twinkling stars */
        radial-gradient(circle at 60% 20%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, #ffd700 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, #00bfff 1px, transparent 1px),
        radial-gradient(circle at 20% 80%, #ff69b4 1px, transparent 1px);
    
    background-size: 
        400px 400px, 350px 350px, 380px 380px, 420px 420px, 360px 360px, 390px 390px,
        200px 200px, 180px 180px, 220px 220px, 190px 190px;
    
    animation: starfield-move 80s linear infinite, twinkle 5s ease-in-out infinite alternate;
}

/* Second star layer for depth */
.stars-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(circle at 35% 45%, #87ceeb 1px, transparent 1px),
        radial-gradient(circle at 65% 25%, #98fb98 1px, transparent 1px),
        radial-gradient(circle at 15% 75%, #ffa500 1px, transparent 1px),
        radial-gradient(circle at 85% 55%, #da70d6 1px, transparent 1px);
    background-size: 
        300px 300px, 250px 250px, 280px 280px, 320px 320px;
    animation: starfield-move-slow 100s linear infinite, twinkle 7s ease-in-out infinite alternate;
    z-index: 1;
}

/* Emoji stars floating behind content */
.emoji-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.emoji-star {
    position: absolute;
    font-size: 20px;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.emoji-star:nth-child(1) {
    top: 25%;
    left: -50px;
    animation: drift-fade-1 35s ease-in-out infinite;
    animation-delay: 0s;
}

.emoji-star:nth-child(2) {
    top: 65%;
    left: -50px;
    animation: drift-fade-2 42s ease-in-out infinite;
    animation-delay: 8s;
}

.emoji-star:nth-child(3) {
    top: 45%;
    left: -50px;
    animation: drift-fade-3 38s ease-in-out infinite;
    animation-delay: 16s;
}

.emoji-star:nth-child(4) {
    top: 80%;
    left: -50px;
    animation: drift-fade-4 45s ease-in-out infinite;
    animation-delay: 24s;
}

.emoji-star:nth-child(5) {
    top: 15%;
    left: -50px;
    animation: drift-fade-5 40s ease-in-out infinite;
    animation-delay: 32s;
}

@keyframes drift-fade-1 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    20% {
        transform: translateX(25vw) translateY(-30px) rotate(90deg);
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    35% {
        opacity: 1;
        transform: translateX(40vw) translateY(20px) rotate(140deg);
    }
    50% {
        transform: translateX(50vw) translateY(20px) rotate(180deg);
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    70% {
        opacity: 1;
        transform: translateX(75vw) translateY(-10px) rotate(270deg);
    }
    85% {
        opacity: 1;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-40px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes drift-fade-2 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    15% {
        transform: translateX(20vw) translateY(40px) rotate(72deg);
        opacity: 1;
    }
    30% {
        opacity: 0;
    }
    45% {
        opacity: 1;
        transform: translateX(40vw) translateY(-25px) rotate(144deg);
    }
    60% {
        transform: translateX(60vw) translateY(35px) rotate(216deg);
        opacity: 1;
    }
    65% {
        opacity: 0;
    }
    80% {
        opacity: 1;
        transform: translateX(80vw) translateY(-15px) rotate(288deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(25px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes drift-fade-3 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    28% {
        transform: translateX(30vw) translateY(-45px) rotate(108deg);
        opacity: 1;
    }
    35% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateX(50vw) translateY(30px) rotate(180deg);
    }
    60% {
        opacity: 0;
    }
    75% {
        opacity: 1;
        transform: translateX(70vw) translateY(-20px) rotate(252deg);
    }
    88% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(15px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes drift-fade-4 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    6% {
        opacity: 1;
    }
    18% {
        transform: translateX(15vw) translateY(25px) rotate(54deg);
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    40% {
        opacity: 1;
        transform: translateX(35vw) translateY(-35px) rotate(126deg);
    }
    55% {
        transform: translateX(55vw) translateY(40px) rotate(198deg);
        opacity: 1;
    }
    62% {
        opacity: 0;
    }
    78% {
        opacity: 1;
        transform: translateX(75vw) translateY(-25px) rotate(270deg);
    }
    92% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(10px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes drift-fade-5 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    22% {
        transform: translateX(25vw) translateY(50px) rotate(90deg);
        opacity: 1;
    }
    32% {
        opacity: 0;
    }
    48% {
        opacity: 1;
        transform: translateX(45vw) translateY(-30px) rotate(162deg);
    }
    58% {
        opacity: 0;
    }
    68% {
        opacity: 1;
        transform: translateX(65vw) translateY(35px) rotate(234deg);
    }
    82% {
        opacity: 1;
        transform: translateX(85vw) translateY(-20px) rotate(306deg);
    }
    88% {
        opacity: 0;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-35px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes starfield-move {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

@keyframes starfield-move-slow {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-20%) translateY(-20%);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    z-index: 10;
    position: relative;
}

.logo-section {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section .main-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.5));
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--text-white);
    font-weight: 400;
}

.astronaut {
    text-align: center;
}

.astronaut-img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

.motto {
    text-align: center;
    color: var(--star-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.motto h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.year {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-pink);
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.year-text {
    font-size: 5rem;
    font-weight: 900;
    color: #FF1493;
    text-shadow: 
        0 0 30px rgba(255, 20, 147, 0.8),
        0 0 50px rgba(255, 20, 147, 0.6),
        0 0 70px rgba(255, 20, 147, 0.4);
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    background: linear-gradient(45deg, #FF1493, #FF69B4, #FF1493);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.year-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 80px;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.5));
    margin-top: 1rem;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Navigation */
.main-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
    gap: 40px;
}

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
}

.main-nav a:hover {
    background: var(--primary-blue);
    color: var(--accent-pink);
    transform: translateY(-2px);
}

.logout-link {
    background: rgba(255, 20, 147, 0.1) !important;
    border: 1px solid var(--accent-pink) !important;
    color: var(--accent-pink) !important;
}

.logout-link:hover {
    background: var(--accent-pink) !important;
    color: var(--bg-dark) !important;
}

/* Sections */
.videos-section, .recap-section, .gallery-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--star-blue);
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.video-card {
    background: rgba(30, 58, 138, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    padding: 20px;
    font-size: 1.5rem;
    color: var(--accent-pink);
    font-weight: 600;
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Recap Grid */
.recap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.recap-card {
    background: rgba(255, 20, 147, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 20, 147, 0.2);
}

.recap-card:hover {
    transform: scale(1.02);
}

.recap-card h3 {
    padding: 20px;
    font-size: 1.8rem;
    color: var(--star-yellow);
    text-align: center;
}

/* Gallery */
.gallery-category {
    margin-bottom: 60px;
}

.category-title {
    font-family: 'Orbitron', monospace;
    color: var(--accent-pink);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    column-fill: balance;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    break-inside: avoid;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: opacity 0.3s ease;
}

.gallery-item img[data-loading="true"] {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.3), rgba(255, 20, 147, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

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

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 15px;
}

.admin-link {
    color: var(--star-blue);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--star-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.admin-link:hover {
    background: var(--star-blue);
    color: var(--bg-dark);
}

/* New Styles */
.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.5));
}

.motto-img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    filter: drop-shadow(0 0 15px rgba(65, 105, 225, 0.4));
    margin-bottom: 20px;
}

/* Floating Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    z-index: 15;
    animation: bounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    transform: translateX(-50%) scale(1.1);
}

.arrow-icon {
    font-size: 2rem;
    color: var(--accent-pink);
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
    margin-bottom: 5px;
    animation: pulse 1.5s ease-in-out infinite;
}

.scroll-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Password Protection Styles */
.password-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-space) 0%, var(--bg-dark) 100%);
}

.password-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-form {
    background: rgba(30, 58, 138, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.password-form h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-pink);
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.password-form p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.password-form-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.password-form-input input {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.password-form-input input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

.password-form-input button {
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-pink));
    border: none;
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.password-form-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.4);
}

.password-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.password-hint {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.password-hint small {
    color: var(--star-blue);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .motto h2 {
        font-size: 2rem;
    }
    
    .year {
        font-size: 2rem;
    }
    
    .year-text {
        font-size: 3.5rem;
    }
    
    .year-img {
        max-height: 50px;
    }
    
    .astronaut-img {
        width: 200px;
    }
    
    .videos-grid,
    .recap-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-logo {
        max-height: 80px;
    }
    
    .motto-img {
        max-height: 70px;
    }
    
    .logo-bubble {
        padding: 20px 30px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}
