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

:root {
  --deep-blue: #1e3a5f;
  --royal-blue: #2c5282;
  --sky-blue: #4299e1;
  --light-blue: #bee3f8;
  --pale-blue: #ebf8ff;
  --white: #ffffff;
  --cream: #f7fafc;
  --shadow: rgba(30, 58, 95, 0.1);
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 50%, #f5f9ff 100%);
  color: var(--deep-blue);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

@font-face {
  font-family: "WeddingScript";
  src: url("./fonts/PerfectoCalligraphy.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.new-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 40px;
  color: white;
  background: linear-gradient(135deg, #1c7ed6, #4dabf7);
  box-shadow: 0 0 40px rgba(0, 150, 255, 0.6);
  transition: 0.4s;
}

#playBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

#playBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* timeline */
.timeline {
  position: relative;
  padding: 120px 20px;
  background: linear-gradient(135deg, #071c2f, #0c2e4d, #154a7d);
  font-family: "Poppins", sans-serif;
  color: white;
  overflow: hidden;
}

/* floating glow */

.timeline::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4ab3ff55, transparent 70%);
  top: -200px;
  left: -200px;
  animation: floatGlow 10s infinite alternate ease-in-out;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1f7fff44, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation: floatGlow 12s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(80px);
  }
}

/* PLAY SCREEN */

.timeline-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
}

.play-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 40px;
  color: white;
  background: linear-gradient(135deg, #1c7ed6, #4dabf7);
  box-shadow: 0 0 40px rgba(0, 150, 255, 0.6);
  transition: 0.4s;
  animation: pulse 2s infinite;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(0, 150, 255, 1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 140, 255, 0.9);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.4);
  }
}

.start-text {
  font-size: 2rem !important;
  letter-spacing: 2px;
}

/* timeline container */

.timeline-container {
  max-width: 1100px;
  margin: auto;
  position: relative;
}

/* center line */

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(#4dabf7, #1c7ed6);
  transform: translateX(-50%);
}

/* items */

.timelineBackround {
  width: 100%;
  background-image: url("../timeline_pic.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.timelineBackround {
  position: relative;
}

.timelineBackround::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1); /* dark overlay */
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 40px;
  opacity: 1;
  transform: translateY(40px);
  transition: 1s ease;
}

/* .timeline-item.show {
  opacity: 1;
  transform: translateY(0);
} */

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

/* card */

.timeline-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: 0.4s;
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.timeline-date {
  font-size: 14px;
  color: #7fc8ff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #cce9ff;
}

.timeline-desc {
  font-size: 15px;
  color: #d8ecff;
  line-height: 1.6;
}

/* dots */

.timeline-dot {
  position: absolute;
  top: 40px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #4dabf7;
  border-radius: 50%;
  box-shadow: 0 0 15px #4dabf7;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}
/* countdown */
.countdown {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

#clock-section p {
  font-size: 3rem;
}

.time-box {
  padding: 10px 25px;
  border-radius: 12px;
  width: 100px;
  text-align: center;
}



.number {
  font-size: 40px;
  font-weight: 600;

  animation: pulse 2s infinite;
}

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

.label {
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 5px;
}

.wedding-font {
  font-family: "WeddingScript", cursive;
  font-size: 80px;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  width: 100%;
  text-align: center;
}

.hero-content h1 {
  font-size: 7rem !important;
}

#weddingof,
#marrydate {
  position: relative;
  font-size: 1.5rem;
}

#weddingof,
#marrydate {
  bottom: -20px;
}

#marrydate {
  bottom: 10px;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #f0f9ff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

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

/* download and share buttons */
.button-group {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}
.button-group button {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--deep-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(66, 153, 225, 0.1) 0%,
    transparent 70%
  );
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -50px;
  animation-delay: 5s;
}

.circle-3 {
  width: 250px;
  height: 250px;
  bottom: -75px;
  left: 30%;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Header */
header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
}

.wedding-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--royal-blue);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.ampersand {
  font-style: italic;
  color: var(--sky-blue);
  font-weight: 400;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--royal-blue);
  font-weight: 300;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.4s forwards;
}

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

  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Upload Section */
.upload-section {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 60px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.upload-area {
  border: 2px dashed var(--sky-blue);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(235, 248, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.upload-area:hover::before {
  left: 100%;
}

.upload-area:hover {
  border-color: var(--royal-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(66, 153, 225, 0.2);
}

.upload-area.dragover {
  background: rgba(66, 153, 225, 0.1);
  border-color: var(--deep-blue);
  transform: scale(1.02);
}

.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--sky-blue), var(--royal-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(66, 153, 225, 0.3);
  transition: transform 0.3s ease;
}

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

.upload-icon svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.upload-text h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.upload-text p {
  color: var(--royal-blue);
  font-size: 0.95rem;
}

.file-input {
  display: none;
}

.upload-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--royal-blue), var(--deep-blue));
  color: white;
  border: none;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

#uploadBtnMobile {
  position: fixed;
  bottom: 0;
  right: 10%;
  left: 10%;
  margin: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  display: none;
}

/* Gallery Section */
.gallery-section {
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--deep-blue);
  font-weight: 400;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.filter-tab {
  padding: 0.5rem 1.2rem;
  border: none;
  background: transparent;
  color: var(--royal-blue);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.filter-tab.active {
  background: white;
  color: var(--deep-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-tab:hover:not(.active) {
  color: var(--deep-blue);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

.gallery-author {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallery-item:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--deep-blue);
  margin-left: 4px;
}

/* Loading State */
.loading-spinner {
  display: none;
  width: 50px;
  height: 50px;
  border: 3px solid var(--light-blue);
  border-top-color: var(--royal-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--deep-blue);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 1000;
  font-weight: 500;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  background: var(--sky-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 95, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem !important;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  /* top: 50%;
            transform: translateY(-50%); */
  bottom: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 3000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-10%) scale(1.1);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.btn-mobile {
  position: absolute !important;
  bottom: -30% !important;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

@media (max-width: 768px) {

  #enttourage-toggle{
    margin-top: 50px;
  }

  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
  }

  #weddingof,
  #marrydate {
    position: relative;
    font-size: 1rem;
  }

  #weddingof,
  #marrydate {
    bottom: 0px;
  }

  #marrydate {
    bottom: 0px;
  }

  header {
    padding: 3rem 1.5rem 2rem;
  }
  .hero-content h1 {
    font-size: 3rem !important;
  }

  #uploadBtnMobile {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  #uploadBtnMobile.show {
    opacity: 1;
    pointer-events: auto;
  }

  .section-header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem;
    position: sticky !important;
    top: 20px;
    z-index: 1000;
  }

  .upload-section {
    padding: 2rem 1.5rem;
  }

  .upload-area {
    padding: 2rem 1rem;
  }

  .container {
    padding: 0 1rem 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-nav {
    position: absolute !important;
    bottom: 10% !important;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--royal-blue);
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
}

/* Progress Bar */
.upload-progress {
  display: none;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  overflow: hidden;
  height: 10px;
}

.upload-progress.show {
  display: block;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sky-blue), var(--royal-blue));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 50px;
}
