@font-face {
    font-family: "Berlin Sans";
    src: url(./Fonts/BerlinSans.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Cicle Gordita";
    src: url(./Fonts/CicleGordita.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --lila-color: #2C0244;
    --bg-color: #d48aff;
    --font1: "Berlin Sans";
    --font2: "Cicle Gordita";
    --bgcolor1: #ffeeee;
    --ftcolor1: #F97A7A;
    --bgcolor2: #f5f3ec;
    --ftcolor2: #685B37;
    --bgcolor3: #eceef0;
    --ftcolor3: #4F6D8E;
    --bgcolor4: #fff3e9;
    --ftcolor4: #FF8C3E;
    --maincolor: #fecdc8;
    --main-text: #f77b6d;
    --footerbg: #ff9b90;
}

*, ::before, ::after {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

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

*:focus {
    outline: none;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: #fdf5ff;
}

/* ── Navbar ─────────────────────────────────────── */

.navbar {
    width: 100vw;
    height: 10rem;
    margin: 0 auto;
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: var(--font1), sans-serif;
    font-size: 2.3rem;
    background-color: transparent;
    z-index: 1;
    transition: .5s;
}

.navbar img {
    width: 15rem;
    height: 15rem;
    margin-top: 4rem;
    transition: .5s;
}

.menu-icon {
    display: none;
}

.menu-container {
    display: none;
}

.navbar a {
    text-decoration: none;
    color: var(--lila-color);
    margin: 0 9rem;
    padding: 1rem;
}

.navbar a:hover {
    background-color: rgba(1, 1, 1, .1);
    border-radius: 2rem;
    transition: .3s;
}

#logo-tag:hover {
    cursor: pointer;
    background-color: transparent;
}

.scrolling {
    background-color: var(--maincolor);
    transition: .5s;
}

.scrolling img {
    width: 10rem;
    height: 10rem;
    margin-top: 0;
    transition: .5s;
}

.scrolling-phone {
    background-color: var(--maincolor);
    transition: .5s;
    z-index: 3;
}

/* ── Gallery hero header ────────────────────────── */

.gallery-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding-top: 12rem;
    padding-bottom: 4rem;
    background-color: var(--maincolor);
}

.gallery-hero h1 {
    font-family: var(--font1);
    font-size: 6rem;
    color: var(--lila-color);
    letter-spacing: .4rem;
    margin-bottom: 1rem;
}

.gallery-hero p {
    font-family: var(--font2), sans-serif;
    font-size: 2rem;
    color: var(--lila-color);
    opacity: 0.75;
}

/* ── Gallery grid ───────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
    padding: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    aspect-ratio: 1 / 1;
    background-color: var(--maincolor);
    box-shadow: 0 4px 12px rgba(44, 2, 68, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* ── Footer ─────────────────────────────────────── */

footer {
    width: 110%;
    position: relative;
    left: -4%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    background-image: url(./img/ftbg4.svg);
    background-size: cover;
    background-color: transparent;
    padding-bottom: 2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 10rem;
    margin-top: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font2);
    color: white;
    font-size: 1.2rem;
}

.footer-info p {
    margin-bottom: .5rem;
}

.footer-info2 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font2);
    margin: 2rem;
    font-size: 1.2rem;
}

.footer-info2 a {
    text-decoration: none;
    color: white;
}

.footer-info2 a:hover {
    color: var(--main-text);
}

/* ── Responsive: tablet (≤1024px) ───────────────── */

@media (max-width: 1024px) {
    .navbar a {
        margin: 0 2rem;
    }

    .navbar img {
        width: 10rem;
        margin-top: 1rem;
    }

    .scrolling {
        height: 5rem;
        align-items: center;
        position: fixed;
    }

    .scrolling img {
        width: 5rem;
        height: 5rem;
        margin-top: 0;
        transition: .5s;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
        padding: 3rem;
    }
}

/* ── Responsive: phone (≤520px) ─────────────────── */

@media (max-width: 520px) {
    .nav-item {
        display: none;
    }

    .phonenav {
        position: fixed;
        display: flex;
        flex-direction: column;
        width: 100vw;
        background-color: transparent;
        z-index: 2;
    }

    .menu-icon {
        width: 4rem;
        margin: 4rem;
    }

    .menu-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        width: 0;
        align-items: center;
        justify-content: space-between;
        background-color: var(--lila-color);
        transition: 0.5s;
        z-index: 3;
        position: fixed;
        top: 0;
        left: 0;
        overflow: hidden;
    }

    .phonemenu-items {
        display: flex;
        flex-direction: column;
    }

    .menu-container a {
        text-decoration: none;
        color: white;
        font-family: var(--font1);
        text-align: center;
        margin: 1rem;
        text-transform: uppercase;
        display: none;
        transition: 0.5s;
        font-size: 3rem;
    }

    .menu-container span {
        width: 4rem;
        align-self: flex-end;
        justify-self: flex-start;
        margin: 4rem 3rem 0 0;
    }

    .phonemenu-social {
        display: flex;
        flex-direction: row;
        filter: invert(100%) sepia(1%) saturate(1241%) hue-rotate(211deg) brightness(122%) contrast(100%);
        margin-bottom: 1rem;
    }

    .phonemenu-social img {
        width: 4rem;
    }

    .gallery-hero {
        padding-top: 8rem;
    }

    .gallery-hero h1 {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
        margin: 2rem auto;
    }
}
