/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* ========= BRUTALIST THEME & GENERAL STYLES ========= */
:root {
    --bg-color: #111111;
    --bg-alt-color: #1c1c1c;
    --text-color: #f0f0f0;
    --accent-color: #ffff00; /* Brutalist yellow */
    --primary-font: 'Montserrat', sans-serif;
    --heading-font: 'Anton', sans-serif;
    --container-width: 1200px;
}
/* body[data-theme="light"] {
    --bg-color: #e9e9f2;
    --bg-alt-color: #f5f5fa;
    --text-color: #1a1a2e;
    --heading-color: #1a1a2e;
    --accent-color: #4a4a68; /* A muted, professional dark blue */
    /* --border-color: #dcdce6;
    --hero-overlay: rgba(255, 255, 255, 0.1);
    --hero-text-color: #1a1a2e;
} */

/* body[data-theme="dark"] {
    --bg-color: #111111;
    --bg-alt-color: #1c1c1c;
    --text-color: #f0f0f0;
    --heading-color: #f0f0f0;
    --accent-color: #ffff00; /* Brutalist yellow */
    /* --border-color: #333333;
    --hero-overlay: rgba(0, 0, 0, 0.5);
    --hero-text-color: #ffffff;
} */ 

/* ======================================= */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    /* This is the magic transition for the background */
    transition: background-color 0.8s ease, color 0.8s ease;
}

section { 
    background-color: var(--bg-color);
    transition: background-color 0.8s ease;
    padding: 100px 0;
}
footer {
    background-color: var(--bg-alt-color);
    transition: background-color 0.8s ease;
}


.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }
section.alt-bg { background-color: var(--bg-alt-color); }

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    text-transform: uppercase;
    line-height: 1.1;
}

h2 { font-size: 4rem; margin-bottom: 2rem; color: var(--accent-color); }
p { margin-bottom: 1rem; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }


/* ========= SCATTERED NAVIGATION & LINES ========= */
#nav-lines-svg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9; pointer-events: none;
}
.nav-line {
    stroke: var(--accent-color); stroke-width: 2px;
    animation: draw-line 2s ease-out forwards;
}
@keyframes draw-line {
    from { stroke-dashoffset: var(--line-length); }
    to { stroke-dashoffset: 0; }
}
.scattered-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; pointer-events: none;
}
.nav-item {
    position: absolute; padding: 25px; pointer-events: auto;
}
.nav-item.top-left     { top: 0; left: 0; }
.nav-item.top-right    { top: 0; right: 0; }
.nav-item.bottom-left  { bottom: 0; left: 0; }
.nav-item.bottom-right { bottom: 0; right: 0; }

.nav-item a {
    color: var(--text-color); text-decoration: none;
    font-family: var(--heading-font); font-size: 1.5rem;
    text-transform: uppercase; transition: color 0.3s ease;
}
.nav-item a:hover { color: var(--accent-color); }

.standard-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Must be on top of everything */
    padding: 15px 0;
    background: rgba(17, 17, 17, 0.85); /* Dark, semi-transparent background */
    backdrop-filter: blur(10px); /* Glassy effect for modern browsers */
    -webkit-backdrop-filter: blur(10px);

    /* Initially hidden */
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.standard-header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.standard-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.standard-header .logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
}

.standard-header nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.standard-header nav a:hover {
    color: var(--accent-color);
}


/* ========= SCATTERED NAVIGATION & LINES ========= */
#nav-lines-svg {
    /* ... same as before ... */
    transition: opacity 0.5s ease; /* Add transition */
}
.scattered-nav {
    /* ... same as before ... */
    transition: opacity 0.5s ease; /* Add transition */
}

