﻿:root {
  --bg: #0d0d0f;
  --bg-surface: rgba(22, 22, 25, 0.6);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #71717a;
  --metal-gold: #cdb46f;
  --metal-gold-dark: #8a7322;
  --metal-blue: #6f8ecd;
  --metal-blue-dark: #3a5282;
  --border-muted: rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Texture Noise */
.noise {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.055;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)"/%3E%3C/svg%3E');
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(205, 180, 111, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(111, 142, 205, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Typography Headings */
h1, h2, h3, .brand {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, #f2eabf, #cdb46f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--border-muted);
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 1.3rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.menu {
  display: flex;
  gap: 2.5rem;
}

.menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.4s ease;
}

.menu a:hover {
  color: var(--text-main);
}

/* Layout */
main {
  padding: 0 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-decor-line {
  width: 1px;
  height: 12vh;
  background: linear-gradient(to bottom, rgba(205, 180, 111, 0.5), transparent);
  margin: 4rem auto 0;
}

/* Intro Section */
.intro-section {
  padding: 18vh 0;
}

.editorial-block {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.avatar-wrapper {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 5px;
  position: relative;
}

.avatar-wrapper.metal-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(145deg, var(--metal-gold), rgba(255,255,255,0.1), var(--metal-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(15%) contrast(105%);
}

.avatar-wrapper.small {
  width: 90px;
  height: 90px;
  padding: 3px;
}

.lead-text {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.sub-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 90%;
}

/* Wishes Section */
.wishes-section {
  padding: 12vh 0;
  display: flex;
  flex-direction: column;
  gap: 20vh;
}

.wish-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.wish-item.alt-layout {
  grid-template-columns: 2fr 1fr;
  text-align: right;
}

.wish-item.alt-layout .wish-meta {
  order: 2;
  align-items: flex-end;
}

.wish-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wish-author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 1rem;
  display: inline-block;
}

.wish-quote {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-main);
  position: relative;
}

.wish-quote.blue-accent {
  border-left: 1px solid rgba(111, 142, 205, 0.4);
  padding-left: 3rem;
}

.wish-quote.gold-accent {
  border-right: 1px solid rgba(205, 180, 111, 0.4);
  padding-right: 3rem;
}

/* Gift Section */
.gift-section {
  padding: 15vh 0 25vh;
  text-align: center;
}

.gift-box {
  max-width: 650px;
  margin: 0 auto;
  padding: 5rem 3rem;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  position: relative;
}

.metal-box::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, rgba(205, 180, 111, 0.4), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.02) 60%, rgba(111, 142, 205, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gift-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

.gift-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 3rem;
}

.gift-body {
  font-size: 1.1rem;
  color: var(--text-main);
}

.gift-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer / To top */
.site-footer {
  text-align: center;
  padding: 0 0 10vh;
}

.to-top-btn {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--border-muted);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.4s ease;
  background: transparent;
}

.to-top-btn:hover {
  background: var(--text-main);
  color: var(--bg);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .editorial-block {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .wish-item, .wish-item.alt-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }

  .wish-item.alt-layout .wish-meta {
    order: 1;
    align-items: flex-start;
  }

  .wish-item.alt-layout .wish-quote,
  .wish-quote.gold-accent {
    border-right: none;
    border-left: 1px solid rgba(205, 180, 111, 0.4);
    padding-right: 0;
    padding-left: 2rem;
  }
  
  .wish-quote.blue-accent {
    padding-left: 2rem;
  }

  .menu {
    display: none;
  }

  .gift-box {
    padding: 4rem 1.5rem;
  }
}
/* Burger Menu & Mobile Nav */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  padding: 10px;
}

.burger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: background-color 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--text-main);
  transition: transform 0.3s ease, top 0.3s ease;
  left: 0;
}

.burger-icon::before { top: -6px; }
.burger-icon::after { top: 6px; }

.menu-open .burger-icon { background-color: transparent; }
.menu-open .burger-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-open .burger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(15px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-overlay a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text-main);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-open .mobile-menu-overlay a {
  opacity: 1;
  transform: translateY(0);
}

.menu-open .mobile-menu-overlay a:nth-child(1) { transition-delay: 0.1s; }
.menu-open .mobile-menu-overlay a:nth-child(2) { transition-delay: 0.2s; }
.menu-open .mobile-menu-overlay a:nth-child(3) { transition-delay: 0.3s; }
.menu-open .mobile-menu-overlay a:nth-child(4) { transition-delay: 0.4s; }

/* Updates for mobile screens */
@media (max-width: 900px) {
  .menu { display: none; }
  .burger-btn { display: block; }
}
