/* ==========================================================================
   SMK MEKARWANGI CELEBRATION STYLE SHEET
   Theme: Luxury Navy Blue, Gold Accent, & Glassmorphism (Simplified)
   ========================================================================== */

:root {
    --bg-dark: #070B19;
    --bg-navy-dark: #0D1630;
    --bg-navy-light: #16224F;
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA7C11;
    --gold-glow: rgba(212, 175, 55, 0.45);
    
    --text-white: #FFFFFF;
    --text-platinum: #F5F7FA;
    --text-muted: #A0AEC0;
    
    --font-serif: 'Cinzel', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: var(--text-platinum);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ==================== BACKGROUND & OVERLAYS ==================== */
#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--bg-navy-dark) 0%, var(--bg-dark) 100%);
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(22, 34, 79, 0.4) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* ==================== GLASSMORPHISM COMPONENTS ==================== */
.glass-card {
    background: rgba(13, 22, 48, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(212, 175, 55, 0.05);
}

/* ==================== TYPOGRAPHY & GRADIENTS ==================== */
.gold-gradient-text {
    background: linear-gradient(135deg, #FFF6D6 0%, #D4AF37 40%, #AA7C11 75%, #F3E5AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gold-text-glow {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-glow);
    font-weight: 700;
    letter-spacing: 2px;
}

.gold-text {
    color: var(--gold-primary);
}

/* ==================== SCREEN 1: COVER SCREEN (THE INAUGURATION) ==================== */
#cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 1.5rem;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    background: radial-gradient(circle at center, var(--bg-navy-dark) 0%, var(--bg-dark) 100%);
}

#cover-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cover-card {
    max-width: 680px;
    width: 100%;
    text-align: center;
    border-width: 2px;
    animation: fadeInUp 1s ease-out;
}

.badge-anniversary {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: pulseGlow 3s infinite;
}

.logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 34, 79, 0.6) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-animation {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: floatLogo 6s ease-in-out infinite;
}

.main-title {
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.sub-title {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.school-name {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.tagline-text {
    font-size: 1.15rem;
    color: var(--text-platinum);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ==================== CELEBRONIAL BUTTON (PERESMIAN) ==================== */
.button-container {
    position: relative;
    width: 280px;
    height: 70px;
    margin: 0 auto 1.5rem;
}

.ceremonial-btn {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(170, 124, 17, 0.4);
    z-index: 10;
    transition: var(--transition-smooth);
}

.ceremonial-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(170, 124, 17, 0.6),
                0 0 20px rgba(212, 175, 55, 0.4);
}

.ceremonial-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.95rem;
    color: var(--bg-dark);
    transition: var(--transition-smooth);
}

.ceremonial-btn:hover .btn-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.pulse-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--gold-primary);
    border-radius: 60px;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
    opacity: 0;
}

.hint-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== MUSIC TOGGLE ==================== */
.audio-control-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.audio-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(13, 22, 48, 0.7);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.audio-btn:hover {
    transform: scale(1.1);
    background: var(--gold-primary);
    color: var(--bg-dark);
}

/* ==================== SCREEN 2: MAIN HUB / PRESENTATION ==================== */
#main-hub {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-hub.active-hub {
    opacity: 1;
    transform: translateY(0);
}

.hidden-screen {
    display: none !important;
}

.presentation-card {
    width: 100%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: radial-gradient(circle at center, rgba(16, 26, 56, 0.8) 0%, rgba(8, 14, 33, 0.9) 100%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(212, 175, 55, 0.1);
    text-align: center;
    overflow: hidden;
}

/* Decorative Gold Corners */
.gold-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold-primary);
    pointer-events: none;
    z-index: 5;
}

.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* Header inside card */
.hub-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.header-logo {
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    animation: floatLogo 6s ease-in-out infinite;
}

.header-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.header-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Plaque Panel Style */
.plaque-panel {
    border: 1px dashed rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.25);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.seal-logo {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    animation: rotateSlow 20s linear infinite;
}

.welcome-heading {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.status-stamp {
    display: inline-block;
    border: 3px double #00FFCC;
    color: #00FFCC;
    padding: 0.6rem 2rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    border-radius: 6px;
    margin: 0.5rem auto 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.1);
    transform: rotate(-2deg);
}

.animated-stamp {
    animation: stampEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.plaque-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.plaque-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

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

.signee {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-top: 0.25rem;
}

/* Re-celebrate trigger */
.celebration-controls {
    margin-top: 1rem;
}

.re-celebrate-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.re-celebrate-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.re-celebrate-btn:active {
    transform: translateY(0);
}

/* ==================== FOOTER ==================== */
.main-footer {
    width: 100%;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dev-tag {
    font-size: 0.75rem;
}

/* ==================== KEYFRAMES & ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
        border-color: rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
        border-color: rgba(212, 175, 55, 1);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes stampEntrance {
    0% {
        transform: scale(3) rotate(-15deg);
        opacity: 0;
    }
    60% {
        transform: scale(0.9) rotate(-2deg);
        opacity: 1;
    }
    80% {
        transform: scale(1.15) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(-2deg);
    }
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 768px) {
    .presentation-card {
        padding: 1.5rem;
    }
    
    .header-logo {
        height: 80px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .welcome-heading {
        font-size: 1.3rem;
    }
    
    .status-stamp {
        font-size: 1.1rem;
        letter-spacing: 2px;
        padding: 0.5rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .cover-card {
        padding: 1.5rem 1rem;
    }
    
    .school-name {
        font-size: 2rem;
    }
    
    .tagline-text {
        font-size: 1rem;
    }
}
