/* RESET DEFAULT STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #6c63ff; /* Example primary color */
  --secondary-color: #00cfc1; /* Example secondary color */
  --background-color: #0f1115; /* Example background color */
  --background-gradient: linear-gradient(90deg, #0a0f2d, #1a1a1a);
  --background-color-secondary: #1a1d23; /* Example secondary background color */
  --text-color: #cccccc; /* Example text color */
  --text-color-hover: #0066ff;
  --text-gradient: linear-gradient(90deg, #6c63ff, #5a54e6);
  --header-bg-gradient: linear-gradient(90deg, #0a0f2d, #1a1a1a);
  --button-bg: #6c63ff; /* Example button background color */
  --button-bg-hover: #5a54e6; /* Example button hover background color */
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: inter, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* REMOVE LIST & LINK STYLES */
ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

a {
  position: relative;
  display: inline-block;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

a:hover {
  color: var(--text-color-hover);
  transform: scale(1.05);
}

a .solid {
  display: block;
  color: var(--text-color);
}

a .gradient {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  background: var(--text-color-hover); /* this is your gradient */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

a:hover .gradient {
  opacity: 1;
}

strong {
  font-weight: bold !important;
  color: var(--primary-color) !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

/* IMAGE & MEDIA NORMALIZATION */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* FORM ELEMENT NORMALIZATION */
input,
button,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* SET UP ROOT FONT SIZE (DYNAMICALLY) */
html {
  font-size: clamp(14px, 1.5vw, 18px);
  overflow-x: hidden;
}

/* DYNAMIC TYPOGRAPHY CLASSES (OPTIONAL) */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
p {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

/* BODY TYPOGRAPHY */
body {
  font-size: 1rem; /* Will be 14-18px based on clamp above */
  /* background: var(--background-gradient); for dark theme */
  color: #f5f5f5;
}

/* SMOOTH SCROLLING */
html:focus-within {
  scroll-behavior: smooth;
}

/* UTILITY CLASSES */
.discount-link {
  font-weight: bold;
  text-decoration: underline;
  color: #fff;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.ScaleDiscount {
  font-size: 1.2em;
  font-weight: bold;
  animation: scale 1s infinite;
}

@keyframes scale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}

/* Background dim when modal is visible */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal box */
.modal {
  background: #fff;
  color: black;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.4s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

/* CTA button */
.cta-btn {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
  background: var(--button-bg);
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: var(--button-bg-hover);
}

/* Responsive */
@media (max-width: 480px) {
  .modal {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}

/* Simple fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
