/* ================= RESET ================= */
* { box-sizing: border-box; }

/* ================= BACKGROUND ================= */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,180,80,0.35), transparent 60%),
        radial-gradient(circle at 70% 20%, rgba(255,130,60,0.30), transparent 65%),
        radial-gradient(circle at 40% 70%, rgba(255,200,120,0.40), transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(255,160,70,0.28), transparent 60%),
        radial-gradient(circle at 10% 85%, rgba(255,100,40,0.22), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255,230,180,0.45), transparent 70%),
        #fffdf7;

    background-attachment: fixed;
    color: #4a3b22;

    display: flex;
    flex-direction: column;
}

/* ================= PAGE ================= */
.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ================= MAIN ================= */
main {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #6b5a3a;
}

/* ---------- Hero Image ---------- */
.hero-image-card img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        0 10px 25px rgba(0,0,0,0.08),
        0 0 40px rgba(255,230,160,0.45);
}

/* ================= WORKS PREVIEW ================= */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

/* ================= HOME RANDOM IMAGES ================= */
#home-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-random-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f3f3;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.25s ease;
}

.home-random-image:hover {
    transform: scale(1.04);
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

/* ================= FOOTER ================= */
footer {
    margin-top: auto;
    text-align: center;
    padding: 30px 0 10px;
    font-size: 0.85rem;
    color: #7e6c4a;
}

/* ================= TRANSITION ================= */
#content {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#content.is-loading {
    opacity: 0;
    transform: translateY(6px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 700px) {
    #home-gallery {
        grid-template-columns: 1fr;
    }

    main {
        gap: 70px;
    }
}
