:root {
  --warm-beige: #f5feea;
  --alt-warm-beige: #f5f8ea;
  --alt-light-beige: #fff8ef;
  --terracotta: #c97c63;
  --soft-green: #797f4d;
  --deep-brown: #2d2920;
  --gold: #d9b26d;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(45, 41, 32, 0.12);
  --shadow-strong: 0 30px 60px rgba(45, 41, 32, 0.18);
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --radius-xxl: 3rem;
  --transition: 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--deep-brown);
  background: var(--warm-beige);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  border-radius: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
 h2,
 h3,
 h4 {
  color: var(--deep-brown);
  margin: 0 0 1rem;
}

h1,
 h2,
 h3 {
  font-family: 'Great Vibes', 'Poppins', cursive;
  font-weight: 400;
}

h4 {
  font-weight: 500;
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title.large-heading {
  font-size: clamp(3rem, 7vw, 4.75rem);
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: rgba(45, 41, 32, 0.8);
}

.section-subtitle.dark {
  color: rgba(45, 41, 32, 0.85);
}

.terracotta {
  color: var(--terracotta);
}

.soft-green {
  color: var(--soft-green);
}

.section h3.section-title {
  margin-bottom: 0.25rem;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background: url('https://images.unsplash.com/photo-1629943163055-d8c9c9fd8a88?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&w=1920&q=80')
      center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 254, 234, 0.55);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: rgba(45, 41, 32, 0.2);
  backdrop-filter: blur(6px);
  box-shadow: 0 40px 70px rgba(45, 41, 32, 0.2);
}

.hero-title {
  font-size: clamp(4rem, 12vw, 8rem);
  text-shadow: 0 12px 40px rgba(45, 41, 32, 0.25);
  letter-spacing: 0.05em;
}

.hero-subtitle {
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0;
  max-width: 28ch;
  justify-self: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-lg);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  background: var(--terracotta);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--soft-green);
  box-shadow: var(--shadow-strong);
}

.cta-button i {
  width: 18px;
  height: 18px;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-soft);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 1.8s infinite;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  background: rgba(45, 41, 32, 0.2);
  box-shadow: 0 15px 30px rgba(45, 41, 32, 0.18);
}

.scroll-indicator i {
  width: 32px;
  height: 32px;
  color: var(--white);
}

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

.about-section {
  background: var(--alt-warm-beige);
}

.about-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-text p {
  margin-bottom: 1.2rem;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xxl);
  padding: 0.8rem;
  background: linear-gradient(135deg, rgba(201, 124, 99, 0.35), rgba(217, 178, 109, 0.5));
  box-shadow: var(--shadow-strong);
}

.about-image {
  border-radius: var(--radius-xxl);
  border: 4px solid var(--gold);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.timeline {
  margin-top: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.timeline-items {
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
}

.timeline-items::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(var(--terracotta), var(--soft-green));
  transform: translateX(-50%);
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 960px) {
  .timeline-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-item .timeline-icon {
    justify-self: center;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    order: -1;
    text-align: right;
    justify-self: end;
    max-width: 420px;
  }
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -9px;
    display: block;
  }
  .timeline-item:nth-child(even) .timeline-content {
    justify-self: start;
    max-width: 420px;
    text-align: left;
  }
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -9px;
    display: block;
  }
}

.timeline-icon {
  width: 76px;
  height: 76px;
  border-radius: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  color: var(--white);
  position: relative;
  z-index: 2;
  border: 4px solid rgba(245, 248, 234, 0.65);
}

.timeline-icon i {
  width: 30px;
  height: 30px;
}

.terracotta-bg {
  background: var(--terracotta);
}

.soft-green-bg {
  background: var(--soft-green);
}

.gold-bg {
  background: var(--gold);
}

.story-gallery-section {
  background: var(--white);
  position: relative;
}

.story-gallery-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 248, 234, 0.6), rgba(255, 248, 239, 0.3));
  pointer-events: none;
}

.story-gallery-section .section-inner {
  position: relative;
  z-index: 1;
}

.story-gallery-grid {
  display: grid;
  gap: 1.8rem;
  grid-auto-flow: dense;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .story-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .story-gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.story-card {
  background: #f6f7eb;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

@media (min-width: 720px) {
  .story-card.story-card--large {
    grid-column: span 6;
  }

  .story-card:not(.story-card--large) {
    grid-column: span 3;
  }
}

@media (min-width: 1100px) {
  .story-card.story-card--large {
    grid-column: span 8;
  }

  .story-card:not(.story-card--large) {
    grid-column: span 4;
  }
}

.story-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-card:hover img {
  transform: scale(1.05);
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(45, 41, 32, 0.45) 100%);
}

.story-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 25px rgba(201, 124, 99, 0.35);
}

