@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Patrick+Hand+SC&family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Courgette&family=Patrick+Hand+SC&family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Courgette&family=Patrick+Hand+SC&family=Quicksand:wght@300..700&family=Satisfy&display=swap');

:root {
    --aqua: #9ff1e5;
    --purple: #c885ec;
    --light-purple: #f5e8fb;
    --dark-purple: #9f55c7;
    --white: #ffffff;
    --cream: #fffdf9;
    --black: #000000;
}

.logo img {
    width: 200px;
    height: auto;
}

nav {
    text-align: right;
    padding: 12px 15px;
    background-color: var(--aqua);
    width: fit-content;
    margin-left: auto;
    border-radius: 0 0 0 20px;
}

nav a {
    display: inline-block;
    text-decoration: none;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 0 15px;
    color: var(--white);
    transition: color 0.2s ease, transform 0.2s ease;
}

nav a + a {
    border-left: 2px solid rgba(255, 255, 255, 0.5);
}

nav a:hover {
    color: var(--purple);
    transform: translateY(-3px);
}

.gallery-hero {
    text-align: center;
    padding: 90px 30px 70px;
    background-color: white;
    position: relative;
    z-index: 1;
}

.gallery-hero h1 {
    margin: 0;
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 3.5em;
}

.gallery-hero p {
    max-width: 650px;
    margin: 20px auto 25px;
    font-size: 1.15em;
    line-height: 1.7;
}

.gallery-hearts {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
}

.gallery-hearts span {
    color: var(--aqua);
    font-size: 20px;
    display: inline-block;
}

.gallery-hearts span:nth-child(2) {
    color: var(--dark-purple);
    transform: translateY(-5px);
}

.gallery-categories::before {
    content: "";
    position: absolute;

    top: -55px;
    left: -5%;
    width: 110%;
    height: 110px;

    background-color: var(--cream);

    border-radius: 50% 50% 0 0 / 100% 100% 0 0;

    box-shadow: 0 -7px 0 var(--aqua);

    z-index: -1;
}

.gallery-categories h2, .main-category-options {
    position: relative;
    z-index: 3;
}

.gallery-categories {
    position: relative;
    padding: 150px 40px 150px;
    background-color: var(--cream);
    text-align: center;
    overflow: visible;
    z-index: 2;
    isolation: isolate;
}

.gallery-categories h2 {
    margin: 0 0 45px;
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 2.4em;
}

.gallery-categories::after {
    content: "";
    position: absolute;
    bottom: -55px;
    left: -5%;
    width: 110%;
    height: 100px;

    background-color: var(--cream);

    border-radius: 0 0 50% 50% / 0 0 100% 100%;

    box-shadow:
        0 5px 0 var(--aqua),
        0 12px 18px rgba(200, 133, 236, 0.18);

    z-index: 1;
}

.main-category-options {
    display: flex;
    justify-content: center;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.main-category-card {
    width: 240px;
    padding: 30px 25px;
    background-color: white;
    border: 3px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    color: var(--purple);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.main-category-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.main-category-card h3 {
    margin: 5px 0 10px;
    color: var(--purple);
    font-size: 1.5em;
}

.main-category-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.main-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--aqua);
}

.gallery-section {
    position: relative;
    padding: 100px 40px;
    background-color: white;
    text-align: center;
    z-index: 1;
}

.gallery-section-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.gallery-section-heading h2 {
    margin: 0 0 15px;
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 3em;
}

.gallery-section-heading p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.7;
    color: #555
}

.cake-category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin: 35px auto 60px;
    flex-wrap: wrap;
    padding: 10px;

    background-color: var(--cream);
    border-radius: 50px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    position: sticky;
    top: 20px;
    z-index: 20;
}

@media (max-width: 750px) {
    .cake-category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;

        border-radius: 25px;

        padding: 8px;

        margin-left: 15px;
        margin-right: 15px;

        scrollbar-width: none;
    }
    .cake-category-nav::-webkit-scrollbar {
        display: none;
    }
    .cake-category {
        flex-shrink: 0;
        padding: 10px 17px;
        font-size: 0.9em;
    }
}

