/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
}

section {
    position: relative;
    width: 100%;
    will-change: transform; /* GPU Acceleration for smoother scrolling */
}

/* ... elsewhere ... */

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    will-change: transform; /* Smoother hover scaling */
}

/* Header and Logo */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 60px 80px; /* More generous padding for editorial feel */
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(32px, 4vw, 64px); /* Scales down for smaller screens */
    font-weight: 400;
    letter-spacing: 0.125em;
    color: #fff;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Set to full viewport height to eliminate black bottom section */
    overflow: hidden;
    background-color: #000;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Adjusted to prioritize the building's top section */
}

/* Skew Text */
.hero-content {
    position: absolute;
    bottom: 25%; /* Moved down to 25% for requested placement */
    width: 100%;
    text-align: right;
    padding-right: 80px; /* Aligned with header padding for editorial balance */
    z-index: 5;
    pointer-events: none;
}

.skew-text {
    font-family: 'Lemon Tuesday', cursive;
    font-size: clamp(60px, 8vw, 125px); /* Scales down while keeping the flair */
    font-weight: normal;
    color: #fff;
    transform: rotate(-10deg);
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    line-height: 1.1;
}

/* Memories Section */
.memories-section {
    width: 100%;
    min-height: 100vh; /* Changed to min-height to fill viewport for scroll-snap */
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
}

.memories-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Tight grouping like the image */
}

.memories-main {
    display: flex;
    align-items: center; /* Centered vertically with MAKING */
    gap: 15px;
}

.text-making {
    font-family: 'Vidaloka', serif;
    font-size: 116px;
    color: #000;
    line-height: 0.8; /* Tighter line height for better vertical centering */
}

.memories-sub {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered relative to each other */
}

.text-memories {
    font-family: 'Asap', sans-serif;
    font-size: 35.7px;
    font-weight: 400;
    color: #000;
    line-height: 1;
}

.text-since {
    font-family: 'Asap', sans-serif;
    font-size: 18.7px;
    font-weight: 400;
    color: #000;
    line-height: 1.2;
    letter-spacing: 1px;
}

.text-hashtag {
    font-family: 'Lemon Tuesday', cursive;
    font-size: 66.1px;
    color: #989898;
    margin-top: 20px; /* Added spacing to prevent touching and improve balance */
    line-height: 1;
    text-align: center;
}

/* Hero Banner 2 */
.hero-2 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.hero-2 .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Removed flex to prevent any potential image stretching */
}

.hero-2 .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This preserves aspect ratio and prevents distortion */
    object-position: center 15%; /* Precisely positioned to show the top architectural peaks */
}

.hero-2 .hero-content {
    bottom: 25%; /* Lowered slightly to match carpet level in reference */
    text-align: center;
    padding-right: 0;
}

