/* --- Global Variables & Resets --- */
:root {
    --primary-color: #000000;
    --text-color: #333333;
    --accent-color: #00d2d3;
    --light-bg: #ffffff;
    --dark-bg: #050505;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body.gallery-body { font-family: 'Inter', sans-serif; color: var(--text-color); background-color: var(--light-bg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* --- Base Header & Nav (Same as site) --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 999; background: rgba(255, 255, 255, 0.98); transition: all 0.3s ease; }
.site-header.scrolled { padding: 15px 50px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.logo-link { display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--accent-color); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.logo-text { font-size: 1.2rem; font-weight: 800; color: #000; line-height: 1.1; letter-spacing: 1px; }
.logo-sub { font-size: 0.85rem; letter-spacing: 5px; font-weight: 500; color: #555; display: block; }
.nav-logo-img { height: 45px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.nav-logo-img:hover { transform: scale(1.05); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.btn-call { border: 2px solid #ddd; padding: 10px 25px; border-radius: 30px; font-weight: 600; font-size: 0.95rem; background: white; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-call:hover { background: #000; color: white; border-color: #000; }
.menu-toggle { background: #111; border: none; cursor: pointer; width: 45px; height: 45px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; transition: var(--transition); }
.menu-toggle:hover { transform: scale(1.05); background: var(--accent-color); }
.menu-toggle .bar { width: 20px; height: 2px; background-color: white; }

.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #0a0a0a; z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, visibility 0.4s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.close-btn { position: absolute; top: 30px; right: 50px; background: white; border: none; color: black; font-size: 2.5rem; line-height: 1; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: var(--transition); }
.close-btn:hover { background: var(--accent-color); color: white; transform: rotate(90deg); }
.main-nav ul { list-style: none; text-align: center; padding: 0; }
.main-nav ul li { margin: 20px 0; transform: translateY(40px); opacity: 0; transition: all 0.5s ease; transition-delay: calc(0.1s * var(--i)); }
.nav-overlay.active .main-nav ul li { transform: translateY(0); opacity: 1; }
.main-nav ul li a { color: white; font-size: 3.5rem; font-weight: 700; transition: color 0.3s ease; }
.main-nav ul li a:hover { color: var(--accent-color); }

/* --- Inner Banner --- */
.inner-page-banner { height: 40vh; min-height: 350px; position: relative; display: flex; align-items: center; justify-content: center; background-color: #111; color: white; text-align: center; padding-top: 80px; }
.banner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); }
.banner-content { position: relative; z-index: 2; }
.tiny-label { display: inline-block; font-size: 0.85rem; font-weight: 800; color: var(--accent-color); background: rgba(0, 210, 211, 0.1); padding: 8px 15px; border-radius: 6px; margin-bottom: 20px; letter-spacing: 2px; }
.banner-content h1 { font-size: 4rem; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; letter-spacing: -1px;}
.breadcrumbs { font-size: 1.1rem; color: #ccc; font-weight: 500; }
.breadcrumbs a { color: var(--accent-color); text-decoration: none; transition: color 0.3s;}
.breadcrumbs a:hover { color: white; }

/* --- General Gallery Layout --- */
.gallery-header { margin-bottom: 50px; padding: 0 20px; }
.gallery-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px;}
.gallery-header p { font-size: 1.1rem; color: #666; }
.text-center { text-align: center; }

/* =======================================================
   1. HORIZONTAL INFINITE CAROUSEL (Left & Right)
   ======================================================= */
.gallery-horizontal-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
    color: white;
    overflow: hidden; /* Crucial for hiding edges */
}

.gallery-horizontal-section .gallery-header h2 { color: white; }
.gallery-horizontal-section .gallery-header p { color: #aaa; }

.h-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 15px 0;
}

/* Gradient fade on edges for sleek look */
.h-carousel-wrapper::before, .h-carousel-wrapper::after {
    content: ''; position: absolute; top: 0; width: 15vw; height: 100%; z-index: 2; pointer-events: none;
}
.h-carousel-wrapper::before { left: 0; background: linear-gradient(to right, #050505, transparent); }
.h-carousel-wrapper::after { right: 0; background: linear-gradient(to left, #050505, transparent); }

.h-carousel-track {
    display: inline-flex;
    gap: 30px;
    padding-right: 30px; /* Space between sets */
}

.h-carousel-track img {
    height: 350px;
    width: 500px;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    filter: grayscale(40%);
}

/* Hover Pauses Animation and highlights image */
.h-carousel-track:hover { animation-play-state: paused; }
.h-carousel-track img:hover { filter: grayscale(0%); transform: scale(1.05); z-index: 5; position: relative; border: 2px solid var(--accent-color); }

/* Animation Assignments */
.move-left .h-carousel-track { animation: scrollHorizontalLeft 40s linear infinite; }
.move-right .h-carousel-track { animation: scrollHorizontalRight 40s linear infinite; }

@keyframes scrollHorizontalLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Shifts exactly half width */
}
@keyframes scrollHorizontalRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* =======================================================
   2. VERTICAL INFINITE COLUMNS (Up & Down)
   ======================================================= */
.gallery-vertical-section {
    padding: 120px 0;
    background-color: var(--light-bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.vertical-grid-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    height: 900px; /* Fixed height container */
    overflow: hidden; /* Hides top and bottom overflow */
    position: relative;
    /* Soft fade top and bottom */
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.v-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v-track {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
}

.v-track img {
    width: 100%;
    height: 450px; /* Uniform height for clean masonry */
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Hover Pauses Vertical Scroll */
.v-col:hover .v-track { animation-play-state: paused; }
.v-track img:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(0,210,211,0.2); }

/* Vertical Animation Assignments */
.move-up .v-track { animation: scrollVerticalUp 35s linear infinite; }
.move-down .v-track { animation: scrollVerticalDown 40s linear infinite; }
.move-up.fast .v-track { animation: scrollVerticalUp 25s linear infinite; } /* Variable speed */

@keyframes scrollVerticalUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes scrollVerticalDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* =======================================================
   FOOTER, CURSOR & ANIMATIONS
   ======================================================= */
/* Footer */
.site-footer { background-color: #0a0a0a; color: #ffffff; padding: 80px 50px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-size: 2rem; margin-bottom: 20px; color: white; font-weight: 800; }
.brand-col p { color: #999; line-height: 1.6; margin-bottom: 25px; max-width: 90%; font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); color: white; border-radius: 50%; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent-color); color: #000; transform: translateY(-3px); }
.footer-col h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--accent-color); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #999; transition: all 0.3s ease; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent-color); padding-left: 5px; }
.contact-col p { color: #999; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; line-height: 1.5; font-size: 0.95rem; }
.contact-col i { color: var(--accent-color); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 25px; text-align: center; color: #666; font-size: 0.9rem; }

/* Cursor & Spray */
body { cursor: none; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-color); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--accent-color); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; transition-duration: 0.15s; transition-timing-function: ease-out; }
.cursor-hover .cursor-outline { width: 60px; height: 60px; background-color: rgba(0, 210, 211, 0.1); border-color: transparent; }

.social-spray-icon { position: absolute; pointer-events: none; color: var(--accent-color); font-size: 20px; z-index: 9997; animation: sprayAnim 1s forwards cubic-bezier(0.1, 0.8, 0.3, 1); }
@keyframes sprayAnim {
    0% { transform: translate(-50%, -50%) scale(0.2) rotate(0deg); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.5) rotate(var(--rot)); opacity: 0; }
}
@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline, .social-spray-icon { display: none !important; }
}

/* Animations Classes */
.reveal-up, .reveal-fade { opacity: 0; transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-up { transform: translateY(50px); }
.reveal-fade { transform: scale(0.95); }
.active.reveal-up { opacity: 1; transform: translate(0); }
.active.reveal-fade { opacity: 1; transform: scale(1); }

/* Responsive */
@media (max-width: 900px) {
    .h-carousel-track img { width: 350px; height: 250px; }
    .vertical-grid-container { height: 700px; gap: 15px; }
    .v-track img { height: 250px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { padding: 15px 20px; }
    .site-header.scrolled { padding: 10px 20px; }
    .btn-call { display: none; }
    .close-btn { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 2rem; }
    .main-nav ul li a { font-size: 2.5rem; }
    
    .vertical-grid-container { flex-direction: column; height: auto; mask-image: none; -webkit-mask-image: none; }
    .v-track { padding-bottom: 0; }
    .move-up .v-track, .move-down .v-track { animation: none !important; } /* Disable vertical scroll on mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .site-footer { padding: 60px 20px 20px; }
}