/* ============================================
   BASE STYLES & RESET
   Global reset and base layout styling
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  position: relative;
}

/* ============================================
   CSS VARIABLES (DESIGN TOKENS)
   Defines the core color palette and effects
   ============================================ */
:root {
  /* Brand Constants */
  --xenon-color-cyan: rgba(0, 242, 255, 1); /* #00f2ff */
  --xenon-color-purple: rgba(112, 0, 255, 1); /* #7000ff */
  --xenon-color-magenta: rgba(157, 23, 77, 1); /* #9d174d */

  /* The Black & Dark Scale */
  --xenon-color-black: rgba(0, 0, 0, 1); /* #000000 */
  --xenon-color-black-transparent: rgba(0, 0, 0, 0.5); /* #00000080 */
  --xenon-color-black-none: rgba(0, 0, 0, 0); /* #00000000 */
  --xenon-color-charcoal: rgba(10, 10, 12, 1); /* #0a0a0c */
  --xenon-color-dark-transparent: rgba(10, 10, 12, 0.3); /* #0a0a0c4d */

  --xenon-color-dark-base: rgba(20, 20, 22, 1); /* #141416 Consolidated from void/onyx */
  --xenon-color-dark-surface: rgba(35, 36, 40, 1); /* #232428 Consolidated from charcoal/steel */
  --xenon-color-grey-ash: rgba(46, 46, 46, 1); /* #2e2e2e */
  --xenon-color-grey-dim: rgba(62, 62, 62, 1); /* #3e3e3e */
  --xenon-color-grey-stone: rgba(136, 136, 136, 1); /* #888888 */
  --xenon-color-silver: rgba(205, 205, 205, 1); /* #cdcdcd Consolidated from mute/bright */

  /* Light Scale */
  --xenon-color-white: rgba(255, 255, 255, 1); /* #ffffff */
  --xenon-color-white-translucent: rgba(255, 255, 255, 0.65); /* #ffffffa9 */
  --xenon-color-white-transparent: rgba(255, 255, 255, 0.25); /* #ffffff40 */
  --xenon-color-white-faint: rgba(255, 255, 255, 0.04); /* #ffffff0a */

  /* Effects */
  --xenon-color-glow: rgba(217, 176, 255, 1); /* #d9b0ff */
  --xenon-color-glow-spread: rgba(191, 123, 255, 0.781); /* #bf7bffc7 */
  
  /* Additional Accents */
  --xenon-color-cyan-transparent: rgba(0, 242, 255, 0.5); /* #00f2ff80 */
  --xenon-color-cyan-faint: rgba(0, 242, 255, 0.2); /* #00f2ff33 */
  --xenon-color-blue-electric: rgba(64, 186, 247, 1); /* #40baf7 */
  --xenon-color-blue-soft: rgba(113, 164, 240, 1); /* #71a4f0 */
  --xenon-color-neon-mint: rgba(91, 252, 196, 1); /* #5bfcc4 */
  --xenon-color-magenta-bright: rgba(243, 74, 215, 1); /* #f34ad7 */
  --xenon-color-magenta-transparent: rgba(157, 23, 77, 0.4); /* #9d174d66 */
  --xenon-color-magenta-faint: rgba(157, 23, 77, 0.08); /* #9d174d14 */
  --xenon-color-pink-glow: rgba(255, 36, 233, 1); /* #ff24e9 */
  --xenon-color-pink-soft: rgba(245, 147, 228, 1); /* #f593e4 */
  --xenon-color-violet-glow: rgba(135, 49, 246, 1); /* #8731f6 */
}

#layout {
  background-color: var(--xenon-color-black);
  color: white;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--xenon-color-charcoal);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--xenon-color-cyan), var(--xenon-color-purple));
  border-radius: 5px;
}

/* ============================================
   TYPOGRAPHY & FONTS
   Utility classes for different font families
   ============================================ */
.ubuntu {
  font-family: "Ubuntu", sans-serif !important;
  font-style: normal;
}

.bebas-neue {
  font-family: "Bebas Neue", sans-serif !important;
  letter-spacing: 1.35px;
  font-style: normal;
}

.outfit {
  font-family: "Outfit", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
}

.space-font {
  font-family: "Space Grotesk", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
}

.syne {
  font-family: "Syne", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
}

/* ============================================
   BACKGROUND EFFECTS & GLASSMORPHISM
   Grid pattern and glowing background blurs
   ============================================ */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--xenon-color-white-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--xenon-color-white-faint) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  max-width: 500px;
  max-height: 500px;
}



