:root {
  /* Modern Color Palette */
  --primary: #ff6b8b;
  --secondary: #ffb8c6;
  --dark: #1a1a2e;
  --light: #fef6fb;
  --accent: #ffd166;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);

  /* Typography */
  --serif: 'Playfair Display', serif;
  --sans-serif: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 4rem 2rem;
  --card-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

body {
  font-family: var(--sans-serif);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #fef6fb 100%);
}

.wedding-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

/* Floating Hearts Background */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-hearts::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffb8c650"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
  opacity: 0.1;
  animation: float 60s linear infinite;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 50px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Video Lightbox */
.video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: 90%;
  max-width: 1000px;
  position: relative;
}

.lightbox-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: var(--card-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-lightbox {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition);
}

.close-lightbox:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--accent);
}

.video-meta {
  color: white;
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--serif);
}

.video-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.video-description {
  font-family: var(--sans-serif);
  opacity: 0.8;
  font-weight: 300;
}

/* Header Styles */
.video-header {
  text-align: center;
  padding: 5rem 1rem 3rem;
  position: relative;
}

.video-header h1 {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hearts {
  display: inline-block;
  animation: pulse 2s infinite;
  color: var(--primary);
}

.subtitle {
  font-size: 1.3rem;
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.animated-divider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 2rem auto;
}

.divider-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 2s infinite ease-in-out;
}

.divider-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.divider-dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* Featured Video Section */
.featured-video {
  padding: 2rem 0;
  margin: 2rem 0;
  position: relative;
}

.glass-card {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  transform-style: preserve-3d;
}


.main-video {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.glass-card:hover .main-video {
  transform: scale(1.02);
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  text-align: center;
}

/* Video Gallery */
.video-gallery {
  padding: var(--section-padding);
}

.gallery-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--dark);
}

.gallery-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 1.2rem auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 0 auto;
}

/* Video Cards */
.video-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 107, 139, 0.1);
  transition: var(--transition);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.video-card:hover {
  transform: perspective(1000px) rotateY(5deg) translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 107, 139, 0.2);
}

.video-thumbnail {
  position: relative;
  padding-top: 90.50%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.thumbnail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  transition: var(--transition);
}

.hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,107,139,0.3) 0%, rgba(255,184,198,0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .hover-effect {
  opacity: 1;
}

.video-card:hover .thumbnail-image {
  transform: scale(1.1);
}


.video-thumbnail {
  position: relative;
  padding-top: 60.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}


.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.video-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button:hover {
  background: white;
  color: var(--accent);
  transform: translate(-50%, -50%) scale(1.2);
}

.floating-heart {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--primary);
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  animation: floatUp 3s infinite ease-in-out;
  z-index: 1;
}

.video-card:hover .floating-heart {
  opacity: 1;
}

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

.video-info {
  padding: 1.8rem 1.5rem;
  text-align: center;
  background: white;
  position: relative;
  z-index: 1;
}

.video-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.video-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.video-date {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Back Button */
.back-to-home {
  text-align: center;
  margin: 4rem 0;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(255, 107, 139, 0.3);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.home-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.home-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 107, 139, 0.4);
}

.home-button:hover::before {
  left: 100%;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Footer */
.video-footer {
  text-align: center;
  padding: 2.5rem;
  margin-top: 3rem;
  color: #999;
  font-size: 0.9rem;
  position: relative;
}

.video-footer::before {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .video-header h1 {
    font-size: 3rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .video-header {
    padding: 3rem 1rem 2rem;
  }
  
  .video-header h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .gallery-title {
    font-size: 2rem;
  }
  
  .video-info {
    padding: 1.5rem 1rem;
  }
  
  .video-info h3 {
    font-size: 1.3rem;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 1rem;
  }
  
  .video-header h1 {
    font-size: 2rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .home-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  
  .lightbox-video {
    width: 100%;
    height: auto;
  }
  
  .close-lightbox {
    top: -40px;
    right: 10px;
  }
}