/* css/style.css */

/* Variables */
:root {
  --color-primary: #bf9873; /* Gold */
  --color-primary-dark: #bf9873;
  --color-bg-white: #ffffff;
  --color-bg-ivory: #bf9873;
  --color-text-main: #f8f4f4;
  --color-text-light: #181717;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.62);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);

  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  --max-width: 1200px;
}
/*bagian atas*/
#story .section-title p {
  color: #ffffff !important;
  opacity: 1 !important;
}
/* paragraf galeri dan hadiah */
#story .section-title p,
#gallery .section-title p,
#gifts .section-title p {
  color: #ffffff !important;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-main);
}

.couple-section .section-title h2 {
  color: #bf9873;
}

.couple-section .section-title p {
  color: #020202;
}

.events-section .section-title h2 {
  color: #bf9873;
}

.event-card h3 {
  color: #bf9873;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.bg-ivory {
  background-color: var(--color-bg-ivory);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.hidden {
  display: none !important;
}

.w-100 {
  width: 100%;
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
}

/* Cover Section */
.cover-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 1s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.8s ease;
}

.cover-section.slide-up {
  transform: translateY(-100vh);
  opacity: 0;
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.1);
  animation: slowZoom 20s infinite alternate;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.cover-content {
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cover-content h4,
.cover-content h1 {
  color: white;
}

.guest-info {
  margin: 2rem 0;
}

.guest-info p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.guest-info h3 {
  margin: 0.5rem 0;
  font-size: 1.8rem;
  font-family: var(--font-heading);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #bf9873;
  transition: var(--transition-smooth);
}

#navbar.scrolled .logo {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  position: relative;
}

#navbar.scrolled .nav-links a {
  color: var(--color-text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

#navbar.scrolled .hamburger {
  color: var(--color-text-main);
}

/* Bottom Nav (Mobile) */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 0.5rem 0;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

#bottom-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-light);
  gap: 4px;
}

#bottom-nav a i {
  font-size: 1.2rem;
}

#bottom-nav a.active {
  color: var(--color-primary);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0;
  color: white;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect on desktop */
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: -1;
}

.hero-flower {
  position: absolute;
  bottom: -3%;
  z-index: 0;
  width: clamp(220px, 29vw, 380px);
  height: auto;
  pointer-events: none;
  object-fit: contain;
  display: block;
  will-change: transform;
  animation-play-state: running;
}

.hero-flower-left {
  left: -3%;
  transform-origin: bottom left;
  animation: hero-flower-left-breeze 6.5s ease-in-out infinite;
}

.hero-flower-right {
  right: -3%;
  transform-origin: bottom right;
  animation: hero-flower-right-breeze 5.8s ease-in-out infinite;
}

@keyframes hero-flower-left-breeze {
  0%,
  100% {
    transform: rotate(-1deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(1deg) translate3d(3px, -3px, 0);
  }
}

@keyframes hero-flower-right-breeze {
  0%,
  100% {
    transform: rotate(1.2deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-0.8deg) translate3d(-3px, -2px, 0);
  }
}

.hero-content,
.scroll-indicator {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-flower {
    animation: none;
  }
}

.hero-content h4,
.hero-content h1 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content {
  padding-top: 50px;
}

.wedding-date {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 1.5rem 0 3rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.time-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-width: 80px;
}

.time-box span {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
}

.time-box p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* Quote Section */
.quote-section {
  text-align: center;
}

.quote-icon {
  font-size: 3rem;
  color: #ffff;
  opacity: 1;
  margin-bottom: 1rem;
}

blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  color: var(--color-text-main);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}

/* Couple Section */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.person-role {
  margin: 0.8rem 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #989898;
  font-family: var(--font-body);
}

.person-card {
  text-align: center;
}

.person-image {
  position: relative;
  width: 280px;
  height: 380px;
  margin: 0 auto 2rem;
  border-radius: 150px 150px 0 0;
  overflow: hidden;
}

.person-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.person-image .floral-overlay {
  position: absolute;
  left: -5%;
  bottom: -8%;
  z-index: 2;
  width: 62%;
  height: auto;
  max-width: none;
  object-fit: contain;
  transform-origin: bottom left;
  pointer-events: none;
  animation: floral-breeze 7s ease-in-out infinite;
}

