/* Wedding Website Styles with Bootstrap 5.3.5 integration */
@import url("https://fonts.googleapis.com/css2?family=Aladin&family=Asul:wght@400;700&family=Limelight&family=Macondo+Swash+Caps&family=Neonderthaw&family=Sail&display=swap");
/* Base Styles */
:root {
  --primary-color: #e295b2;
  --secondary-color: #912d67;
  --accent-color: #0f0701;
  --gold-color: #f2d675;
  --dark-gold: #d4af37;
  --light-color: #fffdf7;
  --dark-color: #333;
  --focus-color: #007bff;
  --focus-outline: 3px solid var(--focus-color);
  --font-primary: "Aladin", serif;
  --font-alternativetitle: "Sail", serif;
  --font-secondary: "Asul", sans-serif;
  --font-accent: "Sail", serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

h1,
h2,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-family: var(--font-accent);
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  position: relative;
}

h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

h3 {
  font-family: var(--font-alternativetitle);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-size: 1.8rem;
  color: var(--accent-color);
}

p {
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
  font-weight: 300;
  line-height: 1.8;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.5s ease;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* Header & Sticky Navigation */
header {
  position: relative;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
}

.hero-container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url("assets/images/bg_fill_lg.webp"),
    linear-gradient(rgba(231, 207, 125, 1), rgba(231, 207, 125, 1));
  background-size: cover;
  background-position: unset;
  color: var(--light-color);
  background-position-x: center;
}

.hero-text {
  margin-top: 5rem;
  padding: 3rem 4rem;
  max-width: 700px;
  color: var(--dark-color);
  animation: fadeIn 2s;
}

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

.hero-text h1 {
  font-family: "Sail", serif;
  font-weight: 700;
  font-style: regular;
  font-size: 5.5rem;
  margin-bottom: 0.5rem;
  color: #912d67;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 2px rgba(12, 12, 12, 0.3);
}

.wedding-date {
  font-family: var(--font-alternativetitle);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Navbar Styling */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-family: var(--font-accent);
  color: var(--accent-color);
  font-size: 1.8rem;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-family: var(--font-secondary);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  position: relative;
  color: var(--dark-color);
  text-decoration: none;
}

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

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

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Back to top button */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  z-index: 99;
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

#btn-back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#btn-back-to-top i {
  font-size: 1.25rem;
  line-height: 0;
}

/* Countdown */
.countdown-container {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-box span:first-child {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.label {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-color);
}

/* Our Story Section */
#our-story {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("assets/BG_2.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.story-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.story-image {
  flex: 1;
  min-width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

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

/* Details Section */
#details {
  position: relative;
  z-index: 1;
}

#details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/BG_3.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}

.detail-card {
  background-color: #faf1f62a;
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: center;
}

.detail-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.detail-info {
  flex: 1;
}

.detail-info h3 {
  margin-bottom: 0.5rem;
}

.btn-map {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 3px;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-map:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-map:focus {
  color: white;
  outline: var(--focus-outline);
}

/* Accommodation Section */
#accommodation {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("assets/BG_2.png");
  background-size: cover;
  background-position: bottom;
  background-attachment: fixed;
}

.accommodation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.accommodation-card {
  background-color: #fff;
  border-radius: 5px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.accommodation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-contact {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 3px;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  transition: var (--transition);
  text-decoration: none;
}

.btn-contact:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-contact:focus {
  outline: var(--focus-outline);
}

/* Registry Section */
#registry {
  position: relative;
  z-index: 1;
}

#registry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -1;
}

.registry-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.registry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 180px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 1rem;
  text-decoration: none;
}

.registry-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.registry-btn:focus {
  outline: var(--focus-outline);
  text-decoration: none;
}

.registry-btn:hover > span,
.registry-btn:focus > span {
  text-decoration: underline;
}

.registry-btn i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.registry-btn span {
  font-family: var(--font-secondary);
  font-weight: 500;
}

/* RSVP Section */
#rsvp {
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("assets/BG_3.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.rsvp-form {
  background-color: #fff;
  border-radius: 5px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 0 auto;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-secondary);
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.25);
}

textarea {
  height: 100px;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-direction: column;
}

.radio-label {
  font-family: var(--font-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-options label {
  display: flex;
  align-items: center;
  font-weight: 400;
}

.radio-options input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
}

.submit-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  width: 100%;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.submit-btn:hover {
  background-color: var(--primary-color);
}

.submit-btn:focus {
  outline: var(--focus-outline);
}

.rsvp-message {
  margin-top: 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 3px;
}

.success {
  background-color: #d4edda;
  color: #155724;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

.form-hint {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.25rem;
  font-family: var(--font-secondary);
}

.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-family: var(--font-secondary);
  font-weight: 500;
}

/* Photos Section */
#photos {
  position: relative;
  z-index: 1;
}

#photos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/BG_2.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}

.hashtag {
  font-size: 2rem;
  font-family: var(--font-accent);
  color: var(--primary-color);
  text-align: center;
  margin: 2rem 0;
}

/* Questions Section */
#questions {
  background-size: cover;
  background-position: bottom;
  background-attachment: fixed;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  margin-top: 1rem;
}

.contact-link i {
  color: var(--primary-color);
}

/* Footer */
footer {
  background: linear-gradient(
      var(--dark-gold),
      var(--dark-gold)
    );
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

[role="alert"] {
  padding: 1rem;
  border-radius: 3px;
  margin: 1rem 0;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

legend {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
  width: 100%;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.hero-image {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  #countdown {
    flex-wrap: wrap;
  }

  .countdown-box {
    min-width: 60px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    margin: 0 0 1rem 0;
  }

  td {
    border: none;
    position: relative;
    padding-left: 50%;
  }

  td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    font-weight: bold;
  }

  .nav-links li a,
  .btn-map,
  .btn-contact,
  .registry-btn,
  .submit-btn {
    padding: 0.75rem 1rem;
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .wedding-date {
    font-size: 1.2rem;
  }

  .detail-card {
    flex-direction: column;
  }

  .detail-icon {
    margin-bottom: 1rem;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .hero-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;  
    background: url("assets/Asset\ 1\ border\ only.svg"), linear-gradient(rgba(231, 207, 125, 1), rgba(231, 207, 125, 1));
    background-size: cover;
    background-position: unset;
    color: var(--light-color);
    background-position-x: center;
  }
}

@media (forced-colors: active) {
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 3px solid ButtonText;
  }
}

@media (min-width: 1200px) {
  .hero-text {
    margin-top: 15rem;
  }
}

@media (max-width: 1200px) {
  .hero-text {
    margin-top: 10rem;
  }
}
