@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela_Collection/Canela Family/Canela-Regular-Trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela_Collection/Canela Family/Canela-RegularItalic-Trial.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

:root {
    --primary-font: 'Canela', serif;
    --sans-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --white: #ffffff;
    --black: #000000;
    --off-white: #f5f4ef;
    --light-grey: #e8e8e8;
    --dark-grey: #333333;
    --text-color: #333;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
    object-fit: cover;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h2 {
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-mark svg {
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color var(--transition), color var(--transition);
}

.navbar.transparent {
    background-color: transparent;
    color: var(--white);
}

.navbar.solid {
    background-color: var(--off-white);
    color: var(--black);
    border-bottom: 1px solid var(--light-grey);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 25%;
}

.nav-right {
    justify-content: flex-end;
}

.hamburger-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-logo h1 {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    letter-spacing: 2px;
}

.contact-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 0.5rem 1rem;
    font-family: var(--sans-font);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn:hover {
    background: currentColor;
    color: var(--white);
}
.navbar.solid .contact-btn:hover {
    color: var(--white);
    background: var(--black);
}

.ai-icon, .user-icon, .bag-icon {
    cursor: pointer;
}
.ai-icon {
    font-family: var(--sans-font);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ================= MEGA MENU (BOTTOM BAR) ================= */
.bottom-menu-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    position: relative;
    z-index: 90;
}

.mega-menu-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0 auto;
    max-width: 1200px;
}

.mega-menu-nav > li {
    position: static;
}

.mega-menu-nav > li > a {
    font-family: var(--sans-font);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--black);
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.mega-menu-nav > li > a:hover {
    opacity: 0.7;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1200px;
    background: var(--light-grey);
    padding: 3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid white;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-content {
    display: flex;
    gap: 4rem;
}

.mega-menu-image {
    flex: 0 0 40%;
}

.mega-menu-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.mega-menu-text {
    flex: 1;
}

.mega-menu-text h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.mega-menu-text p {
    font-family: var(--sans-font);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.shop-link {
    font-family: var(--sans-font);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--black);
    padding-bottom: 2px;
    display: inline-block;
    margin-bottom: 3rem;
}

.mega-menu-links {
    display: flex;
    gap: 4rem;
}

.mega-menu-links .col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-links .col a {
    font-family: var(--sans-font);
    font-size: 0.85rem;
    color: #444;
    transition: color 0.2s;
}

.mega-menu-links .col a:hover {
    color: var(--black);
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background-color: var(--off-white);
    z-index: 200;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.close-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--sans-font);
    font-size: 0.85rem;
}

.sidebar-logo {
    font-size: 2rem;
    letter-spacing: 2px;
}

.sidebar-right-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.sidebar-nav a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.2s;
}

.sidebar-nav a:hover {
    color: #888;
}

.sidebar-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid var(--light-grey);
    padding-top: 2rem;
}

.sidebar-footer-nav a {
    font-size: 1.25rem;
    color: var(--text-color);
    transition: color 0.2s;
}