/* NEW: Class to hide the scattered nav when scrolled */
.scattered-nav.hidden, #nav-lines-svg.hidden {
    opacity: 0;
    pointer-events: none;
}
/* ========= HERO SECTION ========= */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 50% transparent black overlay */
    z-index: 1;
}
.hero {
    height: 100vh;
    background: url('hero.jpg') no-repeat center center/cover;
    display: flex; 
    align-items: flex-start; /* Aligns marquee to the top */
    color: #fff; 
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%; /* Ensure it takes full width */
    padding-top: 30px;
}

/* MARQUEE STYLES */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  opacity: 1;
}

.marquee {
  display: inline-block;
  animation: marqueeMove 12s linear infinite;
}

.marquee span {
  display: inline-block;
  font-family: var(--heading-font);
  font-size: 7rem;
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  line-height: 1.2;
  padding-right: 2rem; /* spacing between repeats */
}

@keyframes marqueeMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* UPDATED: BUTTON CONTAINER */
.hero-button-container {
    position: absolute;
    top: 60%;
    left: 50px;
    transform: translateY(-50%); /* Centers the button vertically */
    z-index: 3;
    opacity: 1; /* Initially hidden */
    transition: opacity 1s ease 0.5s; /* Fade in animation */
}

.hero-button-container.visible {
    opacity: 0; /* Make it visible */
}

.hero-text-container {
    position: relative;
    z-index: 2;
    
    max-width: 700px;
    margin-top: 150px; /* move down */
    padding-left: 50px; /* Adjust this value to move content right */
}
@media (min-width: 768px) {
    .hero-text-container {
        margin-top: 120px;
    }
}
/* ========= COLLAGE SERVICES SECTION STYLES ========= */

.services-section h2 {
    text-align: center;
    margin-bottom: 5rem; /* Extra space */
    font-size: 6rem; /* Make the title huge */
    color: #ffff00; /* Muted, almost part of the background */
}

.collage-container {
    display: grid;
    grid-template-columns: 1fr; /* Each cluster gets its own row */
    gap: 8rem; /* Large gap between service clusters */
}

.service-cluster {
    position: relative; /* Essential for layering */
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid for precise placement */
    align-items: center;
    min-height: 300px;
}

/* The giant, faded icon in the background */
/* ========= UPDATED COLLAGE STYLES WITH IMAGES ========= */

/* The giant, faded image in the background */
.service-background-image {
    position: absolute;
    top: -10%; /* Allow image to bleed outside the cluster area */
    left: 0;
    width: 70%;
    height: 120%;
    opacity: 1; /* Slightly more opaque for images */
    z-index: 1; /* Behind the content */
    transition: transform 0.5s ease;
    overflow: hidden;
}

.service-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key: it scales the image to fill the container */
}

/* Update hover effect to target the new class */
.service-cluster:hover .service-background-image {
    transform: rotate(-5deg) scale(1.1);
}

/* Handle positioning for the reversed layout */
.service-cluster.reverse .service-background-image {
    left: auto;
    right: 0; /* Move image to the right */
}

/* Update hover for the reversed layout */
.service-cluster.reverse:hover .service-background-image {
    transform: rotate(5deg) scale(1.1);
}

/* In your responsive styles, update the class name to hide it on mobile */
@media(max-width: 768px) {
    /* ... other rules ... */
    .service-background-image { /* UPDATE THIS CLASS NAME */
        display: none; /* Hide the background image to avoid clutter */
    }
}
/* The text content */
.service-content {
    grid-column: 5 / 12; /* Place content from column 5 to 11 */
    z-index: 2; /* In front of the icon */
    background-color: var(--bg-alt-color); /* Give it a solid background */
    padding: 2rem;
    border: 1px solid #333;
    opacity: 0.9;
}



/* Style for the reversed layout clusters */
.service-cluster.reverse .service-content {
    grid-column: 2 / 9; /* Move content to the left side */
    text-align: right;
}



.service-content h3 {
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin: 0 0 1rem 0;
}