.vision-text {
    font-family: 'Lemon Tuesday', cursive;
    font-size: 70.4px;
    color: #fff;
    opacity: 0.38;
    transform: rotate(-15deg);
    display: inline-block;
    margin-bottom: -40px; /* Increased overlap */
    margin-left: -350px; /* Shifted significantly left to start over the left chair area */
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.vision-logo {
    font-family: 'Cinzel', serif;
    font-size: 121px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 15px;
    line-height: 1;
    text-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Services Section */
.services-section {
    width: 100%;
    min-height: 100vh; /* Changed to min-height to fill viewport for scroll-snap */
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
}

.services-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.text-our {
    font-family: 'Vidaloka', serif;
    font-size: 101px;
    color: #000;
    line-height: 0.8;
}

.text-services {
    font-family: 'Asap', sans-serif;
    font-size: 36.1px;
    font-weight: 400;
    color: #000;
    letter-spacing: 2px;
}

.text-dream-hashtag {
    font-family: 'Lemon Tuesday', cursive;
    font-size: 66.9px;
    color: #989898;
    margin-top: 10px;
    line-height: 1;
}

/* Horizontal Scroll Section (Pinned) */
.horizontal-container {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

.horizontal-wrapper {
    display: flex;
    width: 500%; /* Updated for 5 services */
    height: 100vh;
}

/* Service Row Layout */
.service-row {
    width: 100vw; 
    height: 100vh;
    display: flex;
    background-color: #fff;
    overflow: hidden;
    padding: 0 80px; 
    box-sizing: border-box;
    flex-shrink: 0;
}

.service-image-side {
    width: 40%; /* Reduced from 50% to match Floral Designs */
    height: 95%; /* Reduced from 100% to match Floral Designs */
    align-self: center; /* Center vertically */
    padding: 0;
}

.service-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-text-side {
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* Matches A-Z Planning base */
    align-items: center; /* Centered vertically by default */
    padding-left: 80px; 
    background-color: #fff;
}

/* All slides now use the same base layout */

/* Planning, Stationery, etc. now all use the base layout */

.service-text-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Matches A-Z Planning base */
}

/* Book Now Section */
.book-now-section {
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
}

.book-now-content {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
}

.book-top-row {
    display: flex;
    align-items: center; /* Center MY DREAM vertically against BOOK */
    gap: 8px; /* Brought closer together */
}

.book-text-main {
    font-family: 'Vidaloka', serif;
    font-size: clamp(60px, 10vw, 130px);
    line-height: 1;
    font-weight: 400;
    margin: 0;
}

.book-text-dream {
    font-family: 'Asap', sans-serif;
    font-size: clamp(10px, 1.5vw, 18px);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.5em;
}

.book-bottom-row {
    display: flex;
    align-items: flex-start;
    margin-top: 0;
    position: relative;
    padding-left: 5vw;
}

.book-text-wedding {
    font-family: 'Asap', sans-serif;
    font-size: clamp(18px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.book-text-now {
    font-family: 'Lemon Tuesday', cursive;
    font-size: clamp(50px, 8vw, 110px);
    color: #cecece;
    position: absolute;
    left: 20vw;
    top: -0.2em;
    z-index: 5;
    white-space: nowrap;
}

.service-title-main {
    font-family: 'Vidaloka', serif;
    font-size: 48px; /* Standardized to A-Z Planning size */
    color: #000;
    letter-spacing: 3px;
    line-height: 1;
    position: relative;
    z-index: 10;
}

.service-title-script {
    font-family: 'Lemon Tuesday', cursive;
    font-size: 110px; /* Standardized to A-Z Planning size */
    color: #cecece;
    line-height: 0.3;
    margin-top: -20px;
    margin-left: 30px;
    white-space: nowrap;
    z-index: 5;
}

/* Be Inspired Section */
.inspired-section {
    width: 100%;
    height: 100vh; /* Fixed height for precise snapping */
    background-color: #fff;
    padding: 60px 80px; /* Adjusted padding to ensure grid fits perfectly */
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.inspired-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.inspired-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inspired-vertical-text {
    font-family: 'Lemon Tuesday', cursive;
    font-size: clamp(60px, 10vw, 140px);
    color: #cecece;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 1;
    white-space: nowrap;
}

.inspired-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 38vh; /* Use vh to ensure 2 rows fit within 100vh */
    gap: 0;
    flex-grow: 1;
}

.inspired-tile {
    overflow: hidden;
    position: relative;
}

.inspired-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.inspired-tile:hover img {
    transform: scale(1.05);
}

.tile-large {
    grid-row: span 2;
}

.tile-view-more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.view-more-small {
    font-family: 'Asap', sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.view-more-large {
    font-family: 'Asap', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    header {
        padding: 30px 40px;
    }
    
    .hero-content {
        padding-right: 40px;
    }
    
    .inspired-section {
        padding: 60px 40px;
    }
    
    .gallery-section {
        padding: 40px 40px 80px;
    }
}

@media (max-width: 768px) {
    .horizontal-wrapper {
        width: 500%; /* Keep horizontal layout as requested */
    }
    
    .service-row {
        flex-direction: column; /* Stack image/text slightly for legibility on small portrait */
    }
    
    .service-image-side {
        width: 100%;
        height: 60%;
    }
    
    .service-text-side {
        width: 100%;
        height: 40%;
        padding: 20px !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .inspired-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .inspired-vertical-text {
        writing-mode: horizontal-tb; /* Switch to horizontal for mobile legibility */
        transform: none;
        text-align: center;
        font-size: 80px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile for better visibility */
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px;
    }
    
    .logo {
        letter-spacing: 4px;
        font-size: 24px;
    }
    
    .hero-content {
        padding-right: 20px;
        bottom: 35%;
    }

    .skew-text {
        font-size: clamp(35px, 10vw, 50px);
    }
    
    .text-making {
        font-size: 15vw;
    }
    
    .text-memories {
        font-size: 5vw;
    }
    
    .text-hashtag, .text-dream-hashtag {
        font-size: 8vw;
    }
    
    .vision-logo {
        font-size: 18vw;
        letter-spacing: 5px;
    }
    
    .vision-text {
        font-size: 12vw;
        margin-left: -50px; /* Reduced offset for small screen */
    }
    
    .text-our {
        font-size: 18vw;
    }
    
    .text-services {
        font-size: 6vw;
    }

    .service-title-main {
        font-size: 10vw;
    }

    .service-title-script {
        font-size: 15vw;
        margin-left: 10px;
    }

    .book-text-now {
        left: 5vw; /* Adjust overlapping text */
    }
    
    .inspired-section {
        padding: 40px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on very small screens */
    }
    
    .load-more-btn {
        padding: 10px 25px;
    }
    
    .footer-section {
        padding: 40px 20px;
    }
}

/* Footer Section */
.footer-section {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 100px 80px 40px;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-brand {
    flex: 2;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.footer-script {
    font-family: 'Lemon Tuesday', cursive;
    font-size: 38px;
    color: #cecece;
    margin-top: -10px;
}

.footer-col h3 {
    font-family: 'Asap', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #888;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-family: 'Asap', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cecece;
}

.footer-bottom {
    margin-top: 100px;
    border-top: 1px solid #222;
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Asap', sans-serif;
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

/* Footer Responsiveness */
@media (max-width: 768px) {
    .footer-section {
        padding: 60px 40px 40px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-script {
        margin-top: 0;
    }
    
    .footer-bottom {
        margin-top: 60px;
    }
}

/* Ensure background of main content is clean */
main {
    background-color: #000;
}

/* Portfolio Gallery Expansion */
.gallery-section {
    padding: 50px 80px 100px;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.load-more-btn {
    background: none;
    border: 1px solid #cecece; /* Lighter border */
    padding: 12px 35px; /* Smaller padding */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    color: #000;
}

.load-more-btn:hover {
    background-color: #f9f9f9;
    border-color: #000;
}

.load-more-btn .view-more-small {
    font-size: 14px; /* Smaller sub-text */
    letter-spacing: 3px;
    margin-bottom: 2px;
}

.load-more-btn .view-more-large {
    font-size: 24px; /* Smaller main text */
    font-weight: 400; /* Thinner weight */
    text-transform: lowercase; /* Matches "more" style */
}

/* Modal CSS */
#book-btn {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

#book-btn:hover {
    color: #000;
    transform: scale(1.05);
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 60px 80px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #000;
    font-size: 40px;
    font-family: 'Asap', sans-serif;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Lemon Tuesday', cursive;
    font-size: clamp(50px, 6vw, 80px);
    color: #000;
    text-align: center;
    margin-bottom: 50px;
    font-weight: normal;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-group {
    flex: 1;
}

.form-group input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #cecece;
    font-family: 'Asap', sans-serif;
    font-size: 16px;
    color: #000;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: #989898;
}

.form-group input:focus {
    border-bottom-color: #000;
}

/* Date and Time input styling fix for placeholder behavior */
.form-group input[type="date"], .form-group input[type="time"] {
    color: #989898;
}

.form-group input[type="date"]:focus, .form-group input[type="date"]:valid,
.form-group input[type="time"]:focus, .form-group input[type="time"]:valid {
    color: #000;
}

.form-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 15px 50px;
    font-family: 'Asap', sans-serif;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Modal Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        padding: 40px 30px;
        width: 95%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .booking-form {
        gap: 20px;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
    }
}