@keyframes floral-breeze {
  0%,
  100% {
    transform: rotate(-1deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(1.2deg) translate3d(3px, -2px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .person-image .floral-overlay {
    animation: none;
  }
}

.person-image:hover img {
  transform: scale(1.05);
}

.image-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 140px 140px 0 0;
  pointer-events: none;
  z-index: 1;
}

.person-name {
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.parents {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.social-link {
  font-size: 0.9rem;
  color: var(--color-primary);
}

.social-link:hover {
  color: var(--color-primary-dark);
}

.ampersand h2 {
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 1;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Story Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #ffff;
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-bottom: 3rem;
}

.timeline-item.left {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.timeline-content h3 {
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-content .date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.timeline-content p {
  color: #333;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.event-card {
  text-align: center;
}

.event-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.event-details {
  margin: 1.5rem 0;
}

.event-details p {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.event-details i {
  color: var(--color-primary);
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.map-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  grid-auto-rows: 250px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item:nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-row: span 2;
}

.gal-img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gal-img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.close-lightbox {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: var(--color-primary);
}

/* Gifts */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.gift-card h3,
.bank-name,
.account-number,
.account-name {
  color: var(--color-primary-dark);
}

.gift-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eaeaea;
}

.gift-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.bank-name {
  font-weight: 600;
  margin-top: 1rem;
}

.account-number {
  font-size: 1.5rem;
  font-family: monospace;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--color-primary-dark);
}

.account-name {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.btn-copy {
  background: #f5f5f5;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background: #e0e0e0;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 4rem 0 2rem;
}

.footer-flower {
  width: 117px;
  max-width: 117px;
  height: auto;
  margin: 0 auto 0.75rem;
  object-fit: contain;
  transform-origin: center bottom;
  animation: footer-flower-sway 6.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes footer-flower-sway {
  0%,
  100% {
    transform: rotate(-1deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(1deg) translate3d(2px, -2px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-flower {
    animation: none;
  }
}

.footer h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.section-flower-reveal {
  margin-top: 0.35rem;
}

.section-flower {
  width: 117px;
  max-width: 117px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: center bottom;
}

#story .section-flower {
  width: 117px;
}

.section-flower-reveal.show .section-flower {
  animation: section-flower-float 6.5s ease-in-out 0.8s infinite;
  will-change: transform;
}

.gift-flower-reveal {
  position: relative;
  width: fit-content;
  margin: 0.35rem auto 0;
  overflow: hidden;
}

.gift-flower {
  display: block;
  width: 117px;
  max-width: 117px;
  height: auto;
  object-fit: contain;
  transform-origin: center bottom;
}

.gift-flower-reveal.show .gift-flower {
  animation: gift-flower-float 6.5s ease-in-out 0.8s infinite;
  will-change: transform;
}

@keyframes gift-flower-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(2px, -3px, 0) rotate(1deg);
  }
}

@keyframes section-flower-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(2px, -3px, 0) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-flower-reveal.show .section-flower,
  .gift-flower-reveal.show .gift-flower {
    animation: none;
  }
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.socials a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.9rem;
  color: #999;
}

/* Floating Controls */
.floating-controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  animation: pulse 2s infinite;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.whatsapp {
  background: #25d366;
  animation: none;
}

.float-btn.playing {
  animation: spin 4s linear infinite;
}

/* Animations */
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll Animations */
.scroll-anim {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.scroll-anim.left {
  transform: translateX(-40px);
}

.scroll-anim.right {
  transform: translateX(40px);
}

.scroll-anim.show {
  opacity: 1;
  transform: translate(0, 0);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpAnim 0.8s forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}
.delay-3 {
  animation-delay: 0.9s;
}

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .events-grid,
  .rsvp-wishes-grid,
  .gifts-grid {
    gap: 1.5rem;
  }

  .timeline::before {
    left: 40px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item.left {
    text-align: left;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 32px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }

  .section-flower,
  #story .section-flower {
    width: 117px;
  }

  .gift-flower {
    width: 117px;
  }

  .footer-flower {
    width: 117px;
  }

  #navbar {
    display: none;
  }

  /* Adjust padding for bottom nav */
  main {
    padding-bottom: 60px;
  }

  .couple-grid {
    grid-template-columns: 1fr;
  }

  .ampersand h2 {
    font-size: 3rem;
  }

  .events-grid,
  .rsvp-wishes-grid,
  .gifts-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
  }

  .floating-controls {
    bottom: 80px; /* Above mobile nav */
    right: 1rem;
  }

  .hero-bg {
    background-attachment: scroll; /* Disable parallax on mobile */
  }

  .hero-flower {
    bottom: -2%;
    width: clamp(150px, 43vw, 230px);
  }

  .hero-flower-left {
    left: -8%;
  }

  .hero-flower-right {
    right: -4%;
    bottom: -1%;
    width: clamp(105px, 30vw, 165px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  .countdown {
    gap: 0.5rem;
  }
  .time-box {
    min-width: 60px;
    padding: 0.5rem;
  }
  .time-box span {
    font-size: 1.25rem;
  }
  .person-image {
    width: 240px;
    height: 320px;
  }
  .person-image .floral-overlay {
    width: 66%;
  }
}

/* =========================
   RSVP SECTION
========================= */

#rsvp {
  padding: 80px 20px;
}

#rsvp .section-title {
  text-align: center;
  margin-bottom: 35px;
}

#rsvp .section-title h2 {
  margin-bottom: 10px;
}

#rsvp .section-title p {
  color: var(--color-text-light);
  font-size: 14px;
}

/* =========================
   RSVP CARD
========================= */

.rsvp-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 35px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);

  border: 1px solid rgba(128, 0, 0, 0.08);
}