.glass {
  background: var(--xenon-color-dark-transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--xenon-color-white-transparent);
  transition: all 0.3s ease;
}

.glass:hover {
  background: var(--xenon-color-dark-transparent);
  border-color: var(--xenon-color-cyan-faint);
}

/* Typography */
.hero-title {
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.text-gradient-animate {
  background: linear-gradient(90deg, var(--xenon-color-cyan), var(--xenon-color-purple), var(--xenon-color-cyan));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s linear infinite;
}

.bg-gradient-animate {
  background: linear-gradient(90deg, var(--xenon-color-cyan), var(--xenon-color-purple), var(--xenon-color-cyan));
  background-size: 200% auto;
  animation: gradientText 3s linear infinite;
}

/* Navigation */
.nav-link {
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--xenon-color-cyan);
  text-shadow: 0 0 8px var(--xenon-color-cyan-transparent);
}

/* ============================================
   BUTTONS & INTERACTIVE ELEMENTS
   Custom buttons with hover animations and glows
   ============================================ */
/* Hero Buttons */
.explore-button {
  border-radius: 8px;
  width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0px 15px;
  border: none;
  color: white;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  transition-duration: 0.2s;
  background-color: var(--xenon-color-dark-base);
  z-index: 1;
  text-decoration: none;
}

.explore-button:before,
.explore-button:after {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  border-radius: 10px;
  background: linear-gradient(
    45deg,
    var(--xenon-color-dark-base),
    var(--xenon-color-dark-base),
    var(--xenon-color-grey-ash),
    var(--xenon-color-white),
    var(--xenon-color-grey-ash),
    var(--xenon-color-dark-base),
    var(--xenon-color-dark-base),
    var(--xenon-color-dark-base)
  );
  background-size: 400%;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: -1;
  animation: steam 20s linear infinite;
}

.explore-button:after {
  filter: blur(50px);
}

.animated-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  border-radius: 8px;
  width: 200px;
  height: 50px;
  font-weight: 600;
  color: var(--xenon-color-white);
  box-shadow: 0 0 0 2px var(--xenon-color-grey-dim);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
}

.animated-button svg {
  position: absolute;
  width: 24px;
  fill: var(--xenon-color-white);
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 {
  right: 16px;
}

.animated-button .arr-2 {
  left: -25%;
}

.animated-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--xenon-color-purple);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: var(--xenon-color-white);
  border-radius: 12px;
}

.animated-button:hover .arr-1 {
  right: -25%;
}

.animated-button:hover .arr-2 {
  left: 16px;
}

.animated-button:hover .text {
  transform: translateX(12px);
}

.animated-button:hover svg {
  fill: var(--xenon-color-white);
}

.animated-button:active {
  scale: 0.95;
}

.animated-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}



.outer-cont {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 20px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  background: linear-gradient(90deg, var(--xenon-color-neon-mint), var(--xenon-color-pink-soft), var(--xenon-color-blue-soft));
  border-radius: 12px;
  color: var(--xenon-color-white);
  transition: all 0.3s ease;
  box-shadow:
    inset 0px 0px 5px var(--xenon-color-white-translucent),
    inset 0px 35px 30px var(--xenon-color-black),
    0px 5px 10px var(--xenon-color-black);
  text-shadow: 1px 1px 1px var(--xenon-color-black);
}

.outer-cont::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 12px;
  filter: blur(0);
  z-index: -1;
  box-shadow: none;
  background: conic-gradient(
    var(--xenon-color-black-none) 80deg,
    var(--xenon-color-blue-electric),
    var(--xenon-color-magenta-bright),
    var(--xenon-color-neon-mint),
    var(--xenon-color-black-none) 280deg
  );
  transition: all 0.3s ease;
}

.outer-cont:hover::before {
  filter: blur(15px);
}

.outer-cont:active::before {
  filter: blur(5px);
  transform: translateY(1px);
}

.outer-cont:active {
  box-shadow:
    inset 0px 0px 5px var(--xenon-color-white-translucent),
    inset 0px 35px 30px var(--xenon-color-black);
  margin-top: 3px;
}

/* ============================================
   SERVICE CARDS
   Card styling with radial gradient border effects
   ============================================ */
