/*
   Shared Theme + Y2K Background
   Naga HCHS Batch 2000
*/

body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8ff 50%, #f0f0f0 100%);
    background-color: #f5f5f5;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Y2K animated background */
.y2k-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.y2k-text {
    position: absolute;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fall linear forwards;
    pointer-events: none;
    text-shadow: 0 0 8px currentColor;
    mix-blend-mode: multiply;
    font-family: "Courier New", monospace;
}

.y2k-text.neon-green {
    color: #00aa00;
    text-shadow: 0 0 10px #00aa00;
}

.y2k-text.neon-cyan {
    color: #0088cc;
    text-shadow: 0 0 10px #0088cc;
}

.y2k-text.neon-magenta {
    color: #cc00cc;
    text-shadow: 0 0 10px #cc00cc;
}

.y2k-text.neon-yellow {
    color: #cc8800;
    text-shadow: 0 0 10px #cc8800;
}

.y2k-text.neon-pink {
    color: #ff1493;
    text-shadow: 0 0 10px #ff1493;
}

.y2k-text.neon-blue {
    color: #0099ff;
    text-shadow: 0 0 10px #0099ff;
}

.y2k-text.neon-purple {
    color: #9933ff;
    text-shadow: 0 0 10px #9933ff;
}

.y2k-text.neon-orange {
    color: #ff6600;
    text-shadow: 0 0 10px #ff6600;
}

.y2k-text.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) scaleY(1);
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) scaleY(0.8);
        opacity: 0;
    }
}

@keyframes glitch {

    0%,
    100% {
        text-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
        transform: translate(0);
    }

    20% {
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff, 0 0 15px currentColor;
        transform: translate(-2px, 0);
    }

    40% {
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff, 0 0 15px currentColor;
        transform: translate(2px, 0);
    }

    60% {
        text-shadow: -1px 0 #ffff00, 1px 0 #00ff00, 0 0 15px currentColor;
        transform: translate(1px, 0);
    }

    80% {
        text-shadow: 1px 0 #00ff00, -1px 0 #ffff00, 0 0 15px currentColor;
        transform: translate(-1px, 0);
    }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0.02) 1px,
            transparent 1px,
            transparent 2px);
    animation: scan 8s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

/* Premium Glassmorphism */
.container {
    position: relative;
    z-index: 2;
}

header,
.info-card,
.cta-section,
.gallery-item,
.gallery-info,
.map-container,
.gallery-card {
    backdrop-filter: blur(1px) saturate(180%);
    -webkit-backdrop-filter: blur(1px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
    border-radius: 20px;
}

header {
    margin-bottom: 3rem;
}

/* Subtle Title Glow */
h1,
h2 {
    /* Removed white shadow to make titles color-focused as requested */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    border: 3px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2) !important;
}

.btn-primary:hover {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2) !important;
}

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

::-webkit-scrollbar-track {
    background: #e1effe;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 2px solid #e1effe;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:not(.show) {
    transform: translateY(20px);
}

#backToTop:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    border-color: white;
}

#backToTop svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Logo Entrance Animation */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px) rotate(-15deg);
        filter: blur(15px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(10px) rotate(5deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.logo-animate {
    animation: logoEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 0.3s;
}

/* Premium Logo Shadow */
.logo {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7));
}

/* Premium Image Border */
.featured-img, 
.gallery-item img,
.gallery-card img {
    border: 8px solid #ffffff;
    border-radius: 20px;
    outline: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Premium Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--surface-color);
    color: var(--primary-color) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    margin: 0 auto 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.08);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.btn-back:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 12px 25px rgba(26, 86, 219, 0.2);
    border-color: var(--primary-color);
}

.btn-back svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-5px);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.featured-img:hover,
.gallery-item:hover img {
    border-color: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}