/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fixed Logo Background */
.logo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-image: url('images/mo photos logo light frame.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1100;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text-light);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    list-style: none;
    min-width: 200px;
    padding: var(--spacing-xs) 0;
    margin-top: var(--spacing-xs);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

.book-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.book-btn:hover {
    background: var(--text-light);
    transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation Overlay */
@media (max-width: 968px) {
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

/* Mobile Navigation Sidebar */
    .hamburger-menu {
        display: flex;
        order: 3;
        position: relative;
        z-index: 1003;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
        z-index: 1002;
    }

    .book-btn {
        order: 2;
        flex: 0 0 auto;
        margin: 0 auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--spacing-md) var(--spacing-md);
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
        pointer-events: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-sm) 0;
        width: 100%;
        font-size: 1rem;
        pointer-events: auto;
        color: var(--text-dark);
    }

    .nav-menu .dropdown {
        width: 100%;
    }

    .nav-menu .dropdown-toggle {
        width: 100%;
        padding: var(--spacing-sm) 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
    }

    /* Ensure dropdown doesn't change height when active */
    .nav-menu .dropdown > a {
        min-height: 44px;
        height: auto;
        display: flex;
        align-items: center;
    }

    /* Dropdown menu - cutout style, only shows on click in mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: var(--accent-color);
        padding: 0;
        margin: var(--spacing-xs) 0 0 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        border-radius: var(--border-radius);
        list-style: none;
        pointer-events: auto;
    }

    /* Disable hover on mobile - only click works */
    .dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: var(--spacing-xs) 0;
    }

    .dropdown-menu li {
        padding: 0;
        margin: 0;
    }

    .dropdown-menu a {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
        display: block;
        pointer-events: auto;
        color: var(--text-dark);
    }
}

/* Hero Section - Carousel */
.hero-parallax {
    position: relative;
    margin-top: 70px;
    padding-top: 0;
    height: calc(100vh - 70px);
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    color: var(--secondary-color);
    animation: fadeInUp 0.8s ease-out;
}

/* Gallery Hero - Left Aligned */
.gallery-hero .hero-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: var(--spacing-xl);
}

.gallery-hero-content {
    text-align: left;
    max-width: 800px;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-dot.active {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.25);
}

.hero-dot.active .dot-progress {
    animation: progressAnimation 5s linear forwards;
}

.dot-number {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--secondary-color) 0deg, var(--secondary-color) 0deg, transparent 0deg);
    z-index: 1;
    opacity: 0.3;
}

.hero-dot.active .dot-progress {
    opacity: 0.5;
}

@keyframes progressAnimation {
    from {
        background: conic-gradient(var(--secondary-color) 0deg, var(--secondary-color) 0deg, transparent 0deg);
    }
    to {
        background: conic-gradient(var(--secondary-color) 360deg, var(--secondary-color) 360deg, transparent 360deg);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-button.large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    min-height: 500px;
}


/* Value Proposition Section */
.value-prop {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 245, 245, 0.75);
    position: relative;
    z-index: 2;
}

.value-prop-content {
    text-align: center;
    max-width: 2000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-md);
}

