/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500&family=Great+Vibes&display=swap');

/* Base Styles */
:root {
  --primary-color: #5F8575;
  --primary-light: #577a6b;
  --secondary-color: #F8F5F2;
  --accent-color: #abc3b9;
  --text-color: #3A3238;
  --text-light: #72666E;
  --white: #FFFFFF;
  --error: #D85A5A;
  --success: #7BA05B;
  --shadow: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  background-color: var(--white);
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary-color);
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 1px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--secondary-color);
}

/* Header & Hero */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 2;
}

.hero-content {
  max-width: 80%;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s ease forwards 0.5s;
}

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

/* Update hero h1 style */
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    font-weight: 600;
    text-transform: none;
  }

.hero .date {
  font-size: 2.2rem;
  margin: 1.5rem 0;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero .tagline {
  font-size: 1.5rem;
  font-style: italic;
  opacity: 0.9;
  font-weight: 300;
  margin-top: 1.5rem;
}

.subpage-header {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.subpage-header h1 {
  color: var(--white);
  margin-bottom: 0;
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: transform 0.4s ease;
}

.nav-scrolled {
  transform: translateY(-100%);
}

.nav-visible {
  transform: translateY(0);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Update the nav-logo style */
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    padding: 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
  }

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem 0;
}

.main-nav li {
  margin: 0 1.5rem;
}

.main-nav a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 0.5rem 0;
  font-weight: 500;
  position: relative;
  color: var(--text-color);
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.btn-rsvp {
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.6rem 1.8rem !important;
  border-radius: 30px;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  font-size: 0.75rem !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-rsvp:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Our Story Section */
.story-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.story-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.story-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.story-text {
  flex: 1;
  min-width: 300px;
}

.story-text p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* Wedding Details */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.detail-card {
  background-color: white;
  padding: 3rem 2rem;
  border-radius: 5px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.detail-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

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

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

.detail-card .time {
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.detail-card .location {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* CTA Section */
.cta-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: 7rem 0;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.cta-section h2:after {
  left: 20%;
  width: 60%;
  background-color: rgba(255,255,255,0.5);
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-small, .btn-large, .btn-submit {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  border-radius: 3px;
}

.btn-large {
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-small:hover, .btn-large:hover, .btn-submit:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}

/* RSVP Form */
.rsvp-form-container {
  max-width: 650px;
  margin: 0 auto;
}

.rsvp-form-container h2 {
  left: 5%;
  text-align: center;
  margin-bottom: 2.5rem;
}

.rsvp-form-container h2:after {
  left: 20%;
  width: 60%;
}

.rsvp-form {
  background-color: white;
  padding: 3rem 2.5rem;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(149, 122, 109, 0.2);
  background-color: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.radio-group input {
  margin-right: 0.8rem;
  cursor: pointer;
}

.form-submit {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-submit {
  padding: 1rem 3rem;
  font-size: 1rem;
  border-radius: 30px;
  background-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Alert styles */
.alert {
  padding: 1.2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
  position: relative;
}
  
.success {
  background-color: #e8f4e5;
  border-left: 4px solid var(--success);
  color: #2c5e1a;
}
  
.error {
  background-color: #fceded;
  border-left: 4px solid var(--error);
  color: #921c1c;
}
  
.hidden {
  display: none;
}

/* Additional Elegant Elements */
.flourish {
  display: inline-block;
  height: 25px;
  width: 100px;
  background-image: url('/images/flourish.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 1rem auto;
}
  
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
  
.section-title h2 {
  left: 5%;
  margin-bottom: 0.5rem;
}
  
.section-title h2:after {
  left: 20%;
  width: 60%;
}
  
.section-title .flourish {
  margin-top: 0.5rem;
}
  
/* Enhance Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
  
.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
  
/* Timeline for Our Story */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
}
  
.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--primary-light);
  transform: translateX(-50%);
}
  
.timeline-item {
  padding: 2rem 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}
  
.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}
  
.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}
  
.timeline-item:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  top: 2.5rem;
}
  
.timeline-item:nth-child(odd):before {
  right: -10px;
}
  
.timeline-item:nth-child(even):before {
  left: -10px;
}
  
.timeline-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
  
/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 20px;
  margin-top: 2rem;
}
  
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: var(--shadow);
  height: 0;
  padding-bottom: 100%; /* Creates a square */
}
  
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
  
.gallery-item:hover img {
  transform: scale(1.05);
}
  
/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}
  
.countdown-item {
  text-align: center;
  margin: 0 1.5rem;
}
  
.countdown-number {
  font-size: 3rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary-color);
  display: block;
  line-height: 1;
}
  