.story-content {
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(245, 248, 234, 0.85), rgba(255, 248, 239, 0.95));
  border-top: 1px solid rgba(217, 178, 109, 0.35);
}

.story-content h3 {
  font-family: 'Great Vibes', cursive;
  margin-bottom: 0.5rem;
  color: var(--terracotta);
}

.story-content p {
  margin: 0;
  color: rgba(45, 41, 32, 0.8);
}

.day-timeline-section {
  background: var(--white);
}

.cards-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-card {
  position: relative;
  background: var(--alt-warm-beige);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(217, 178, 109, 0.25);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--white);
}

.card-icon i {
  width: 30px;
  height: 30px;
}

.card-meta {
  margin: 0;
  color: rgba(45, 41, 32, 0.7);
}

.video-section {
  background: var(--alt-light-beige);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border: 3px solid var(--gold);
  border-radius: var(--radius-xxl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.video-greetings-section {
  background: var(--warm-beige);
}

.video-greetings-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .video-greetings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .video-greetings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.phone-card {
  position: relative;
  background: linear-gradient(180deg, #2d2920, #4a4338);
  border-radius: 3rem;
  padding: 1.1rem;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.phone-notch {
  width: 45%;
  height: 18px;
  background: rgba(0, 0, 0, 0.65);
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #c8c8c8;
  border-radius: 2rem;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transition: transform var(--transition);
}

.phone-card:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--terracotta);
  color: var(--white);
  border: none;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.play-button i {
  width: 30px;
  height: 30px;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-strong);
}

.phone-caption {
  text-align: center;
  color: var(--white);
}

.phone-caption h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: white;
}

.video-note {
  text-align: center;
  margin-top: 2.5rem;
  font-weight: 400;
  color: rgba(206, 183, 129, 0.8);
}

.phone-video-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2000;
}

.phone-video-overlay.active {
  display: flex;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.65);
  backdrop-filter: blur(6px);
}

.overlay-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-strong);
  width: min(420px, 90vw);
}

.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(201, 124, 99, 0.15);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.overlay-frame {
  position: relative;
  padding-top: 177.78%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.overlay-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.photo-gallery-section {
  background: var(--alt-warm-beige);
}

.photo-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.photo-tile {
  position: relative;
  padding-top: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 248, 234, 0) 0%, rgba(45, 41, 32, 0.35) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.photo-tile:hover::after {
  opacity: 1;
}

.gallery-actions {
  text-align: center;
  margin-top: 2rem;
}

.spotify-section {
  background: rgba(121, 127, 77, 0.05);
}

.spotify-frame {
  border: 3px solid var(--terracotta);
  border-radius: var(--radius-xxl);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

.spotify-frame:hover {
  transform: scale(1.02);
}

.spotify-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.guestbook-section {
  background: var(--alt-light-beige);
}

.guestbook-header {
  text-align: center;
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.guestbook-deco {
  font-family: 'Great Vibes', cursive;
  color: var(--gold);
  font-size: 1.5rem;
}

.guestbook-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .guestbook-grid {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.guestbook-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.5rem;
  align-self: start;
}

.guestbook-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(45, 41, 32, 0.6);
  text-align: center;
}

.form-field {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(45, 41, 32, 0.75);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(201, 124, 99, 0.25);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  resize: vertical;
  min-height: 140px;
  max-height: 220px;
  transition: border var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(201, 124, 99, 0.15);
}

.guestbook-entries {
  display: grid;
  gap: 1.8rem;
  max-height: 520px;
  overflow: auto;
  padding-right: 0.6rem;
}

.guestbook-entries::-webkit-scrollbar {
  width: 10px;
}

.guestbook-entries::-webkit-scrollbar-track {
  background: rgba(245, 248, 234, 0.7);
  border-radius: 6px;
}

.guestbook-entries::-webkit-scrollbar-thumb {
  background: var(--terracotta);
  border-radius: 6px;
}

.guestbook-entries::-webkit-scrollbar-thumb:hover {
  background: var(--soft-green);
}

.guestbook-entry {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(217, 178, 109, 0.3);
}

.guestbook-entry header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.guestbook-entry h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.9rem;
  color: var(--terracotta);
  margin: 0;
}

.guestbook-entry time {
  font-size: 0.95rem;
  color: rgba(45, 41, 32, 0.65);
}

.guestbook-entry p {
  margin: 0;
}

.guestbook-empty {
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: rgba(45, 41, 32, 0.7);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(201, 124, 99, 0.35);
  border-radius: var(--radius-xl);
  font-weight: 300;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.7rem clamp(1.2rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(217, 178, 109, 0.35);
  position: relative;
  text-align: center;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 178, 109, 0.35);
  box-shadow: 0 10px 30px rgba(45, 41, 32, 0.1);
  display: none;
}

.timeline-content h4 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  margin: 0;
  color: rgba(45, 41, 32, 0.75);
}

