/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette - Romantic & Elegant */
  --primary-color: #ff6b9d;
  --secondary-color: #c44569;
  --accent-color: #f8b500;
  --background-primary: #0f0f23;
  --background-secondary: #1a1a2e;
  --background-tertiary: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-primary: 0 20px 40px rgba(255, 107, 157, 0.3);
  --shadow-secondary: 0 10px 30px rgba(0, 0, 0, 0.3);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== CUSTOM TEXT SELECTION ===== */
::selection {
  background: var(--primary-color);
  color: var(--text-primary);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--text-primary);
}

/* Selection for elements with primary color text */
.text-gradient::selection,
.hero-title::selection,
.section-title::selection,
.timer-number::selection {
  background: var(--text-primary);
  color: var(--primary-color);
}

.text-gradient::-moz-selection,
.hero-title::-moz-selection,
.section-title::-moz-selection,
.timer-number::-moz-selection {
  background: var(--text-primary);
  color: var(--primary-color);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background: var(--background-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-accent);
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0.5;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 157, 0.1);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at center, var(--background-secondary) 0%, var(--background-primary) 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-hearts i {
  position: absolute;
  color: var(--primary-color);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.heart-1 { top: 20%; left: 10%; animation-delay: 0s; font-size: 2rem; }
.heart-2 { top: 60%; left: 80%; animation-delay: 1s; font-size: 1.5rem; }
.heart-3 { top: 30%; left: 70%; animation-delay: 2s; font-size: 2.5rem; }
.heart-4 { top: 80%; left: 20%; animation-delay: 3s; font-size: 1.8rem; }
.heart-5 { top: 10%; left: 60%; animation-delay: 4s; font-size: 2.2rem; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.title-line {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-line:first-child {
  transform: translateX(-20px);
}

.title-line:last-child {
  transform: translateX(20px);
}

.title-connector {
  display: block;
  font-size: 0.6em;
  color: var(--accent-color);
  margin: 0.5rem 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-style: italic;
}

.relationship-timer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-secondary);
}

.timer-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timer-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.timer-unit {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 107, 157, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timer-unit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
  transition: var(--transition);
}

.timer-unit:hover::before {
  left: 100%;
}

.timer-unit:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

.timer-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease;
  transform-origin: center;
}

.timer-text {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTION STYLES ===== */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MEMORIES SECTION ===== */
.memories {
  background: var(--background-secondary);
}

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

.memory-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 157, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.memory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: var(--transition);
}

.memory-card:hover::before {
  left: 0;
}

.memory-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
}

.memory-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.memory-card:hover .memory-icon {
  transform: scale(1.1) rotate(5deg);
}

.memory-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.memory-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}



/* ===== PHOTO GALLERY SECTION ===== */
.gallery {
  background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-tertiary) 50%, var(--background-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(196, 69, 105, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.photo-card {
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-15px) scale(1.02);
}

.photo-frame {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  background: var(--gradient-primary);
  padding: 8px;
  transition: var(--transition);
}

.photo-frame:hover {
  box-shadow: 0 30px 60px rgba(255, 107, 157, 0.4);
  transform: rotate(2deg);
}

.photo-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) - 8px);
  transition: var(--transition);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.photo-card:hover .photo-overlay {
  transform: translateY(0);
}

.photo-text h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.photo-text p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.haseeb-photo .photo-frame {
  background: var(--gradient-primary);
}

.javeria-photo-1 .photo-frame {
  background: var(--gradient-secondary);
}

.javeria-photo-2 .photo-frame {
  background: var(--gradient-accent);
}

/* Enhanced parallax effects for gallery */
.photo-card:nth-child(1) {
  animation: float 6s ease-in-out infinite;
}

.photo-card:nth-child(2) {
  animation: float 6s ease-in-out infinite 2s;
}

.photo-card:nth-child(3) {
  animation: float 6s ease-in-out infinite 4s;
}

/* ===== LOVE SECTION ===== */
.love {
  background: var(--background-tertiary);
}

.love-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.love-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.love-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.love-quotes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  position: relative;
}

.quote-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.quote p {
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
}

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

.heart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beating-heart {
  font-size: 8rem;
  color: var(--primary-color);
  animation: heartbeat 1.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.heart-pulse {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
  75% { transform: scale(1.05); }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ===== FUTURE SECTION ===== */
.future {
  background: var(--background-secondary);
}

.future-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.future-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-primary);
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 157, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 0 2rem;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.timeline-content h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--background-primary);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 107, 157, 0.1);
}

.footer-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-date {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Enhanced Parallax Background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 157, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(196, 69, 105, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(248, 181, 0, 0.1) 0%, transparent 30%);
  animation: parallaxBg 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes parallaxBg {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(1deg); }
}

/* Enhanced floating hearts with better parallax */
.floating-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-hearts i {
  position: absolute;
  color: var(--primary-color);
  opacity: 0.15;
  animation: enhancedFloat 8s ease-in-out infinite;
  filter: blur(0.5px);
}

@keyframes enhancedFloat {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.1;
  }
  25% { 
    transform: translateY(-30px) translateX(10px) rotate(5deg) scale(1.1);
    opacity: 0.2;
  }
  50% { 
    transform: translateY(-20px) translateX(-10px) rotate(-3deg) scale(0.9);
    opacity: 0.15;
  }
  75% { 
    transform: translateY(-40px) translateX(15px) rotate(8deg) scale(1.05);
    opacity: 0.25;
  }
}

@media (max-width: 768px) {
  .title-line:first-child,
  .title-line:last-child {
    transform: translateX(0);
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .timer-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 400px;
  }
  
  .timer-unit {
    padding: 1rem 0.5rem;
  }
  
  .timer-number {
    font-size: 2.2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .memories-grid {
    grid-template-columns: 1fr;
  }
  
  .photo-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .photo-img {
    height: 350px;
  }
  
  .love-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .beating-heart {
    font-size: 5rem;
  }
  
  .heart-pulse {
    width: 150px;
    height: 150px;
  }
  
  .future-timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 100px;
  }
  
  .timeline-icon {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .timeline-content {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .timer-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    max-width: 350px;
  }
  
  .timer-unit {
    padding: 1rem 0.5rem;
  }
  
  .timer-number {
    font-size: 1.8rem;
  }
  
  .timer-text {
    font-size: 0.8rem;
  }
  
  .memory-card {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 80px;
  }
  
  .timeline-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
}

/* ===== ANIMATIONS & INTERACTIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .memory-card,
  .timeline-content,
  .quote {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .memory-card:nth-child(1) { animation-delay: 0.1s; }
  .memory-card:nth-child(2) { animation-delay: 0.2s; }
  .memory-card:nth-child(3) { animation-delay: 0.3s; }
  .memory-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 157, 0.1);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}