* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    overflow-x: hidden;
}

nav {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: #171717;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
    flex: 0 0 auto;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 24px 88px;
    text-align: center;
    background: url('background/hero.jpg') center 22%/cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
}

.hero h1,
.hero p,
.arrow {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 70px);
    color: rgba(255, 255, 255, 0.85);
}

.hero p {
    max-width: 680px;
    margin: 12px 0 0;
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.arrow {
    position: absolute;
    bottom: 18px;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    animation: bounce 4.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(12px); }
    60% { transform: translateY(6px); }
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.card {
    position: relative;
    display: block;
    overflow: hidden;
}

.card img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.45s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.card-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 30px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    z-index: 1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
}

.gallery img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.upload {
    text-align: center;
    margin: 20px;
}

.contact {
    text-align: center;
    padding: 50px;
}

.contact h1 {
    font-size: 40px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.contact-buttons a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: black;
    color: white;
    font-size: 28px;
    text-decoration: none;
    transition: 0.3s;
}

.contact-buttons a:hover {
    transform: scale(1.12);
    background: #333;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

input,
textarea {
    width: min(100%, 300px);
    padding: 10px;
}

textarea {
    height: 100px;
}

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

@media (max-width: 900px) {
    nav a {
        font-size: 18px;
        padding: 9px 13px;
    }

    .hero {
        min-height: 72vh;
        padding: 9vh 18px 76px;
    }

    .card img {
        height: 280px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 14px;
    }
}

@media (max-width: 640px) {
    nav {
        gap: 6px;
        padding: 8px 10px;
    }

    nav a {
        font-size: 15px;
        padding: 8px 10px;
    }

    .hero {
        min-height: 64vh;
        padding: 8vh 16px 68px;
        background-position: center 18%;
    }

    .hero h1 {
        font-size: clamp(30px, 8.6vw, 40px);
    }

    .hero p {
        max-width: 320px;
        font-size: 15px;
    }

    .arrow {
        font-size: 40px;
    }

    .card img {
        height: 210px;
    }

    .card-title {
        font-size: 20px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }
}
