
/* =========================
   BUDAYANUSANTARA
   MAIN STYLE
========================= */

:root {
    --bg: #101116;
    --surface: #191a20;
    --surface-2: #202127;
    --text: #f6f0e7;
    --muted: #b9b4ae;
    --gold: #e9b66e;
    --gold-dark: #986b3d;
    --border: rgba(233, 182, 110, 0.24);
    --header: rgba(16, 17, 22, 0.86);
}

body.light-theme {
    --bg: #f6f1e9;
    --surface: #fffaf2;
    --surface-2: #efe7db;
    --text: #25211d;
    --muted: #71675d;
    --gold: #986b3d;
    --gold-dark: #79522f;
    --border: rgba(126, 88, 49, 0.24);
    --header: rgba(246, 241, 233, 0.92);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background .4s, color .4s;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

::selection {
    background: var(--gold);
    color: #17130f;
}

/* NAVBAR */

.navbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    padding: 0 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--header);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--gold);
    font-size: 37px;
    line-height: 1;
    animation: logoSpin 18s linear infinite;
}

.logo strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -.5px;
}

.logo small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-links > a,
.dropdown > a {
    color: var(--muted);
    font-size: 13px;
    position: relative;
    padding: 29px 0;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--gold);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 58px;
    left: -18px;
    min-width: 200px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 40px #0003;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeDown .25s ease;
}

.dropdown-menu a {
    display: block;
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
    border-radius: 7px;
}

.dropdown-menu a:hover {
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    width: 175px;
    height: 37px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 30px;
}

.search-box input {
    min-width: 0;
    width: 100%;
    background: transparent;
    color: var(--text);
    border: none;
    outline: none;
    font-size: 11px;
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-box button,
.icon-button {
    color: var(--gold);
    background: transparent;
    border: none;
    font-size: 23px;
}

.icon-button {
    font-size: 25px;
    padding: 5px;
}

.favorite-button {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 10px 14px;
    border-radius: 25px;
    font-size: 12px;
    transition: .3s;
}

.favorite-button:hover,
.favorite-button.is-favorite {
    background: var(--gold);
    color: #1a1510;
}

.menu-toggle {
    display: none;
    color: var(--gold);
    background: transparent;
    border: none;
    font-size: 25px;
}

/* HERO */

.hero {
    position: relative;
    min-height: 610px;
    height: 82vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: url("https://images.unsplash.com/photo-1584810359583-96fc3448beaa?auto=format&fit=crop&w=2200&q=90");
    background-size: cover;
    background-position: center 48%;
    transform: scale(1.08);
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg,
            rgba(12, 13, 18, .94) 0%,
            rgba(12, 13, 18, .74) 36%,
            rgba(12, 13, 18, .12) 75%,
            rgba(12, 13, 18, .3) 100%),
        linear-gradient(0deg, var(--bg), transparent 22%);
}

.hero-content {
    width: min(600px, 60%);
    margin-left: 5.5%;
    padding-top: 65px;
    animation: heroEnter 1.2s ease both;
}

.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 17px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.hero-description {
    max-width: 460px;
    color: #ded9d2;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 22px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 22px;
    border-radius: 35px;
    font-size: 12px;
    transition: transform .3s, background .3s, color .3s;
}

.button:hover {
    transform: translateY(-4px);
}

.button-gold {
    color: #21170c;
    background: linear-gradient(110deg, #f6d5a0, #d99d52);
    box-shadow: 0 8px 30px #d99d5220;
}

.button-gold:hover {
    box-shadow: 0 12px 35px #d99d5250;
}

.button-outline {
    color: #fff;
    border: 1px solid #ffffff70;
    background: #ffffff0a;
    backdrop-filter: blur(8px);
}

.play-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    font-size: 10px;
}

.hero-quote {
    position: absolute;
    right: 6%;
    top: 30%;
    text-align: center;
    color: #fff;
    animation: float 5s ease-in-out infinite;
}

.hero-quote > span {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 50px;
}

.hero-quote p {
    font-family: "Playfair Display", serif;
    font-style: italic;
    line-height: 1.8;
    font-size: 16px;
}