.value-card {
    padding: 0;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card-image {
    width: 100%;
    overflow: hidden;
}

.value-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Round corners for value-card-image in perspective section */
.perspective-item .value-card-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.value-card h3,
.value-card p {
    padding: 0 var(--spacing-lg);
}

.value-card h3 {
    padding-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
}

.value-card p {
    padding-bottom: var(--spacing-lg);
}

.value-card-full {
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--accent-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.value-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.value-card h3,
.value-card-full h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.value-card p,
.value-card-full p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Portrait Trio - Three portraits side by side */
.portrait-trio {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin-top: var(--spacing-lg);
    gap: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.portrait-trio .portrait-image {
    flex: 1;
    width: 33.333%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.portrait-trio .portrait-image:first-child {
    object-position: center left;
}

.portrait-trio .portrait-image:last-child {
    object-position: center right;
}

/* Featured Gallery Section */
.featured-gallery {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 245, 245, 0.75);
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* --- GALLERY GRID FIXES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-md);
    /* "Dense" helps fill small gaps automatically */
    grid-auto-flow: dense; 
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    /* Ensure image fills the container */
    display: flex; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- COLUMN SPANS --- */
/* Large Feature (16:9) - Takes up 2/3rds width */
.gallery-item.spotlight {
    grid-column: span 8;
    aspect-ratio: 16 / 9;
}

/* Vertical Portrait (2:3) - Takes up 1/3rd width */
.gallery-item.portrait-23 {
    grid-column: span 4;
    aspect-ratio: 2 / 3;
}

/* Small Landscape (16:9) - Takes up 1/3rd width */
.gallery-item.landscape-169 {
    grid-column: span 4;
    aspect-ratio: 16 / 9;
}

/* Wide Landscape (3:2) - Takes up 1/2 width */
.gallery-item.landscape-23 {
    grid-column: span 6;
    aspect-ratio: 3 / 2;
}

/* --- NEW HELPER: The Vertical Stack --- */
/* This allows us to stack 2 small landscapes to match 1 spotlight */
.gallery-stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.gallery-stack.span-4 {
    grid-column: span 4;
}

/* --- ADVANCED GRID UTILITIES --- */

/* Width Overrides (Columns) */
.w-4  { grid-column: span 4; }
.w-6  { grid-column: span 6; }
.w-8  { grid-column: span 8; }
.w-12 { grid-column: span 12; }

/* Height Overrides (Rows) */
/* This is the magic class for "Tall" images */
.h-2 { 
    grid-row: span 2; 
    height: 100%; /* Force image to fill the tall slot */
}

/* Ensure images in tall slots don't shrink */
.h-2 img {
    height: 100%;
    object-fit: cover;
}

/* On Mobile, reset everything to 1 column */
@media (max-width: 968px) {
    /* 1. Switch Gallery to 2 Columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Two equal columns */
        gap: var(--spacing-sm); /* Tighter gap for mobile */
        grid-auto-flow: dense; /* The "Tetris" engine that fills gaps */
    }

    /* 2. Reset Widths: Most items become 1 column wide (half screen) */
    .gallery-item.spotlight,
    .gallery-item.portrait-23,
    .gallery-item.landscape-169,
    .gallery-item.landscape-23,
    .gallery-stack.span-4,
    .w-4, .w-6, .w-8 {
        grid-column: span 1 !important;
        
        /* CRITICAL: Do NOT reset aspect-ratio. 
           Keeping the 16/9 or 2/3 ratios ensures we get 
           distinct "Short" and "Tall" blocks that fit together. */
    }

    /* 3. Exceptions: Full Width Items */
    /* If you have a huge panorama (w-12), keep it full width */
    .w-12 {
        grid-column: span 2 !important;
    }

    /* 4. The "Tall" Items Logic */
    /* Ensure tall items (like the ones in Block D/E) keep their 2-row height */
    .h-2 {
        grid-row: span 2 !important;
        height: 100%;
    }

    /* 5. Handle the "Stack" (The column of 2 images) */
    /* In a 2-col grid, the stack sits in one column and naturally 
       equals the height of a 'h-2' item or 2 standard items. */
    .gallery-stack {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d0d0d0 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Dual Perspective Section */
.dual-perspective {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 245, 245, 0.75);
    position: relative;
    z-index: 2;
}

.perspective-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.perspective-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.perspective-item.reverse {
    direction: rtl;
}

.perspective-item.reverse > * {
    direction: ltr;
}

.perspective-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.perspective-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.perspective-image .image-placeholder {
    height: 100%;
    min-height: 500px;
    border-radius: var(--border-radius);
}

.perspective-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.perspective-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background: rgba(245, 245, 245, 0.75);
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 100%;
}

/* Limit services grid to max 3 columns */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 700px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-image .image-placeholder {
    width: 100%;
    height: auto;
    min-height: 250px;
}

.service-card h3 {
    font-size: 1.5rem;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.service-card p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-light);
}

/* Large Gallery Section - Masonry Style */
.large-gallery {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 2;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: var(--spacing-md);
}

.masonry-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item.wide {
    grid-column: span 2;
}

.masonry-item .image-placeholder {
    height: 100%;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--secondary-color);
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
}

