/* @import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");


:root {
  --cyan: #36eaea;
  --pink: #ff2a93;
  --purple: #8a2be2;
  --dark-purple: #1e0b2f;
  --darker-purple: #120619;
  --gradient: linear-gradient(90deg, var(--cyan), var(--pink));
}

body {
    font-family: "Playfair Display", serif;
}

.nara-heading-font {
    font-family: "Playfair Display", serif;
    font-weight: 300;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.3s;
}

.nav-item:hover::after {
  width: 100%;
}


.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
}


/* ============================
   NARA MOVEMENT ANIMATIONS
============================ */

@keyframes naraHeroZoom {
    0% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes naraFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes naraBreathing {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.92;
    }

    50% {
        transform: scale(1.018);
        opacity: 1;
    }
}

.nara-hero {
    position: relative;
    overflow: hidden;
}

.nara-hero-slide {
    position: absolute;
    inset: -6px;
    background-image: var(--nara-hero-background);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    animation: naraHeroZoom 18s ease-in-out infinite alternate;
    transition: opacity 1200ms ease;
    z-index: 0;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.nara-hero-slide-active {
    opacity: 1;
}

.nara-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(242, 229, 214, 0.94) 0%,
        rgba(242, 229, 214, 0.7) 43%,
        rgba(242, 229, 214, 0.08) 100%
    );
    z-index: 1;
}

.nara-hero-content {
    position: relative;
    z-index: 2;
}

.nara-fade-up {
    opacity: 0;
    animation: naraFadeUp 750ms ease-out forwards;
}

.nara-delay-100 {
    animation-delay: 100ms;
}

.nara-delay-200 {
    animation-delay: 200ms;
}

.nara-delay-300 {
    animation-delay: 300ms;
}

.nara-delay-400 {
    animation-delay: 400ms;
}

.nara-countdown {
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    gap: 10px;
    font-family: "Playfair Display", serif;
    color: #6f503d;
}

.nara-countdown-item {
    display: flex;
    min-width: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    padding: 18px 22px;
    box-shadow: 0 14px 32px rgba(111, 80, 61, 0.12);
}

.nara-countdown-value {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    line-height: 0.95;
}

.nara-countdown-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.nara-program-card {
    position: relative;
    overflow: hidden;
}

.nara-program-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--nara-card-background);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 700ms ease;
    z-index: 0;
}

.nara-program-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(96, 64, 43, 0.78),
        rgba(96, 64, 43, 0.32)
    );
    transition: background 700ms ease;
    z-index: 1;
}

.nara-program-card:hover::before {
    transform: scale(1.06);
}

.nara-program-card:hover::after {
    background: linear-gradient(
        90deg,
        rgba(96, 64, 43, 0.86),
        rgba(96, 64, 43, 0.42)
    );
}

.nara-program-card-content {
    position: relative;
    z-index: 2;
}

.nara-breathing {
    animation: naraBreathing 5.5s ease-in-out infinite;
    transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
    .nara-hero-slide,
    .nara-fade-up,
    .nara-breathing {
        animation: none;
        transform: none;
    }

    .nara-hero-slide {
        transition: none;
    }

    .nara-fade-up {
        opacity: 1;
    }

    .nara-hero-slide:not(.nara-hero-slide-active) {
        opacity: 0;
    }

    .nara-program-card::before {
        transition: none;
    }
}

@media (max-width: 640px) {
    .nara-hero::after {
        background: linear-gradient(
            180deg,
            rgba(242, 229, 214, 0.95) 0%,
            rgba(242, 229, 214, 0.82) 58%,
            rgba(242, 229, 214, 0.28) 100%
        );
    }

    .nara-hero-slide {
        background-position: 62% center;
    }

    .nara-countdown {
        width: 100%;
        gap: 8px;
    }

    .nara-countdown-item {
        flex-basis: calc(50% - 4px);
        min-width: 0;
        padding: 14px 10px;
    }

    .nara-countdown-value {
        font-size: clamp(34px, 12vw, 48px);
    }

    .nara-countdown-label {
        font-size: 11px;
        letter-spacing: 0.11em;
    }
}

@media (max-width: 380px) {
    .nara-countdown-item {
        padding: 12px 8px;
    }

    .nara-countdown-value {
        font-size: 32px;
    }

    .nara-countdown-label {
        font-size: 10px;
        letter-spacing: 0.08em;
    }
}


/* ============================
   NARA DESKTOP SIDE DECORATIONS
============================ */

.nara-page-shell {
    position: relative;
    overflow: hidden;
}

.nara-side-decorations {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    display: none;
}

.nara-floating-label {
    position: absolute;
    color: rgba(111, 80, 61, 0.72);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 12px rgba(247, 239, 230, 0.95);
    animation: naraFloatLabel 8s ease-in-out infinite;
}

.nara-floating-label-left {
    left: 28px;
    top: 34%;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.nara-floating-label-right {
    right: 28px;
    top: 44%;
    writing-mode: vertical-rl;
}

.nara-floating-label-bottom-left {
    left: 42px;
    bottom: 18%;
}

.nara-floating-label-bottom-right {
    right: 42px;
    bottom: 22%;
}

.nara-side-circle {
    position: absolute;
    border: 1px solid rgba(111, 80, 61, 0.16);
    border-radius: 9999px;
    animation: naraSlowPulse 7s ease-in-out infinite;
}

.nara-side-circle-left {
    left: -90px;
    top: 18%;
    width: 180px;
    height: 180px;
}

.nara-side-circle-right {
    right: -120px;
    bottom: 14%;
    width: 240px;
    height: 240px;
}

.nara-side-image {
    position: absolute;
    width: 180px;
    height: 240px;
    object-fit: cover;
    opacity: 0.12;
    filter: grayscale(100%);
    border-radius: 120px 120px 0 0;
}

.nara-side-image-left {
    left: 24px;
    top: 58%;
}

.nara-side-image-right {
    right: 24px;
    top: 16%;
}

@keyframes naraFloatLabel {
    0%,
    100% {
        opacity: 0.78;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@keyframes naraSlowPulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.04);
    }
}

@media (min-width: 1850px) {
    .nara-side-decorations {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nara-floating-label,
    .nara-side-circle {
        animation: none;
    }
}
