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

:root {
  --primary-color: #d4a574;
  --secondary-color: #f4e4d1;
  --accent-color: #b8860b;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-pink: #fdf2f8;
  --rose-gold: #e8b4a0;
  --cream: #faf7f4;
}

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

.withLove {
  margin-bottom: 0px;
}
.story-signature {
  font-style: italic;
  color: var(--text-light);
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 0px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-logo img {
  height: 90px;
  width: auto;
}

.nav-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}
.nav-text {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  font-size: 1rem;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0 10px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-color);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--primary-color);
}

/* Carousel Fixes */
.carousel {
  margin-top: 69px;
}

/* carousel responsivemness on small screen */
.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Countdown Section */
.countdown-section {
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    var(--light-pink) 0%,
    var(--secondary-color) 100%
  );
  text-align: center;
}

.countdown-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.countdown-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 100px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
}

.countdown-item:hover {
  transform: translateY(-5px);
}

.countdown-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.countdown-to-go {
  margin-top: 1rem;
}

.countdown-to-go span {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--white);
  padding: 0.5rem 2rem;
  border-radius: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Wedding Married Message */
.wedding-message {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  color: var(--primary-color);
  text-align: center;
  padding: 3rem 0;
}

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

/* Section Titles */
.section-title {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 2rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Our Story Section */
.story-section {
  padding: 20px 0;
  background: var(--white);
}

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

.story-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.story-item.reverse {
  flex-direction: row-reverse;
}

.story-image {
  flex: 1;
}

.story-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.story-image img:hover {
  transform: scale(1.05);
}

.story-content {
  flex: 1;
}

.story-content h3 {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.story-date {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.story-content p {
  color: var(--text-light);
  line-height: 1.8;
}

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

/* Details Section */
.details-section {
  padding: 20px 0;
  background-size: cover;
  background-position: center;
  background: linear-gradient(
    135deg,
    var(--light-pink) 0%,
    var(--secondary-color) 100%
  );
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.detail-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-10px);
}

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

.detail-card h3 {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.detail-main {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.detail-sub {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.detail-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.detail-button:hover {
  background: var(--accent-color);
}

/* Gifting Section */
.gifting-section {
  padding: 20px 0;
  background: var(--white);
}

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

.gift-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: default; /* Remove pointer cursor from entire card */
}

.gift-card:hover {
  transform: translateY(-10px);
}

.gift-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gift-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gift-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.gift-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.gift-price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
}

.gift-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.gift-unavailable {
  opacity: 0.6;
}

.gift-unavailable::after {
  content: "Fully Gifted";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  z-index: 10;
}

/* Gift Button Styles */
.gift-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gift-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-button:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gift-button:disabled:hover {
  background: var(--text-light);
  transform: none;
  box-shadow: none;
}

.gift-button i {
  font-size: 0.8rem;
}

/* Wishes Section */
.wishes-section {
  padding: 20px 0;
}

.wishes-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.attendance-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

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

.attendance-select {
  background-color: var(--white);
  cursor: pointer;
}

.attendance-select option {
  padding: 0.5rem;
}

.submit-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: var(--accent-color);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.footer i {
  color: #e74c3c;
}

/* Responsive Design */

@media (max-width: 768px) {
  .navbar {
    height: 40px;
    justify-content: center;
    align-items: center;
  }
  .hamburger {
    display: flex;
  }

  body {
    padding-top: 40px;
    padding-bottom: 10px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    z-index: 1;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    height: 100vh;
  }

  .nav-menu.active {
    left: 0;
    top: 40px;
    justify-content: center;
    align-items: center;
  }

  .nav-menu li {
    margin: 1rem 0;
  }
  .carousel {
    margin-top: 0px;
  }

  .nav-text {
    font-size: 1.5rem;
  }

  .story-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .story-item.reverse {
    flex-direction: column;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .gifts-grid {
    grid-template-columns: 1fr;
  }

  .cart-button {
    width: 100%;
    margin-bottom: 1rem;
    margin-right: 0;
  }

  .gift-price-container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .countdown-title {
    font-size: 2rem;
  }

  #countdown {
    gap: 1rem;
  }

  .countdown-item {
    min-width: 80px;
    padding: 1rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-to-go span {
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
  }

  .wedding-message {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .countdown-title {
    font-size: 1.8rem;
  }

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

  .countdown-number {
    font-size: 1.3rem;
  }

  .countdown-label {
    font-size: 0.8rem;
  }

  .countdown-to-go span {
    font-size: 1.3rem;
  }
  .nav-logo img {
    height: 50px;
  }

  .nav-text {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .couple-photo {
    width: 200px;
    height: 200px;
  }

  /* .countdown-number {
    font-size: 1.5rem;
  } */

  .wishes-form {
    padding: 2rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Notification Animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