/* ================= PRODUCTS SECTION ================= */
.products-section {
    padding: 6rem 3rem;
    background-color: var(--white);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.products-header h2 {
    font-size: 2.5rem;
    font-weight: normal;
}

.shop-all-btn {
    background: transparent;
    border: 1px solid var(--black);
    padding: 0.75rem 1.5rem;
    font-family: var(--sans-font);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.shop-all-btn:hover {
    background: var(--black);
    color: var(--white);
}

.products-slider-container {
    width: 100%;
    overflow: hidden;
}

.products-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.product-card {
    min-width: 300px;
    flex: 0 0 calc(25% - 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.product-card h4 {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: normal;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.arrow-btn {
    background: none;
    border: 1px solid var(--black);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.arrow-btn:hover {
    background: var(--black);
    color: var(--white);
}

.progress-bar-container {
    width: 60%;
    height: 2px;
    background-color: var(--light-grey);
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--black);
    width: 25%; /* Initial width based on visible cards vs total */
    transition: width 0.3s, left 0.3s;
}


/* ================= DESIGN MADE EASY ================= */
.design-made-easy {
    display: flex;
    background-color: var(--off-white);
    min-height: 80vh;
}

.dme-image {
    flex: 1;
    position: relative;
}

.dme-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dme-content {
    flex: 1;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dme-content h2 {
    font-size: 2rem;
    font-family: var(--sans-font);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    max-width: 500px;
}

.dme-intro {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.dme-desc {
    font-family: var(--sans-font);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 3rem;
    max-width: 600px;
}

.start-designing-link {
    font-family: var(--sans-font);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--black);
    padding-bottom: 2px;
    align-self: flex-start;
}

/* ================= INSPIRATION GALLERY ================= */
.inspiration-gallery {
    padding: 6rem 0;
    background-color: var(--off-white);
    text-align: center;
    overflow: hidden;
}

.inspiration-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.inspiration-header h2 {
    font-size: 3rem;
    font-weight: normal;
}

.shop-gallery-link {
    font-family: var(--sans-font);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--black);
    padding-bottom: 2px;
}

/* Marquee Effect */
.marquee-container {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    gap: 1.5rem;
    animation: marquee 25s linear infinite;
}

.marquee-item {
    display: inline-block;
    flex: 0 0 350px;
    height: 450px;
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= FINELY FURNISHED ================= */
.finely-furnished {
    position: relative;
    width: 100vw;
    height: 80vh;
    background: url('../images/img9.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finely-furnished::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.finely-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.finely-content h2 {
    font-size: 6rem;
    font-weight: normal;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.explore-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.75rem 2rem;
    font-family: var(--sans-font);
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.explore-btn:hover {
    background: var(--white);
    color: var(--black);
}

/* ================= FEATURED STORIES ================= */
.featured-stories {
    padding: 6rem 3rem;
    background-color: var(--off-white);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.featured-header h2 {
    font-family: var(--sans-font);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 2px;
}

.featured-header h2 span {
    font-family: var(--primary-font);
    font-style: italic;
    font-size: 2rem;
    text-transform: none;
    letter-spacing: normal;
}

.browse-stories-btn {
    background: transparent;
    border: 1px solid var(--black);
    padding: 0.75rem 1.5rem;
    font-family: var(--sans-font);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.browse-stories-btn:hover {
    background: var(--black);
    color: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.story-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.story-card h4 {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: normal;
    line-height: 1.4;
}

/* ================= FOOTER ================= */
.site-footer {
    background-color: #d1dbe5;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.footer-brand {
    font-size: 180px;
    line-height: 0.8;
    color: #bac9d7;
    text-align: center;
    margin-bottom: 4rem;
    user-select: none;
    white-space: nowrap;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    position: relative;
    z-index: 10;
}

.footer-col h5 {
    font-family: var(--sans-font);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a, .footer-signup p {
    font-family: var(--sans-font);
    font-size: 0.75rem;
    color: #444;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--black);
}

.signup-form {
    display: flex;
    margin-bottom: 1rem;
    border: 1px solid #999;
}

.signup-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    font-family: var(--sans-font);
    font-size: 0.85rem;
    outline: none;
}

.signup-form button {
    background: transparent;
    border: none;
    border-left: 1px solid #999;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.signup-form button:hover {
    background: rgba(0,0,0,0.05);
}

.footer-signup p {
    line-height: 1.4;
}
.footer-signup p a {
    text-decoration: underline;
}

.footer-instagram {
    position: relative;
    z-index: 10;
}

.insta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.insta-header h5 {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: normal;
}

.insta-icons {
    display: flex;
    gap: 1rem;
}

#marquee-instagram .marquee-item {
    flex: 0 0 200px;
    height: 200px;
}

@media (max-width: 1024px) {
    .product-card {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
    .mega-menu-content {
        flex-direction: column;
    }
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 1rem);
    }
    .nav-left, .nav-right {
        width: auto;
    }
    .navbar {
        padding: 1rem;
    }
    .mega-menu-nav {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .design-made-easy {
        flex-direction: column;
    }
    .dme-image {
        min-height: 300px;
    }
    .stories-grid, .footer-columns {
        grid-template-columns: 1fr;
    }
}
