/* ==============================================
   MODERN CSS RESET & VARIABLES
   ============================================== */

/* CSS Custom Properties for Design System */
:root {
  /* Color Palette */
  --primary-brown: #8B4513;
  --light-pink: #f0a6a6;
  --gradient-start: #ffffff;
  --gradient-mid: #f8f0f0;
  --gradient-end: #f0a6a6;
  --text-primary: #2c3e50;
  --text-secondary: #6C757D;
  --text-light: #95a5a6;
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Libre Caslon Text', 'Georgia', serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Layout */
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(240, 166, 166, 0.2);
  --blur-backdrop: blur(20px);
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 25%, var(--gradient-end) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ==============================================
   MODERN LAYOUT SYSTEM
   ============================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-md);
}

/* CSS Grid & Flexbox Utilities */
.grid {
  display: grid;
  gap: var(--space-md);
}

.flex {
  display: flex;
  gap: var(--space-sm);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

/* ==============================================
   MODERN NAVIGATION
   ============================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #ffffff 0%, #f8f0f0 25%, #f5d7d7 50%, #f2c2c2 75%, #f0a6a6 100%);
  border: none;
  box-shadow: 0 1px 30px rgba(240, 166, 166, 0.1);
  transition: var(--transition-smooth);
  padding: 0;
}

.navbar.scrolled {
  background: linear-gradient(135deg, #ffffff 0%, #f8f0f0 25%, #f5d7d7 50%, #f2c2c2 75%, #f0a6a6 100%);
  box-shadow: 0 2px 40px rgba(240, 166, 166, 0.15);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  position: relative;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 240, 240, 0.25) 25%, rgba(245, 215, 215, 0.2) 50%, rgba(242, 194, 194, 0.2) 75%, rgba(240, 166, 166, 0.15) 100%);
  border-radius: 50px;
  padding: 8px;
  box-shadow: inset 0 1px 3px rgba(240, 166, 166, 0.1), 0 2px 10px rgba(240, 166, 166, 0.05);
  border: 1px solid rgba(240, 166, 166, 0.1);
}

.nav-link {
  color: var(--primary-brown);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 166, 166, 0.2) 0%, rgba(255, 182, 193, 0.15) 25%, rgba(255, 192, 203, 0.1) 50%, rgba(240, 166, 166, 0.15) 75%, rgba(245, 215, 215, 0.2) 100%);
  border-radius: 50px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link:focus::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-brown);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(240, 166, 166, 0.25);
}

/* Active link styling */
.nav-link.active {
  background: linear-gradient(135deg, rgba(240, 166, 166, 0.25) 0%, rgba(255, 182, 193, 0.2) 25%, rgba(255, 192, 203, 0.15) 50%, rgba(240, 166, 166, 0.2) 75%, rgba(245, 215, 215, 0.25) 100%);
  color: var(--primary-brown);
  font-weight: 600;
}

/* Mobile Navigation */
.navbar-toggle {
  display: none;
  background: rgba(240, 166, 166, 0.1);
  border: 1px solid rgba(240, 166, 166, 0.2);
  font-size: 1.1rem;
  color: var(--primary-brown);
  padding: 10px 12px;
  border-radius: 12px;
  transition: var(--transition-fast);
  cursor: pointer;
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggle:hover {
  background: rgba(240, 166, 166, 0.15);
  border-color: rgba(240, 166, 166, 0.3);
  transform: translateY(-50%) scale(1.05);
}

/* Navigation Animations */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ==============================================
   HERO SECTION WITH MODERN FEATURES
   ============================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 25%, var(--gradient-end) 100%);
  position: relative;
  overflow: hidden;
}

/* Hero section with clean design */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.hero-logo {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out, logoFloat 6s ease-in-out infinite 1s;
}

.hero-logo img {
  width: clamp(120px, 15vw, 200px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(139, 69, 19, 0.2));
  transition: var(--transition-slow);
}

.hero-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 24px rgba(139, 69, 19, 0.3));
}

.hero-names h1 {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--primary-brown);
  font-weight: 400;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out 0.3s both, textGlow 4s ease-in-out infinite 2s;
}

.hero-names p {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #000000;
  font-weight: 400;
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Enhanced Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes textGlow {
  0%, 100% {
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.2);
  }
  50% {
    text-shadow: 2px 2px 8px rgba(139, 69, 19, 0.4), 0 0 20px rgba(240, 166, 166, 0.3);
  }
}

/* Floating Hearts Animation */
/* Removed floating hearts background animation for cleaner design */

/* ==============================================
   VIDEO PAGES MODERN STYLING
   ============================================== */

.video-section {
  min-height: 100vh;
  padding: calc(var(--space-xxl) + 60px) var(--space-md) var(--space-xxl);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 25%, var(--gradient-end) 100%);
}

.video-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.video-title h1 {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--primary-brown);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

.video-title p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
}

.video-container {
  width: 100%;
  max-width: 900px;
  margin: var(--space-lg) auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
}

.date-sticker {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-brown);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur-backdrop);
  -webkit-backdrop-filter: var(--blur-backdrop);
  z-index: 10;
  border: 1px solid rgba(240, 166, 166, 0.3);
}

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

