/* =============================================
   REYAM JADD — BIRTHDAY GIFT SITE
   Font: Cormorant Garamond + Montserrat
   Palette: Near-black bg, warm cream text, gold accents (#b8965a)
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #e8e0d0;
  font-family: 'Cormorant Garamond', serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =============================================
   AMBIENT PARTICLES
   ============================================= */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #b8965a;
  border-radius: 50%;
  opacity: 0;
  animation: float 8s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

.site {
  position: relative;
  z-index: 1;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 60px;
  border-bottom: 0.5px solid #2a2a2a;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 150, 90, 0.08) 0%, transparent 60%);
}

.crown-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: #b8965a;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
  position: relative;
}

.crown-line::before,
.crown-line::after {
  content: '✦';
  margin: 0 16px;
  font-size: 8px;
  vertical-align: middle;
}

.hero-name {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #f0ebe0;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.5s forwards;
  text-shadow: 0 0 80px rgba(184, 150, 90, 0.15);
}

.hero-name em {
  font-style: italic;
  color: #b8965a;
  display: block;
  background: linear-gradient(135deg, #b8965a 0%, #d4b87a 50%, #b8965a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.age-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #b8965a;
  margin-top: 24px;
  width: 56px;
  height: 56px;
  border: 1px solid #b8965a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: scaleIn 0.6s ease 0.8s forwards;
  position: relative;
}

.age-badge::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(184, 150, 90, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #666;
  margin-top: 32px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.divider-gold {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8965a, transparent);
  margin: 40px auto;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero-tagline {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: #8a8070;
  max-width: 500px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #b8965a, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1.2);
  }
}

/* =============================================
   PHOTO SECTION
   ============================================= */

.photo-section {
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 0.5px solid #1a1a1a;
  background: linear-gradient(180deg, transparent 0%, rgba(184, 150, 90, 0.02) 50%, transparent 100%);
}

.photo-frame {
  position: relative;
  max-width: 420px;
  width: 100%;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid #b8965a;
  opacity: 0.5;
}

.photo-frame::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 1px solid #b8965a;
  opacity: 0.2;
}

.family-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) contrast(1.05) brightness(1.02);
  transition: all 0.6s ease;
}

.family-photo:hover {
  filter: sepia(0) contrast(1.1) brightness(1.05);
  transform: scale(1.01);
}

.photo-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #555;
  text-transform: uppercase;
  margin-top: 48px;
  text-align: center;
}

/* =============================================
   LETTER SECTION
   ============================================= */

.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 40px 120px;
  border-bottom: 0.5px solid #1a1a1a;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: #b8965a;
  text-transform: uppercase;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 150, 90, 0.4), transparent);
}

.letter-body {
  font-size: 20px;
  font-weight: 300;
  line-height: 2;
  color: #ccc5b5;
}

.letter-body p {
  margin-bottom: 1.5em;
}

.letter-body p:first-child {
  font-size: 24px;
  color: #f0ebe0;
  font-style: italic;
}

.letter-body em {
  color: #f0ebe0;
  font-style: italic;
}

.letter-body .gold {
  color: #b8965a;
  font-weight: 400;
}

.letter-body .closing {
  font-size: 22px;
  color: #b8965a;
  margin-top: 2em;
}

/* =============================================
   COACH AVERY'S CODE
   ============================================= */

.code-block {
  margin-top: 100px;
  border-left: 2px solid #b8965a;
  padding-left: 40px;
  position: relative;
  background: linear-gradient(90deg, rgba(184, 150, 90, 0.03), transparent);
  padding-top: 20px;
  padding-bottom: 20px;
}

.code-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: #b8965a;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
}

.code-header::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #b8965a;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #0a0a0a;
}

.code-header::after {
  content: '';
  position: absolute;
  left: -43px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #b8965a;
  border-radius: 50%;
  transform: translateY(-50%);
}

.code-line {
  font-size: 17px;
  font-weight: 400;
  color: #908878;
  line-height: 2.4;
  font-style: italic;
  position: relative;
  transition: all 0.3s ease;
  padding-left: 24px;
}

.code-line:hover {
  color: #d0c8b8;
  transform: translateX(8px);
}

.code-line::before {
  content: '';
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background: #b8965a;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.saif-code {
  margin-top: 60px;
}

/* =============================================
   FOOTER / SIGNATURE
   ============================================= */

.footer-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 40px 120px;
  text-align: center;
}

.sig-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #555;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.sig-name {
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  color: #b8965a;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #b8965a 0%, #d4b87a 50%, #b8965a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.birthday-wish {
  margin-top: 48px;
  margin-bottom: 48px;
}

.wish-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 300;
  color: #f0ebe0;
  position: relative;
  display: inline-block;
}

.wish-text::before,
.wish-text::after {
  content: '✦';
  font-size: 10px;
  color: #b8965a;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.wish-text::before {
  left: -32px;
}

.wish-text::after {
  right: -32px;
}

.rj-king {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: #3a3a3a;
  text-transform: uppercase;
}

/* =============================================
   ANIMATIONS
   ============================================= */

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

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
  .hero {
    padding: 60px 24px 50px;
  }

  .crown-line::before,
  .crown-line::after {
    margin: 0 10px;
  }

  .photo-section {
    padding: 70px 24px;
  }

  .photo-frame {
    max-width: 300px;
  }

  .section {
    padding: 80px 24px;
  }

  .footer-section {
    padding: 70px 24px 100px;
  }

  .code-block {
    padding-left: 28px;
  }

  .code-header::before {
    left: -34px;
    width: 12px;
    height: 12px;
  }

  .code-header::after {
    left: -31px;
    width: 6px;
    height: 6px;
  }

  .code-line {
    padding-left: 20px;
  }

  .letter-body {
    font-size: 18px;
  }

  .sig-name {
    font-size: 36px;
  }

  .wish-text {
    font-size: 22px;
  }

  .wish-text::before {
    left: -24px;
  }

  .wish-text::after {
    right: -24px;
  }
}
