/* HERO */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow1 {
  width: 550px;
  height: 550px;
  top: -120px;
  left: -150px;
  opacity: 0.18;
}

[data-theme="light"] .glow1 {
  background: #7c3aed;
}

[data-theme="dark"] .glow1 {
  background: #7c3aed;
  opacity: 0.3;
}

.glow2 {
  width: 400px;
  height: 400px;
  bottom: -60px;
  right: -100px;
  opacity: 0.15;
}

[data-theme="light"] .glow2 {
  background: #ec4899;
}

[data-theme="dark"] .glow2 {
  background: #ec4899;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.6rem;
  animation: fadeDown 0.7s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

h1.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.8s 0.1s ease both;
  letter-spacing: -0.02em;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.88rem 2.1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
  border-radius: 50px;
  padding: 0.88rem 2.1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--primary-light);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* MOCK CARD */
.hero-mockup {
  margin-top: 3.5rem;
  animation: fadeUp 0.9s 0.5s ease both;
}

.mock-card {
  background: var(--mock-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 1.6rem;
  max-width: 390px;
  margin: 0 auto;
  box-shadow: 0 30px 80px var(--shadow);
  text-align: left;
  transition:
    background 0.4s,
    transform 0.3s;
}

.mock-card:hover {
  transform: translateY(-6px);
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mock-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-badge {
  background: var(--amber-bg);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-weight: 700;
}

.mock-total-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.mock-gift-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0.9rem;
  border-radius: 13px;
  background: var(--card);
  margin-bottom: 0.6rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.mock-gift-row:hover {
  border-color: var(--card-border);
  background: var(--card-hover);
}

.mock-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ic-cash {
  background: var(--green-bg);
  color: #10b981;
}

.ic-item {
  background: var(--amber-bg);
  color: var(--accent);
}

.ic-voucher {
  background: var(--pink-bg);
  color: var(--accent2);
}

.mock-gift-info {
  flex: 1;
}

.mock-giver {
  font-size: 0.84rem;
  font-weight: 600;
}

.mock-type {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mock-amt {
  font-size: 0.92rem;
  font-weight: 700;
  color: #10b981;
}

.mock-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.mock-total-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mock-total-amt {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SECTIONS */
section {
  padding: 90px 5%;
  transition: background 0.4s;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-light);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.text-center .section-label {
  justify-content: center;
}

/* PERF: skip layout/paint of off-screen sections until near viewport */
section:not(#hero) {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

.section-title {
  /* PERF: Playfair Display dropped — saves an extra font file fetch */
  font-family: "Poppins", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
  font-weight: 400;
}

.text-center {
  text-align: center;
}

.text-center .section-sub {
  margin: 0 auto;
}

/* FEATURES */
#features {
  background: var(--bg2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.9rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 55px var(--shadow);
  border-color: var(--primary);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.78;
}

/* HOW IT WORKS */
#how-it-works {
  background: var(--bg);
}

.steps-wrap {
  max-width: 680px;
  margin-top: 3.5rem;
}

.step {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step-line {
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.step:last-child .step-line {
  display: none;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.12);
}

.step-body {
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.78;
}

/* GIFT TYPES */
#gift-types {
  background: var(--bg2);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  margin-top: 3rem;
}

.type-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.9rem 1.6rem;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px var(--shadow);
}

.type-emoji {
  font-size: 2.6rem;
  margin-bottom: 0.85rem;
}

.type-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.type-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.type-card--soon {
  border-style: dashed;
  opacity: 0.85;
}

.type-card--soon:hover {
  opacity: 1;
}

.soon-ribbon {
  position: absolute;
  top: 16px;
  right: -18px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 2.2rem;
  transform: rotate(38deg);
  min-width: 110px;
  text-align: center;
}

.soon-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--card-border);
}

.soon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: blink 1.4s infinite;
}

.soon-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.soon-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.soon-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.2rem;
}

/* OCCASIONS */
#occasions {
  background: var(--bg);
}

.occasions-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
  justify-content: center;
}

.occasion-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 0.52rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

.occasion-tag:hover {
  background: var(--purple-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* WHY */
#why {
  background: var(--bg2);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 3rem;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.why-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.22rem;
}

.why-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.why-visual {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 2rem;
  transition: background 0.4s;
}

.ledger-table-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ledger-border);
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.84rem;
  flex-shrink: 0;
}

.av1 {
  background: var(--purple-bg);
  color: var(--primary-light);
}

.av2 {
  background: var(--amber-bg);
  color: var(--accent);
}

.av3 {
  background: var(--pink-bg);
  color: var(--accent2);
}

.av4 {
  background: var(--green-bg);
  color: #10b981;
}

.ledger-name {
  font-size: 0.87rem;
  font-weight: 600;
}