.service-card {

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  width: 100%;
  max-width: 400px;
  background-color: var(--xenon-color-dark-base);
  background-image:
    radial-gradient(at 88% 40%, var(--xenon-color-dark-base) 0px, transparent 85%),
    radial-gradient(at 49% 30%, var(--xenon-color-dark-base) 0px, transparent 85%),
    radial-gradient(at 14% 26%, var(--xenon-color-dark-base) 0px, transparent 85%),
    radial-gradient(at 0% 64%, var(--xenon-color-purple) 0px, transparent 85%),
    radial-gradient(at 41% 94%, var(--xenon-color-purple) 0px, transparent 85%),
    radial-gradient(at 100% 99%, var(--xenon-color-pink-glow) 0px, transparent 85%);
  border-radius: 1rem;
  box-shadow: 0px -16px 24px 0px var(--xenon-color-white-transparent) inset;
  border: 1px solid var(--xenon-color-white-faint);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.6s ease,
    box-shadow 0.6s ease;
}

.service-card .card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card .card__list .card__list_item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card .card__list .card__list_item .check {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  background-color: var(--xenon-color-violet-glow);
  border-radius: 50%;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--xenon-color-magenta-transparent);
  box-shadow:
    0 10px 30px -10px var(--xenon-color-black-transparent),
    0 0 15px var(--xenon-color-magenta-faint);
}

.service-card-button {
  position: relative;
  padding: 14px 42px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  display: inline-block;
  z-index: 1;
  transition: transform 0.2s ease;
}

.service-card-button span {
  position: relative;
  z-index: 15;
}

.service-card-button:active {
  transform: scale(0.96);
}

.service-card-button::before {
  content: "";
  background: var(--xenon-color-black);
  border-radius: inherit;
  height: calc(100% - 4px);
  width: calc(100% - 4px);
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 12;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.service-card-button:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   ANIMATED BUBBLES
   Floating background elements for visual interest
   ============================================ */
.bubble-layer {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
}

.bubble-1 {
  background: var(--xenon-color-purple);
  top: -20%;
  left: -10%;
  animation: moveUpRight 6s ease-in-out infinite;
}

.bubble-2 {
  background: var(--xenon-color-purple);
  top: 0%;
  left: 10%;
  animation: moveDownLeft 5s ease-in-out infinite;
  animation-delay: 1s;
}

.bubble-3 {
  background: var(--xenon-color-purple);
  top: 20%;
  left: 50%;
  animation: moveRight 4s ease-in-out infinite;
  animation-delay: 2s;
}

.bubble-4 {
  background: var(--xenon-color-purple);
  top: -20%;
  left: 70%;
  animation: moveUpLeft 7s ease-in-out infinite;
  animation-delay: 3s;
}

.bubble-5 {
  background: var(--xenon-color-purple);
  top: 30%;
  left: -10%;
  animation: moveDownRight 3s ease-in-out infinite;
  animation-delay: 4s;
}

.bubble-6 {
  background: var(--xenon-color-purple);
  top: -10%;
  left: 30%;
  animation: moveLeft 8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.bubble-7 {
  background: var(--xenon-color-purple);
  top: 40%;
  left: 60%;
  animation: moveUp 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  opacity: 1;
}

/* ============================================
   STATISTICS CARDS
   Cards with animated borders and text gradients
   ============================================ */
.outer {
  width: 300px;
  height: 250px;
  border-radius: 10px;
  padding: 1px;
  background: radial-gradient(circle 230px at 0% 0%, var(--xenon-color-white), var(--xenon-color-charcoal));
  position: relative;
}

.dot {
  width: 5px;
  aspect-ratio: 1;
  position: absolute;
  background-color: var(--xenon-color-white);
  box-shadow: 0 0 10px var(--xenon-color-white);
  border-radius: 100px;
  z-index: 2;
  right: 10%;
  top: 10%;
  animation: moveDot 6s linear infinite;
}

.card {
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  border: solid 1px var(--xenon-color-dark-surface);
  background-size: 20px 20px;
  background: radial-gradient(circle 280px at 0% 0%, var(--xenon-color-grey-dim), var(--xenon-color-charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  color: var(--xenon-color-white);
}

.ray {
  width: 220px;
  height: 45px;
  border-radius: 100px;
  position: absolute;
  background-color: var(--xenon-color-silver);
  opacity: 0.4;
  box-shadow: 0 0 50px var(--xenon-color-white);
  filter: blur(10px);
  transform-origin: 10%;
  top: 0%;
  left: 0;
  transform: rotate(40deg);
}

.card .text {
  font-weight: bolder;
  font-size: 4rem;
  background: linear-gradient(45deg, var(--xenon-color-black) 4%, var(--xenon-color-white), var(--xenon-color-black));
  background-clip: text;
  color: transparent;
}

.line {
  width: 100%;
  height: 1px;
  position: absolute;
  background-color: var(--xenon-color-grey-ash);
}

.topl {
  top: 10%;
  background: linear-gradient(90deg, var(--xenon-color-grey-stone) 30%, var(--xenon-color-dark-base) 70%);
}

.bottoml {
  bottom: 10%;
}

.leftl {
  left: 10%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--xenon-color-grey-stone) 30%, var(--xenon-color-dark-surface) 70%);
}

.rightl {
  right: 10%;
  width: 1px;
  height: 100%;
}



/* ============================================
   UTILITY CLASSES & ANIMATION TRIGGERS
   ============================================ */
[data-count] {
  transition: all 0.3s ease;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================
   CSS KEYFRAME ANIMATIONS
   Definitions for all custom animations used above
   ============================================ */

/* ============================================
   UI COMPONENTS & INTERACTIVE ELEMENTS
   ============================================ */

.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

.mobile-nav-link {
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--xenon-color-white-faint);
}

.mobile-menu-btn {
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-menu-btn svg {
  transition: all 0.3s ease;
}

.value-item {
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateX(4px);
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--xenon-color-cyan-faint);
}

.faq-question {
  padding: 8px 0;
}

.faq-answer {
  padding-top: 12px;
}

.section-label {
  letter-spacing: 0.2em;
}

.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: var(--xenon-color-white-transparent);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: var(--xenon-color-white-transparent);
}

/* ============================================
   HIGHLIGHTED NEON BORDER GLOW
   ============================================ */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.animated-glow-border {
  position: relative;
  border-radius: 0.75rem; /* rounded-xl */
}

.animated-glow-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px; /* Border thickness */
  background: conic-gradient(
    from var(--glow-angle),
    transparent 0deg,
    transparent 120deg,
    var(--xenon-color-purple) 250deg,
    transparent 360deg
  );
  animation: borderRotate 3s linear infinite;
  z-index: 10;
  pointer-events: none;
  
  /* Mask to only show the padding area (the border) */
  -webkit-mask: 
     linear-gradient(var(--xenon-color-white) 0 0) content-box, 
     linear-gradient(var(--xenon-color-white) 0 0);
  mask: 
     linear-gradient(var(--xenon-color-white) 0 0) content-box, 
     linear-gradient(var(--xenon-color-white) 0 0);
  mask-composite: exclude;
}

