/* ---------------- General layout ---------------- */
html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 1.5vw, 18px); /* Fluid base font size */
}

body {
  background-color: #fff !important;
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

main {
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
}

header {
  margin: 0;
  padding: 0;
}

header h1 {
  margin: 0;
  padding: 0;
}

.move {
  margin-bottom: clamp(15px, 3vw, 30px);
}

/* ---------------- Hero Section ---------------- */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 5vw, 40px);
  padding: clamp(12px, 3vw, 32px) clamp(12px, 3vw, 32px);
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.hero-section header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transform: none;
}

.logo-hero {
  max-width: min(70vw, 300px);
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0;
  display: block;
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(10px, 3vw, 18px);
  position: absolute;
  bottom: clamp(40px, 7vw, 72px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-text {
  color: rgb(57, 64, 132);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-weight: 500;
  text-align: center;
}

.scroll-arrow {
  color: rgb(57, 64, 132);
  animation: bounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(-10px);
    opacity: 0.8;
  }
  60% {
    transform: translateY(-5px);
    opacity: 0.9;
  }
}

#jumbotron {
  background-color: rgba(165, 170, 181, 0.95);
  border-radius: 15px;
  padding: clamp(25px, 5vw, 40px);
  margin-top: clamp(25px, 5vw, 40px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.move-text {
  margin: clamp(12px, 2.5vw, 15px) 0;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.8;
}

#quote {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: bold;
  margin: clamp(15px, 3vw, 30px) 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  padding: 0 clamp(12px, 3vw, 30px);
  text-align: center;
  max-width: min(90vw, 800px);
  color: #394084 !important;
}

/* ---------------- Fade-in Animation ---------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  position: relative;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.92) rotateX(4deg);
  filter: blur(12px) brightness(1.4);
  transition:
    opacity 4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
  transition-delay: var(--fade-delay, 0s);
}

.fade-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 1;
  pointer-events: none;
  transition: opacity 4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  border-radius: inherit;
}

.fade-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  filter: blur(0) brightness(1);
}

.fade-in.visible::before {
  opacity: 0;
}

.fade-in:not(.visible) {
  transition-delay: 0s !important;
}

.hero-section.fade-in::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0) 100%);
}

body.pre-scroll main > *:not(.hero-section),
body.pre-scroll .white-space,
body.pre-scroll #overlayTrigger,
body.pre-scroll #overlaySentinel,
body.pre-scroll #bottomSentinel,
body.pre-scroll #emailOverlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---------------- Section Styling ---------------- */
section {
  margin: clamp(20px, 6vw, 80px) auto;
  padding: clamp(20px, 4vw, 60px) clamp(15px, 3vw, 40px);
  max-width: min(95vw, 1200px);
  width: 100%;
  box-sizing: border-box;
}

/* ---------------- About Section ---------------- */
.about-section {
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgb(0, 0, 0);
  margin: 0 auto 60px auto;
  max-width: 800px;
  padding: 30px;
}

/* ---------------- NFC Tool Section ---------------- */
.nfc-tool-section {
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: clamp(20px, 6vw, 80px) auto;
  max-width: min(95vw, 800px);
  width: 100%;
  padding: clamp(20px, 4vw, 50px) clamp(15px, 3vw, 40px);
  transition: none;
  box-sizing: border-box;
}

.nfc-tool-section:hover {
  transform: none;
  box-shadow: none;
}

.nfc-tool-section h2 {
  color: rgb(57, 64, 132);
  margin-bottom: clamp(8px, 2vw, 20px);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: bold;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 18px);
  margin-bottom: clamp(30px, 6vw, 50px);
  width: 100%;
  max-width: min(420px, 90vw);
  margin-inline: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 18px);
  padding: clamp(16px, 3.5vw, 22px) clamp(20px, 4.5vw, 32px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  color: rgb(57, 64, 132);
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  box-shadow: 0 16px 28px rgba(57, 64, 132, 0.18);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
  cursor: pointer;
  border: 2px solid rgba(57, 64, 132, 0.45);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.cta-button:link,
.cta-button:visited {
  color: rgb(57, 64, 132);
  text-decoration: none;
}

.nfc-tool-section.fade-in {
  transition:
    opacity 4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 4s cubic-bezier(0.4, 0, 0.2, 1),
    filter 4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-6px) scale(1.015) rotateX(0deg);
  box-shadow: 0 18px 30px rgba(57, 64, 132, 0.22);
  filter: brightness(1.02);
  background: rgba(255, 255, 255, 0.92);
  color: rgb(45, 52, 110);
}