.ledger-event {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.ledger-amounts {
  display: flex;
  gap: 1.4rem;
}

.amount-col {
  text-align: right;
}

.amount-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.amount-val {
  font-size: 0.9rem;
  font-weight: 700;
}

.received {
  color: #10b981;
}

.given {
  color: var(--accent2);
}

/* TESTIMONIALS */
#testimonials {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.9rem;
  transition:
    background 0.4s,
    transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.t-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 1.3rem;
  font-style: italic;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.t-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.t-loc {
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* FAQ */
#faq {
  background: var(--bg2);
}

.faq-wrap {
  max-width: 720px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item[open] {
  box-shadow: 0 8px 30px var(--shadow);
  border-color: var(--primary);
}

.faq-q {
  padding: 1.1rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.82;
}

/* CTA */
#cta {
  background: var(--bg);
}

.cta-box {
  background: var(--gradient);
  border-radius: 28px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  bottom: -60px;
  left: -60px;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  color: #fff;
}

.cta-box p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  padding: 0.88rem 2.1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 0.88rem 2.1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  nav {
    padding: 0.75rem 4%;
  }

  .mobile-menu {
    top: 60px;
  }

  #hero {
    padding-top: 85px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 1.6rem;
  }

  .cta-box {
    padding: 2.6rem 1.5rem;
  }

  section {
    padding: 70px 4%;
  }

  #hero {
    padding-top: 78px;
  }

  .mobile-menu {
    top: 55px;
  }
}

/* RESPONSIVE GRID SYSTEM */
@media (max-width: 539px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .full-logo {
    width: 100%;
  }
}

@media (min-width: 540px) and (max-width: 899px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .full-logo {
    width: 80%;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }

  .types-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .full-logo {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }

  .types-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
  }

  .full-logo {
    width: 40%;
  }
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.in-logo {
  height: 16px;
  width: auto;
  max-width: 16px;
  object-fit: contain;
  transition:
    transform 0.3s,
    filter 0.3s;
}

/* HERO LAYOUT WITH SIDE CARDS */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 5% 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 2;
}

.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex-shrink: 0;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  width: 190px;
  box-shadow: 0 8px 32px var(--shadow);
  backdrop-filter: blur(12px);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: left;
  cursor: default;
  animation: fadeUp 0.8s ease both;
}

.event-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 48px var(--shadow);
}

.event-card:nth-child(1) {
  animation-delay: 0.2s;
}

.event-card:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-side-cards.right .event-card:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-side-cards.right .event-card:nth-child(2) {
  animation-delay: 0.5s;
}

.event-card-img {
  width: 100%;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}

.event-card-img.wedding {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.event-card-img.housewarming {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.event-card-img.reception {
  background: linear-gradient(135deg, #ede7f6, #d1c4e9);
}

.event-card-img.birthday {
  background: linear-gradient(135deg, #fff8e1, #ffe082);
}

[data-theme="dark"] .event-card-img.wedding {
  background: linear-gradient(135deg, #4a1a2a, #6b2d3e);
}

[data-theme="dark"] .event-card-img.housewarming {
  background: linear-gradient(135deg, #1a3a1a, #2d5a2d);
}

[data-theme="dark"] .event-card-img.reception {
  background: linear-gradient(135deg, #2d1b4e, #3d2060);
}

[data-theme="dark"] .event-card-img.birthday {
  background: linear-gradient(135deg, #3a2a00, #5a4200);
}

.event-card-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.18rem;
}

.event-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.event-card-gifts {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  background: var(--purple-bg);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* PERF: will-change pre-promotes to GPU layer before animation starts */
.event-card-1 {
  will-change: transform;
  animation: floatLeft1 5s ease-in-out infinite;
}

.event-card-2 {
  will-change: transform;
  margin-top: 60px;
  animation: floatLeft2 6s ease-in-out infinite 0.5s;
}

.event-card-3 {
  will-change: transform;
  animation: floatLeft1 5.5s ease-in-out infinite;
}

.event-card-4 {
  will-change: transform;
  margin-top: 60px;
  animation: floatLeft2 4.5s ease-in-out infinite 1s;
}

/* PERF: translate3d forces GPU compositing; no main-thread paint on animate */
@keyframes floatLeft1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }

  50% {
    transform: translate3d(0, -25px, 0) rotate(-10deg);
  }
}

@keyframes floatLeft2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(5deg);
  }

  50% {
    transform: translate3d(0, -30px, 0) rotate(5deg);
  }
}

@keyframes floatRight1 {
  0%,
  100% {
    transform: translateY(0) rotate(12deg);
  }

  50% {
    transform: translateY(-20px) rotate(12deg);
  }
}

@keyframes floatRight2 {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }

  50% {
    transform: translateY(-28px) rotate(-7deg);
  }
}

/* Hide side cards on smaller screens */
@media (max-width: 768px) {
  .hero-side-cards {
    display: none;
  }
}

/* REACH US SECTION */
#reach-us {
  padding: 80px 5%;
  background: var(--bg2);
}

.reach-us-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.reach-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}

.reach-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 2rem 2.2rem;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 8px 32px var(--shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.reach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--shadow);
}

.reach-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 0.3rem;
}

.reach-card-icon.email-icon {
  background: var(--purple-bg);
  color: var(--primary-light);
}

.reach-card-icon.phone-icon {
  background: var(--green-bg);
  color: #059669;
}

[data-theme="dark"] .reach-card-icon.phone-icon {
  color: #34d399;
}

.reach-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reach-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  text-align: center;
}

.reach-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.reach-card-btn {
  margin-top: 0.4rem;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.48rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.reach-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow);
}

@media (max-width: 540px) {
  .reach-cards {
    flex-direction: column;
    align-items: center;
  }

  .reach-card {
    max-width: 100%;
    width: 100%;
  }
}
