:root {
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F4F4F4;
    --color-yellow: #FAE076;
    /* Soft pastel yellow matched to reference */
    --color-text-dark: #1A1A1A;
    --color-text-medium: #333333;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Panels for Magazine Look */
.bg-panels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-yellow-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 90vh;
    background-color: var(--color-yellow);
}

.bg-yellow-bottom {
    position: absolute;
    bottom: -20vh;
    left: 40%;
    width: 60%;
    height: 60vh;
    background-color: var(--color-yellow);
    z-index: -2;
}

/* Main Grid Layout */
.magazine-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Images */
.img-wrapper {
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Subtle premium shadow */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    /* Extra size for parallax */
    transition: transform 0.6s ease-out;
}

.img-wrapper:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.img-wrapper:hover img {
    transform: scale(1.02);
    /* Slight zoom out on hover */
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--spacing-md);
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.designer-wrapper {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    max-width: 350px;
    margin-left: var(--spacing-md);
    z-index: 2;
}

.text-content {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    padding-left: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    z-index: 2;
}

.logo {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    color: var(--color-text-dark);
}

.logo span {
    display: block;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-medium);
}

.description {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 450px;
    text-align: justify;
    line-height: 1.8;
}

.chair-wrapper {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    margin-top: -100px;
    margin-left: -50px;
    z-index: 1;
    max-width: 600px;
    /* Special soft shadow to blend chair with background a bit better */
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: var(--spacing-md);
    position: relative;
}

.shelves-wrapper {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    z-index: 2;
}

.screen-wrapper {
    grid-column: 8 / 13;
    grid-row: 1 / 4;
    margin-top: -80px;
    z-index: 1;
}

.bench-wrapper {
    grid-column: 4 / 11;
    grid-row: 2 / 4;
    margin-top: 100px;
    z-index: 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    /* Dramatic shadow for floating effect */
}

.extra-1-wrapper {
    grid-column: 1 / 6;
    grid-row: 4 / 6;
    margin-top: -50px;
    z-index: 2;
}

.extra-2-wrapper {
    grid-column: 7 / 13;
    grid-row: 4 / 6;
    margin-top: 80px;
    z-index: 1;
}

.extra-3-wrapper {
    grid-column: 3 / 10;
    grid-row: 5 / 7;
    margin-top: 150px;
    margin-bottom: var(--spacing-xl);
    z-index: 4;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}


/* Animations & Reveal States */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for grouped elements */
.gallery-section .shelves-wrapper.active {
    transition-delay: 0.1s;
}

.gallery-section .screen-wrapper.active {
    transition-delay: 0.2s;
}

.gallery-section .bench-wrapper.active {
    transition-delay: 0.4s;
}

.gallery-section .extra-1-wrapper.active {
    transition-delay: 0.1s;
}

.gallery-section .extra-2-wrapper.active {
    transition-delay: 0.3s;
}

.gallery-section .extra-3-wrapper.active {
    transition-delay: 0.5s;
}


/* Responsive Design */
@media screen and (max-width: 1024px) {
    .logo {
        font-size: 3.5rem;
    }

    .bg-yellow-top {
        width: 50%;
    }

    .text-content {
        padding-left: var(--spacing-md);
    }
}

@media screen and (max-width: 768px) {
    .bg-yellow-top {
        width: 100%;
        height: 50vh;
    }

    .bg-yellow-bottom {
        display: none;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .designer-wrapper {
        margin-left: 0;
        max-width: 100%;
    }

    .text-content {
        padding-left: 0;
        padding-top: 0;
    }

    .chair-wrapper {
        margin-top: 0;
        margin-left: 0;
        max-width: 100%;
    }

    .gallery-section {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .shelves-wrapper,
    .screen-wrapper,
    .bench-wrapper,
    .extra-1-wrapper,
    .extra-2-wrapper,
    .extra-3-wrapper {
        margin-top: 0;
    }
}

/* Header & Navbar Styles */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-bg-white);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: var(--spacing-sm) 0;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo-link {
    display: inline-block;
}

.nav-logo {
    height: 180px;
    /* Adjust based on SVG proportions */
    max-width: 100%;
    display: block;
    transition: height 0.4s ease;
}

.site-header.scrolled .nav-logo {
    height: 90px;
}

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

.site-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: var(--color-text-medium);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-left: 1px solid #ccc;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.lang-switcher button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    filter: grayscale(40%);
}

.lang-switcher button:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-md);
    }

    .site-header.scrolled .header-content {
        padding-top: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }

    .site-header.scrolled .nav-logo {
        height: 50px;
    }
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.float-whatsapp:hover {
    background-color: #20b858;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    color: #FFF;
}

/* Elegant Text Section */
.text-interlude {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.chic-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.text-interlude p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text-medium);
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.site-footer p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-sm);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: var(--spacing-md);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-bg-white);
    margin: auto;
    padding: var(--spacing-xl) var(--spacing-md);
    border: 1px solid #ddd;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.close-modal {
    color: var(--color-text-medium);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-text-dark);
    text-decoration: none;
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.modal-body h2 span {
    display: block;
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

.modal-body h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
}

.modal-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-medium);
    text-align: justify;
}

.modal-text p {
    margin-bottom: var(--spacing-md);
}

/* Social icon */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
}

.social-icon svg {
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
    stroke: var(--color-text-medium);
}

/* Division between gallery and contact */
.section-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: var(--spacing-xl) auto var(--spacing-sm);
    width: 60%;
    max-width: 600px;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    background-color: var(--color-bg-white);
    max-width: 800px;
    margin: 0 auto;
}

.contact-address {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.contact-phone {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
}

.contact-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--color-text-dark);
    color: var(--color-text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}