/* ============================================
   ANIMATIONS (@keyframes)
   ============================================ */

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

@keyframes gradientText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes steam {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moveUpRight {
  0% { transform: translate(0, 0); }
  25% { transform: translate(100%, -100%); }
  50% { transform: translate(-50%, 50%); }
  75% { transform: translate(50%, -50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveDownLeft {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-100%, 100%); }
  50% { transform: translate(50%, -50%); }
  75% { transform: translate(-50%, 50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveRight {
  0% { transform: translate(0, 0); }
  25% { transform: translate(100%, 0); }
  50% { transform: translate(-100%, 50%); }
  75% { transform: translate(50%, -50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveUpLeft {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-100%, -100%); }
  50% { transform: translate(50%, 50%); }
  75% { transform: translate(-50%, -50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveDownRight {
  0% { transform: translate(0, 0); }
  25% { transform: translate(100%, 100%); }
  50% { transform: translate(-50%, -50%); }
  75% { transform: translate(50%, 50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveLeft {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-100%, 0); }
  50% { transform: translate(100%, -50%); }
  75% { transform: translate(-50%, 50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveUp {
  0% { transform: translate(0, 0); }
  25% { transform: translate(0, -100%); }
  50% { transform: translate(50%, 50%); }
  75% { transform: translate(-50%, -50%); }
  100% { transform: translate(0, 0); }
}

@keyframes moveDot {
  0%, 100% { top: 10%; right: 10%; }
  25% { top: 10%; right: calc(100% - 35px); }
  50% { top: calc(100% - 30px); right: calc(100% - 35px); }
  75% { top: calc(100% - 30px); right: 10%; }
}

@keyframes autoRun {
  from { left: 100%; }
  to { left: calc(var(--width) * -1); }
}

@keyframes borderRotate {
  to { --glow-angle: 360deg; }
}

/* ============================================
   RESPONSIVE DESIGN (Media Queries)
   ============================================ */

/* Mobile & Tablet Glow adjustments */
@media (max-width: 768px) {
  .glow {
    width: 60vw;
    height: 60vw;
    max-width: 300px;
    max-height: 300px;
  }
}

/* States Grid Adjustments */
@media (max-width: 639px) {
  #states .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #states .grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
  }
}

@media (min-width: 1024px) {
  #states .grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
  }
}

/* Why Choose Us & Grid Column Overrides */
@media (max-width: 639px) {
  .grid-cols-\[1\.5fr_repeat\(5\,1fr\)\] {
    column-gap: 0.25rem !important;
  }
  .hidden-sm { display: none; }
}

/* Footer Section */
@media (min-width: 768px) {
  .footer-column { border-bottom: none; }
  .footer-content {
    max-height: 500px !important;
    opacity: 1 !important;
  }
  .footer-toggle { display: none !important; }
  .footer-header { cursor: default !important; }
}

/* --- Breakpoint Specific Overrides --- */

/* Extra Small (Phones, < 480px) */
@media (max-width: 479px) {
  .hero-title { font-size: 36px !important; line-height: 1.1; }
  .hero-title br { display: none; }
  nav { top: 4px; width: 95%; }
  nav .glass { padding: 8px 12px; }
  nav img { height: 32px !important; }
  .animated-button { margin-left: 0; }
  .outer-cont { padding: 8px 12px; font-size: 13px; }
  .outer-cont svg { width: 18px; height: 18px; }
  .service-card { width: 100%; padding: 1.5rem; min-height: auto; }
  .service-card .text-\[36px\] { font-size: 28px; }
  .service-card .card_title { font-size: 22px; }
  .service-card-button { width: 100%; padding: 12px 20px; font-size: 14px; }
  .outer { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1 / 0.85; }
  .card .text { font-size: 3rem; }
  .card div.text-lg { font-size: 14px; }
  h2.text-3xl, h2.text-4xl { font-size: 28px; }
  .grid-cols-\[2fr_repeat\(5\,1fr\)\] { grid-template-columns: 1.5fr repeat(5, 0.8fr); column-gap: 4px; }
  .comparison-table svg { width: 14px; height: 14px; }
  footer .grid { gap: 2rem; }
  footer h3, footer h4 { font-size: 16px; }
  footer form { width: 100%; }
}

/* Small (Phones, 480px - 639px) */
@media (max-width: 639px) {
  .ray { width: 140px !important; }
  .hero-title { font-size: 40px !important; line-height: 1.15; }
  nav .glass { padding: 10px 14px; }
  .animated-button { margin-left: 0; margin-top: 12px; }
  .service-card { width: 100%; padding: 1.5rem; }
  .service-card-button { width: 100%; }
  .outer { width: 100%; max-width: 300px; height: auto; }
  .why-choose-us { display: none; }
  .card .text { font-size: 3.5rem; }
  .grid-cols-\[2fr_repeat\(5\,1fr\)\] { grid-template-columns: 1.5fr repeat(5, 1fr); column-gap: 8px; }
  footer .grid { gap: 2.5rem; }
}

/* Medium (Tablets, 640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .hero-title { font-size: 56px !important; }
  #states .grid { grid-template-columns: repeat(2, 1fr); }
  .outer { width: 100%; max-width: 280px; margin: 0 auto; }
  .service-card { width: 100%; min-height: 480px; }
  .grid-cols-\[2fr_repeat\(5\,1fr\)\] { grid-template-columns: 1.5fr repeat(5, 1fr); }
  footer .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large Tablets / Small Laptops (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title { font-size: 64px !important; }
  #states .grid { grid-template-columns: repeat(2, 1fr); justify-items: center; }
  .outer { width: 100%; max-width: 300px; }
  .service-card { width: 100%; min-height: 500px; }
  footer .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .service-card { width: 100%; min-height: 520px; }
}

/* Large Desktops (>= 1280px) */
@media (min-width: 1280px) {
  .hero-title { font-size: 80px !important; }
  .service-card { width: 100%; max-width: 380px; }
}

/* Height specific overrides */
@media (max-height: 700px) {
  #home { padding-top: 7rem; padding-bottom: 3rem; min-height: auto; }
  .hero-title { margin-bottom: 1rem; }
  nav { top: 8px; }
}

/* Print Overrides */
@media print {
  nav, .mobile-menu, .glow, .grid-bg, button, .service-card-button, .explore-button, .animated-button { display: none !important; }
  body { background: white; color: black; }
  .service-card { break-inside: avoid; }
}
