@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=SF+Pro+Display:wght@400;600;700&display=swap');

:root {
    --bg-light: #f5f5f7;        /* Crisp iOS backdrop */
    --bg-card: #ffffff;         /* Card panels */
    --accent: #b08d26;          /* Deep rich gold contrast for light mode */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.06);
    --text-main: #1d1d1f;       /* Deep Apple dark charcoal text */
    --text-muted: #86868b;     /* Mid gray for captions */
    --input-border: #d2d2d7;    /* Subtle borders */
    --ios-easing: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'SF Pro Display', 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
}

/* --- Light Mode Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4rem; /* Tightened height padding for a sleeker bar */
    position: fixed;
    width: 92%;
    top: 20px;
    left: 4%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75); /* Elevated opacity slightly for signature legibility */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Section Slideshow (With Light Shield) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 6rem;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.8s ease-in-out, transform 8s linear;
}

/* A clean, bright semi-transparent overlay to ensure readability over shots */
.slide::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Strong tint on the left for text, completely clear by 75% width */
    background: linear-gradient(
        to right, 
        rgba(245, 245, 247, 0.95) 0%, 
        rgba(245, 245, 247, 0.65) 35%, 
        rgba(245, 245, 247, 0.1) 65%, 
        rgba(245, 245, 247, 0) 75%
    );
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    color: #424245;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.btn-ios {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-main);
    color: var(--bg-card);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.4s var(--ios-easing), background-color 0.4s;
}

.btn-ios:hover {
    transform: scale(1.03) translateY(-2px);
    background: #424245;
}

/* --- Gallery Portfolio Section --- */
.gallery-section {
    padding: 8rem 6rem;
    background: var(--bg-card);
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
}

.gallery-filters {
    display: flex;
    margin: 3rem 0;
    gap: 0.5rem;
    background: #e8e8ed;
    padding: 6px;
    border-radius: 14px;
    width: max-content;
}

.filter-btn {
    cursor: pointer;
    padding: 0.6rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s var(--ios-easing);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    grid-gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
    background: #e8e8ed;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    transition: opacity 0.4s ease;
}

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

.gallery-item .overlay span {
    color: #fff;
    font-weight: 500;
}

/* --- Booking Section (FIXED LABELS AND INPUTS COLLAPSE FROM image_3273df.png) --- */
.booking-section {
    padding: 8rem 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
}

.booking-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.booking-info h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.booking-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--accent);
    margin-right: 12px;
}

/* Form Container Repair */
.booking-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem; /* Uniform spacing */
}

/* Enforcing clear stack to fix alignment crash */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.6rem; 
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-main);
}

/* Layout repair blocks making fields expand fully instead of shrinking to text scale */
input, select, textarea {
    width: 100%; 
    background: #f5f5f7;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none; /* Modern resets for dropdown boxes */
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%231d1d1f' d='M0 0h10L5 6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    background: var(--bg-card);
    border-color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

.btn-ios-submit {
    width: 100%;
    background: var(--text-main);
    color: var(--bg-card);
    font-weight: 600;
    border: none;
    border-radius: 14px;
    padding: 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 0.5rem;
}

.btn-ios-submit:hover {
    background: #424245;
}

/* --- Footer --- */
footer {
    padding: 3rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 2rem;
}

.social-icons a {
    color: var(--text-main);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .navbar { width: 94%; left: 3%; padding: 1rem; }
    .hero { padding-left: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .gallery-section, .booking-section { padding: 4rem 2rem; }
    .booking-container { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; gap: 1.8rem; }
    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* Real-time iOS style validation colors */
input:focus:invalid, textarea:focus:invalid {
    border-color: #ff3b30; /* Soft iOS Red for errors */
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.08);
}

/* Optional styling for a small asterisk next to labels to indicate mandatory status */
label[for="name"]::after,
label[for="email"]::after,
label[for="mobile"]::after,
label[for="session-type"]::after,
label[for="notes"]::after {
    content: " *";
    color: #ff3b30;
}

/* --- Nested Portfolio Gallery Slideshow --- */
.gallery-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.mini-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Ensure overlay stays cleanly layered on top of the mini slideshow */
.gallery-item .overlay {
    z-index: 2;
}

/* --- Logo Asset Layout Tuning --- */
.logo {
    display: flex;
    align-items: center;
    width: 280px;         /* Give it plenty of horizontal layout space */
    height: 80px;         /* Height limit baseline */
    overflow: visible;    /* CRITICAL: Allows the zoomed logo to pop out of its bounding box */
    position: relative;
}

.logo img {
    height: 220px;        /* Blow up the container size to fight the dead canvas space */
    width: auto;          /* Keep proportions completely locked */
    object-fit: contain; 
    
    /* Crop & Scale Engine */
    transform: scale(1.2); /* Amplifies the internal pixels directly */
    transform-origin: left center;
    
    /* Pulls the image up and left to strip away the giant empty invisible border padding */
    margin-top: 6.5px;     
    margin-left: -20px;   
    
    filter: brightness(0.15); /* Ensures the ultra-thin lines turn crisp dark charcoal */
    transition: transform 0.3s var(--ios-easing);
}

.logo img:hover {
    transform: scale(1.5); /* Subtle smooth micro-pop when hovered */
}

/* --- Portrait Sub-Page Editorial Layout --- */
body.sub-page {
    padding-top: 140px; /* Gives plenty of room under the floating navbar */
    background-color: #ffffff; /* Pristine editorial white */
}

.project-header {
    padding: 4rem 6rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-main);
}

.project-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
}