.timeline-items::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  background: linear-gradient(180deg, rgba(245, 248, 234, 0.56), rgba(201, 124, 99, 0.42));
  filter: blur(16px);
  transform: translateX(-50%);
  pointer-events: none;
}

.thanks-section {
  background: linear-gradient(135deg, var(--terracotta), var(--gold), var(--warm-beige));
  color: var(--white);
  overflow: hidden;
}

.thanks-inner {
  position: relative;
  text-align: center;
  border-radius: var(--radius-xxl);
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-strong);
}

.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  animation: pulse 2.5s infinite;
}

.thanks-icon i {
  width: 42px;
  height: 42px;
  color: var(--white);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
}

.thanks-section blockquote {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 auto 1.5rem;
  max-width: 780px;
  color: var(--white);
}

.thanks-signature {
  font-weight: 300;
  font-size: 1.5rem;
  margin: 0;
}

.blur-decor {
  position: absolute;
  filter: blur(60px);
  opacity: 0.25;
  border-radius: 50%;
}

.blur-decor--one {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.45);
  top: 10%;
  left: 12%;
}

.blur-decor--two {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.35);
  bottom: 5%;
  right: 10%;
}

.footer {
  background: var(--terracotta);
  color: var(--white);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(245, 248, 234, 0.3);
}

.footer-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-weight: 300;
}

.scroll-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 15px 30px rgba(217, 178, 109, 0.45);
  cursor: pointer;
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  z-index: 1200;
}

.scroll-top.visible {
  transform: translateY(0);
  opacity: 1;
}

.scroll-top:hover {
  box-shadow: 0 20px 40px rgba(217, 178, 109, 0.6);
  transform: translateY(0) scale(1.08);
}

.scroll-top i {
  width: 26px;
  height: 26px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.75);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  width: min(900px, 92vw);
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-content figcaption {
  font-weight: 400;
  color: rgba(45, 41, 32, 0.8);
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(201, 124, 99, 0.18);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-controls {
  display: flex;
  gap: 1rem;
}

.lightbox-prev,
.lightbox-next {
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 124, 99, 0.12);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201, 124, 99, 0.25);
  transform: scale(1.05);
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 1rem;
  z-index: 3000;
}

.toast {
  min-width: 240px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(201, 124, 99, 0.3);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.4s ease;
}

.toast i {
  color: var(--terracotta);
}

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

.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.heart {
  position: absolute;
  bottom: -10%;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.2));
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 29.6"><path fill="white" d="M23.6 0c-3.4 0-6.3 2.6-7.6 5.1C14.7 2.6 11.8 0 8.4 0 3.8 0 0 3.8 0 8.4c0 9.4 16 21.2 16 21.2s16-11.8 16-21.2c0-4.6-3.8-8.4-8.4-8.4z"/></svg>') center / contain no-repeat;
  opacity: 0;
  animation: float-heart var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes float-heart {
  0% {
    transform: translateY(0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) scale(1.1) rotate(12deg);
    opacity: 0;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"].in-view,
[data-animate="fade-left"].in-view {
  transform: translateX(0);
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .hero-title {
    letter-spacing: 0.02em;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .story-card,
  .story-card.story-card--large {
    border-radius: 1.8rem;
  }
  .card-icon {
    width: 58px;
    height: 58px;
  }
  .phone-card {
    border-radius: 2.5rem;
  }
}

/* Custom scrollbar */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(245, 248, 234, 0.7);
}

body::-webkit-scrollbar-thumb {
  background: var(--terracotta);
  border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--soft-green);
}
