/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background-image: url("./images/background.png");
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #7e7876;
  line-height: 1.6;
}

/* ===== FONTS ===== */
@font-face {
  font-family: "Grqalir";
  src: url("../fonts/Grqalir-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== LAYOUT CONTAINERS ===== */

.invitation-container {
  max-width: 800px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2); /* semi-transparent */
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;

  /* Glass effect */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* for Safari */
  border: 1px solid rgba(255, 255, 255, 0.3); /* subtle border */
}

/* ===== HERO SECTION ===== */
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 30px;
}

/* ===== TOYS SECTION ===== */
.toys-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 40px 0;
  position: relative;
}

.toy {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.toy-boy {
  animation-delay: 0.5s;
}

.toy-girl {
  animation-delay: 1s;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 40px 0;
}

.invite-text {
  font-family: "Grqalir", serif;
  font-size: 1.5rem;
  max-width: 550px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

/* ===== DATE SECTION ===== */
.date-section {
  display: flex;
  justify-content: center;
  margin: 50px 0;
}

.date-container {
  display: flex;
  align-items: center;
  gap: 40px;
  color: #555;
}

.date-box {
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  position: relative;
  padding: 8px 20px;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
}

.date-number {
  font-size: 66px;
  font-weight: 400;
  color: #444;
}

/* ===== LOCATION SECTION ===== */
.location-section {
  margin: 30px 0;
}

.location-image {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-address {
  font-family: "Georgia", serif !important;
  font-size: 1rem;
  margin: 15px 0;
  color: #666;
}

/* ===== BUTTONS ===== */
.location-btn,
.submit-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1rem;
}

.location-btn {
  background: #e5a8ab;
  color: white;
}

.location-btn:hover {
  background: #d8979a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn {
  background: #d1e1ef;
  color: white;
  width: 100%;
}

.submit-btn:hover {
  background: #c1d1e9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== RSVP FORM ===== */
.rsvp-form {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.rsvp-form h2 {
  font-family: "Grqalir", serif;
  margin-bottom: 30px;
  color: #7e7876;
  font-size: 2rem;
}

.invitation-form {
  max-width: 500px;
  margin: 0 auto;
  font-family: "Georgia", serif;
  color: #7e7876;
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 8px;
  text-align: left;
  font-weight: 600;
  color: #666;
}

.form-group input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #7e7876;
  padding: 8px 0;
  font-size: 16px;
  background: transparent;
  color: #7e7876;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: #e5a8ab;
}

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

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
  font-weight: normal;
}

.radio-group input[type="radio"] {
  accent-color: #7e7876;
  transform: scale(1.2);
}

/* ===== FOOTER ===== */
footer {
  margin-top: 40px;
  color: #666;
  text-align: center;
  font-size: 1rem;
  padding: 20px;
  max-width: 800px;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .invitation-container {
    padding: 25px;
  }

  .toys-container {
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }

  .toy img {
    height: 280px !important;
  }

  .date-container {
    gap: 20px;
  }

  .date-number {
    font-size: 48px;
  }

  .invite-text {
    font-size: 1.3rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .invitation-container {
    padding: 20px 15px;
  }

  .date-container {
    flex-direction: column;
    gap: 10px;
  }

  .date-number {
    font-size: 36px;
  }

  .date-box {
    padding: 5px 15px;
  }

  .location-image {
    width: 100% !important;
  }

  .invite-text {
    font-size: 1.1rem;
  }
}