.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  color: var(--text-light);
}
  
/* Enhanced Navigation for Mobile */
.nav-toggle {
  display: none;
}

/* Improved Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .detail-card {
    padding: 2rem 1.5rem;
  }
  
  .countdown-item {
    margin: 0 1rem;
  }
  
  .countdown-number {
    font-size: 2.5rem;
  }
}
  
@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 3.8rem;
  }
  
  .hero .date {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  
  .hero .tagline {
    font-size: 1.3rem;
  }
  
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
  }
  
  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background-color: white;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
    justify-content: flex-start;
  }
  
  .main-nav.active ul {
    right: 0;
  }
  
  .main-nav li {
    margin: 1rem 0;
  }
  
  .story-content {
    gap: 2rem;
  }
  
  .story-image {
    max-height: 300px;
  }
  
  .timeline:before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd):before {
    right: auto;
    left: 20px;
  }
}
  
@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.7rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero .date {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .hero .tagline {
    font-size: 1.1rem;
  }
  
  .rsvp-form {
    padding: 2rem 1.5rem;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .countdown-item {
    margin: 1rem;
  }
  
  .btn-large {
    padding: 0.8rem 2rem;
  }
}

/* Fix Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
  }
  
  .nav-toggle:hover {
    color: var(--accent-color);
  }
  
  @media (max-width: 768px) {
    .nav-toggle {
      display: block;
      position: absolute;
      right: 20px;
      top: 15px;
      z-index: 1000;
    }
    
    .main-nav .container {
      position: relative;
      padding: 15px 0;
    }
    
    .main-nav ul {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background-color: white;
      flex-direction: column;
      align-items: flex-start;
      padding: 80px 30px 30px;
      transition: right 0.3s ease;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1);
      z-index: 999;
    }
    
    .main-nav.active ul {
      right: 0;
    }
    
    .main-nav li {
      margin: 15px 0;
      width: 100%;
    }
    
    .main-nav a {
      display: block;
      width: 100%;
    }
    
    .btn-rsvp {
      margin-top: 15px;
      text-align: center;
    }
    
    /* Add overlay when menu is open */
    .main-nav.active::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.5);
      z-index: 998;
    }
  }

  /* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
  }
  
  .nav-toggle:hover {
    background-color: rgba(0,0,0,0.05);
  }
  
  .nav-toggle i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
  }
  
  .main-nav.active .nav-toggle i {
    transform: rotate(90deg);
  }
  
  @media (max-width: 768px) {
    .nav-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      right: 15px;
      top: 15px;
    }
  
    .main-nav .container {
      padding: 15px 0;
      position: relative;
    }
    
    /* Mobile menu overlay */
    .main-nav.active::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.5);
      z-index: 998;
      animation: fadeIn 0.3s ease forwards;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    /* Slide-in menu */
    .main-nav ul {
      position: fixed;
      top: 0;
      right: -300px;
      width: 280px;
      height: 100vh;
      background-color: white;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding: 70px 30px 30px;
      transition: right 0.3s ease;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1);
      z-index: 999;
      overflow-y: auto;
    }
    
    .main-nav.active ul {
      right: 0;
    }
    
    .main-nav li {
      margin: 10px 0;
      width: 100%;
      opacity: 0;
      transform: translateX(20px);
    }
    
    .main-nav.active li {
      opacity: 1;
      transform: translateX(0);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Apply transition delays to create a staggered effect */
    .main-nav.active li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.active li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.active li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.active li:nth-child(5) { transition-delay: 0.3s; }
    
    .main-nav a {
      display: block;
      width: 100%;
      padding: 8px 0;
      font-size: 1.1rem;
    }
    
    .main-nav a.btn-rsvp {
      margin-top: 20px;
      text-align: center;
    }
  }

  /* Custom Hamburger Icon */
.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
  }
  
  .main-nav.active .hamburger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .main-nav.active .hamburger span:nth-child(2) {
    opacity: 0;
  }
  
  .main-nav.active .hamburger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }