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

/* lock scroll class used by JS */
body.lock-scroll {
  overflow: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #fbf8f3 0%, #f5f0ea 50%, #f9f6f1 100%);
  background-attachment: fixed;
  color: #2c2c2c;
  overflow-x: hidden;
}

.decorative-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(194, 168, 120, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(194, 168, 120, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  text-align: center;
  padding: 60px 20px 40px;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

.main-header h1 {
  font-family: "Great Vibes", cursive;
  font-size: 4.5em;
  font-weight: 400;
  background: linear-gradient(135deg, #c2a878 0%, #d4b896 50%, #c2a878 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 4px;
  margin-bottom: 15px;
  text-shadow: 0 2px 20px rgba(194, 168, 120, 0.2);
}

.main-header .ampersand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2em;
  display: block;
  margin: 10px 0;
  opacity: 0.8;
}

.main-header .subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8em;
  color: #666;
  font-weight: 300;
  letter-spacing: 3px;
  margin-top: 10px;
}

.decorative-line {
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, #c2a878, transparent);
  margin: 25px auto;
  position: relative;
}

.decorative-line::before {
  content: "❖";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #fbf8f3 0%, #f5f0ea 100%);
  padding: 0 15px;
  color: #c2a878;
  font-size: 14px;
}

.main-content {
  display: flex;
  gap: 50px;
  margin: 40px auto;
  max-width: 1400px;
  align-items: flex-start;
}

.left-section {
  flex: 1.8;
  min-height: 80vh;
  width: 100%;
  height: 100%;
}

.book-container {
  perspective: 2000px;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  position: sticky;
  top: 20px;
}

.page-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  padding: 20px;
}

.page-navigation {
  display: none !important;
}

.page-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #c2a878;
  background: white;
  color: #c2a878;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-nav-btn:hover {
  background: linear-gradient(135deg, #c2a878 0%, #d4b896 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(194, 168, 120, 0.3);
}

.page-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.page-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(194, 168, 120, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.page-dot.active {
  background: #c2a878;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(194, 168, 120, 0.5);
}

.invitation-book {
  position: relative;
  width: 100%;
  height: 1200px;
  transform-style: preserve-3d;
}

@media (max-width: 1200px) {
  .invitation-book {
    height: 900px; /* slightly smaller on laptop */
  }
}

/* Page styling (keeps your padding and the centered image inside) */
.page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(194, 168, 120, 0.1);
  transform-origin: left center;
  transition: transform 3s cubic-bezier(0.645, 0.045, 0.355, 1);
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* STACKING: page1 on top so it flips first */
.page:nth-child(1) {
  z-index: 3;
}

.page:nth-child(2) {
  z-index: 2;
}

.page:nth-child(3) {
  z-index: 1;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(194, 168, 120, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.page.turned {
  transform: rotateY(-180deg);
  box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(194, 168, 120, 0.1);
}

/* IMAGE WRAPPER (choice B: centered with margin) */
.img-wrap {
  width: 100%;
  /* as requested */
  height: 100%;
  /* subtract vertical padding (40 top + 40 bottom roughly) */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  background: white;
  display: block;
}

.img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* right column */
.right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.preview-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(194, 168, 120, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}


.preview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c2a878 0%, #d4b896 50%, #c2a878 100%);
}

.preview-card h3 {
  font-family: "Great Vibes", cursive;
  font-size: 2.2em;
  color: #c2a878;
  margin-bottom: 15px;
}

.preview-card p {
  color: #666;
  font-size: 1.05em;
  margin: 8px 0;
}

.contact-form {
  background: white;
  border-radius: 15px;
  padding: 28px;
  transform: scale(0.9);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(194, 168, 120, 0.2);
}

.contact-form h3 {
  font-family: "Great Vibes", cursive;
  font-size: 2em;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  transition: all 0.4s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c2a878;
  background: white;
  box-shadow: 0 8px 20px rgba(194, 168, 120, 0.15);
  transform: translateY(-2px);
}

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

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #c2a878 0%, #d4b896 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(194, 168, 120, 0.3);
}

.bottom-section {
  max-width: 1400px;
  margin: 80px auto 60px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.bottom-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.info-box {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  transition: all 0.4s;
  cursor: pointer;
  border: 2px solid rgba(194, 168, 120, 0.15);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(194, 168, 120, 0.1) 0%,
    rgba(212, 184, 150, 0.1) 100%
  );
  transition: left 0.6s ease;
  z-index: 0;
}

.info-box:hover::before {
  left: 0;
}

.info-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c2a878 0%, #d4b896 50%, #c2a878 100%);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.info-box:hover::after {
  transform: scaleX(1);
}

.info-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(194, 168, 120, 0.35);
  border-color: #c2a878;
}

.info-box .icon {
  font-size: 3.5em;
  width: 3rem;
  height: auto;
  margin-bottom: 20px;
  z-index: 1;
  display: inline-block;

  filter: invert(68%) sepia(34%) saturate(350%) hue-rotate(8deg) brightness(95%)
    contrast(90%);
}

.info-box h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.7em;
  color: #333;
  margin-bottom: 12px;
  z-index: 1;
}

.info-box p {
  color: #777;
  font-size: 1em;
  z-index: 1;
}

@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    gap: 40px;
  }

  .book-container {
    position: relative;
    top: 0;
    max-width: 600px;
  }

  .invitation-book {
    height: 800px;
  }

  .right-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-form {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2.2em;
  }

  .main-header .subtitle {
    font-size: 1.2em;
  }

  .book-container {
    max-width: 100%;
    padding: 0 10px;
    position: relative;
    top: 0;
  }

  .invitation-book {
    height: 600px;
    transform: scale(0.92);
    transform-origin: top center;
  }

  .img-wrap {
    height: 100%;
  }

  .right-section {
    width: 100%;
    gap: 25px;
  }


  .preview-card {
    padding: 20px;
    min-height: auto;
  }


  .preview-card img {
    border-radius: 10px;
    object-fit: contain;
  }

  .contact-form {
    padding: 20px;
    transform: scale(1);
  }

  .contact-form h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
  }

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

  .info-box {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .left-section {
    width: 100%;
    height: 100%;
  }

  .book-container {
    padding: 0;
    width: 100%;
  }
  .invitation-book {
    height: 600px;
    transform: scale(1);
    transform-origin: top center;
  }

  .page {
    border-radius: 10px;
    padding: 0;
  }

  .img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

   .preview-card {
    padding: 15px;
  }

  .preview-card img {
    width: 100%;
    height: auto;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-form h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
  }

  .submit-btn {
    padding: 14px;
  }

  .info-box {
    padding: 30px 20px;
  }
}
