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

:root {
  --primary-color: #d4b78f;
  --secondary-color: #8f9db4;
  --text-color: #333;
  --light-color: #f9f7f5;
  --dark-color: #333;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader .heart {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  transform: rotate(45deg);
  animation: heartbeat 1.2s infinite;
  position: relative;
  margin-bottom: 20px;
}

.preloader .heart:before,
.preloader .heart:after {
  content: "";
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
}

.preloader .heart:before {
  top: -25px;
  left: 0;
}

.preloader .heart:after {
  top: 0;
  left: -25px;
}

@keyframes heartbeat {
  0% {
    transform: rotate(45deg) scale(0.8);
  }
  5% {
    transform: rotate(45deg) scale(0.9);
  }
  10% {
    transform: rotate(45deg) scale(0.8);
  }
  15% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(0.8);
  }
  100% {
    transform: rotate(45deg) scale(0.8);
  }
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.hamburger {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 80px 20px 20px;
  transition: var(--transition);
  list-style: none;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-menu.active {
  right: 0;
}

.nav-menu li {
  margin-bottom: 15px;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  padding: 10px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-menu a:hover {
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
}

/* Header */
header {
  text-align: center;
  padding: 100px 0;
  background: url("/placeholder.svg?height=600&width=1200") center / cover no-repeat;
  background-color: rgba(255, 255, 255, 0.8);
  background-blend-mode: overlay;
  border-radius: 5px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.parallax {
  background-attachment: fixed;
}

header::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--primary-color);
  border-radius: 3px;
  pointer-events: none;
}

header .names h1 {
  font-size: 4rem;
  color: var(--text-color);
  margin-bottom: 10px;
  letter-spacing: 2px;
  position: relative;
}

header .date {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 40px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 5px;
  min-width: 80px;
  box-shadow: var(--shadow);
}

.countdown-item span:first-child {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Invitation Section */
.invitation {
  text-align: center;
  margin-bottom: 50px;
  padding: 50px 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.invitation h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.invitation p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.invitation .highlight {
  font-style: italic;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.divider {
  height: 1px;
  background-color: var(--primary-color);
  width: 50%;
  margin: 20px auto;
}

.hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart-animation {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  opacity: 0.3;
  transform: rotate(45deg);
  animation: hearts 3s linear infinite;
}

.heart-animation:before,
.heart-animation:after {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
}

.heart-animation:before {
  top: -10px;
  left: 0;
}

.heart-animation:after {
  top: 0;
  left: -10px;
}

.heart-animation:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.heart-animation:nth-child(2) {
  left: 50%;
  animation-delay: 1.5s;
}

.heart-animation:nth-child(3) {
  left: 80%;
  animation-delay: 3s;
}

@keyframes hearts {
  0% {
    top: 100%;
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    top: -10%;
    opacity: 0;
  }
}

/* Details Section */
.details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
  gap: 20px;
}

.detail-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 40px 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.detail-card:hover .icon {
  transform: scale(1.2);
}

.detail-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.detail-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.detail-card:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.detail-card:hover:before {
  transform: scaleX(1);
}

/* Map Section */
.map-section {
  margin-bottom: 50px;
  padding: 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
  text-align: center;
}

.map-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.map-container {
  height: 400px;
  margin-bottom: 30px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-canvas {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  background-image: url("/placeholder.svg?height=400&width=800");
  background-size: cover;
  background-position: center;
}

.map-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.transport-option {
  display: flex;
  align-items: center;
  gap: 15px;
}

.transport-option i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Program Section */
.program {
  margin-bottom: 50px;
  padding: 50px 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.program h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 100px;
}

.event {
  display: flex;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.event.show {
  opacity: 1;
  transform: translateX(0);
}

.time {
  min-width: 100px;
  font-weight: bold;
  text-align: right;
  padding-right: 25px;
}

.event-details {
  padding-left: 25px;
  background-color: rgba(212, 183, 143, 0.1);
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.event-details:hover {
  transform: translateX(10px);
}

.event-details h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.event::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  left: 91px;
  top: 5px;
  transition: background-color 0.3s ease;
}

.event:hover::after {
  background-color: var(--primary-color);
}

/* Gallery Section */
.gallery {
  margin-bottom: 50px;
  padding: 50px 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
  text-align: center;
}

.gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: white;
  padding: 10px 0;
  height: 50px;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Dress Code Section */
.dress-code {
  text-align: center;
  margin-bottom: 50px;
  padding: 50px 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.dress-code h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.dress-code-icons {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}

.dress-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dress-icon i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.dress-code p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.color {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.dress-code-details {
  font-style: italic;
  margin-top: 15px;
}

/* RSVP Section */
.rsvp {
  margin-bottom: 50px;
  padding: 50px 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
  position: relative;
}

.rsvp h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.rsvp p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Track Field Styles */
.form-group label[for="track"] {
  margin-top: 5px;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input[name="track"] {
  border: 1px solid #ddd;
  transition: border-color 0.3s ease;
}

.form-group input[name="track"]:focus {
  border-color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  transition: border-color 0.3s ease;
  position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

.form-group input:focus ~ .focus-border,
.form-group select:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
  width: 100%;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: #c4a77f;
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

.form-success {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 4px;
  color: #4caf50;
}

.form-success i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Wishes Section */
.wishes {
  text-align: center;
  margin-bottom: 50px;
  padding: 50px 30px;
  background-color: white;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.wishes h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.wishes p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.wishes-animation {
  margin-top: 30px;
}

.gift-icon {
  font-size: 3rem;
  color: var(--primary-color);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 0;
  margin-top: 50px;
  border-top: 1px solid var(--primary-color);
  position: relative;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

footer p {
  margin-bottom: 10px;
}

footer h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  background-color: var(--secondary-color);
}

.scroll-to-top {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  header {
    padding: 80px 0;
    background-attachment: scroll;
  }

  header .names h1 {
    font-size: 3.5rem;
  }

  .countdown-item {
    min-width: 70px;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 60px 0;
  }

  header .names h1 {
    font-size: 3rem;
  }

  header .date {
    font-size: 1.5rem;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 8px;
  }

  .countdown-item span:first-child {
    font-size: 1.5rem;
  }

  .details {
    flex-direction: column;
  }

  .timeline::before {
    left: 30px;
  }

  .time {
    min-width: 60px;
    padding-right: 15px;
  }

  .event-details {
    padding-left: 15px;
  }

  .event::after {
    left: 21px;
  }

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

  .dress-code-icons {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 40px 0;
  }

  header .names h1 {
    font-size: 2.2rem;
  }

  header .date {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .countdown-item {
    margin-bottom: 10px;
  }

  .invitation h2,
  .program h2,
  .dress-code h2,
  .rsvp h2,
  .wishes h2,
  .gallery h2,
  .map-section h2 {
    font-size: 2rem;
  }

  .timeline::before {
    display: none;
  }

  .event {
    flex-direction: column;
  }

  .time {
    text-align: left;
    padding-right: 0;
    margin-bottom: 5px;
    font-size: 1.1rem;
  }

  .event-details {
    padding-left: 0;
  }

  .event::after {
    display: none;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

  .dress-code-icons {
    flex-direction: column;
    gap: 20px;
  }

  .contact {
    flex-direction: column;
    gap: 15px;
  }

  .modal-content {
    max-width: 95%;
  }

  .prev,
  .next {
    padding: 8px;
    font-size: 20px;
  }
}