.service-content p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
}
/* ========= ASYMMETRIC GRID GALLERY STYLES ========= */
/* ========= WIDE-FORMAT 10-IMAGE GALLERY STYLES (ENHANCED) ========= */

:root {
    --animation-duration-fast: 0.4s;
    --animation-duration-slow: 0.6s;
    --easing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    --stagger-delay: 100ms;
}

.distorted-gallery-container {
    display: grid;
    /* An 8-column grid gives us great horizontal flexibility */
    grid-template-columns: repeat(8, 1fr);
    /* 6 rows that are fairly tall to still allow for nice compositions */
    grid-template-rows: repeat(6, 15vw);
    gap: 20px;
    margin-top: 5rem;
    padding: 1rem;
    transition-delay: 300ms;
}

.distorted-item {
    position: relative;
    overflow: hidden;
    transition: transform var(--animation-duration-fast) var(--easing-function), 
                filter var(--animation-duration-fast) var(--easing-function);
    /* --- ✨ NEW: Entry Animation --- */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* --- ✨ NEW: Staggered Animation Delay --- */
/* We apply a unique delay to each item to create a cascading effect */
.distorted-item:nth-child(1) { animation-delay: calc(1 * var(--stagger-delay)); }
.distorted-item:nth-child(2) { animation-delay: calc(2 * var(--stagger-delay)); }
.distorted-item:nth-child(3) { animation-delay: calc(5 * var(--stagger-delay)); }
.distorted-item:nth-child(4) { animation-delay: calc(3 * var(--stagger-delay)); }
.distorted-item:nth-child(5) { animation-delay: calc(4 * var(--stagger-delay)); }
.distorted-item:nth-child(6) { animation-delay: calc(6 * var(--stagger-delay)); }
.distorted-item:nth-child(7) { animation-delay: calc(7 * var(--stagger-delay)); }
.distorted-item:nth-child(8) { animation-delay: calc(8 * var(--stagger-delay)); }
.distorted-item:nth-child(9) { animation-delay: calc(9 * var(--stagger-delay)); }
.distorted-item:nth-child(10){ animation-delay: calc(10 * var(--stagger-delay));}


/* --- ✨ NEW: Keyframes for Entry Animation --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.distorted-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 2px solid #555;
    transition: transform var(--animation-duration-slow) var(--easing-function);
}


/* --- The Magic: Layout Prioritizing Horizontal Images (Unchanged) --- */
.distorted-item-1 { grid-column: 1 / 6; grid-row: 1 / 3; } /* WIDE */
.distorted-item-2 { grid-column: 6 / 9; grid-row: 1 / 3; }
.distorted-item-3 { grid-column: 3 / 7; grid-row: 3 / 5; } /* WIDE */
.distorted-item-4 { grid-column: 1 / 3; grid-row: 3 / 4; }
.distorted-item-5 { grid-column: 1 / 3; grid-row: 4 / 5; }
.distorted-item-10{ grid-column: 7 / 9; grid-row: 3 / 5; } /* Vertical accent */
.distorted-item-6 { grid-column: 1 / 5; grid-row: 5 / 7; } /* WIDE */
.distorted-item-7 { grid-column: 5 / 7; grid-row: 5 / 7; }
.distorted-item-8 { grid-column: 7 / 9; grid-row: 5 / 6; }
.distorted-item-9 { grid-column: 7 / 9; grid-row: 6 / 7; }


/* --- ✨ NEW: Advanced Hover Effects --- */

/* Add an animated border on hover using a pseudo-element */
.distorted-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid white;
    transform: scale(1.1);
    opacity: 0;
    transition: transform var(--animation-duration-fast) var(--easing-function), 
                opacity var(--animation-duration-fast) var(--easing-function);
    z-index: 1;
}

.distorted-item:hover {
    z-index: 10;
    transform: scale(1.03);
    filter: brightness(1.1); /* Slightly brighten the container on hover */
}

.distorted-item:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* On hover, create a subtle parallax effect by scaling the image more */
.distorted-item:hover img {
    transform: scale(1.1);
}


