/* Core Styles */
body {
    font-family: 'Noto Sans TC', 'Inter', sans-serif;
    background-color: #111827;
    color: #e2e8f0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* Header & Nav */
.header-scrolled {
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero Section */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Reverted to 0.4 */
}

@media (max-width: 767px) {
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.4);
    }
}

.hero-text-shadow {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Photo Gallery */
.photo-card .photo-overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.4);
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 102;
    outline: none;
}

.lightbox-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    scale: 1.1;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items if needed */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}