/* Global Styles */
:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --secondary-bg: #1e1e1e;
    --overlay-color: rgba(0, 0, 0, 0.7);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header / Hero Section */
.hero {
    height: 60vh;
    /* Mobile optimize height */
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2c2c2c 0%, #121212 100%);
    padding: 2rem;
    position: relative;
}

.logo {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: none;
    /* Remove old gradient */
    -webkit-text-fill-color: #fff;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    opacity: 0.8;
    z-index: 2;
    color: #fff;
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Gallery Section - Row Grid Layout */
.gallery-container {
    padding: 20px 10px;
    /* Mobile safe padding */
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 items per row */
    gap: 10px;
    /* Smaller gap for mobile */
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;

    /* Skeleton Loading Background */
    background: #1e1e1e;
    background: linear-gradient(110deg, #1e1e1e 8%, #2a2a2a 18%, #1e1e1e 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    min-height: 150px;
    /* Adjusted min-height for 2-col */
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* Remove bottom space */
    border-radius: 12px;
    transition: transform 0.5s ease, opacity 0.8s ease;
    /* Slower fade for elegance */
    opacity: 0;
    /* Hidden initially */
}

.gallery-item img.loaded {
    opacity: 1;
    /* Fade in when loaded */
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Scroll Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: #fff;
    font-size: 1.5rem;
    pointer-events: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--secondary-bg);
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #888;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    font-size: 1.2rem;
    color: #aaa;
    margin: 0 10px;
}

.footer-social a:hover {
    color: #fff;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Lightbox Content Wrapper */
.lightbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 95%;
    max-height: 90vh;
}

.lightbox-content {
    margin: 0;
    display: block;
    width: auto;
    height: auto;
    max-width: 80vw;
    /* Reduced to make room for arrows */
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

/* Lightbox Navigation Buttons */
.prev,
.next {
    cursor: pointer;
    /* Static position for desktop (outside image) */
    position: static;
    transform: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1002;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    flex-shrink: 0;
    /* Prevent arrows from squishing */
}

/* Hover effects */
.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: scale(1.1);
}

/* Mobile Responsive Lightbox - Revert to Overlay */
@media (max-width: 768px) {
    .lightbox-wrapper {
        display: block;
        /* Stack or just relative container */
        max-width: 100%;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 80vh;
    }

    .prev,
    .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        /* Box style for mobile */
        width: auto;
        height: auto;
        padding: 10px 15px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

#caption {
    margin: 10px auto 0;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    /* Removed fixed height to fix centering */
}

/* Responsive Breakpoints */
@media (min-width: 600px) {
    .gallery-grid {
        /* Tablet: 3 items per row usually, adjusting to screen width */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .hero {
        height: 70vh;
    }

    .logo {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        /* Desktop: 3 items per row usually, adjusting to screen width */
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}