/* ==========================================================
   RESTU MUNINGGAR — restu.cloud
   style.css — pink elegant / romantic / dreamy / premium
   ========================================================== */

/* ==========================================================
   1. GLOBAL RESET & VARIABLES
   ========================================================== */
:root {
  /* Palette */
  --cream:      #FFF8F7;
  --pink-50:    #FCEBEF;
  --pink-100:   #F6D9E1;
  --pink-200:   #EFC0CE;
  --rose-400:   #E48DA6;
  --rose-500:   #D06F8C;
  --rose-600:   #B84E70;
  --plum-900:   #341522;
  --plum-950:   #22101A;
  --ink:        #3E2431;
  --ink-soft:   #7A5A67;
  --white:      #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Manrope', sans-serif;

  /* Layout */
  --container: 1160px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Effects */
  --shadow-soft: 0 20px 45px -20px rgba(184, 78, 112, 0.35);
  --shadow-card: 0 30px 60px -40px rgba(184, 78, 112, 0.5);
  --glass-bg:    rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, dl, dd { list-style: none; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--rose-600);
  outline-offset: 3px;
}

/* Shared layout helpers */
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-600);
  margin-bottom: 6px;
}
.section__eyebrow--light { color: var(--pink-200); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--plum-900);
  margin-bottom: 48px;
  letter-spacing: 0.2px;
}

/* Ambient background layer behind everything */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 192, 206, 0.18), transparent 40%),
    radial-gradient(circle at 88% 75%, rgba(228, 141, 166, 0.14), transparent 45%);
}

/* ==========================================================
   2. KEYFRAME LIBRARY
   ========================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.08); }
  40%      { transform: scale(0.98); }
  60%      { transform: scale(1.05); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(228, 141, 166, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(228, 141, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 141, 166, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.45; }
  100% { transform: translateY(-115vh) translateX(var(--drift, 20px)) rotate(25deg); opacity: 0; }
}

@keyframes scrollDot {
  0%   { top: 7px;  opacity: 1; }
  70%  { top: 22px; opacity: 0; }
  71%  { top: 7px;  opacity: 0; }
  100% { top: 7px;  opacity: 1; }
}

/* ==========================================================
   3. NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(255, 248, 247, 0.28);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--plum-900);
  letter-spacing: 0.5px;
}
.navbar__logo span { color: var(--rose-600); font-style: italic; }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--plum-900);
  position: relative;
  padding-bottom: 4px;
}
.navbar__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--rose-600);
  transition: width 0.3s var(--ease);
}
.navbar__link:hover::after,
.navbar__link:focus-visible::after { width: 100%; }

.navbar__link--mail {
  background: var(--rose-600);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 30px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.navbar__link--mail::after { display: none; }
.navbar__link--mail:hover {
  background: var(--plum-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Solid state once the page is scrolled — toggled by script.js */
.navbar--scrolled {
  padding: 12px 0;
  background: rgba(255, 248, 247, 0.78);
  border-color: rgba(184, 78, 112, 0.14);
  box-shadow: 0 8px 30px -18px rgba(52, 21, 34, 0.35);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--plum-900);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   4. HERO
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -6% -6%;
  background-image: url('images/landscape.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--plum-950);
  z-index: -3;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(34, 16, 26, 0.55) 0%, rgba(184, 78, 112, 0.42) 55%, rgba(34, 16, 26, 0.78) 100%);
}

.hero__hearts {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Individual hearts are appended by script.js; size/position come inline */
.heart {
  position: absolute;
  bottom: -10%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  animation: floatUp linear infinite;
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--pink-100);
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeIn 0.9s var(--ease) 0.1s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 14px;
  text-shadow: 0 12px 40px rgba(34, 16, 26, 0.45);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--pink-50);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero__desc {
  font-size: 0.98rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 34px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 32px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--primary {
  background: var(--rose-600);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(184, 78, 112, 0.8);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(184, 78, 112, 0.9); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-3px); }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  animation: fadeIn 1s var(--ease) 1.1s backwards;
}
.hero__scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--white);
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ==========================================================
   5. SCROLL REVEAL
   State toggled by script.js — supports either .active or
   .in-view so any observer implementation works.
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active,
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left  { transform: translateX(-40px); }
.reveal--left.active,
.reveal--left.in-view { transform: translateX(0); }

.reveal--right { transform: translateX(40px); }
.reveal--right.active,
.reveal--right.in-view { transform: translateX(0); }

/* ==========================================================
   6. ABOUT
   ========================================================== */
.about {
  position: relative;
  padding: 130px 0 90px;
  background: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-bottom: 70px;
}

.about__photos {
  position: relative;
  height: clamp(320px, 34vw, 420px);
}

