/* =========================
   Marriage Biodata Website
   ========================= */

:root {
  --maroon: #7b173c;
  --maroon-dark: #4d1029;
  --rose: #a92755;
  --gold: #d7a646;
  --gold-light: #f8e7bd;
  --cream: #fffaf3;
  --soft: #fff5f0;
  --text: #332b30;
  --muted: #776d72;
  --white: #ffffff;
  --border: rgba(123, 23, 60, .12);
  --shadow: 0 18px 50px rgba(77, 16, 41, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  color: var(--maroon-dark);
}

.navbar-custom {
  background: rgba(76, 15, 40, .96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  transition: .3s ease;
  box-shadow: 0 5px 25px rgba(0,0,0,.08);
}

.navbar-custom.scrolled { padding: 7px 0; }

.navbar-brand {
  color: #fff !important;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
}

.brand-heart {
  color: #f3c96c;
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 6px;
}

.nav-link {
  color: rgba(255,255,255,.88) !important;
  padding: 8px 12px !important;
  font-size: .98rem;
  transition: .25s;
}

.nav-link:hover, .nav-link.active { color: #f5d27d !important; }

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-gold {
  border: 0;
  background: linear-gradient(135deg, #f5d891, #d6a449);
  color: #4d1029;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 700;
}

.hero-section {
  padding: 145px 0 55px;
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(215,166,70,.12), transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(169,39,85,.10), transparent 25%),
    linear-gradient(180deg, #fff9f5 0%, #fff 100%);
}

.profile-frame {
  width: min(100%, 350px);
  margin: auto;
  position: relative;
  padding: 7px;
  border-radius: 25px;
  background: linear-gradient(145deg, #d8ad52, #fff0c7, #a92755);
  box-shadow: var(--shadow);
  animation: floatPhoto 5s ease-in-out infinite;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4/4.7;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.photo-badge {
  position: absolute;
  right: -13px;
  bottom: 25px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rose);
  border: 4px solid #fff;
  border-radius: 50%;
}

.script-title {
  margin: 0;
  color: var(--rose);
  font-family: "Dancing Script", cursive;
  font-size: 2.3rem;
}

.hero-section h1 {
  font-size: clamp(3.1rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin: 5px 0 15px;
}

.hero-section h1 span { color: var(--rose); }

.hero-description {
  max-width: 680px;
  font-size: 1.2rem;
  color: var(--muted);
}

.gold-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gold);
}

.gold-line::before, .gold-line::after {
  content: "";
  width: 90px;
  max-width: 15vw;
  height: 1px;
  background: #e2c47e;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-meta > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta i {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--rose);
  background: #fff0ee;
  font-size: 1.3rem;
}

.hero-meta strong, .hero-meta small {
  display: block;
}

.hero-meta small { color: var(--muted); }

.quote-box {
  margin-top: 25px;
  padding: 20px 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  box-shadow: 0 12px 35px rgba(123,23,60,.06);
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  color: var(--maroon-dark);
  max-width: 650px;
}

.quote-mark { color: #d77b63; font-size: 2.2rem; }
.quote-mark.end { float: right; }

.stats-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.stat-card {
  min-height: 125px;
  border-radius: 18px;
  padding: 18px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(77,16,41,.05);
  transition: .3s;
}

.stat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.stat-card i {
  display: block;
  color: var(--rose);
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.stat-card strong, .stat-card span { display: block; }
.stat-card span { color: var(--muted); font-size: .9rem; }

.section-padding { padding: 90px 0; }
.bg-soft { background: #fff5f0; }

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading > span {
  color: var(--rose);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: 3px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 5px 0;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.about-card, .info-card, .timeline-card, .mini-card, .family-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 25px;
  box-shadow: 0 15px 45px rgba(77,16,41,.07);
}

.about-card {
  padding: 45px;
  background: linear-gradient(135deg, #fff, #fff8ef);
}

.about-card h3 { font-size: 2rem; }
.about-card p { color: var(--muted); font-size: 1.08rem; }

.value-list > div {
  margin: 12px 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--maroon-dark);
  font-weight: 600;
}

.value-list i { color: #d19c37; margin-right: 8px; }

.info-card, .timeline-card, .mini-card { padding: 30px; height: 100%; }

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--maroon);
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
  margin-bottom: 12px;
}

.card-title i { margin-right: 9px; color: var(--gold); }

.info-table > div {
  display: grid;
  grid-template-columns: 42% 58%;
  padding: 10px 0;
  border-bottom: 1px dashed #eadfe1;
}

.info-table > div:last-child { border-bottom: 0; }
.info-table b { color: #4c4146; }
.info-table span { color: var(--muted); }

.timeline { position: relative; padding-left: 25px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: #e8c982;
}

.timeline-item {
  position: relative;
  padding: 0 0 25px 15px;
}

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
  border: 3px solid #f8dfb0;
}

.timeline-item h4, .job-box h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.timeline-item p, .company { color: var(--rose); margin: 3px 0; font-weight: 600; }
.timeline-item small, .muted { color: var(--muted); }

.job-box { display: flex; gap: 18px; margin-top: 25px; }
.job-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: #fff0ee;
  color: var(--rose);
  border-radius: 15px;
  font-size: 1.4rem;
}
.job-box ul { color: var(--muted); padding-left: 18px; }

.gallery-item {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #eee;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(40,10,20,.4));
  opacity: .7;
}

.gallery-item > span {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(123,23,60,.85);
}

.gallery-item:hover img { transform: scale(1.08); }

.mini-card h3 { margin-top: 12px; font-size: 1.45rem; }
.mini-card > i { color: var(--gold); font-size: 1.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.chips span {
  background: #fff1ef;
  color: var(--maroon);
  padding: 7px 12px;
  border-radius: 50px;
  font-size: .9rem;
}

.clean-list { padding-left: 18px; color: var(--muted); }
.clean-list li { margin: 7px 0; }

.family-card { padding: 10px 30px; }
.family-row {
  display: grid;
  grid-template-columns: 35px 25% 1fr;
  align-items: center;
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px dashed #eadfe1;
}
.family-row:last-child { border: 0; }
.family-row i { color: var(--rose); font-size: 1.2rem; }
.family-row span { color: var(--muted); }

.contact-section {
  background: linear-gradient(135deg, #4e102a, #851b45);
  color: #fff;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.contact-card > div:first-child span {
  color: #f1cc78;
  letter-spacing: 3px;
  font-size: .8rem;
  font-weight: 800;
}

.contact-card h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); margin: 8px 0; }
.contact-card p { color: rgba(255,255,255,.75); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btn {
  min-width: 125px;
  padding: 13px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: #fff;
  color: var(--maroon);
  font-weight: 700;
  transition: .25s;
}
.contact-btn:hover { transform: translateY(-4px); color: var(--rose); }
.contact-btn.whatsapp { background: #dff8e8; color: #168447; }

footer {
  background: #350b1d;
  color: rgba(255,255,255,.65);
  padding: 20px 0;
  font-size: .9rem;
}

footer i { color: #e96b88; }

.lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(15, 5, 10, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 80px;
}

.lightbox.show { display: flex; animation: fadeIn .25s ease; }

.lightbox-content {
  max-width: min(1000px, 90vw);
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 70px rgba(0,0,0,.5);
}

#lightboxCaption {
  color: #fff;
  margin-top: 12px;
  font-size: 1rem;
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.13);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: .2s;
}

.lightbox-close { right: 25px; top: 25px; }
.lightbox-nav.prev { left: 25px; }
.lightbox-nav.next { right: 25px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--rose); }

.top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(77,16,41,.25);
}

.top-btn.show { display: grid; place-items: center; }

.bg-heart {
  position: fixed;
  z-index: -1;
  color: rgba(169,39,85,.05);
  font-size: 8rem;
  pointer-events: none;
}
.heart-1 { left: -30px; top: 30%; transform: rotate(-20deg); }
.heart-2 { right: -20px; top: 65%; transform: rotate(20deg); }

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes floatPhoto {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 991px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero-section { padding-top: 120px; }
  .hero-section h1 { font-size: 3rem; }
  .script-title { font-size: 1.9rem; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-padding { padding: 65px 0; }
  .about-card, .info-card, .timeline-card, .mini-card { padding: 22px; }
  .family-card { padding: 10px 20px; }
  .family-row { grid-template-columns: 30px 38% 1fr; font-size: .92rem; }
  .lightbox { padding: 20px 50px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { right: 12px; top: 12px; width: 42px; height: 42px; }
}

@media print {
  .navbar-custom, .contact-section, footer, .top-btn,
  .bg-heart, .lightbox, .lightbox-nav, .lightbox-close {
    display: none !important;
  }

  .hero-section { padding-top: 30px; }
  .section-padding { padding: 30px 0; }
  body { background: white; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