.cta-section .cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.cta-section .cta-button:hover {
    background: var(--accent-color);
}

/* Footer */
.footer {
    background: rgba(26, 26, 26, 0.95);
    color: var(--secondary-color);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-parallax {
        margin-top: 70px;
        height: calc(80vh - 70px);
        min-height: 500px;
    }

    .hero-dots {
        bottom: 20px;
        gap: 8px;
    }

    .hero-dot {
        width: 40px;
        height: 40px;
    }

    .dot-number {
        font-size: 0.8rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .gallery-hero .hero-slide {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .gallery-hero-content {
        text-align: center;
    }

    .perspective-item {
        grid-template-columns: 1fr;
    }

    .perspective-item.reverse {
        direction: ltr;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item.spotlight {
        grid-column: span 4;
        grid-row: span 3;
        aspect-ratio: 16 / 9;
    }
    
    .gallery-item.portrait-23 {
        grid-column: span 2;
        grid-row: span 3;
        aspect-ratio: 2 / 3;
    }
    
    .gallery-item.landscape-169 {
        grid-column: span 4;
        grid-row: span 2;
        aspect-ratio: 16 / 9;
    }
    
    .gallery-item.landscape-169.wide {
        grid-column: span 4;
        grid-row: span 2;
        aspect-ratio: 16 / 9;
    }
    
    .gallery-item.landscape-23 {
        grid-column: span 4;
        grid-row: span 2;
        aspect-ratio: 3 / 2;
    }

    .masonry-item.wide {
        grid-column: span 1;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: var(--spacing-xs) 0;
        margin-top: 0;
    }

    .dropdown-menu a {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-parallax {
        margin-top: 70px;
        height: calc(70vh - 70px);
        min-height: 400px;
    }

    .hero-dots {
        bottom: 15px;
        gap: 6px;
    }

    .hero-dot {
        width: 35px;
        height: 35px;
    }

    .dot-number {
        font-size: 0.75rem;
    }

    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .value-cards {
        grid-template-columns: 1fr;
    }

    .value-card-full {
        padding: var(--spacing-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.spotlight,
    .gallery-item.portrait-23,
    .gallery-item.landscape-169,
    .gallery-item.landscape-169.wide,
    .gallery-item.landscape-23 {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item.spotlight {
        aspect-ratio: 16 / 9;
    }
    
    .gallery-item.portrait-23 {
        aspect-ratio: 2 / 3;
    }
    
    .gallery-item.landscape-169,
    .gallery-item.landscape-169.wide {
        aspect-ratio: 16 / 9;
    }
    
    .gallery-item.landscape-23 {
        aspect-ratio: 3 / 2;
    }
    
    .portrait-trio .portrait-image {
        aspect-ratio: 2 / 3;
    }

    .masonry-gallery {
        grid-template-columns: 1fr;
    }

    .masonry-item.tall {
        grid-row: span 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item,
.masonry-item,
.service-card {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile & Tablet Styles (Max Width: 968px) */
@media (max-width: 968px) {
    
    /* 1. GALLERY: Switch to Masonry (Gravity) Layout */
    .gallery-grid {
        display: block; /* Disable Grid */
        column-count: 2; /* Create 2 vertical columns */
        column-gap: var(--spacing-sm);
    }

    /* 2. ITEMS: Make them fall naturally */
    .gallery-item {
        /* Prevent items from being split between columns */
        break-inside: avoid; 
    
        /* Add space at the bottom since we lost grid-gap */
        margin-bottom: var(--spacing-sm);
    
        /* Reset all grid positioning */
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100%; /* Force full width of the column */
        display: block; /* Ensure they behave as blocks */
    }
    
}

    /* 3. EXCEPTIONS: Fix specific weirdness */
    /* Ensure images display correctly in this new mode */
    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Hide the "Stack" container's internal gap since it's now just a wrapper */
    .gallery-stack {
        display: block;
        gap: 0;
    }
    /* Ensure items INSIDE a stack also have bottom margin */
    .gallery-stack .gallery-item {
        margin-bottom: var(--spacing-sm);
    }