.cta-button:active {
  transform: translateY(-2px) scale(0.99) rotateX(0deg);
  box-shadow: 0 12px 22px rgba(57, 64, 132, 0.22);
}

.cta-button::before,
.cta-button::after {
  content: "";
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  animation: wavePulse 6s infinite;
  z-index: -1;
}

.cta-button::after {
  animation-delay: 3s;
}

.cta-icon {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 7vw, 64px);
  height: clamp(44px, 7vw, 64px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.68) 100%);
  color: rgb(57, 64, 132);
  box-shadow: inset 0 0 0 1px rgba(57, 64, 132, 0.32), 0 6px 14px rgba(57, 64, 132, 0.18);
}

.cta-icon .icon-svg {
  width: clamp(28px, 5vw, 40px);
  height: clamp(28px, 5vw, 40px);
}

.cta-text {
  flex: 1;
  text-align: left;
  letter-spacing: 0.01em;
  color: inherit;
}

.call-now-container {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(20px, 4vw, 40px);
}

.call-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 18px) clamp(32px, 6vw, 60px);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: rgb(57, 64, 132);
  background: rgba(255, 255, 255, 0.78);
  border-radius: clamp(32px, 8vw, 48px);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, filter 0.25s ease;
  box-shadow: 0 12px 25px rgba(57, 64, 132, 0.18);
  border: 2px solid rgba(57, 64, 132, 0.45);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.call-now-button:link,
.call-now-button:visited {
  color: rgb(57, 64, 132);
  text-decoration: none;
}

.call-now-button:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-4px) scale(1.015) rotateX(0deg);
  box-shadow: 0 14px 28px rgba(57, 64, 132, 0.22);
  color: rgb(45, 52, 110);
  filter: brightness(1.03);
}

.call-now-button:active {
  transform: translateY(-1px) scale(0.99) rotateX(0deg);
  box-shadow: 0 10px 20px rgba(57, 64, 132, 0.22);
  background: rgba(255, 255, 255, 0.95);
}

.initial-load .cta-button.fade-in,
.initial-load .call-now-button.fade-in {
  --fade-delay: 3s;
}

.subtitle {
  color: rgb(57, 64, 132);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: clamp(20px, 4vw, 30px);
}

/* OS Buttons */
.os-buttons-container {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 30px);
  margin-bottom: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  width: 100%;
}

.os-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: clamp(15px, 3vw, 30px);
  min-width: clamp(120px, 22vw, 180px);
  flex: 1 1 auto;
  max-width: 300px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
}

.os-button:hover {
  background-color: rgba(57, 64, 132, 0.1);
  transform: none;
  box-shadow: none;
}

.android-button:hover .button-text,
.ios-button:hover .button-text {
  color: rgb(57, 64, 132);
}

.button-icon {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(6px, 1.5vw, 10px);
}

.button-text {
  font-size: clamp(0.95rem, 2.2vw, 1.5rem);
  font-weight: bold;
  color: rgb(57, 64, 132);
  transition: color 0.3s ease;
  text-align: center;
}

