@layer base, demo;
@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: "Poiret One", Arial, sans-serif;
    ;
    scroll-behavior: smooth;
    background: #fffcf5;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #dfaea1;
    /*use for footer as well*/
    color: #000000;
    padding: 15px 20px;
    z-index: 1000;
    max-width: 100vw;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger {
    display: none;
}

header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-tagline {
    display: none;
}

@media (max-width: 768px) {
    .header-container {
        /* Keep row direction for Brand ----- Hamburger */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-container .tagline {
        display: none;
        /* Hide original tagline on mobile */
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #dfaea1;
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 15px;
        z-index: 999;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-tagline {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-family: "Poiret One", Arial, sans-serif;
        font-size: 1.1rem;
        color: #000000;
        margin-bottom: 5px;
    }

    header nav.nav-open {
        display: flex;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #000000;
        padding: 5px;
    }
}

.brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.tagline {
    flex: 1;
    text-align: center;
    font-family: "Poiret One", Arial, sans-serif;
    font-size: 1.2rem;
    color: #000000;
}


header a {
    color: #000000;
    text-decoration: none;
}

section {
    min-height: 100vh;
    padding: 80px 40px 20px;
}

#home {
    color: #000000;
    background: #fffcf5;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#portfolio {
    color: #000000;
    background: #fffcf5;
}

#about {
    color: #000000;
    background: #fffcf5;
}

#contact {
    color: #000000;
    background: #fffcf5;
    position: relative;
    padding: 80px 40px 20px;
    min-height: auto;
}

.contact-content {
    width: 50%;
    padding-right: 20px;
}