/* ========= RESPONSIVE FOR GALLERY (Unchanged) ========= */
@media(max-width: 768px) {
    .distorted-gallery-container {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 45vw;
    }
    .distorted-item-1, .distorted-item-2, .distorted-item-3, .distorted-item-4,
    .distorted-item-5, .distorted-item-6, .distorted-item-7, .distorted-item-8,
    .distorted-item-9, .distorted-item-10 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ========= RESPONSIVE DESIGN FOR COLLAGE ========= */
@media(max-width: 992px) {
    .service-background-icon {
        font-size: 12rem; /* Smaller icons on tablets */
    }
    .service-content {
        grid-column: 3 / 13; /* Use more of the screen */
    }
    .service-cluster.reverse .service-content {
        grid-column: 1 / 11;
    }
}

@media(max-width: 768px) {
    .services-section h2 {
        font-size: 3.5rem; /* Adjust title size for mobile */
    }
    .collage-container {
        gap: 4rem; /* Reduce gap on mobile */
    }
    /* Stack everything cleanly on mobile */
    .service-cluster, .service-cluster.reverse {
        display: block; /* Remove the grid layout */
        text-align: center;
    }
    /* .service-background-icon {
        display: none; /* Hide the background icon to avoid clutter 
    } */
    .service-content {
        text-align: center !important;
        border-width: 2px;
    }
}


/* ========= GOOGLE STREET VIEW SECTION STYLES ========= */

/* ========= 360 VIRTUAL TOUR SECTION STYLES ========= */
#virtual-tours {
    padding: 100px 0; /* Ensures consistent section spacing */
}

