html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

header {
    background-color: #ffffff;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

nav a:hover { color: #a3d0f3; }

.logo-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.hero {
    background-color: #a4d8f0;
    text-align: center;
    padding: 13px 20px 0;
    position: relative;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 2;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 15px;
    transform: scale(0.9);
    transition: 0.3s;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(white 0.8px, transparent 1px),
        radial-gradient(white 0.6px, transparent 1px);
    background-size: 180px 180px, 140px 140px, 120px 120px;
    background-position:
        0 0,
        50px 80px,
        120px 40px;
    opacity: 0.65;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.welcome-img {
    max-width: 400px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: #fff;
    max-width: 650px;
    margin: 7px 10px;
    font-size: 1.1rem;
    line-height: 1;
}

.hero-content {
    opacity: 0;
    transform: translateY(10px);
    animation: pageEnter 0.5s ease forwards;
}

@keyframes pageEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p.first-text {
    margin-top: -10px;
}

.mascot-container {
    margin-top: 15px;
    position: relative;
    z-index: 10;
}

.mascot-img {
    width: 310px;
    position: relative;
    top: 40px;
}

.cloud {
    position: absolute;
    bottom: -8vw;
    width: 35vw;
    max-width: 600px;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.cloud-left {
    left: -5vw;
}

.cloud-right {
    right: -5vw;
    transform: scaleX(-1);
}

.gallery {
    padding: 50px 10%;
    background-color: #ffffff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.art-card {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.art-card:hover {
    transform: scale(1.02);
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-content {
    opacity: 0;
    transform: translateY(10px);
    animation: pageEnter 0.5s ease forwards;
}

@keyframes pageEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {

    header {
        overflow: hidden;
    }

    .mobile-menu-icon {
        display: block;
        cursor: pointer;
        padding: 10px;
        z-index: 1100;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: #000000;
        margin: 5px 0;
        transition: 0.4s;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: #ffffff;
        width: 70%;
        height: 100vh;
        padding-top: 100px;
        transition: 0.5s;
        z-index: 1000;
        gap: 30px;
    }

    nav ul.active { right: 0; }

    .logo-item { order: -1; margin-bottom: 20px; }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 999;
    }

    .icon-images-row { gap: 10px; }
    .icon-side { width: 100px; height: 100px; }
    .icon-center { width: 140px; height: 140px; }
    .icon-header-text, .icon-price-text { font-size: 2.5rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 15px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero, .gallery, header {
        width: 100%;
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .mobile-menu-icon { display: none; }
}

.header-mobile {
    display: none;
}

.header-desktop {
    display: block;
}

@media (max-width: 768px) {

    header {
        overflow: hidden;
    }

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }
}

.menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 20px;
    top: 45px;
    cursor: pointer;
    z-index: 300;
}

.menu-toggle span {
    position: absolute;
    width: 22px;
    height: 2.5px;
    background: #333;
    border-radius: 5px;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle span:nth-child(2) {
    transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

.menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 200;
}

.header-mobile nav ul {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 100px;
    padding-left: 30px;
    gap: 25px;
    transform: translateX(100%);
    transition: 0.3s;
    z-index: 250;
}

.header-mobile nav ul.active {
    transform: translateX(0);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {

    .welcome-img {
    max-width: 200px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

    .hero {
        padding-top: 30px;
    }

    .cloud {
        width: 50vw;
        bottom: -12vw;
    }

    .star {
        width: 3vw;
    }
}

html, body {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
  html, body {
    overflow-x: hidden;
  }
}