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

:root {
  --primary-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b95 100%);
  --secondary-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --accent-color: #4ecdc4;
  --text-color: #2c3e50;
  --card-bg: rgba(255, 255, 255, 0.95);
  --warm-coral: #ff6b6b;
  --soft-peach: #ffeaa7;
  --ocean-teal: #00b894;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  overflow-x: hidden;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%) !important;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ffecd2 0%, #ffcfb9 50%, #ffd4c8 100%);
  height: 240px;
  position: relative;
}

.centered {
  text-align: center;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.centered h1 {
  font-size: 1.75rem;
  margin-bottom: 0.2rem;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
  color: #ff6b6b;
}

.subtitle {
  font-size: 0.9rem;
  color: #ff6b6b;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
  font-weight: 400;
  margin-bottom: 10px;
}

/* Header Countdown - now standalone section */
.header-countdown {
  background: linear-gradient(135deg, #ffecd2 0%, #ffcfb9 50%, #ffd4c8 100%);
  padding: 5px 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 107, 107, 0.2);
}

.header-countdown .countdown-display {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.header-countdown .countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 20px;
  min-width: 90px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
  transition: transform 0.3s ease;
}

.header-countdown .countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}

.header-countdown .countdown-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #ff6b6b;
  text-shadow: 0 2px 4px rgba(255,255,255,0.5);
  margin-bottom: 5px;
}

.header-countdown .countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-weight: 600;
}

.header-countdown .countdown-date {
  text-align: center;
  font-size: 1rem;
  color: #ff6b6b;
  font-weight: 600;
  margin-top: 5px;
}

.nav-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.nav-btn {
  background: rgba(255, 107, 107, 0.15);
  backdrop-filter: blur(10px);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

.nav-btn:hover {
  background: rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

/* Weather Widget */
.weather-widget {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  color: #ff6b6b;
  font-size: 0.85rem;
  box-shadow: 0 3px 12px rgba(255, 107, 107, 0.15);
  z-index: 10;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.weather-icon {
  font-size: 1.3rem;
  margin-bottom: 3px;
}

.weather-temp {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #ff6b6b;
}

.weather-desc {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: capitalize;
  color: #666;
}

/* Time-based background adjustments */
.header.time-background .centered h1,
.header.time-background .subtitle {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7),
               0 0 20px rgba(255, 255, 255, 0.3);
}

/* .header.time-background .weather-widget {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
} */

.header.time-background .header-countdown .countdown-item {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
}

/* Weather Animation Overlay */
.weather-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Top left text */
.top-left {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: #666;
  font-size: 0.75rem;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
  z-index: 5;
  text-align: right;
}

/* ===== TIMELINE ===== */
.time-line {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  background: linear-gradient(to bottom, #fff5f5, #ffe8e8, #ffd7d7);
  padding: 20px 12px;
  position: relative;
}

/* Timeline Year Filter */
.timeline-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 20px;
  width: 95%;
  max-width: 900px;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid #ff6b95;
  background: white;
  color: #ff6b95;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 149, 0.1);
}

.filter-btn:hover {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b95 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 149, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b95 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 107, 149, 0.3);
}

.time-line-inner {
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 900px;
  position: relative;
}

/* Timeline line */
.time-line-inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
  transform: translateX(-50%);
  border-radius: 2px;
}

.time-line-inner > div {
  position: relative;
  width: 100%;
}

.date {
  position: absolute;
  top: 12px;
  right: 18px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  color: #999;
  z-index: 3;
  pointer-events: none;
}

.date p {
  margin: 0;
  padding: 0;
}

