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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #FFFFFF;
  color: #0F1724;
  font-family: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

.page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.page-container {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ==========================================================================
   SECTION 1: Hero White Section (Desktop)
   ========================================================================== */
.hero-section {
  display: flex;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background-color: #FFFFFF;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.logo-section {
  flex: 0 0 auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  background-color: #FFFFFF;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.logo-picture {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  height: 98vh;
  max-height: 100vh;
  width: auto;
  max-width: 65vw;
  object-fit: contain;
  object-position: left center;
  display: block;
  will-change: transform;
}

.content-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 2rem 3vw;
  background-color: #FFFFFF;
  z-index: 2;
  min-width: 280px;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.5rem, 6.8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.05;
  color: #0F1724;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInTitle 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-subtitle {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1.4;
  color: #0F1724;
  text-transform: uppercase;
  padding-left: 0.42em;
  opacity: 0.9;
  animation: fadeInSubtitle 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bouncing Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #0F1724;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  z-index: 20;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 36, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  animation: bounce 2.4s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.scroll-down-btn:hover {
  background: #0F1724;
  color: #FFDE59;
  border-color: #0F1724;
  box-shadow: 0 12px 30px rgba(15, 23, 36, 0.25);
  animation-play-state: paused;
}

.scroll-down-text {
  padding-left: 0.28em;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.scroll-down-btn:hover .scroll-arrow {
  transform: translateY(2px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -12px);
  }
  60% {
    transform: translate(-50%, -6px);
  }
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSubtitle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

/* ==========================================================================
   SECTION 2: Dark Contact / Thank You Section (Desktop)
   ========================================================================== */
.dark-section {
  display: flex;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background-color: #0F1724;
  color: #FFFFFF;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: background-color 0.8s ease;
}

/* Left Card Content */
.card-left-content {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2vw 2rem 6vw;
  z-index: 10;
  position: relative;
}

/* Non-bold, sleek THANK YOU title */
.thank-you-title {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  color: #FFDE59;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.85rem;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.accent-line {
  width: 145px;
  height: 2px;
  background-color: #FFDE59;
  border-radius: 1px;
  margin-bottom: 2.8rem;
  transition: width 0.8s ease, opacity 0.8s ease;
}

/* Contact List & QR Container */
.contact-qr-wrapper {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.6rem, 2.8vw, 3rem);
  position: relative;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  z-index: 12;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #FFFFFF;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 500;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  opacity: 0.85;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-align: left;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-item:hover,
.contact-item.active {
  transform: translateX(8px);
  opacity: 1;
  color: #FFDE59;
}

.contact-item.active {
  font-weight: 700;
}

.contact-icon {
  width: 28px;
  height: 28px;
  stroke: #FFDE59;
  stroke-width: 2.2;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-item:hover .contact-icon,
.contact-item.active .contact-icon {
  transform: scale(1.18);
}

.vertical-divider {
  width: 1.5px;
  height: 118px;
  background-color: #FFFFFF;
  opacity: 0.9;
  border-radius: 1px;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 6px;
  z-index: 12;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ==========================================================================
   Dynamic QR & Action Card (Desktop Overlap)
   ========================================================================== */
.qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(165px, 15vw, 220px);
  height: clamp(165px, 15vw, 220px);
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
  position: relative;
  z-index: 15;
  transform: translateX(clamp(30px, 4vw, 70px));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  perspective: 800px;
  overflow: hidden;
  will-change: transform;
}

.qr-container:hover {
  transform: translateX(clamp(30px, 4vw, 70px)) scale(1.04);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.88);
}

/* Card Views (QR & Quick Action Card) */
.card-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.card-view.qr-view {
  transform: rotateY(0deg);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.card-view.qr-view:not(.active) {
  transform: rotateY(-90deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.card-view.action-view {
  transform: rotateY(90deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  background: #FFFFFF;
  padding: 14px 12px;
  text-align: center;
  justify-content: space-between;
}

.card-view.action-view.active {
  transform: rotateY(0deg);
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.card-view.action-view.is-changing {
  opacity: 0;
  transform: scale(0.88) rotateY(60deg);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-image.is-changing {
  opacity: 0;
  transform: scale(0.85) rotateY(60deg);
}

.qr-link-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 36, 0.94);
  color: #FFDE59;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.qr-view:hover .qr-link-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.qr-link-badge:hover {
  background: #FFDE59;
  color: #0F1724;
}

.qr-link-badge .link-arrow {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

/* Action Card Elements */
.action-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.action-card-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 36, 0.07);
  transition: background 0.3s ease;
}

.action-card-badge.mail-badge {
  background: rgba(234, 67, 53, 0.14);
  color: #EA4335;
}

.action-card-badge.call-badge {
  background: rgba(52, 168, 83, 0.14);
  color: #34A853;
}

.action-badge-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.action-card-type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0F1724;
  opacity: 0.85;
}

.action-card-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  font-weight: 700;
  color: #0F1724;
  word-break: break-word;
  line-height: 1.25;
  user-select: all;
  padding: 0 4px;
  margin: 4px 0;
}

.action-card-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
  margin-bottom: 2px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.copy-btn {
  background: #0F1724;
  color: #FFFFFF;
  flex: 1.15;
}

.copy-btn:hover {
  background: #FFDE59;
  color: #0F1724;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #22C55E !important;
  color: #FFFFFF !important;
  animation: copyPulse 0.3s ease;
}

.direct-link-btn {
  background: #F3F4F6;
  color: #0F1724;
  border: 1px solid #E5E7EB;
  flex: 0.85;
}

.direct-link-btn:hover {
  background: #0F1724;
  color: #FFDE59;
  border-color: #0F1724;
  transform: translateY(-1px);
}

.action-btn-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

@keyframes copyPulse {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Right Dark Logo Section */
.card-right-logo {
  flex: 1.45;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  margin-left: -5vw;
  z-index: 2;
  background-color: transparent;
}

.dark-logo-image {
  height: 96vh;
  max-height: 100vh;
  width: auto;
  max-width: 62vw;
  object-fit: contain;
  object-position: right center;
  display: block;
  background-color: transparent;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

/* ==========================================================================
   REFINED MOBILE & TABLET RESPONSIVENESS (< 992px)
   ========================================================================== */
@media (max-width: 992px) {
  html {
    scroll-snap-type: none;
  }

  /* SECTION 1: Mobile & Tablet Hero */
  .hero-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    gap: clamp(0.8rem, 2vh, 1.8rem);
    overflow: hidden;
    position: relative;
  }

  .logo-section {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 44vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
  }

  .logo-picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-image {
    max-height: 42vh;
    max-width: 86vw;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    transform: none;
  }

  .content-section {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .brand-title {
    font-size: clamp(2.6rem, 10vw, 4.2rem);
    margin-bottom: 0.4rem;
    letter-spacing: 0.12em;
  }

  .brand-subtitle {
    font-size: clamp(0.78rem, 3.2vw, 1.05rem);
    letter-spacing: 0.34em;
    padding-left: 0.34em;
    opacity: 0.85;
  }

  .scroll-down-btn {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    padding: 7px 16px;
  }

  /* SECTION 2: Mobile & Tablet Contact Screen */
  .dark-section {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100vh;
    padding: 4.5rem 1.5rem 3.5rem 1.5rem;
    position: relative;
    overflow: hidden;
  }

  .card-left-content {
    width: 100%;
    max-width: 440px;
    height: auto;
    padding: 0;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    z-index: 5;
  }

  .thank-you-title {
    font-size: clamp(2.4rem, 8.5vw, 3.8rem);
    margin-bottom: 0.4rem;
    letter-spacing: 0.1em;
  }

  .accent-line {
    width: 85px;
    margin: 0 auto 2.2rem auto;
  }

  .contact-qr-wrapper {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2.2rem;
    width: 100%;
  }

  .vertical-divider {
    display: none;
  }

  /* Interactive Smart Card centered */
  .qr-container {
    transform: none;
    align-self: center;
    width: clamp(180px, 52vw, 215px);
    height: clamp(180px, 52vw, 215px);
    margin: 0 auto;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  }

  .qr-container:hover {
    transform: scale(1.03);
  }

  .qr-link-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    font-size: 0.64rem;
    padding: 4px 10px;
  }

  /* Refined Glassmorphic Contact Buttons on Mobile */
  .contact-info-list {
    width: 100%;
    gap: 0.85rem;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 1.02rem;
    gap: 0.9rem;
    justify-content: flex-start;
    opacity: 0.9;
  }

  .contact-item:hover,
  .contact-item.active {
    transform: translateY(-2px);
    background: rgba(255, 222, 89, 0.12);
    border-color: rgba(255, 222, 89, 0.4);
    color: #FFDE59;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  /* Ambient Logo in background on Mobile */
  .card-right-logo {
    position: absolute;
    right: -15vw;
    bottom: -6vh;
    width: 75vw;
    max-width: 380px;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    justify-content: center;
  }

  .dark-logo-image {
    height: auto;
    max-height: 45vh;
    width: 100%;
    object-position: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1.2rem;
    gap: 0.8rem;
  }

  .logo-section {
    max-height: 40vh;
  }

  .logo-image {
    max-height: 38vh;
    max-width: 86vw;
  }

  .content-section {
    padding: 0;
  }

  .brand-title {
    font-size: clamp(2.3rem, 10vw, 3rem);
    margin-bottom: 0.3rem;
  }

  .brand-subtitle {
    font-size: 0.74rem;
    letter-spacing: 0.28em;
  }

  .dark-section {
    padding: 4rem 1.2rem 3rem 1.2rem;
  }

  .thank-you-title {
    font-size: 2.3rem;
  }

  .contact-item {
    font-size: 0.94rem;
    padding: 10px 14px;
  }

  .qr-container {
    width: 175px;
    height: 175px;
  }
}