/* Container Query Support */
@supports (container-type: inline-size) {
  .container {
    container-type: inline-size;
  }
  
  @container (max-width: 768px) {
    .navbar-nav {
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: var(--blur-backdrop);
      -webkit-backdrop-filter: var(--blur-backdrop);
      padding: var(--space-md);
      border-radius: 0 0 var(--border-radius) var(--border-radius);
      box-shadow: var(--shadow-lg);
      transform: translateY(-10px);
      opacity: 0;
      visibility: hidden;
      transition: var(--transition-smooth);
    }
  }
}

/* Traditional Media Queries */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 240, 240, 0.95) 25%, rgba(245, 215, 215, 0.9) 50%, rgba(242, 194, 194, 0.9) 75%, rgba(240, 166, 166, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 40px rgba(240, 166, 166, 0.15);
    padding: var(--space-sm) 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .navbar-container {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
  }
  
  .navbar-toggle {
    display: none !important; /* Always hide the toggle button on mobile */
  }
  
  .navbar-nav {
    display: flex !important; /* Force always show navigation */
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row; /* Keep horizontal layout */
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 240, 240, 0.25) 25%, rgba(245, 215, 215, 0.2) 50%, rgba(242, 194, 194, 0.2) 75%, rgba(240, 166, 166, 0.15) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 6px;
    border-radius: 50px;
    box-shadow: inset 0 1px 3px rgba(240, 166, 166, 0.1), 0 2px 10px rgba(240, 166, 166, 0.05);
    gap: 4px;
    min-width: auto;
    border: 1px solid rgba(240, 166, 166, 0.1);
    margin: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-nav.show {
    display: flex !important; /* Ensure it stays visible even with JS classes */
  }
  
  .nav-link {
    padding: 10px 16px;
    text-align: center;
    width: auto;
    margin: 0;
    font-size: 0.9rem;
    border-radius: 50px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
  }
  
  .nav-link:hover {
    background: rgba(240, 166, 166, 0.15);
    transform: scale(1.02);
    box-shadow: 0 2px 10px rgba(240, 166, 166, 0.15);
  }
  
  .video-container {
    width: 100%;
    max-width: none;
    margin: var(--space-md) auto;
    padding-bottom: 56.25%; /* maintain 16:9 aspect ratio */
    border-radius: 0;
  }
  
  .date-sticker {
    top: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    border-radius: 20px;
    transform: none;
    max-width: calc(100vw - 2 * var(--space-sm));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* General mobile centering */
  .container {
    padding-inline: var(--space-sm);
    text-align: center;
  }

  /* Center all sections */
  section {
    padding: var(--space-md) var(--space-sm);
    text-align: center;
  }

  /* Center images */
  img {
    margin-inline: auto;
  }

  /* Center text content */
  .content-section,
  .text-content {
    text-align: center;
    margin-inline: auto;
    max-width: 100%;
  }

  /* Center headings */
  h1, h2, h3, h4, h5, h6 {
    text-align: center;
    margin-inline: auto;
  }

  /* Force flex items to center on mobile */
  .flex {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  /* Center grid items */
  .grid {
    place-items: center;
    text-align: center;
  }

  .navbar {
    padding: var(--space-xs) 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .navbar-container {
    padding: 0 var(--space-sm);
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
  
  .navbar-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 4px;
    gap: 2px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .date-sticker {
    top: var(--space-xs);
    right: var(--space-xs);
    padding: 6px 12px;
    font-size: clamp(0.6rem, 2.5vw, 0.75rem);
    border-radius: 15px;
    transform: none;
    max-width: calc(100vw - 2 * var(--space-xs));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Proposal page specific */
  .proposal-content {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
  }

  .proposal-video {
    margin-inline: auto;
    width: 100%;
  }

  /* Wedding page specific */
  .wedding-details {
    text-align: center;
    margin-inline: auto;
  }

  .wedding-content {
    padding: var(--space-md) var(--space-sm);
  }

  .event-details {
    margin-inline: auto;
    text-align: center;
  }

  .timeline-item {
    text-align: center;
    margin-inline: auto;
  }

  /* Fix any two-column layouts on mobile */
  .two-column {
    grid-template-columns: 1fr !important;
    gap: var(--space-md);
  }
}

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

/* ==============================================
   MODERN UTILITIES
   ============================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible {
  outline: 2px solid var(--primary-brown);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #000000;
    --primary-brown: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Print styles */
@media print {
  .navbar {
    display: none;
  }
  
  .hero-section,
  .video-section {
    page-break-inside: avoid;
  }
}

/* ==============================================
   DARK MODE SUPPORT
   ============================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --gradient-start: #2c3e50;
    --gradient-mid: #34495e;
    --gradient-end: #4a5d6b;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --primary-brown: #d4a574;
    --light-pink: #c39797;
  }
  
  .navbar {
    background: rgba(44, 62, 80, 0.95);
    border-bottom-color: rgba(196, 151, 116, 0.3);
  }
  
  .nav-link {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .nav-link:hover {
    background: rgba(212, 165, 116, 0.15);
  }
  
  .date-sticker {
    background: rgba(44, 62, 80, 0.95);
    color: var(--primary-brown);
    border-color: rgba(212, 165, 116, 0.3);
  }
}

/* ==============================================
   BACKGROUND EFFECTS REMOVED
   ============================================== */

/* All rotating backgrounds, stars, hearts, and petals animations
   have been removed for a cleaner, more professional design */