.timeline-section {
  text-align: center;
  margin: 20px 0 15px 0;
  padding: 18px 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-header {
  font-size: 1.4rem;
  margin-bottom: 3px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 300;
}

.photo-and-description {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
  align-items: center;
  gap: 18px;
  position: relative;
}

.photo {
  width: 32%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* Photo gallery - horizontal stack with overlap */
.photo-gallery {
  /* display: flex; */
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Polaroid/retro print style */
.polaroid {
  background: white;
  padding: 10px 10px 45px 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.1);
  border-radius: 2px;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: -30px;
}

.photo-gallery .polaroid:first-child {
  margin-left: 0;
}

.polaroid:nth-child(1) { 
  transform: rotate(-8deg); 
  z-index: 1;
}

.polaroid:nth-child(2) { 
  transform: rotate(4deg); 
  z-index: 2;
}

.polaroid:nth-child(3) { 
  transform: rotate(-5deg); 
  z-index: 3;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.15);
  z-index: 10 !important;
}

.polaroid img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Single image also gets polaroid style */
.photo > img {
  background: white;
  padding: 10px 10px 45px 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 6px 20px rgba(0,0,0,0.1);
  border-radius: 2px;
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  transform: rotate(-3deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo > img:hover {
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.15);
}

.description {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 68%;
  padding: 18px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
}

.description p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.description strong {
  color: #ff6b6b;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 5px;
}

.right_description {
  margin-left: auto;
  border-right: 3px solid #4ecdc4;
}

.left_description {
  margin-right: auto;
  border-left: 3px solid #ff6b6b;
}

/* ===== ANNIVERSARY COUNTDOWN ===== */
.anniversary-countdown {
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  color: white;
}

.countdown-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.countdown-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 10px 15px;
  min-width: 65px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-2px);
}

.countdown-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  font-weight: 500;
}

.countdown-date {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.95;
  font-weight: 300;
  margin-top: 6px;
}

/* ===== MEMORY GENERATOR ===== */
.memory-generator {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
}

.memory-title {
  font-size: 1.6rem;
  margin-bottom: 6px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.memory-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 300;
}

.memory-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.09);
  margin-bottom: 18px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease;
}

.memory-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
  font-size: 1rem;
  color: #999;
  font-style: italic;
}

.memory-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.memory-content {
  padding: 20px;
  text-align: left;
}

.memory-date {
  font-size: 0.85rem;
  color: #ff6b6b;
  margin-bottom: 8px;
  font-weight: 600;
}

.memory-heading {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}

.memory-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

.memory-location {
  font-size: 0.85rem;
  color: #4ecdc4;
  font-weight: 500;
  font-style: italic;
}

.memory-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.memory-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}

