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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a23 0%, #1a1a3a 50%, #2a1a5a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s linear infinite;
    pointer-events: none;
    z-index: 1;
}

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

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
}

.container {
    max-width: 800px;
    width: 100%;
    background: rgba(13, 13, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 15px;
    }
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo {
        max-width: 250px;
        margin-bottom: 20px;
    }
}

h1 {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    background: linear-gradient(45deg, #ffffff, #e6e6fa, #dda0dd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(138, 43, 226, 0.3); }
    to { text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(138, 43, 226, 0.6); }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
}

.subtitle {
    font-size: 1.2em;
    color: #b8b8d4;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(184, 184, 212, 0.3);
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 480px) {
    .nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

.nav-link {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #4a148c, #6a1b9a, #8e24aa);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(138, 43, 226, 0.3);
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.6);
    background: linear-gradient(45deg, #6a1b9a, #8e24aa, #ab47bc);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-link:active {
    transform: translateY(-1px);
}

/* Admin button styling */
.admin-btn {
    background: linear-gradient(45deg, #8B4513, #CD853F, #DAA520) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(139, 69, 19, 0.3) !important;
}

.admin-btn:hover {
    background: linear-gradient(45deg, #CD853F, #DAA520, #F4A460) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 69, 19, 0.6) !important;
}

@media (max-width: 768px) {
    .nav-link {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 200px;
    }
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #9999b3;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 30px;
        font-size: 0.8em;
    }
}

/* Music note animation */
.music-notes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.note {
    position: absolute;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.note:nth-child(1) { left: 10%; animation-delay: 0s; }
.note:nth-child(2) { left: 20%; animation-delay: 1s; }
.note:nth-child(3) { left: 30%; animation-delay: 2s; }
.note:nth-child(4) { left: 40%; animation-delay: 3s; }
.note:nth-child(5) { left: 50%; animation-delay: 4s; }
.note:nth-child(6) { left: 60%; animation-delay: 5s; }
.note:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.note:nth-child(8) { left: 80%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-10vh) rotate(180deg); }
}

/* iOS Safari background fix */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
        /* Ensure background covers full viewport on iOS */
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    
    /* Fix starfield animation on iOS */
    body::before {
        position: absolute;
        background-attachment: scroll;
    }
}