@font-face {
  font-family: "Kotayk-Regular";
  src: url("./fonts/Kotayk-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
:root {
  --bg: #f3f3f3;
  --beige: #c6b19d;
  --dark: #2c2c2c;
  --text: #444;
  --gold: #b49a7b;
}

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


body {
  font-family: "Montserrat", sans-serif;
  background: url("./images/background.png") no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  text-align: center;
  overflow-x: hidden;
  position: relative;
}

/* ========== SECTIONS ========== */
.section {
  padding: 0 20px;
}

/* Base animation styles - all animated elements start hidden */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* Staggered delays for child elements */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* ========== TOP MINI LABEL ========== */
.top-invite-label {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--beige);
  background: rgba(198, 177, 157, 0.08);
  display: inline-block;
  padding: 8px 22px;
  border-radius: 40px;
  margin-bottom: 8px;
  font-weight: 300;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(198, 177, 157, 0.25);
}

/* ========== HERO ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 8px;
  padding: 20px 20px;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.name {
  font-size: 36px;
  font-family: "Kotayk-Regular", sans-serif;
  margin-bottom: 20px;
  margin-top: 20px;
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1.1;
  transition:
    transform 0.4s ease,
    color 0.3s;
}
.name:hover {
  transform: scale(1.02);
  color: var(--beige);
}

.small-date {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  background: linear-gradient(145deg, #b49a7b, #c6b19d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 30px;
  letter-spacing: 3px;
  line-height: 1.2;
}

/* music button */
#musicBtn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: 2px;
}
#musicIcon {
  width: 40px;
  height: 40px;
  transition:
    transform 0.3s ease,
    filter 0.2s;
}
#musicBtn:hover #musicIcon {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(0.9);
}

/* ===== PHOTO: top layer 0°, bottom layer 5° ===== */
.photo-box {
  position: relative;
  width: 260px;
  max-width: 80%;
  margin: 4px 0;
}

.photo-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #c0bbb1;
  z-index: 0;
  border-radius: 4px;
  transform: rotate(5deg);
}

.photo-box img {
  width: 100%;
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
  transform: rotate(0deg);
  transition:
    transform 0.4s ease,
    box-shadow 0.3s;
}

.photo-box img:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow: 0 25px 35px -8px rgba(128, 100, 80, 0.2);
}

/* ===== ANGEL SECTION ===== */
.angel-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  background: transparent;
}

.angel-img {
  width: 130px;
  filter: drop-shadow(2px 8px 12px rgba(0, 0, 0, 0.1));
  transition: transform 0.5s ease;
}

.angel-img:hover {
  transform: rotate(5deg) scale(1.05);
}

/* ========== TITLES & DATES ========== */
.title {
  font-size: 32px;
  font-family: "Kotayk-Regular", sans-serif;
  font-weight: 300;
  letter-spacing: 3px;
  margin: 30px 0 25px;
  position: relative;
  display: inline-block;
  padding: 0 20px;
}
.title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 1px;
  background: var(--beige);
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.subtitle {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.date-big {
  font-family: "Playfair Display", serif;
  font-size: 35px;
  font-weight: 500;
  background: linear-gradient(130deg, #b49a7b 20%, #e2cfbb 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 35px 0 8px;
  letter-spacing: 8px;
  text-shadow: 0 5px 15px rgba(198, 177, 157, 0.15);
  animation: softGlow 2s infinite alternate;
}
@keyframes softGlow {
  0% {
    filter: drop-shadow(0 2px 6px rgba(198, 177, 157, 0.2));
  }
  100% {
    filter: drop-shadow(0 6px 14px rgba(180, 154, 123, 0.4));
  }
}

.year {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--beige);
  margin-bottom: 35px;
  letter-spacing: 4px;
}

.event-block {
  margin-top: 60px;
  transition: transform 0.3s ease;
}

.icon {
  width: 80px;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
}
.event-block:hover .icon {
  transform: rotate(5deg) scale(1.05);
}

.time {
  font-size: 22px;
  margin: 6px 0;
  font-weight: 400;
  background: linear-gradient(120deg, #5e4b3a, #2c2c2c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bold {
  font-weight: 600;
  color: var(--dark);
}

.location {
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.85;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 36px;
  border-radius: 40px;
  background: var(--beige);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px -6px rgba(198, 177, 157, 0.5);
}

.button:hover {
  background: #b7a089;
  transform: scale(1.04);
  box-shadow: 0 12px 22px -8px #b49a7b;
}

/* end phrase */
.waiting-love {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--beige);
  margin: 40px 0 20px;
  font-weight: 400;
  letter-spacing: 2px;
  display: inline-block;
  padding: 0 30px 20px;
}

/* ========== COMPACT TIMER ========== */
.timer-container {
  /* margin: 20px auto 40px; */
  max-width: 100%;
  padding: 0 10px;
}

.timer-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: var(--dark);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.timer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
}

.timer-block {
  background: white;
  border-radius: 12px;
  padding: 8px 6px;
  min-width: 65px;
  box-shadow: 0 8px 15px -5px rgba(198, 177, 157, 0.3);
  border: 1px solid rgba(198, 177, 157, 0.2);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.timer-block:hover {
  transform: translateY(-3px);
}

.timer-number {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  background: linear-gradient(135deg, #b49a7b, #c6b19d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 2px;
}

.timer-label {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--dark);
  opacity: 0.8;
  text-transform: uppercase;
}

/* ========== DESKTOP ADAPT ========== */
@media (min-width: 900px) {
  .hero {
    flex-direction: column;
    gap: 8px;
  }
  .photo-box {
    width: 320px;
  }
  .name {
    font-size: 48px;
  }
  .angel-img {
    width: 100px;
  }
  .date-big {
    font-size: 40px;
  }
  .timer-number {
    font-size: 32px;
  }
  .timer-block {
    min-width: 75px;
    padding: 10px 8px;
  }
}

/* micro animations */
.event-block:hover .location {
  color: #7a6856;
}

.hero {
  animation: fadeUp 0.8s ease forwards;
}

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

