:root {
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --primary-color: #2c2c2c;
    /* Deep Charcoal for text */
    --accent-pink: #ffc3a0;
    --accent-cream: #ffafbd;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-serif: 'Playfair Display', serif;
    --font-heading: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    color: var(--primary-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* --- LOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--accent-cream);
    transition: width 0.2s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- HEADER & NAV --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
}

.logo-container .logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-nav a:hover {
    color: var(--accent-pink);
}

.social-icon-header {
    display: flex;
    align-items: center;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon-header:hover {
    color: var(--accent-pink);
    transform: translateY(-2px);
}


/* --- BURGER MENU & MOBILE NAV --- */
.burger-menu {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s linear;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
}

.mobile-nav.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin: 2rem 0;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-socials {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.mobile-socials a {
    color: #fff;
    transition: color 0.3s;
}

.mobile-socials a:hover {
    color: var(--accent-pink);
}

/* --- HERO & CANVAS SEQUENCE --- */
.sequence-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    /* Hide overflow if canvas scales up */
}

canvas {
    display: block;
    /* We will handle sizing via JS for perfect 'cover' fit */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- HERO TEXT LAYER --- */
.hero-text-layer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    width: 100%;
}

.hero-text-layer h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    letter-spacing: 0.5rem;
    color: #ffffff;
    /* White text */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-text-layer p {
    font-family: var(--font-sans);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: #f5f5dc;
    /* Beige Clair */
    letter-spacing: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- MAIN CONTENT (Appears after scroll) --- */
#main-content {
    position: relative;
    z-index: 20;
    /* Margin top set by JS */
    padding-top: 100px;
    /* Ensure background is transparent where needed, but maybe subtle gradient helps readability if image is busy */
    /* Check requirement: "see the suite of images continue to scroll subtly behind" */
    /* So we keep it transparent or semi-transparent */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.8) 100%);
}

.content-section {
    padding: 4rem 10%;
    min-height: 80vh;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
    letter-spacing: 2px;
    color: #ffffff;
    /* Added white color */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- MASONRY GALLERY --- */
/* --- MODERN ROUNDED MASONRY --- */
.modern-masonry-grid {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.masonry-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.masonry-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.masonry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.masonry-card:hover img {
    transform: scale(1.05);
}


/* --- SOCIAL SECTION --- */
.social-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    border-radius: 16px;
}

.social-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2c2c2c;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    width: 28px;
    height: 28px;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--accent-pink);
    color: white;
}


/* --- GLASSMORPHISM CONTACT FORM --- */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 6rem;
}

.glass-form-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.glass-form-container h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.glass-form-container p {
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    font-style: italic;
}

.glass-form .input-group {
    margin-bottom: 1.5rem;
}

.glass-form input,
.glass-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #333;
    transition: background 0.3s ease;
}

.glass-form input:focus,
.glass-form textarea:focus {
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}

.send-btn {
    background: #2c2c2c;
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #444;
}

@media (max-width: 768px) {
    .hero-text-layer h1 {
        font-size: 3rem;
    }

    .main-header {
        padding: 1rem;
    }

    .main-nav {
        display: none;
        /* Hide default nav */
    }

    .burger-menu {
        display: flex;
        /* Show burger */
    }

    .modern-masonry-grid {
        flex-direction: column;
    }
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    /* Flexbox centering */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-pink);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: var(--font-sans);
}