.about-content h2 {
  color: rgb(57, 64, 132);
  margin-bottom: clamp(12px, 3vw, 20px);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.about-text {
  color: rgb(57, 64, 132);
  line-height: 1.8;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

.about-text p {
  margin-bottom: clamp(12px, 2vw, 15px);
}

/* ---------------- Contact Section ---------------- */
.contact-section {
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin: clamp(40px, 8vw, 80px) auto;
  max-width: min(95vw, 800px);
  width: 100%;
  padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.contact-form-container {
  width: 100%;
}

.contact-form-container h2 {
  color: rgb(57, 64, 132);
  margin-bottom: clamp(10px, 2vw, 20px);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: bold;
}

.contact-subtitle {
  color: rgb(57, 64, 132);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: clamp(20px, 4vw, 30px);
}

.contact-form {
  width: 100%;
}

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

.form-group label {
  display: block;
  color: rgb(57, 64, 132);
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgb(57, 64, 132);
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  background-color: #fff;
  color: rgb(57, 64, 132);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(45, 52, 110);
  box-shadow: 0 0 8px rgba(57, 64, 132, 0.3);
}

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

.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: rgb(57, 64, 132);
  color: #fff;
  border: 2px solid rgb(57, 64, 132);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: rgb(45, 52, 110);
  transform: translateY(-2px);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #155724;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background-color: rgb(255, 255, 255);
  color: rgb(50, 50, 50);
  width: 100%;
  border-top: 3px solid rgb(57, 64, 132);
  padding: clamp(25px, 5vw, 40px) clamp(15px, 4vw, 30px);
  box-sizing: border-box;
  margin-top: clamp(50px, 10vw, 100px);
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  max-width: min(95vw, 1200px);
  margin: 0 auto;
  gap: clamp(20px, 4vw, 30px);
}

.footer-info {
  text-align: left;
  flex: 1 1 100%;
  min-width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.5vw, 18px);
}

.contact-info {
  color: rgb(57, 64, 132);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.8;
  margin: 0;
}

.contact-info strong {
  color: rgb(57, 64, 132);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.contact-info a {
  color: rgb(57, 64, 132);
  text-decoration: none;
}

.contact-info a:hover {
  color: rgb(45, 52, 110);
  text-decoration: underline;
}

.dnfc-footer {
  color: rgb(57, 64, 132) !important;
  font-size: large;
  margin-bottom: 15px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links,
.dnfc-footer {
  max-width: 100%;
}

.footer-links a {
  color: rgb(57, 64, 132);
  margin: 0 12px 0 0;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:last-child {
  margin-right: 0;
}

.footer-links a:hover {
  color: rgb(45, 52, 110);
  text-decoration: underline;
}

.logo-img {
  height: 30px;
  width: auto;
  border-radius: 6px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------------- NFC Interface ---------------- */
.hidden {
  display: none !important;
}

.nfc-interface-card {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: clamp(15px, 3vw, 30px);
  margin-top: clamp(12px, 2.5vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.nfc-interface-card h3 {
  color: rgb(57, 64, 132);
  margin-bottom: clamp(10px, 2vw, 15px);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.instructions {
  color: rgb(57, 64, 132);
  margin-bottom: clamp(15px, 3vw, 25px);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

/* Scanner Section */
.scanner-section {
  position: relative;
  width: 100%;
  max-width: min(85vw, 400px);
  margin: 0 auto clamp(15px, 3vw, 25px) auto;
  border: 3px solid rgb(57, 64, 132);
  border-radius: 10px;
  overflow: hidden;
  background-color: #000;
}

#qrVideo {
  width: 100%;
  height: auto;
  display: block;
}

#qrCanvas {
  width: 100%;
  height: auto;
  display: none;
}

#scanOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scan-prompt {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background-color: rgba(57, 64, 132, 0.7);
  padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
  border-radius: 5px;
}

/* Status Display */
.status-display {
  padding: clamp(10px, 2vw, 15px);
  border-radius: 8px;
  margin-bottom: clamp(12px, 2.5vw, 20px);
  text-align: center;
  font-weight: bold;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
}

.status-display.info {
  background-color: #cce5ff;
  color: #004085;
  border: 2px solid #004085;
}

.status-display.success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #155724;
}

.status-display.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #721c24;
}

/* URL Display */
.url-display {
  background-color: #f0f0f0;
  border: 2px solid rgb(57, 64, 132);
  border-radius: 8px;
  padding: clamp(12px, 2.5vw, 20px);
  margin-bottom: clamp(12px, 2.5vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.url-display p {
  margin-bottom: clamp(8px, 1.5vw, 10px);
  color: rgb(57, 64, 132);
}

.url-text {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  word-break: break-all;
  background-color: #fff;
  padding: clamp(8px, 1.5vw, 10px);
  border-radius: 5px;
  border: 1px solid #ccc;
}

.write-prompt {
  font-weight: bold;
  color: rgb(57, 64, 132);
  margin-top: clamp(8px, 1.5vw, 10px) !important;
}

/* Control Buttons */
.control-buttons {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 15px);
  flex-wrap: wrap;
  width: 100%;
}

.control-btn {
  padding: clamp(10px, 2vw, 15px) clamp(16px, 3.5vw, 30px);
  border: 2px solid rgb(57, 64, 132);
  border-radius: 8px;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 1 auto;
  min-width: clamp(100px, 22vw, 150px);
  max-width: 300px;
}

.primary-btn {
  background-color: rgb(57, 64, 132);
  color: #fff;
}

.primary-btn:hover {
  background-color: rgb(45, 52, 110);
  transform: translateY(-2px);
  box-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.secondary-btn {
  background-color: #fff;
  color: rgb(57, 64, 132);
}

.secondary-btn:hover {
  background-color: rgb(57, 64, 132);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 2px 2px 4px rgb(0, 0, 0);
}

/* ---------------- NFC Modal ---------------- */
.nfc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nfc-modal-content {
  background-color: #fff;
  border-radius: 20px;
  padding: clamp(25px, 5vw, 40px);
  max-width: min(90vw, 400px);
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  box-sizing: border-box;
}

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

.nfc-icon {
  font-size: clamp(3.5rem, 8vw, 5rem);
  margin-bottom: clamp(15px, 3vw, 20px);
}

.nfc-modal-content h3 {
  color: rgb(57, 64, 132);
  margin-bottom: clamp(12px, 2vw, 15px);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.nfc-modal-content p {
  color: rgb(57, 64, 132);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: clamp(20px, 4vw, 30px);
}

.nfc-animation {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.nfc-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgb(57, 64, 132);
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ---------------- Utility classes ---------------- */
.text-center {
  text-align: center;
}

.text-light {
  color: #fff;
}

.rounded {
  border-radius: 0.5rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border: solid 1px rgb(0, 0, 0);
  box-shadow: 2px 2px 4px rgb(0, 0, 0);
}

/* ---------------- Responsive adjustments ---------------- */
/* Fluid typography and spacing handled by clamp() above, 
   these are additional fine-tuning for specific breakpoints */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-info {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
  }

  #jumbotron {
    padding: clamp(20px, 4vw, 30px) clamp(15px, 3vw, 20px);
  }
}

@media (min-width: 1024px) {
  .hero-section {
    justify-content: flex-start;
    min-height: 90vh;
    padding-top: clamp(80px, 14vh, 200px);
    padding-bottom: clamp(40px, 8vh, 120px);
  }

  .hero-section .scroll-indicator {
    bottom: clamp(28px, 5vh, 80px);
  }
}

/* Additional container query support for even more fluid layouts */
@supports (container-type: inline-size) {
  .nfc-tool-section {
    container-type: inline-size;
  }
}

.white-space {
  min-height: clamp(120px, 25vh, 280px);
}

#overlayTrigger {
  width: 100%;
  height: clamp(80px, 20vh, 200px);
}

#bottomSentinel {
  width: 100%;
  height: clamp(80px, 18vh, 180px);
}

main.fade-to-white {
  opacity: 0;
  filter: blur(20px) brightness(1.15);
  transition: opacity 0.9s ease, filter 0.9s ease;
}

.email-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 4s ease, visibility 4s ease;
  z-index: 10000;
  backdrop-filter: blur(12px);
  padding: clamp(20px, 5vw, 40px);
}

.email-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.email-overlay a {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: rgb(57, 64, 132);
  font-weight: 700;
  margin: 0;
  text-decoration: none;
  position: relative;
}

.email-overlay a::selection {
  background: rgba(57, 64, 132, 0.15);
}

.email-overlay a:hover {
  color: rgb(45, 52, 110);
}

.copy-toast {
  margin-top: clamp(16px, 3vw, 24px);
  padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 20px);
  background: rgba(57, 64, 132, 0.1);
  color: rgb(57, 64, 132);
  border-radius: 999px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.copy-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .fade-in::before {
    transition: none !important;
    opacity: 0 !important;
  }

  .cta-button {
    transition: none !important;
  }

  .cta-button::before,
  .cta-button::after {
    animation: none !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}
