/* ---------------- Global Styles ---------------- */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    background-color: #121212;
    color: white;
    cursor: pointer;
    height: 100%;
    overflow-x: hidden;
}

/* ---------------- Landing Page ---------------- */
.landing-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;

    background: 
        radial-gradient(circle at center, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.8) 100%),
        url('assets/images/landing-photo.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}

.landing-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    animation: pulseOverlay 4s ease-in-out infinite alternate;
}

@keyframes pulseOverlay {
    0% { background: rgba(0,0,0,0.15); }
    100% { background: rgba(0,0,0,0.1); }
}

.landing-container h1 {
    position: relative;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(2rem, 8vw, 6rem);
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
    opacity: 0;
    animation: fadeInZoom 2s ease forwards;
    z-index: 2;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.landing-container h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.7);
}

@keyframes fadeInZoom {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ---------------- Gallery ---------------- */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    padding-left: 80px;
}

.gallery-item {
    flex: 1 1 calc(16.66% - 1rem); /* 6 per row */
    max-width: calc(16.66% - 1rem);
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.gallery-item:nth-child(1)  { animation-delay: 0.1s; }
.gallery-item:nth-child(2)  { animation-delay: 0.2s; }
.gallery-item:nth-child(3)  { animation-delay: 0.3s; }
.gallery-item:nth-child(4)  { animation-delay: 0.4s; }
.gallery-item:nth-child(5)  { animation-delay: 0.5s; }
.gallery-item:nth-child(6)  { animation-delay: 0.6s; }
.gallery-item:nth-child(7)  { animation-delay: 0.7s; }
.gallery-item:nth-child(8)  { animation-delay: 0.8s; }
.gallery-item:nth-child(9)  { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }
.gallery-item:nth-child(14) { animation-delay: 1.4s; }
.gallery-item:nth-child(15) { animation-delay: 1.5s; }
.gallery-item:nth-child(16) { animation-delay: 1.6s; }
.gallery-item:nth-child(17) { animation-delay: 1.7s; }
.gallery-item:nth-child(18) { animation-delay: 1.8s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* ---------------- Lightbox ---------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lightbox.show img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 50%;
    user-select: none;
    z-index: 1010;
}

.lightbox-arrow.left { left: 5%; }
.lightbox-arrow.right { right: 5%; }

/* ---------------- Hamburger Menu ---------------- */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.hamburger-menu .bar {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open animation (X) */
.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------------- Side Panel ---------------- */
.side-panel {
    position: fixed;
    top: 0;
    left: -200px;
    width: 180px;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 1999;
}

.side-panel.open {
    left: 0;
}

.side-panel .side-icon {
    color: white;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.side-panel .side-icon:hover {
    background-color: #333;
}

/* ---------------- Responsive Gallery ---------------- */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 1 1 calc(16.66% - 1rem);
        max-width: calc(16.66% - 1rem);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    /* Make landing page static on mobile */
    .landing-container {
        height: 100vh;
        overflow: hidden;
    }

    .gallery-item {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    /* Slide panel smaller hamburger on mobile */
    .hamburger-menu {
        top: 15px;
        left: 15px;
        width: 28px;
        height: 24px;
    }

    .hamburger-menu .bar {
        height: 3px;
    }
}