/* =========================
   FORM GROUP
========================= */

#rsvp-form .form-group {
  margin-bottom: 22px;
}

#rsvp-form label {
  display: block;
  margin-bottom: 8px;

  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4a3a3a;
}

/* =========================
   INPUT / SELECT / TEXTAREA
========================= */

#rsvp-form input,
#rsvp-form select,
#rsvp-form textarea {
  width: 100%;
  padding: 13px 16px;

  border: 1px solid #e3d9d5;
  border-radius: 12px;

  background: #fff;
  color: #333;

  font-family: 'Poppins', sans-serif;
  font-size: 13px;

  outline: none;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* Placeholder */

#rsvp-form input::placeholder,
#rsvp-form textarea::placeholder {
  color: #aaa;
}

/* Focus */

#rsvp-form input:focus,
#rsvp-form select:focus,
#rsvp-form textarea:focus {
  border-color: #800000;

  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
}

/* Textarea */

#rsvp-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* =========================
   SUBMIT BUTTON
========================= */

#rsvp-submit {
  width: 100%;
  padding: 15px 24px;

  border: 1px solid #bf9873;
  border-radius: 50px;

  background: #bf9873;
  color: #fff;

  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.18);

  transition: all 0.35s ease;
}

/* Icon */

#rsvp-submit i {
  font-size: 13px;
  transition: transform 0.35s ease;
}

/* Hover */

#rsvp-submit:hover {
  background: #fff;
  color: #bf9873;

  transform: translateY(-2px);

  box-shadow: 0 12px 25px rgba(191, 152, 115, 0.15);
}

/* Icon bergerak */

#rsvp-submit:hover i {
  transform: translateX(4px);
}

/* Saat ditekan */

#rsvp-submit:active {
  transform: scale(0.98);
}

/* =========================
   STATUS
========================= */

#rsvp-status {
  margin-top: 15px;
  text-align: center;

  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

#rsvp-wishes {
  margin-top: 32px;
}

#rsvp-wishes h3 {
  margin-bottom: 16px;
  color: #bf9873;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  text-align: center;
}

#rsvp-wishes-list {
  display: grid;
  gap: 14px;
  max-height: 390px;
  overflow-y: auto;
  padding: 6px 8px 6px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(191, 152, 115, 0.55) transparent;
}

#rsvp-wishes-list::-webkit-scrollbar {
  width: 5px;
}

#rsvp-wishes-list::-webkit-scrollbar-track {
  background: transparent;
}

#rsvp-wishes-list::-webkit-scrollbar-thumb {
  background: rgba(191, 152, 115, 0.55);
  border-radius: 10px;
}

#rsvp-wishes-list::-webkit-scrollbar-thumb:hover {
  background: rgba(191, 152, 115, 0.8);
}

.rsvp-wish-card {
  padding: 16px 18px;
  border: 1px solid #e3d9d5;
  border-radius: 12px;
  background: #fff;
}

.rsvp-wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.rsvp-wish-header h4 {
  margin: 0;
  color: #4a3a3a;
  font-size: 14px;
}

.rsvp-attendance {
  color: #bf9873;
  font-size: 12px;
  font-weight: 600;
}

.rsvp-wish-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
  #rsvp {
    padding: 60px 15px;
  }

  .rsvp-card {
    padding: 25px 20px;
    border-radius: 20px;
  }

  #rsvp-wishes-list {
    max-height: 320px;
    padding-right: 6px;
  }

  #rsvp .section-title h2 {
    font-size: 25px;
  }

  #rsvp .section-title p {
    font-size: 13px;
  }

  #rsvp-form input,
  #rsvp-form select,
  #rsvp-form textarea {
    padding: 12px 14px;
  }

  #rsvp-submit {
    padding: 14px 20px;
  }
}

#rsvp .section-title h2 {
  color: #bf9873;
}