.about__photo {
  position: absolute;
  width: 72%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 5px solid var(--pink-50);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.about__photo--front {
  left: 0;
  top: 10%;
  z-index: 2;
  animation: slideLeft 0.9s var(--ease) both;
}
.about__photo--front:hover {
  transform: translateY(-8px) rotate(-2deg) scale(1.03);
  box-shadow: var(--shadow-card);
}

.about__photo--back {
  right: 0;
  bottom: 0;
  z-index: 1;
  filter: saturate(0.92);
  animation: slideRight 0.9s var(--ease) 0.15s both;
}
.about__photo--back:hover {
  transform: translateY(-8px) rotate(2deg) scale(1.03);
  box-shadow: var(--shadow-card);
}

.about__text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.about__text strong { color: var(--rose-600); font-weight: 700; }

.info-card {
  background: var(--white);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.info-card:hover { transform: translateY(-4px); }

.info-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--plum-900);
  margin-bottom: 22px;
}

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

.info-card__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--pink-100);
}
.info-card__row dt {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.info-card__row dd {
  color: var(--plum-900);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: right;
}

/* ==========================================================
   7. GALLERY
   ========================================================== */
.gallery {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--pink-50) 100%);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 34px -24px rgba(184, 78, 112, 0.55);
  grid-row: span 2;
}
.gallery__item--tall { grid-row: span 3; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  background: linear-gradient(180deg, rgba(184, 78, 112, 0) 40%, rgba(184, 78, 112, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__item:hover .gallery__overlay {
  opacity: 1;
  animation: heartbeat 1.1s var(--ease) 1;
}

/* ==========================================================
   8. MAIL SECTION
   ========================================================== */
.mail {
  padding: 100px 0;
  background: var(--plum-950);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(184, 78, 112, 0.35), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(228, 141, 166, 0.25), transparent 50%);
}

.mail__card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mail__card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(228, 141, 166, 0.6);
  box-shadow: 0 30px 60px -30px rgba(228, 141, 166, 0.45);
}

.mail__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--plum-950);
  background: linear-gradient(140deg, var(--pink-100), var(--rose-400));
  animation: float 5s var(--ease) infinite;
}

.mail__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  margin: 6px 0 12px;
}

.mail__desc {
  color: var(--pink-50);
  font-weight: 300;
  margin-bottom: 30px;
}

.btn--mail {
  position: relative;
  background: linear-gradient(140deg, var(--rose-400), var(--rose-600));
  color: var(--white);
  padding: 15px 38px;
  box-shadow: 0 16px 32px -14px rgba(228, 141, 166, 0.7);
  animation: pulse 2.8s ease-out infinite;
}
.btn--mail:hover { transform: translateY(-3px) scale(1.03); }

/* ==========================================================
   9. SERVER INFORMATION
   ========================================================== */
.server {
  padding: 100px 0;
  background: var(--cream);
}

.server__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.server__card {
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.server__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -26px rgba(184, 78, 112, 0.55);
  border-color: var(--rose-400);
}

.server__card i {
  font-size: 1.5rem;
  color: var(--rose-600);
  margin-bottom: 14px;
  display: block;
  transition: transform 0.35s var(--ease);
}
.server__card:hover i { transform: scale(1.15); }

.server__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--plum-900);
  margin-bottom: 4px;
}

.server__card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ==========================================================
   10. FOOTER
   ========================================================== */
.footer {
  background: var(--plum-950);
  color: var(--pink-50);
  padding: 56px 0 32px;
  text-align: center;
}

.footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--pink-200);
  margin-bottom: 26px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--pink-50);
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--white); }

.footer__copy {
  font-size: 0.8rem;
  color: rgba(252, 235, 239, 0.55);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   11. RESPONSIVE BREAKPOINTS
   Desktop: > 900px (default above)
   Tablet:  721px – 900px
   Mobile:  <= 720px
   ========================================================== */

/* Tablet */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photos { max-width: 420px; margin: 0 auto; }
  .info-card__list { grid-template-columns: 1fr; }
  .server__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-auto-rows: 120px; }
}

/* Mobile */
@media (max-width: 720px) {
  .navbar__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(255, 248, 247, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 44px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 50px -30px rgba(52, 21, 34, 0.5);
  }
  .navbar__menu.is-open { transform: translateX(0); }
  .navbar__toggle { display: flex; }

  .hero__title { font-size: clamp(2.4rem, 10vw, 3.4rem); }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .server__grid { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .btn { justify-content: center; padding: 13px 24px; font-size: 0.88rem; }
  .about__photo { width: 80%; }
  .info-card__row dd { text-align: left; }
  .info-card__row { flex-direction: column; gap: 2px; }
}