.contact-form {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 50%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form form {
    max-width: 100%;
}

@media (max-width: 768px) {
    #contact {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-content,
    .contact-form {
        position: static;
        width: 100%;
        padding: 0;
        transform: none;
    }
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid #374375;
}

.custom-designs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-designs .text {
    flex: 1;
}

.custom-designs .photo {
    flex: 1;
}

.alterations {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
}

.alterations .text {
    flex: 1;
}

.alterations .photo {
    flex: 1;
}

.ethnic-wear {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
}

.ethnic-wear .text {
    flex: 1;
}

.ethnic-wear .photo {
    flex: 1;
}

.occasion-wear {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 20px;
}

.occasion-wear .text {
    flex: 1;
}

.occasion-wear .photo {
    flex: 1;
}

form {
    max-width: 400px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    cursor: pointer;
}

.contact input,
.contact textarea {
    background-color: #d79b87;
    border: 1px solid #7a645f;
    color: white;
}

.form-control:focus {
    background-color: #000000 !important;
    box-shadow: none !important;
    border-color: #5e4d49 !important;
}

@layer demo {
    .carousel {
        --items: 10;
        --carousel-duration: 40s;

        @media (width > 600px) {
            --carousel-duration: 40s;
        }

        --carousel-width: min(80vw,
            1000px);
        /* note - it will "break" if it gets too wide and there aren't enough items */
        --carousel-item-width: 280px;
        --carousel-item-height: 250px;
        --carousel-item-gap: 2rem;

        --clr-cta: rgb(0, 132, 209);

        position: relative;
        width: var(--carousel-width);
        height: var(--carousel-item-height);
        overflow: clip;
        margin: 0 auto;

        &[mask] {
            /* fade out on sides */
            mask-image: linear-gradient(to right,
                    transparent,
                    black 10% 90%,
                    transparent);
        }

        &[reverse]>article {
            animation-direction: reverse;
        }

        /* hover pauses animation */
        &:hover>article {
            animation-play-state: paused;
        }
    }

    .carousel>article {
        position: absolute;
        top: 0;
        left: calc(100% + var(--carousel-item-gap));
        width: var(--carousel-item-width);
        height: auto;
        display: grid;
        grid-template-rows: auto auto auto;
        gap: 0.25rem;
        border: 1px solid light-dark(rgba(0 0 0 / 0.25), rgba(255 255 255 / 0.15));

        padding-block-end: 1rem;
        border-radius: 10px;
        background: light-dark(white, rgba(255 255 255 / 0.05));
        color: #2b2b1b;

        /* animation */
        will-change: transform;
        animation-name: marquee;
        animation-duration: var(--carousel-duration);
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-delay: calc(var(--carousel-duration) / var(--items) * 1 * var(--i) * -1);

        &:nth-child(1) {
            --i: 0;
        }

        &:nth-child(2) {
            --i: 1;
        }

        &:nth-child(3) {
            --i: 2;
        }

        &:nth-child(4) {
            --i: 3;
        }

        &:nth-child(5) {
            --i: 4;
        }

        &:nth-child(6) {
            --i: 5;
        }

        &:nth-child(7) {
            --i: 6;
        }

        &:nth-child(8) {
            --i: 7;
        }

        &:nth-child(9) {
            --i: 8;
        }

        &:nth-child(10) {
            --i: 9;
        }

        &:nth-child(11) {
            --i: 10;
        }
    }

    .carousel>article>*:not(img) {
        padding: 0 1rem;
    }

    .carousel>article>div {
        grid-row: span 2;
        display: grid;
        grid-template-rows: subgrid;
        font-size: 0.8rem;
    }

    .carousel>article h2 {
        font-size: 1.2rem;
        font-weight: 300;
        padding-block: 0.75rem 0.25rem;
        margin: 0;
    }

    .carousel>article p {
        margin: 0;
    }

    .carousel>article a {
        text-decoration: none;
        text-transform: lowercase;
        border: 1px solid var(--clr-cta);
        color: light-dark(var(--clr-cta), white);
        border-radius: 3px;
        padding: 0.25rem 0.5rem;
        place-self: start;
        transition: 150ms ease-in-out;

        &:hover,
        &:focus-visible {
            background-color: var(--clr-cta);
            color: white;
            outline: none;
        }
    }

    @keyframes marquee {
        100% {
            transform: translateX(calc((var(--items) * (var(--carousel-item-width) + var(--carousel-item-gap))) * -1));
        }
    }
}

/* general styling */
@layer base {
    * {
        box-sizing: border-box;
    }

    :root {
        color-scheme: light dark;

        --bg-dark: rgb(2, 6, 24);
        --bg-light: rgb(229, 229, 229);
        --txt-light: rgb(10, 10, 10);
        --txt-dark: rgb(245, 245, 245);
    }

    body {
        background-color: light-dark(var(--bg-light), var(--bg-dark));
        color: light-dark(var(--txt-light), var(--txt-dark));
        min-height: 100svh;
        margin: 0;
        padding: 0;
        font-size: 1rem;
        font-family: "Poiret One", Arial, sans-serif;
        ;
        line-height: 1.5;
        display: grid;
        place-items: center;
        gap: 2rem;
    }
}

footer {
    background-color: #dfaea1;
    font-family: "Poiret One", Arial, sans-serif;
    font-size: 1.2rem;
    color: #000000;
    padding: 20px 20px 30px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

footer h2 {
    font-weight: bold;
    margin-bottom: 20px;
}

footer p {
    margin-bottom: 25px;
}

footer p a {
    color: #333333;
    font-weight: bold;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: #ffcccc;
}

.instagram-link i {
    background: #000000;
    color: white;
    border-radius: 50%;
    padding: 8px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-link i {
    background: #000000;
    color: white;
    border-radius: 50%;
    padding: 8px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-link i {
    background: #000000;
    color: white;
    border-radius: 50%;
    padding: 8px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home Page Specific Styles */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
    padding: 40px 0;
}

.home-hero .hero-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.home-hero h1 {
    font-size: 3.5rem;
    color: #dfaea1;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.home-hero h2 {
    font-size: 1.4rem;
    color: #555;
    font-weight: 300;
    max-width: 600px;
    margin: 0;
}

.content-block {
    background-color: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.8;
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 80px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-row .text {
    flex: 1;
}

.feature-row .text h3 {
    font-size: 2rem;
    color: #dfaea1;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.feature-row .text p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-row .photo {
    flex: 1;
    height: 400px;
    /* Taller, more prominent images */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: none;
    /* Removing the old border */
}

@media (max-width: 900px) {

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .feature-row .photo {
        width: 100%;
        height: 300px;
    }
}

/* About Page Specific Styles */
#about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    /* Adjust top padding for fixed header */
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #dfaea1;
    /* Brand color */
}

.about-hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #555;
}

.about-section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #dfaea1;
}

/* Journey Section */
.journey-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}


/* Specialties Grid */
.specialties-grid {
    display: grid;
    /* Default to 1 column for mobile (mobile-first) */
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .specialties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(223, 174, 161, 0.2);
    /* Subtle brand border */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #dfaea1;
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2.5rem;
    color: #dfaea1;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Experience Section */
.experience-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-box {
    background-color: rgba(223, 174, 161, 0.1);
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

.closing-note {
    text-align: center;
    margin-top: 60px;
    font-size: 1.2rem;
    color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .journey-content,
    .card,
    .value-card {
        padding: 25px;
    }
}

/* Portfolio Page Styles */
.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    color: #dfaea1;
    margin-bottom: 10px;
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #dfaea1;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: "Poiret One", sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn:hover,
.filter-btn.active {
    background: #dfaea1;
    color: white;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

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

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Hide items (for filtering) */
.gallery-item.hidden {
    display: none;
}

/* Responsive Masonry */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #11171a;
    border-radius: 10px;
}