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

:root {
  --rose: #FF6B6B;
  --gold: #FFD700;
  --cream: #FFF5F5;
  --burgundy: #8B0000;
  --dark: #1a0a0f;
  --text: #3d1f2a;
  --shadow: rgba(139, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

/* Floating Hearts Background */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  contain: strict;
}

.heart-particle {
  position: fixed;
  bottom: -40px;
  color: var(--rose);
  opacity: 0.25;
  animation: floatUp linear infinite;
  font-size: 1.2rem;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

/* Lock Screen */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, #2d0a18 50%, var(--burgundy) 100%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.lock-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
}

.lock-heart {
  font-size: 4rem;
  color: var(--rose);
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 1rem;
}

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

.lock-title {
  font-family: 'Aref Ruqaa', serif;
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.lock-subtitle {
  color: rgba(255, 245, 245, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-input {
  padding: 1rem 1.25rem;
  border: 2px solid rgba(255, 107, 107, 0.4);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.password-input::placeholder {
  color: rgba(255, 245, 245, 0.5);
}

.password-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.password-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  color: white;
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.password-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.password-error {
  color: #ffb3b3;
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 1.5rem;
}

/* Countdown */
.countdown-section {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.countdown-section.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.countdown-label {
  color: var(--cream);
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.countdown-label-en {
  color: rgba(255, 245, 245, 0.6);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-name {
  font-size: 0.8rem;
  color: rgba(255, 245, 245, 0.7);
  margin-top: 0.4rem;
}

@media (max-width: 400px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-value {
    font-size: 1.6rem;
  }
}

.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Main Site */
.main-site {
  position: relative;
  z-index: 1;
}

/* Intro Video Section */
.intro-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.intro-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 15, 0.35);
  z-index: 1;
}

.intro-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: videoTextFadeIn 2s ease 1s forwards;
}

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

.intro-video-text {
  font-family: 'Aref Ruqaa', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.intro-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: white;
  font-size: 1rem;
  animation: hintFadeIn 1s ease forwards;
}

.intro-scroll-hint .scroll-arrow {
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes hintFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Music Toggle */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  background: rgba(255, 255, 255, 0.95);
  color: var(--burgundy);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  transform: scale(1.08);
  background: var(--cream);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, var(--cream) 0%, #ffe8e8 40%, #fff9e6 100%);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--burgundy);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  margin-bottom: 1rem;
}

.sparkle {
  display: block;
  font-family: 'Aref Ruqaa', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--burgundy);
  animation: glow 2s ease-in-out infinite alternate;
}

.hero-name {
  display: block;
  font-family: 'Aref Ruqaa', serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  background: linear-gradient(135deg, var(--rose), var(--gold), var(--burgundy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.25rem;
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(255, 107, 107, 0.3); }
  to { text-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.85;
}

.hero-subtitle-ar {
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.4rem;
  color: var(--burgundy);
  margin-top: 0.25rem;
}

.love-counter {
  margin-top: 2rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px var(--shadow);
  font-size: 1rem;
  color: var(--burgundy);
  font-weight: 600;
  line-height: 1.8;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--rose);
  font-size: 0.85rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Section Titles */
.section-title {
  font-family: 'Aref Ruqaa', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  text-align: center;
  color: var(--rose);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Timeline */
.timeline-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #fff9f9 0%, var(--cream) 100%);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-right: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  right: 15px;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--rose), var(--gold));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-right: 3rem;
}

.timeline-marker {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: white;
  border: 3px solid var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--rose);
  z-index: 1;
}

.timeline-content {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--shadow);
  border-right: 4px solid var(--rose);
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.4rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

/* Gallery */
.gallery-section {
  padding: 5rem 0;
  background: var(--cream);
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.25);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 10, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 107, 107, 0.5);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Videos */
.videos-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, #fff0f0 100%);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  background: white;
  padding: 0.5rem;
}

.video-player {
  width: 100%;
  border-radius: 12px;
  display: block;
  background: #000;
}

/* Love Letter */
.letter-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #fff0f0 0%, var(--cream) 100%);
}

.letter {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 30px var(--shadow);
  position: relative;
  font-family: 'Aref Ruqaa', serif;
  font-size: 1.25rem;
  line-height: 2;
  color: var(--text);
}

.letter::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 107, 0.15) 50%);
}

.letter p {
  margin-bottom: 1.25rem;
}

.letter-greeting {
  font-size: 1.5rem;
  color: var(--burgundy);
  font-weight: 700;
}

.letter-sign {
  text-align: left;
  margin-top: 2rem;
  color: var(--burgundy);
}

.letter-sign strong {
  font-size: 1.4rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--dark), var(--burgundy));
  color: var(--cream);
}

.footer-heart {
  font-size: 2rem;
  color: var(--rose);
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

.footer-ar {
  opacity: 0.7;
  font-family: 'Aref Ruqaa', serif;
  margin-top: 0.25rem;
}

.footer-counter {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  color: var(--cream);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    columns: 2;
  }

  .timeline {
    padding-right: 1.5rem;
  }

  .timeline-item {
    padding-right: 2.5rem;
  }

  .letter {
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }

  .music-toggle {
    bottom: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
  }
}