.cake-category {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background-color: transparent;
    color: var(--purple);

    font-family: "Quicksand", sans-serif;
    font-size: 1em;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cake-category:hover {
    background-color: var(--aqua);
    color: white;
    transform: translateY(-2px);
}

.cake-category.active {
    background-color: var(--purple);
    color: white;
    box-shadow: 0 5px 12px rgba(153, 50, 204, 0.25);
}

.cake-category-content {
    max-width: 1100px;
    margin: 0 auto;
    margin-bottom: 90px;
}

.cake-category-content h3 {
    margin: 0 0 10px;
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 2em;
}

.cake-category-content > p {
    max-width: 650px;
    margin: 0 auto 35px;
    color: #666;
    line-height: 1.6;
}

.cake-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 130px;
}

.cake-gallery-section::after {
    content: "";
    position: absolute;
    bottom: -45px;
    left: -5%;
    width: 110%;
    height: 90px;
    background-color: var(--cream);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    box-shadow: 0 8px 15px rgba(153, 50, 204, 0.12);
    z-index: 2;
}

.cake-card {
    position: relative;
    margin: 0;
    width: 300px;
    overflow: hidden;
    border-radius: 22px;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cake-card img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.cake-card:hover {
    transform: translateY(-7px);
    transform: scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.cake-card figcaption {
    padding: 15px 18px;
    background-color: white;
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
    text-align: center;
}

.cake-card::after {
    content: "";
    display: block;
    height: 5px;
    background-color: var(--aqua);
}

@media (max-width: 900px) {
    .cake-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .cake-card img {
        height: 350px;
    }
}

.cake-photo {
    display: block;
    cursor: zoom-in;
}

.treats-section {
    position: relative;
    padding: 130px 40px;
    background-color: var(--cream);
    text-align: center;
    overflow: visible;
    z-index: 2;
}

.treats-section::before {
    content: "";
    position: absolute;
    top: -45px;
    left: 0;
    width: 100%;
    height: 90px;

    background-color: var(--cream);

    border-radius: 50% 50% 0 0 / 100% 100% 0 0;

    box-shadow: 0 -6px 0 var(--light-purple);

    z-index: 1;
}

.treats-section::after {
    content: "";
    position: absolute;
   
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 55px;

    background-color: var(--purple);

    border-radius: 50% 50% 0 0 / 100% 100% 0 0;

    box-shadow: 
    0 -5px 0 var(--aqua), 
    0 -12px 18px rgba(91, 45, 120, 0.22);

    z-index: 3;
}

.treats-heading {
    max-width: 750px;
    margin: 0 auto 60px;
}

.treats-heading h2 {
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.treats-heading p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.cupcake-feature {
    max-width: 1100px;
    margin: 0 auto;
}

.cupcake-feature-text {
    max-width: 650px;
    margin: 0 auto 40px;
}

.cupcake-feature-text h3 {
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
}

.cupcake-feature-text p {
    line-height: 1.7;
}

.cupcake-gallery {
    margin-bottom: 80px;
}

.other-treats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.other-treat-card {
    width: 260px;
    padding: 15px;
    background-color: white;
    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.other-treat-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
}

.other-treat-card h3 {
    margin: 18px;
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 1.15em;
}

.other-treat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.other-treats-section {
    margin-top: 100px;
}

.other-treats-heading {
    margin-bottom: 40px;
}

.other-treats-heading h3 {
    color: var(--purple);
    font-family: "Quicksand", sans-serif;
    font-size: 2em;
    margin-bottom: 10px;
}

.other-treats-heading p {
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 750px) {
    .treats-section {
        padding: 80px 20px;
    }
    .treats-heading h2 {
        font-size: 2.2em;
    }
    .other-treat-card {
        width: min(100%, 320px);
    }
}

.gallery-cta {
    position: relative;
    margin-top: 0;
    padding: 100px 40px 95px;
    background-color: var(--purple);
    text-align: center;
    z-index: 1;
}

.gallery-cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.gallery-cta h2 {
    margin: 0 0 20px;
    color: white;
    font-family: "Quicksand", sans-serif;
    font-size: 2.5em;
}

.gallery-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: white;
    line-height: 1.7;
}

.gallery-order-button {
    display: inline-block;

    padding: 14px 30px;

    background-color: var(--aqua);
    color: white;

    text-decoration: none;
    border-radius: 30px;

    font-family: "Quicksand", sans-serif;
    font-weight: 600;

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);

    transition: 
        transform 0.3s ease, 
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-order-button:hover {
    background-color: white;
    color: var(--purple);

    transform: translateY(-3px);

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.lightbox {
    position: fixed;
    inset: 0;

    display: flex;
    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;

    align-items: center;
    justify-content: center;

    padding: 40px;

    background-color: rgba(50, 25, 60, 0.88);

    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;

    border-radius: 20px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background-color: var(--aqua);
    color: white;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    transform: scale(0.8);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.lightbox.active .lightbox-close {
    transform: scale(1);
}

.lightbox-close:hover {
    background-color: var(--purple);
    transform: rotate(90deg);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 70px auto;
    max-width: 500px;
}

.section-divider::before .section-divider::after {
    content: "";
    height: 2px;
    flex: 1;
    background-color: var(--aqua);
}

.section-divider span {
    color: var(--purple);
    font-size: 1.4em;
}

/* ===== FOOTER ===== */

.site-footer {
    position: relative;
    padding: 85px 30px 30px;

    background-color: var(--dark-purple);
    color: white;

    text-align: center;
    overflow: hidden;

    z-index: 1;
}

.site-footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    background: linear-gradient(
        to bottom,
        var(--white) 0%,
        rgba(255, 255, 255, 0.85) 25%,
        rgba(255, 255, 255, 0.45) 55%,
        rgba(255, 255, 255, 0) 100%
    );

    pointer-events: none;

    z-index: 2;
}

.footer-content {
    position: relative;

    width: min(1100px, 90%);
    margin: 0 auto;

    z-index: 3;
}

.footer-decoration {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 22px;
    margin-bottom: 20px;
}

.footer-decoration span {
    display: inline-block;
    color: var(--aqua);
    font-size: 22px;
}

.footer-decoration span:nth-child(1) {
    transform: rotate(-12deg);
}

.footer-decoration span:nth-child(2) {
    color: var(--cream);
    font-size: 18px;
    transform: translateY(-5px);
}

.footer-decoration span:nth-child(3) {
    transform: rotate(12deg);
}

.footer-brand {
    display: flex;
    flex-direction: column;

    align-items: center;
    margin-bottom: 35px;
}

.footer-brand img { 
    width: 210px;
    height: auto;

    margin-bottom: 18px;
    filter: brightnexx(0) invert(1);
}

.footer-brand p {
    max-width: 500px;
    margin: 0;

    color: var(--cream);
    font-family: "Caveat", cursive;
    font-size: 1.45rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    width: 100%;
    margin: 0 auto 25px;
   
    text-align: center;
}

.footer-nav a {
    display: inline-block;
    padding: 5px 18px;
    
    color: white;

    font-family: "Quicksand", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-nav a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-nav a:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 22px;
    margin-bottom: 30px;
}

.footer-social a {
    color: var(--aqua);
    
    font-family: "Quicksand", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-social a:hover {
    color: white;

    transform: translateY(-2px);
}

.footer-divider {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;
    margin: 5px auto 25px;
}

.footer-divider span:first-child, .footer-divider span:last-child {
    width: 80px;
    height: 2px;

    background-color: var(--purple);

    border-radius: 50%;
}

.footer-divider span:nth-child(2) {
    color: var(--aqua);
    font-size: 15px;
}

.footer-bottom {
    padding-top: 5px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Quicksand", sans-serif;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .site-footer {
        padding: 75px 20px 25px;
    }

    .footer-brand img {
        width: 175px;
    }

    .footer-brand p {
        font-size: 1.25rem;
    }

    .footer-nav a {
        padding: 5px 12px;
    }

    .footer-nav a + a {
        border-left: none;
    }

    .footer-social {
        gap: 15px;
    }

    .footer-divider span:first-child, .footer-divider span:last-child {
        width: 55px;
    }
}