﻿@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Great+Vibes&family=Poppins:wght@300;400;500;600;700&display=swap');

    :root {
      --cream: #fff7e7;
      --cream-dark: #f3dfb6;
      --gold: #c99835;
      --deep-gold: #8b631d;
      --terracotta: #8f3326;
      --maroon: #4c1713;
      --leaf: #284137;
      --brown: #3b2318;
      --white: #ffffff;
      --shadow: 0 20px 60px rgba(76, 23, 19, 0.16);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Poppins', sans-serif;
      color: var(--brown);
      background: #ffffff;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -3;
      background:
        radial-gradient(circle at 18% 8%, rgba(201, 152, 53, 0.10), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(139, 99, 29, 0.08), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fffdf8 52%, #ffffff 100%);
    }

    body::after {
      content: '';
      position: fixed;
      inset: 0;
      z-index: -2;
      opacity: 0.28;
      background-image:
        repeating-linear-gradient(
          135deg,
          rgba(201, 152, 53, 0.12) 0,
          rgba(201, 152, 53, 0.12) 1px,
          transparent 1px,
          transparent 14px
        ),
        repeating-linear-gradient(
          45deg,
          rgba(139, 99, 29, 0.06) 0,
          rgba(139, 99, 29, 0.06) 1px,
          transparent 1px,
          transparent 20px
        );
      background-size: 22px 22px, 28px 28px;
      pointer-events: none;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .container {
      width: min(1120px, calc(100% - 36px));
      margin: auto;
    }

    .section {
      padding: 92px 0;
      position: relative;
    }

    .section-title {
      text-align: center;
      margin-bottom: 48px;
    }

    .eyebrow {
      font-family: 'Cinzel', serif;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--terracotta);
      font-size: 0.78rem;
      font-weight: 700;
    }

    .section-title h2 {
      font-family: 'Great Vibes', cursive;
      font-size: clamp(3rem, 7vw, 5.2rem);
      color: var(--maroon);
      font-weight: 400;
      margin: 10px 0;
    }

    .section-title p {
      max-width: 660px;
      margin: auto;
      line-height: 1.8;
      color: rgba(59, 35, 24, 0.74);
    }

    .balinese-border {
      position: relative;
      border: 1px solid rgba(201, 152, 53, 0.55);
    }

    .balinese-border::before,
    .balinese-border::after {
      content: '\2726';
      position: absolute;
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      background: var(--cream);
      color: var(--gold);
      border: 1px solid rgba(201, 152, 53, 0.55);
      border-radius: 50%;
    }

    .balinese-border::before {
      top: -17px;
      left: -17px;
    }

    .balinese-border::after {
      right: -17px;
      bottom: -17px;
    }

    .navbar {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      width: min(980px, calc(100% - 28px));
      z-index: 99;
      background: rgba(255, 247, 231, 0.82);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(201, 152, 53, 0.42);
      border-radius: 999px;
      box-shadow: 0 14px 40px rgba(76, 23, 19, 0.12);
      padding: 10px 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0;
      color: var(--maroon);
    }

    .brand-mark {
      display: inline-block;
      background: transparent;
      box-shadow: none;
      color: var(--maroon);
      font-family: 'Great Vibes', cursive;
      font-size: 2.1rem;
      font-weight: 400;
      line-height: 1;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .nav-links {
      list-style: none;
      display: flex;
      gap: 22px;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--brown);
    }

    .nav-links a:hover {
      color: var(--terracotta);
    }

    .menu-toggle {
      display: none;
      background: var(--terracotta);
      border: 0;
      color: var(--cream);
      border-radius: 50%;
      width: 38px;
      height: 38px;
      font-size: 1.2rem;
      cursor: pointer;
    }

    .hero {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 118px 0 70px;
      position: relative;
      overflow: hidden;
    }

    .ornament {
      position: absolute;
      width: 260px;
      height: 260px;
      opacity: 0.2;
      pointer-events: none;
      background:
        radial-gradient(circle, transparent 36%, var(--gold) 37%, transparent 39%),
        repeating-conic-gradient(from 0deg, transparent 0deg 13deg, var(--terracotta) 14deg 17deg, transparent 18deg 30deg);
      border-radius: 50%;
      filter: blur(0.2px);
      animation: float 8s ease-in-out infinite;
    }

    .ornament.one { top: 110px; left: -90px; }
    .ornament.two { bottom: 40px; right: -90px; animation-delay: -3s; }

    .hero-card {
      width: min(980px, calc(100% - 32px));
      min-height: 680px;
      border-radius: 34px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow);
      background-image:
        linear-gradient(rgba(76, 23, 19, 0.42), rgba(76, 23, 19, 0.52)),
        url('./foto/optimized/GTA-36.jpg');
      background-size: cover;
      background-position: center 34%;
      background-repeat: no-repeat;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--cream);
      isolation: isolate;
    }

    .hero-card::before {
      content: '';
      position: absolute;
      inset: 24px;
      border: 1px solid rgba(255, 247, 231, 0.62);
      border-radius: 28px;
      z-index: -1;
    }

    .hero-content {
      padding: 42px 26px;
    }

    .hero-content .eyebrow {
      color: #f7dc9b;
    }

    .hero h1 {
      font-family: 'Great Vibes', cursive;
      font-weight: 400;
      font-size: clamp(4.6rem, 14vw, 9.5rem);
      line-height: 0.9;
      margin: 18px 0 22px;
      text-shadow: 0 16px 50px rgba(0,0,0,.28);
    }

    .hero-date {
      font-family: 'Cinzel', serif;
      font-size: clamp(1rem, 2.5vw, 1.5rem);
      letter-spacing: 5px;
      text-transform: uppercase;
      margin-bottom: 32px;
    }

    .countdown {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      max-width: 540px;
      margin: 0 auto 32px;
    }

    .countdown div {
      background: rgba(255, 247, 231, 0.18);
      border: 1px solid rgba(255, 247, 231, 0.38);
      border-radius: 18px;
      padding: 14px 8px;
      backdrop-filter: blur(1px);
    }

    .countdown strong {
      display: block;
      font-family: 'Cinzel', serif;
      font-size: 1.65rem;
    }

    .countdown span {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      cursor: pointer;
      padding: 14px 28px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--gold), #f3d17b);
      color: var(--maroon);
      font-weight: 700;
      box-shadow: 0 14px 32px rgba(0,0,0,.18);
      transition: .25s ease;
    }

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 20px 42px rgba(0,0,0,.22);
    }

    .couple-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
    }

    .couple-card {
      background: rgba(255, 255, 255, 0.56);
      border-radius: 30px;
      padding: 22px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
    }

    .couple-photo {
      aspect-ratio: 4/5;
      border-radius: 24px;
      overflow: hidden;
      margin-bottom: 24px;
      position: relative;
    }

    .couple-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: sepia(0.16) saturate(0.9);
      transition: transform .5s ease;
    }

    .couple-card:hover img {
      transform: scale(1.06);
    }

    .couple-card h2 {
      font-family: 'Great Vibes', cursive;
      color: var(--maroon);
      font-size: 2rem;
      font-weight: 400;
      margin-bottom: 8px;
      text-align: center;
    }

    .couple-card p {
      line-height: 1.8;
      color: rgba(59, 35, 24, 0.78);
      text-align: center;
    }

    .quote {
      background:
        linear-gradient(rgba(76, 23, 19, 0.72), rgba(76, 23, 19, 0.72));
      color: var(--cream);
      text-align: center;
      padding: 120px 20px;
    }

    .quote h2 {
      font-family: 'Cinzel', serif;
      font-size: clamp(1.6rem, 4vw, 3rem);
      line-height: 1.45;
      max-width: 900px;
      margin: auto;
    }

    .quote p {
      margin-top: 20px;
      color: #f3d17b;
      letter-spacing: 3px;
      text-transform: uppercase;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
    }

    .feature-card {
      background: rgba(255,255,255,.58);
      border-radius: 26px;
      padding: 28px;
      box-shadow: var(--shadow);
      transition: .25s ease;
    }

    .feature-card:hover {
      transform: translateY(-8px);
    }

    .feature-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      color: var(--cream);
      background: linear-gradient(135deg, var(--terracotta), var(--gold));
      font-size: 1.6rem;
      margin-bottom: 18px;
    }

    .feature-card h3 {
      font-family: 'Cinzel', serif;
      color: var(--maroon);
      margin-bottom: 10px;
    }

    .feature-card p {
      color: rgba(59,35,24,.72);
      line-height: 1.75;
      font-size: .95rem;
    }

    #event .container {
      width: min(1280px, calc(100% - 28px));
    }

    .timeline {
      display: grid;
      grid-template-columns: minmax(320px, 50%);
      gap: clamp(16px, 2vw, 24px);
      justify-content: center;
      align-items: stretch;
    }

    .event-card {
      padding: clamp(24px, 2.6vw, 34px);
      border-radius: clamp(22px, 2vw, 30px);
      background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,247,231,.82));
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      min-height: 100%;
    }

    .event-card::before {
      content: '';
      position: absolute;
      width: 120px;
      height: 120px;
      right: -40px;
      top: -40px;
      border-radius: 50%;
      background: rgba(201, 152, 53, .16);
    }

    .event-card h3 {
      font-family: 'Cinzel', serif;
      color: var(--maroon);
      margin-bottom: 18px;
    }

    .event-card ul {
      list-style: none;
      display: grid;
      gap: 12px;
      color: rgba(59,35,24,.78);
      line-height: 1.6;
    }

    .event-card li::before {
      content: '\2756';
      color: var(--gold);
      margin-right: 8px;
    }

    .map-card {
      background: rgba(255, 255, 255, 0.62);
      border-radius: 30px;
      padding: 18px;
      box-shadow: var(--shadow);
    }

    .map-frame {
      width: 100%;
      min-height: 420px;
      border: 0;
      border-radius: 22px;
      display: block;
    }

    .map-btn {
      margin-top: 16px;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }

    .gallery-item {
      border-radius: 22px;
      overflow: hidden;
      min-height: 230px;
      box-shadow: 0 12px 30px rgba(76,23,19,.15);
      cursor: pointer;
      position: relative;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
      grid-row: span 2;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: .45s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.08);
      filter: brightness(.78);
    }

    .gallery-carousel {
      position: relative;
    }

    .gallery-nav,
    .gallery-dots {
      display: none;
    }

    .rsvp-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
      align-items: stretch;
    }

    .rsvp-image {
      border-radius: 32px;
      overflow: hidden;
      min-height: 520px;
      box-shadow: var(--shadow);
      background: linear-gradient(135deg, rgba(243, 223, 182, 0.7), rgba(255, 247, 231, 0.9));
    }

    .rsvp-form {
      background: rgba(255,255,255,.66);
      border-radius: 32px;
      padding: 36px;
      box-shadow: var(--shadow);
    }

    .form-group {
      margin-bottom: 18px;
    }

    label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--maroon);
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid rgba(201, 152, 53, .45);
      border-radius: 16px;
      padding: 14px 16px;
      font-family: inherit;
      background: rgba(255,247,231,.72);
      outline: none;
      color: var(--brown);
    }

    textarea {
      min-height: 130px;
      resize: vertical;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--terracotta);
      box-shadow: 0 0 0 4px rgba(143, 51, 38, .08);
    }

    .form-message {
      margin-top: 14px;
      color: var(--leaf);
      font-weight: 600;
      min-height: 24px;
    }

    .wishes-board {
      background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,247,231,.9));
      border-radius: 30px;
      box-shadow: var(--shadow);
      padding: 18px;
      max-width: 840px;
      margin: 0 auto;
      border: 1px solid rgba(201, 152, 53, 0.28);
    }

    .wishes-window {
      height: 320px;
      overflow: hidden;
      position: relative;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.66);
      border: 1px solid rgba(201, 152, 53, 0.18);
    }

    .wishes-track {
      padding: 14px;
      display: grid;
      gap: 12px;
      will-change: transform;
    }

    .wish-item {
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(201, 152, 53, 0.26);
      border-radius: 16px;
      padding: 14px 16px;
      box-shadow: 0 8px 20px rgba(76, 23, 19, 0.08);
    }

    .wish-item h4 {
      font-family: 'Cinzel', serif;
      color: var(--maroon);
      font-size: 0.95rem;
      margin-bottom: 8px;
    }

    .wish-item p {
      color: rgba(59, 35, 24, 0.84);
      line-height: 1.6;
      font-size: 0.92rem;
      word-break: break-word;
    }

    .footer {
      background: var(--maroon);
      color: var(--cream);
      text-align: center;
      padding: 62px 18px;
      position: relative;
      overflow: hidden;
    }

    .footer::before {
      content: '';
      position: absolute;
      inset: 0;
      opacity: .12;
      background-image:
        radial-gradient(circle at 25% 25%, var(--gold) 0 2px, transparent 3px),
        radial-gradient(circle at 75% 75%, var(--gold) 0 2px, transparent 3px);
      background-size: 42px 42px;
    }

    .footer h2 {
      position: relative;
      font-family: 'Great Vibes', cursive;
      font-weight: 400;
      font-size: 4rem;
      margin-bottom: 12px;
    }

    .footer p {
      position: relative;
      color: rgba(255,247,231,.78);
    }

    .music-btn {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 90;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      border: 0;
      background: linear-gradient(135deg, var(--gold), var(--terracotta));
      color: var(--cream);
      font-size: 1.3rem;
      cursor: pointer;
      box-shadow: 0 12px 30px rgba(76,23,19,.28);
      animation: pulse 2s infinite;
    }

    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: .8s ease;
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes float {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-18px) rotate(8deg); }
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(201, 152, 53, .45); }
      70% { box-shadow: 0 0 0 16px rgba(201, 152, 53, 0); }
      100% { box-shadow: 0 0 0 0 rgba(201, 152, 53, 0); }
    }

    @media (max-width: 860px) {
      .menu-toggle { display: block; }

      .nav-links {
        position: absolute;
        top: 68px;
        right: 0;
        width: 230px;
        flex-direction: column;
        gap: 0;
        padding: 12px;
        background: rgba(255, 247, 231, .96);
        border: 1px solid rgba(201,152,53,.45);
        border-radius: 22px;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: .25s ease;
      }

      .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }

      .nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
      }

      .nav-links a:hover {
        background: rgba(201,152,53,.14);
      }

      .couple-grid,
      .features,
      .rsvp-wrap {
        grid-template-columns: 1fr;
      }

      .map-frame {
        min-height: 360px;
      }

      .timeline {
        grid-template-columns: minmax(280px, 85%);
        justify-content: center;
      }

      .gallery {
        grid-template-columns: repeat(2, 1fr);
      }

      .countdown {
        grid-template-columns: repeat(2, 1fr);
      }

      .hero-card {
        min-height: 620px;
        background-position: center 26%;
      }
    }

    @media (max-width: 520px) {
      .section { padding: 72px 0; }
      .navbar { top: 10px; border-radius: 24px; }
      .brand-mark { font-size: 1.3rem; }
      .hero { padding-top: 92px; }
      .hero-card {
        border-radius: 24px;
        min-height: 560px;
        background-position: 58% 22%;
      }
      #event .container { width: min(1120px, calc(100% - 20px)); }
      .timeline { grid-template-columns: 1fr; }
      .gallery-item { flex-basis: 88%; }
      .map-frame { min-height: 300px; }
      .wishes-window { height: 280px; }
      .rsvp-form { padding: 26px; }
    }

    @media (max-width: 500px) {
      .countdown {
        gap: 8px;
        max-width: 360px;
      }

      .countdown div {
        padding: 10px 6px;
        border-radius: 14px;
      }

      .countdown strong {
        font-size: 1.3rem;
      }

      .countdown span {
        font-size: 0.64rem;
        letter-spacing: 1.2px;
      }
    }

    @media (max-width: 768px) {
      .gallery-carousel {
        padding: 4px 0 8px;
      }

      .gallery {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        padding: 2px 2px 14px;
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      .gallery::-webkit-scrollbar {
        display: none;
      }

      .gallery-item {
        flex: 0 0 84%;
        min-height: clamp(260px, 68vw, 330px);
        scroll-snap-align: center;
        border-radius: 24px;
      }

      .gallery-item:nth-child(2),
      .gallery-item:nth-child(5) {
        grid-row: span 1;
      }

      .gallery-nav {
        display: grid;
        place-items: center;
        position: absolute;
        top: 46%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.74);
        color: var(--maroon);
        backdrop-filter: blur(6px);
        box-shadow: 0 10px 25px rgba(76, 23, 19, 0.18);
        cursor: pointer;
        z-index: 2;
      }

      .gallery-nav.prev { left: 8px; }
      .gallery-nav.next { right: 8px; }

      .gallery-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        margin-top: 8px;
      }

      .gallery-dot {
        width: 8px;
        height: 8px;
        border: 0;
        border-radius: 999px;
        background: rgba(139, 99, 29, 0.3);
        transition: all .25s ease;
        cursor: pointer;
      }

      .gallery-dot.active {
        width: 22px;
        background: linear-gradient(90deg, var(--gold), var(--terracotta));
      }
    }