.project-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #424245;
    max-width: 700px;
}

/* --- High-End Multi-Aspect Photo Grid --- */
.project-showcase {
    padding: 2rem 6rem 6rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2-Column CSS Grid that handles masonry cleanly */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 40px;
    align-items: start;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Vertical / Portrait image boxes */
.showcase-item.vertical img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3; /* Matches standard camera sensor orientation */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.02);
}

/* Horizontal / Landscape image boxes span across columns if needed or fit cleanly */
.showcase-item.horizontal img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.02);
}

.image-caption {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- Bottom Call To Action Banner --- */
.project-cta {
    padding: 6rem 2rem;
    text-align: center;
    background: #f5f5f7;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.project-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-cta p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* --- Fluid iOS Page Load Animation --- */
.animate-up {
    animation: iosSlideUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes iosSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustment for clean mobile stacking */
@media (max-width: 768px) {
    .project-header, .project-showcase { padding: 2rem; }
    .project-header h1 { font-size: 2.5rem; }
    .showcase-grid { grid-template-columns: 1fr; grid-gap: 30px; }
}

/* --- High-End Editorial Grid Layout --- */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
    align-items: start;
}

/* Base style for every gallery photo container */
.grid-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.grid-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    transition: transform 0.5s var(--ios-easing), box-shadow 0.5s;
}

/* Subtle modern scale lift on hover */
.grid-item img:hover {
    transform: scale(1.015) translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

/* Specific framing ratios */
.grid-item.vertical img { aspect-ratio: 2 / 3; }
.grid-item.horizontal img { aspect-ratio: 3 / 2; }

/* Forces an image to beautifully occupy both columns completely */
.grid-item.row-wide {
    grid-column: span 2;
}

.grid-item.row-wide img {
    aspect-ratio: 16 / 9; /* Cinematic widescreen aspect ratio */
}

/* --- Premium iOS Glassmorphic Lightbox Overlay --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Stacks way above nav bar */
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.88); /* Clean crisp light backdrop focus */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 4rem;
    cursor: zoom-out;
    animation: iosFadeIn 0.4s var(--ios-easing);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
    animation: iosZoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Springs outward cleanly */
}

.lightbox-caption-text {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-main);
}

/* Elegant minimalist exit cross icon */
.lightbox-close {
    position: absolute;
    top: 30px; right: 40px;
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 0.6; }

/* Lightbox Spring Animations */
@keyframes iosFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes iosZoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Clean single-column layout on smaller screens */
@media (max-width: 768px) {
    .editorial-grid { grid-template-columns: 1fr; grid-gap: 35px; }
    .grid-item.row-wide { grid-column: span 1; }
    .grid-item.vertical { margin-top: 0 !important; } /* Clear vertical offsets on mobile */
    .lightbox { padding: 1.5rem; }
}

/*Project page CSS

/* --- Expandable Project Gallery Layout --- */
.accordion-gallery-section {
    padding: 2rem 6rem 6rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Space between different project rows */
}

.accordion-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Clickable Thumbnail Row */
.project-thumb {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #e8e8ed;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.4s var(--ios-easing), box-shadow 0.4s;
}

.project-thumb:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient overlay for title legibility */
.project-thumb .overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-thumb .overlay i {
    transition: transform 0.4s var(--ios-easing);
}

/* Rotates the arrow when the item is expanded */
.accordion-item.active .project-thumb .overlay i {
    transform: rotate(180deg);
}

/* The Expanding Container */
.expanded-photos {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--ios-easing), opacity 0.4s ease, margin-top 0.4s ease;
}

.expanded-photos.open {
    max-height: 3000px; /* Allows enough room for the photo grid to drop down */
    opacity: 1;
    margin-top: 1.5rem; /* Adds breathing room between cover and inner photos */
}

/* --- Inner Masonry Layout for the revealed photos --- */
.expanded-grid {
    column-count: 3; /* Creates 3 vertical columns */
    column-gap: 20px; /* Spacing between the columns */
    width: 100%;
}

.expanded-grid img {
    width: 100%;
    height: auto; /* CRITICAL: Lets the image dictate its natural height */
    margin-bottom: 20px; /* Vertical spacing between stacked images */
    display: block; /* Removes baseline ghost padding */
    border-radius: 16px;
    cursor: zoom-in; /* Hooks into your existing lightbox logic [cite: 97] */
    transition: transform 0.3s var(--ios-easing);
    
    /* Prevents an image from being sliced in half across columns */
    break-inside: avoid;
    -webkit-column-break-inside: avoid; 
}

.expanded-grid img:hover {
    transform: translateY(-3px);
}

/* Mobile Adjustments for Masonry */
@media (max-width: 1024px) {
    .expanded-grid {
        column-count: 2; /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .expanded-grid {
        column-count: 1; /* 1 clean stack on mobile */
    }
    /* Update your existing mobile media query to remove the fixed 200px height [cite: 100] */
    .expanded-grid img { 
        height: auto; 
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .accordion-gallery-section { padding: 2rem; gap: 2rem; }
    .project-thumb { height: 250px; }
    .project-thumb .overlay { font-size: 1.2rem; padding: 1.5rem; }
    .expanded-grid img { height: 200px; }
}