.memory-btn:active {
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer-content {
  text-align: center;
  padding: 25px 15px;
  background: linear-gradient(135deg, #ff9a56, #ff6b95);
  color: white;
  margin-top: 30px;
  font-size: 0.9rem;
}

.footer-subtitle {
  margin-top: 5px;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===== MOBILE TIMELINE (hidden on desktop) ===== */
.mobile-timeline {
  display: none;
}

.mobile-date,
.mobile-img-container,
.mobile-description,
.mobile-vl,
.mobile-collage,
.mobile-footer-content {
  display: none;
}

/* ===== WEATHER ANIMATIONS ===== */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  opacity: 0;
  animation: float 20s linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
}

.cloud1 {
  width: 100px;
  height: 40px;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.cloud1::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 10px;
}

.cloud1::after {
  width: 60px;
  height: 40px;
  top: -15px;
  right: 10px;
}

.cloud2 {
  width: 120px;
  height: 50px;
  top: 50%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.cloud2::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 15px;
}

.cloud2::after {
  width: 70px;
  height: 50px;
  top: -20px;
  right: 15px;
}

.cloud3 {
  width: 90px;
  height: 35px;
  top: 70%;
  animation-delay: 10s;
  animation-duration: 28s;
}

.cloud3::before {
  width: 45px;
  height: 45px;
  top: -20px;
  left: 8px;
}

.cloud3::after {
  width: 55px;
  height: 35px;
  top: -12px;
  right: 8px;
}

@keyframes float {
  0% {
    left: -150px;
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  90% {
    opacity: 0.95;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

/* Rain Animation */
.rain {
  position: absolute;
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  animation: fall 0.8s linear infinite;
  opacity: 0.9;
}

@keyframes fall {
  0% {
    top: -50px;
  }
  100% {
    top: 100%;
  }
}

/* Snow Animation */
.snow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: snowfall 5s linear infinite;
  opacity: 1;
}

@keyframes snowfall {
  0% {
    top: -20px;
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Sun Rays Animation */
.sun-ray {
  position: absolute;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 0, 0.6), transparent);
  top: 50%;
  left: 50%;
  transform-origin: left center;
  animation: rotate 15s linear infinite;
  opacity: 0.5;
}

.sun-ray:nth-child(2) {
  animation-delay: -5s;
}

.sun-ray:nth-child(3) {
  animation-delay: -10s;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE MOBILE STYLES ===== */
@media (max-width: 768px) {
  /* Header adjustments - more compact */
  .header {
    padding: 10px;
  }

  .centered {
    padding: 0;
  }

  .centered h1 {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  .subtitle {
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .top-left {
    display: none; /* Hide on mobile to reduce clutter */
  }

  /* Header countdown - ultra compact single line */
  .header-countdown {
    position: static;
    transform: none;
    margin-top: 4px;
  }

  .header-countdown .countdown-display {
    flex-direction: row;
    gap: 3px;
    margin-bottom: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-countdown .countdown-item {
    min-width: auto;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    border: none;
    gap: 2px;
  }

  .header-countdown .countdown-number {
    font-size: 0.85rem;
    line-height: 1;
  }

  .header-countdown .countdown-label {
    font-size: 0.48rem;
    margin: 0;
    line-height: 1;
  }

  .header-countdown .countdown-date {
    font-size: 0.6rem;
    margin-top: 0;
  }

  /* Weather widget - more compact */
  .weather-widget {
    top: 68px;
    right: 8px;
    padding: 5px 8px;
    font-size: 0.7rem;
    backdrop-filter: blur(5px);
  }

  .weather-icon {
    font-size: 1rem;
  }

  .weather-temp {
    font-size: 0.85rem;
  }

  .weather-desc {
    display: none; /* Hide description on mobile */
  }

  /* Timeline filter - more compact */
  .timeline-filter {
    gap: 6px;
    padding: 12px 8px;
    margin-bottom: 15px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-width: 1.5px;
  }

  /* Timeline - switch to single column */
  .time-line-inner {
    width: 100%;
    padding: 0 10px;
  }

  /* Hide center line on mobile */
  .time-line-inner::before {
    display: none;
  }

  /* Stack photos vertically */
  .photo-and-description {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-left: 30px;
  }

  .photo {
    width: 100%;
    order: -1;
  }

  /* Mobile polaroid adjustments */
  .photo-gallery {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
  }

  .polaroid {
    transform: rotate(-3deg) !important;
    margin-left: 0 !important;
  }

  .polaroid:nth-child(2) {
    transform: rotate(2deg) !important;
  }

  .polaroid:nth-child(3) {
    transform: rotate(-2deg) !important;
  }

  /* Default size for 3 images (smallest) */
  .polaroid img {
    width: 75px;
    height: 75px;
  }

  .polaroid {
    padding: 8px 8px 30px 8px;
  }

  /* Larger size when only 2 images */
  .photo-gallery .polaroid:first-child:nth-last-child(2) img,
  .photo-gallery .polaroid:nth-child(2):last-child img {
    width: 115px;
    height: 115px;
  }

  .photo-gallery .polaroid:first-child:nth-last-child(2),
  .photo-gallery .polaroid:nth-child(2):last-child {
    padding: 10px 10px 45px 10px;
  }

  /* Largest size for single image (not in gallery) */
  .photo > img {
    width: 145px;
    height: 145px;
    padding: 12px 12px 50px 12px;
  }

  .description {
    width: 100%;
    padding: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Left and right descriptions same on mobile */
  .left_description,
  .right_description {
    margin: 0;
    text-align: left;
  }

  /* Date positioning - keep at top right like desktop */
  .date {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.65rem;
    color: #999;
    font-weight: 600;
  }

  /* Timeline sections */
  .timeline-section {
    margin: 20px 0;
    padding: 15px 10px;
  }

  .section-header {
    font-size: 1.2rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  /* Memory generator */
  .memory-generator {
    padding: 20px 15px;
  }

  .memory-title {
    font-size: 1.3rem;
  }

  .memory-subtitle {
    font-size: 0.85rem;
  }

  .memory-card {
    padding: 15px;
  }

  .memory-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-content {
    padding: 20px 15px;
    font-size: 0.85rem;
  }

  .footer-subtitle {
    font-size: 0.8rem;
  }

  /* Navigation buttons */
  .nav-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}