.quote-line {
    width: 55px;
    height: 1px;
    background: var(--gold);
    margin: 17px auto;
    position: relative;
}

.quote-line::after {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--gold);
    position: absolute;
    left: 50%;
    top: -2px;
    transform: rotate(45deg);
}

.scroll-indicator {
    position: absolute;
    right: 5.5%;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eee;
    font-size: 11px;
}

.mouse {
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 20px;
    width: 27px;
    height: 42px;
    color: var(--gold);
    animation: mouseBounce 1.8s infinite;
}

.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border: 1px solid #fff;
    border-radius: 50%;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

/* FALLING PETALS */

.petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.petal {
    position: absolute;
    top: -30px;
    width: 13px;
    height: 20px;
    background: linear-gradient(135deg, #f9d2b0, #bd655c);
    border-radius: 90% 0 90% 0;
    opacity: .65;
    animation: petalFall linear infinite;
}

/* SECTION */

.section {
    padding: 80px 5.5%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2,
.featured-content h2,
.about-text h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 500;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 10px;
}

.text-link {
    color: var(--gold);
    font-size: 12px;
    white-space: nowrap;
    transition: letter-spacing .3s;
}

.text-link:hover {
    letter-spacing: 1px;
}

/* CATEGORY CARDS */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform .4s, border-color .4s, box-shadow .4s;
}

.category-card:hover {
    transform: translateY(-9px);
    border-color: var(--gold);
    box-shadow: 0 20px 45px #0003;
}

.category-image {
    height: 190px;
    position: relative;
    overflow: hidden;
}

.category-image img {
    transition: transform .8s;
}

.category-card:hover img {
    transform: scale(1.09);
}

.category-image::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, #0008);
}

.category-icon {
    position: absolute;
    z-index: 2;
    bottom: -19px;
    left: 20px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 23px;
}

.category-info {
    padding: 28px 20px 22px;
}

.category-info h3 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
}

.category-info h3 span {
    color: var(--gold);
    transition: transform .3s;
}

.category-card:hover h3 span {
    transform: translate(4px, -4px);
}

.category-info p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 9px;
}

/* FEATURED */

.featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr .55fr;
    align-items: center;
    gap: 38px;
    padding-top: 25px;
}

.featured-image {
    height: 330px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.featured-image img {
    transition: transform 1s;
}

.featured-image:hover img {
    transform: scale(1.06);
}

.image-label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: #151515b5;
    color: var(--gold);
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 9px;
    letter-spacing: 2px;
}

.featured-content h2 {
    font-size: clamp(27px, 2.6vw, 38px);
}

.featured-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin: 18px 0 24px;
}

.featured-quote {
    text-align: center;
    padding: 25px;
    background: radial-gradient(ellipse, var(--surface-2), transparent 70%);
}

.big-quote {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: .8;
}

.featured-quote p {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 19px;
    font-style: italic;
    line-height: 1.7;
}

/* ABOUT */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    overflow: hidden;
}

.about-text h2 span {
    color: var(--gold);
}

.about-text > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
    margin-top: 20px;
}

.about-text .text-link {
    display: inline-block;
    margin-top: 25px;
}

.about-art {
    height: 420px;
    position: relative;
    padding: 25px;
}

.about-art img {
    position: relative;
    z-index: 2;
    border-radius: 180px 180px 15px 15px;
    border: 1px solid var(--border);
}

.art-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    right: -40px;
    top: -20px;
    border: 1px solid var(--gold-dark);
    border-radius: 50%;
    opacity: .5;
    animation: logoSpin 35s linear infinite;
}

.art-caption {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 15px;
    padding: 18px 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.art-caption span {
    color: var(--gold);
    font-size: 10px;
}

.art-caption p {
    font-family: "Playfair Display", serif;
    font-size: 18px;
    margin-top: 5px;
}

/* GALLERY */

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 240px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid var(--border);
}

.gallery-item img {
    transition: transform .8s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, #000b);
}

.gallery-caption {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    color: #fff;
}

.gallery-caption span {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2px;
}

.gallery-caption h3 {
    font-family: "Playfair Display", serif;
    font-size: 21px;
    font-weight: 500;
    margin-top: 6px;
}

/* FOOTER */

