:root {
    --bg-color: #f7f5f0; /* Off-white / light beige */
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a; /* Dark charcoal */
    --text-secondary: #5a5a5a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Flowing Gradients */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.gradient-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: flow 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: #e6e0d4; /* Soft warm beige */
    animation-delay: 0s;
}

.shape-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: #f0e6d2; /* Light gold/sand */
    animation-delay: -5s;
}

.shape-3 {
    top: 30%; left: 40%;
    width: 40vw; height: 40vw;
    background: #ffffff;
    animation-delay: -10s;
}

@keyframes flow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10vw, 5vh) scale(1.1); }
    100% { transform: translate(-5vw, 15vh) scale(0.9); }
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: opacity 0.8s ease;
}

/* Typography */
h1, h2 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transform: scale(1.05);
    transition: transform 15s ease-out;
}

.hero.is-visible .hero-image {
    transform: scale(1);
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(4rem, 12vw, 9rem);
    letter-spacing: 8px;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.4);
    text-transform: uppercase;
}

/* Highlights */
.highlights, .party-start {
    padding: 10vh 5vw 5vh;
    display: flex;
    flex-direction: column;
    gap: 15vh;
}

.highlight-item {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Pop-up and Soft shadow effects */
.highlight-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0,0,0,0.04);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.highlight-item img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12), 0 15px 30px rgba(0,0,0,0.06);
}

/* Masonry Gallery using CSS Grid */
.gallery {
    padding: 5vh 2vw 15vh;
    max-width: 1800px;
    margin: 0 auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 1rem;
    }
}

.masonry-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background-color: #eaeaea; /* Placeholder color before load */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Required for fixed row heights */
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.masonry-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 2;
}

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

/* Special sizing classes for grid to make 'bigger one in middle' */
.grid-span-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.grid-span-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.grid-span-tall {
    grid-column: span 1;
    grid-row: span 2;
}

/* Animations */
.section-fade {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Pop up animation */
.pop-up {
    transform: translateY(60px) scale(0.95);
}

.section-fade.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95); /* Light mode lightbox */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomInLight 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: zoom-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-radius: 4px;
}

@keyframes zoomInLight {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-primary);
    font-size: 40px;
    font-weight: 300;
    transition: color 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-lightbox:hover {
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    padding: 10vh 5vw 15vh;
    text-align: center;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.signature p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.signature .fw-bold {
    font-weight: 600;
    color: var(--text-primary);
}

.signature .bisol {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--text-primary);
    text-transform: none;
    margin: 0 0.4rem;
}

.contact-btn {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Expand Hint */
.expand-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.is-visible > .expand-hint {
    animation: showHideHint 4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes showHideHint {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(5px); }
}