.street-view-title {
    text-align: center;
    font-size: 4rem; /* Matches other section h2 titles */
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.street-view-grid {
    display: grid;
    /* Create a 2x2 grid on larger screens */
    grid-template-columns: repeat(2, 1fr);
    gap: 25px; /* Spacing between grid items */
}

.street-view-wrapper {
    position: relative;
    /* Modern CSS for a responsive 16:9 aspect ratio */
    aspect-ratio: 16 / 9; 
    overflow: hidden; /* Important for keeping the iframe contained */
    border: 2px solid #333; /* Default border matching the theme */
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.street-view-wrapper:hover {
    transform: scale(1.03); /* Slightly enlarge on hover */
    border-color: var(--accent-color); /* Highlight with accent color on hover */
}

.street-view-wrapper iframe {
    /* Make the iframe fill its wrapper perfectly */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Responsive Adjustments for Virtual Tours --- */
@media(max-width: 768px) {
    .street-view-title {
        font-size: 2.5rem; /* Adjust title for mobile */
    }
    
    .street-view-grid {
        /* Stack the tours in a single column on mobile */
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Adjustments --- */
@media(max-width: 768px) {
    .street-view-title {
        font-size: 2rem;
    }
    
    .street-view-wrapper {
        /* Use a more vertical aspect ratio on mobile */
        aspect-ratio: 4 / 3;
    }
}
/* ========= IMAGE GALLERY SECTION (Final Polished Layout) ========= */
/* ========= IMAGE GALLERY SECTION (Final Polished & Expanded Layout) ========= */
.image-gallery-section {
    padding: 100px 0;
    background-color: var(--bg-color, #111111);
}

.image-gallery-section .section-title {
    color: var(--accent-color,#ffff00);
    font-family: var(--heading-font, 'Anton', sans-serif);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.image-gallery-section .section-subtitle {
     color: var(--text-color, #f0f0f0);
     font-family: var(--primary-font, 'Montserrat', sans-serif);
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 15px;
    margin-top: 50px;
}

.gallery-item {
    overflow: hidden;
    border: 2px solid var(--bg-alt-color, #1c1c1c);
    transition: border-color 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--accent-color, #ffff00);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* --- THE GUARANTEED GAP-FREE LAYOUT --- */

/* Rules for the first 8 items (Unchanged) */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item:nth-child(2) {
    grid-column: span 2;
}
.gallery-item:nth-child(3) {
    grid-row: span 2;
}
.gallery-item:nth-child(6) {
    grid-row: span 2;
}
.gallery-item:nth-child(9) {
    grid-column: span 2; /* This wide image starts the row below the main block */
}


/* 
  THE FIX: NEW RULES TO FIT 3 IMAGES IN ONE ROW
  We make one image wide (span 2) and two standard (span 1) to perfectly fill 4 columns.
*/

/* Item 10 is wide, taking up half the row. */
.gallery-item:nth-child(10) {
    grid-column: span 2;
}

/* Items 11 and 12 will automatically flow into the next two standard-sized (span 1) slots,
   completing the row perfectly with no gaps. No extra rules are needed for them. */


/* To prevent a gap, the final item (#13) must be a full-width banner */
.gallery-item:nth-child(13) {
    grid-column: span 4;
}


/* --- RESPONSIVE STYLES (Updated to reflect the new layout) --- */
@media (max-width: 992px) {
    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) { grid-row: span 2; }
    .gallery-item:nth-child(3) { grid-row: span 2; }
    .gallery-item:nth-child(6) { grid-row: span 2; }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(9),
    .gallery-item:nth-child(10), /* Make this one wide on tablet too */
    .gallery-item:nth-child(13) {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .image-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 320px;
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ========= IMPROVISED HORIZONTAL SCROLLING GALLERY ========= */

/* Base styles for the section wrapper */
.image-gallery-section {
    padding: 100px 0;
    background-color: var(--bg-color, #111111);
}
.image-gallery-section.alt-bg {
    background-color: var(--bg-alt-color, #1c1c1c);
}
.image-gallery-section .section-title,
.image-gallery-section .section-subtitle {
    color: var(--accent-color, #ffff00);
    font-family: var(--heading-font, 'Anton', sans-serif);
    text-transform: uppercase;
}
.image-gallery-section .section-subtitle {
    color: var(--text-color, #f0f0f0);
     font-family: var(--primary-font, 'Montserrat', sans-serif);
     text-transform: none;
}

/* NEW: Wrapper to create fading edges, indicating scroll */
.filmstrip-wrapper {
    position: relative;
}

.filmstrip-wrapper::before,
.filmstrip-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px; /* How wide the fade effect is */
    z-index: 2;
    pointer-events: none; /* Allows scrolling/clicking through the fade */
}

.filmstrip-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
/* Adapts to the alternate background color if used */
.image-gallery-section.alt-bg .filmstrip-wrapper::before {
    background: linear-gradient(to right, var(--bg-alt-color), transparent);
}

.filmstrip-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}
.image-gallery-section.alt-bg .filmstrip-wrapper::after {
    background: linear-gradient(to left, var(--bg-alt-color), transparent);
}


/* The Filmstrip Container */
.filmstrip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px; /* Space between brand items */
    margin-top: 50px;
    padding: 20px 60px; /* Padding to prevent items from touching the fade */
    scrollbar-width: none; /* Hides scrollbar on Firefox */
    -ms-overflow-style: none; /* Hides scrollbar on IE/Edge */
    perspective: 1500px; /* Creates the 3D space for the tilt effect */
}
.filmstrip::-webkit-scrollbar {
    display: none; /* Hides scrollbar on Chrome/Safari */
}

/* --- Styling for each individual Brand Item --- */
.filmstrip .gallery-item.brand-logo {
    position: relative; /* Essential for the overlay */
    flex: 0 0 625px; /* Each item has a fixed width of 400px */
    height: 375px; /* And a fixed height */
    border-radius: 10px; /* Slightly rounded corners */
    overflow: hidden; /* Hides the part of the image that zooms out */
    border: 2px solid #444;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    
    /* The main transition for the hover effect */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.5s ease;
    
    /* Initial 3D state */
    transform: scale(0.95);
}

.filmstrip .gallery-item.brand-logo:hover {
    transform: scale(1.03) translateY(-10px); /* Lifts up and grows */
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255, 255, 0, 0.5); /* Adds a shadow and a yellow glow */
    z-index: 10;
}

/* --- Styling for the image inside the item --- */
.gallery-item.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container */
    transition: transform 0.6s ease-out; /* Smooth zoom transition */
}

.gallery-item.brand-logo:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* --- Styling for the text overlay that appears on hover --- */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 25px 25px; /* Padding for the text and gradient */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    /* A gradient from black to transparent for readability */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 30%, transparent);
    
    /* Initial hidden state */
    opacity: 0;
    transform: translateY(15px); /* Starts slightly lower */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.brand-logo:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0); /* Slides up into view */
}

.gallery-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    color: var(--accent-color);
}

.gallery-category {
    font-family: var(--primary-font);
    font-size: 1rem;
    margin: 5px 0 0 0;
    color: #f0f0f0;
    font-weight: bold;
}


/* --- Item Styling --- */

/* Base styles for ALL items */
.filmstrip .gallery-item {
    flex: 0 0 auto;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.filmstrip .gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color, #ffff00);
}

/* Styles for Brand Logos (Unchanged Size) */
.gallery-item.brand-logo {
    width: 650px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-alt-color, #1c1c1c);
}
.brand-logo span {
    font-family: var(--heading-font, 'Anton', sans-serif);
    font-size: 1.8rem;
    color: var(--text-color, #f0f0f0);
    opacity: 0.8;
}

/* Styles for Photo Items (NEW, WIDER SIZES) */
.filmstrip .gallery-item:not(.brand-logo) {
    width: 650px;  /* Increased from 320px for a much wider feel */
    height: 400px; /* Increased height to maintain a good aspect ratio */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-color, #ffff00);
  border: none;
  font-size: 2.5rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
  transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 0, 0.8);
  color: #111;
  transform: translateY(-50%) scale(1.1);
}

.left-arrow {
  left: 15px;
}

.right-arrow {
  right: 15px;
}


@media (max-width: 576px) {
    /* Brand logos on mobile */
    .filmstrip .gallery-item.brand-logo { width: 60vw; height: 50vw; }
    
    /* WIDER photo items on mobile, taking up more of the screen */
    .filmstrip .gallery-item:not(.brand-logo) { 
        width: 85vw; /* Increased from 70vw */
        height: 110vw;/* Increased from 90vw */
    }
}


/* ========= VIDEO GALLERY SECTION (Updated with Color Palette) ========= */
/* ========= VIDEO GALLERY SECTION (Corrected Layout) ========= */
.video-gallery-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-color, #111111); 
    color: var(--text-color, #f0f0f0);
}

.video-gallery-section .section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-family: var(--heading-font, 'Anton', sans-serif);
    color: var(--accent-color, #ffff00);
    text-transform: uppercase;
}

.video-gallery-section .section-subtitle {
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: var(--primary-font, 'Montserrat', sans-serif);
    color: var(--text-color, #f0f0f0);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.video-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--bg-alt-color, #1c1c1c);
    background-color: var(--bg-alt-color, #1c1c1c); 
    transition: transform 0.3s ease, border-color 0.3s ease;
    
    /* This fixes the inconsistent item sizes */
    aspect-ratio: 9/ 16; 
}

.video-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color, #ffff00);
}

/* Correct rule for the <video> element */
.video-item .video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Behind the overlay */
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.7;
}

.video-item:hover .video-background {
    transform: scale(1.05);
    opacity: 1;
}


/* .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure overlay is on top of video */
    /* background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
} */ 

/* .video-item:hover .video-overlay {
    background: rgba(0, 0, 0, 0.2); 
} */
/* 
.video-overlay .fa-play {
    color: var(--accent-color, #ffff00);
    font-size: 50px;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    transition: transform 0.3s ease;
} */

.video-item:hover .video-overlay .fa-play {
    transform: scale(1.2);
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1; /* Ensure title is on top of video */
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
    color: var(--text-color, #f0f0f0);
    font-family: var(--heading-font, 'Anton', sans-serif);
    font-size: 1.3rem;
    text-align: left;
    transition: bottom 0.3s ease;
}

/* No changes needed for the modal below this line */

/* ========= VIDEO MODAL (Updated with Color Palette) ========= */
.video-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(17, 17, 17, 0.95); 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex; 
    opacity: 1;
}

.video-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 0;
    padding-bottom: 50.625%;
}

.video-modal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color, #ffff00);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--accent-color, #ffff00);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-color, #f0f0f0);
    transform: rotate(90deg);
    text-decoration: none;
}
/* ========= DYNAMIC SCROLL ANIMATIONS ========= */
.hidden { opacity: 0; filter: blur(5px); transform: translateY(30px); transition: all 1s ease-out; }
.show { opacity: 1; filter: blur(0); transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: 200ms; }
.service-card:nth-child(3) { transition-delay: 400ms; }

/* ========= BUTTONS ========= */
.btn { display: inline-block; padding: 12px 35px; border: 2px solid var(--accent-color); text-decoration: none; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; margin-top: 1rem; }
.btn-outline { color: var(--accent-color); background-color: transparent; }
.btn-outline:hover { background-color: var(--accent-color); color: var(--bg-color); }
.btn-dark { background-color: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }
.btn-dark:hover { background-color: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }

/* ========= OTHER SECTIONS ========= */
.vision-section h2 { text-align: center; font-size: 6rem; color: #333; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.service-card { background-color: var(--bg-alt-color); padding-bottom: 20px; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.service-card:hover { transform: translateY(-10px); }
.service-card h3 { margin: 1rem 0 0.5rem; color: var(--accent-color); }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-column.reverse .column-text { order: 2; }
.two-column.reverse .column-content { order: 1; }

.booking-placeholder { background: var(--bg-color); padding: 30px; }
.booking-placeholder h3 { font-size: 1.2rem; color: var(--accent-color);}
.booking-placeholder hr { margin: 20px 0; border: 1px solid #333; }

.accordion-item { border-bottom: 1px solid #444; }
.accordion-header { background: none; border: none; width: 100%; text-align: left; padding: 1rem 0; font-size: 1.2rem; font-family: var(--heading-font); color: var(--text-color); cursor: pointer; position: relative; }
.accordion-header::after { content: '+'; position: absolute; right: 0; font-size: 1.5rem; color: var(--accent-color); transition: transform 0.3s ease; }
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }

/* ========= CONTACT SECTION (UNIQUE TERMINAL STYLE) ========= */
.contact-section {
    position: relative;
    overflow: hidden; /* Prevents glitch effect from spilling out */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10-column grid for precise overlap */
    align-items: center;
    min-height: 70vh;
}

.contact-image-wrapper {
    grid-column: 4 / 11; /* Position image to the right */
    grid-row: 1;
    position: relative;
    z-index: 1;
}

/* Scanline effect for the image */
.contact-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            rgba(0, 0, 0, 0.5), 
            rgba(0, 0, 0, 0.5) 1px, 
            transparent 1px, 
            transparent 3px
        );
    z-index: 2;
}

.contact-image-wrapper img {
    width: 100%;
    height: auto;
    filter: grayscale(0.7) brightness(0.8); /* Mute the image */
}

.contact-form-wrapper {
    grid-column: 1 / 8; /* Overlap the image on the left */
    grid-row: 1;
    z-index: 2; /* Place form on top of the image */
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem;
    border: 1px solid #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increase gap between form elements */
}

/* Style for the new label/input groups */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #1c1c1c; /* Use alt background to "cut out" the border */
    padding: 0 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s, top 0.3s;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 2px solid #555;
    padding: 18px 15px 10px; /* Adjust padding to make space for label */
    font-family: var(--primary-font);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Makes the label pop even more on focus */
.contact-form input:focus + label,
.contact-form textarea:focus + label {
    color: #fff;
}

/* == GLITCH BUTTON STYLES == */
.glitch-submit {
    position: relative;
    width: fit-content; /* Make button only as wide as its content */
}

.glitch-submit:hover {
    animation: glitch 0.4s steps(2, end) infinite;
}

/* Keyframes for the glitch animation */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  to { transform: translate(0); }
}

/* Creating the colored text-shadow effect for the glitch */
.glitch-submit::before,
.glitch-submit::after {
    content: 'Submit';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    color: var(--bg-color);
    opacity: 0;
    clip-path: inset(0);
    transition: opacity 0.3s ease;
}

.glitch-submit:hover::before {
    transform: translate(-3px, -2px);
    opacity: 1;
    color: #ff003c; /* Red glitch */
    mix-blend-mode: screen;
    animation: glitch-clip 0.4s steps(2, end) infinite reverse;
}

.glitch-submit:hover::after {
    transform: translate(3px, 2px);
    opacity: 1;
    color: #00ffc4; /* Cyan glitch */
    mix-blend-mode: screen;
    animation: glitch-clip 0.4s steps(2, end) infinite;
}

@keyframes glitch-clip {
    0% { clip-path: inset(50% 0 30% 0); }
    20% { clip-path: inset(10% 0 85% 0); }
    40% { clip-path: inset(70% 0 5% 0); }
    60% { clip-path: inset(40% 0 40% 0); }
    80% { clip-path: inset(90% 0 2% 0); }
    to { clip-path: inset(60% 0 30% 0); }
}


/* -- Responsive for the Contact Section -- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .contact-image-wrapper,
    .contact-form-wrapper {
        grid-column: 1 / -1; /* Make both full-width */
    }
    .contact-image-wrapper {
        display: none; /* Hide image on mobile to focus on the form */
    }
    .contact-form-wrapper {
        padding: 2rem;
        backdrop-filter: none; /* Can be slow on mobile */
        background: var(--bg-alt-color); /* Use a solid background */
    }
}

/* ========= FOOTER STYLES (ENHANCED) ========= */
.site-footer-main {
    background-color: var(--bg-alt-color);
    padding: 80px 0 0; /* Add padding only to the top */
    border-top: 2px solid #333;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    /* Create 3 columns on desktop, stacking automatically on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px; /* Space between grid and bottom bar */
}

.footer-column h3 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    font-size: 1.75rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-column p {
    line-height: 1.8;
    color: #a0a0a0; /* Slightly lighter than main text for hierarchy */
    margin-bottom: 1rem;
}

.footer-column a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-phone a {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Social Media Icons Styling */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 1.5rem;
}

.social-icons a {
    color: #777;
    font-size: 1.5rem; /* Increase icon size */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px); /* Add a hover effect */
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive adjustments for footer grid on smaller screens */
@media(max-width: 768px) {
    .footer-grid {
        text-align: center;
    }
    .social-icons {
        justify-content: center; /* Center icons when columns are stacked */
    }
}
/* ========= RESPONSIVE DESIGN ========= */
@media(max-width: 768px) {
    h2 { font-size: 2.5rem; }
    
    .marquee span { font-size: 3rem; }

    .vision-section h2 { font-size: 3rem; }
    .service-grid, .two-column, .two-column.reverse, .footer-grid { grid-template-columns: 1fr; }
    .two-column.reverse .column-text, .two-column.reverse .column-content { order: 0; }
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}

.whatsapp-btn img {
  width:  70px;
  height: 70px;
  display: block;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
}