.footer {
    padding: 45px 5.5% 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 35px;
}

.footer-top > p {
    color: var(--muted);
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
}

.back-top {
    color: var(--gold);
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
}

/* REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:nth-child(2) {
    transition-delay: .08s;
}

.category-card:nth-child(3) {
    transition-delay: .16s;
}

.category-card:nth-child(4) {
    transition-delay: .05s;
}

.category-card:nth-child(5) {
    transition-delay: .12s;
}

.category-card:nth-child(6) {
    transition-delay: .2s;
}

/* KEYFRAMES */

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1.16); }
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes logoSpin {
    to { transform: rotate(360deg); }
}

@keyframes mouseBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, -30px, 0) rotate(0);
        opacity: 0;
    }
    10% { opacity: .7; }
    90% { opacity: .5; }
    100% {
        transform: translate3d(100px, 750px, 0) rotate(650deg);
        opacity: 0;
    }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .navbar {
        padding: 0 3%;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-actions {
        gap: 7px;
    }

    .search-box {
        width: 140px;
    }

    .section {
        padding-left: 4%;
        padding-right: 4%;
    }

    .featured {
        grid-template-columns: 1fr 1fr;
    }

    .featured-quote {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .navbar {
        height: 70px;
    }

    .logo strong {
        font-size: 19px;
    }

    .logo small {
        font-size: 9px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .nav-actions {
        margin-left: auto;
    }

    .search-box {
        width: 120px;
    }

    .favorite-button span {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 15px 5%;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links.show {
        display: flex;
        animation: fadeDown .3s ease;
    }

    .nav-links > a,
    .dropdown > a {
        display: block;
        padding: 14px 0;
    }

    .nav-links a.active::after {
        bottom: 7px;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero {
        height: 740px;
        max-height: none;
        min-height: 620px;
    }

    .hero-content {
        width: 80%;
    }

    .hero-quote {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .category-image {
        height: 160px;
    }

    .featured {
        gap: 25px;
    }

    .about-section {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px;
    }

    .gallery-item:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding: 0 4%;
        gap: 8px;
    }

    .logo {
        gap: 6px;
    }

    .logo-icon {
        font-size: 27px;
    }

    .logo strong {
        font-size: 15px;
    }

    .logo small {
        font-size: 7px;
        letter-spacing: .5px;
    }

    .nav-actions {
        gap: 4px;
    }

    .search-box {
        width: 35px;
        padding: 0 8px;
        border: none;
    }

    .search-box input {
        width: 0;
        opacity: 0;
        transition: width .3s;
    }

    .search-box:focus-within {
        width: 140px;
        border: 1px solid var(--border);
    }

    .search-box:focus-within input {
        width: 100%;
        opacity: 1;
    }

    .icon-button {
        font-size: 21px;
    }

    .favorite-button {
        padding: 8px 10px;
        font-size: 17px;
    }

    .hero {
        height: 680px;
        min-height: 600px;
        align-items: center;
    }

    .hero-background {
        background-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            #101116eF,
            #101116a6
        ), linear-gradient(0deg, var(--bg), transparent 25%);
    }

    .hero-content {
        width: 90%;
        margin-left: 5%;
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .button {
        padding: 13px 17px;
        font-size: 11px;
    }

    .scroll-indicator {
        right: 5%;
        bottom: 25px;
        font-size: 9px;
    }

    .hero-pagination {
        bottom: 43px;
    }

    .section {
        padding: 55px 5%;
    }

    .section-heading {
        align-items: start;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .section-subtitle {
        line-height: 1.7;
    }

    .text-link {
        font-size: 10px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-image {
        height: 210px;
    }

    .category-info {
        padding-bottom: 20px;
    }

    .featured {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }

    .featured-image {
        height: 260px;
    }

    .featured-content h2 {
        font-size: 31px;
    }

    .featured-quote {
        grid-column: auto;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-art {
        height: 340px;
        padding: 15px;
    }

    .art-circle {
        width: 220px;
        height: 220px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 220px 220px;
    }

    .gallery-item:first-child {
        grid-column: auto;
    }

    .footer-top {
        align-items: start;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        line-height: 1.7;
    }
}

/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}