* {
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --brand: #c6ff00;
  --teal: #3eebbe;
}

.accent-gradient {
  background: linear-gradient(135deg, var(--brand), var(--teal));
}

.hover-float {
  transition: transform .2s ease;
  will-change: transform;
}

.hover-float:hover {
  transform: translateY(-4px);
}

/* Typography improvements */
h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.5;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.5;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
}

.text-sm {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.text-xs {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
}

/* Professional image styling */
.hero-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.img-placeholder {
  background-image: repeating-linear-gradient(45deg, rgba(198, 255, 0, .12) 0 8px, rgba(62, 235, 190, .12) 8px 16px);
}

/* Floating buttons - colored + ripple pulse */
.float-stack {
  position: fixed;
  left: 1rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(0, 0, 0, .12);
  border: 2px solid rgba(17, 24, 39, .35);
}

.float-btn i {
  font-size: 22px;
  color: #fff
}

/* variants */
.float-btn.phone {
  background: #c6ff00;
  color: #203106;
  --ring: rgba(198, 255, 0, .45)
}

.float-btn.whatsapp {
  background: #25D366;
  color: #0b2916;
  --ring: rgba(37, 211, 102, .42)
}

.float-btn.mail {
  background: #b6f200;
  color: #1d2b06;
  --ring: rgba(182, 242, 0, .40)
}

/* pulse */
.float-btn.pulse::after,
.float-btn.pulse::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 3px solid var(--ring);
  opacity: .6;
  transform: scale(.85);
  animation: ripple 1.9s cubic-bezier(.2, .7, .2, 1) infinite;
}

.float-btn.pulse::before {
  animation-delay: .5s;
  opacity: .35
}

@keyframes ripple {
  0% {
    opacity: .6;
    transform: scale(.85)
  }

  70% {
    opacity: .1
  }

  100% {
    opacity: 0;
    transform: scale(1.3)
  }
}

/* 3-ring pulse (green/yellow) - Optimized */
.float-btn {
  position: relative;
  overflow: visible
}

.float-btn .ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 3px solid;
  opacity: .0;
  transform: scale(.8);
  will-change: transform, opacity;
}

.float-btn .ring.r1 {
  border-color: rgba(62, 235, 190, .55);
  animation: r1 2.5s ease-out infinite
}

.float-btn .ring.r2 {
  border-color: rgba(198, 255, 0, .55);
  animation: r2 2.5s ease-out infinite .5s
}

.float-btn .ring.r3 {
  border-color: rgba(62, 235, 190, .35);
  animation: r3 2.5s ease-out infinite 1s
}

@keyframes r1 {
  0% {
    opacity: .7;
    transform: scale(.8)
  }

  70% {
    opacity: .15
  }

  100% {
    opacity: 0;
    transform: scale(1.35)
  }
}

@keyframes r2 {
  0% {
    opacity: .7;
    transform: scale(.8)
  }

  70% {
    opacity: .15
  }

  100% {
    opacity: 0;
    transform: scale(1.45)
  }
}

@keyframes r3 {
  0% {
    opacity: .7;
    transform: scale(.8)
  }

  70% {
    opacity: .1
  }

  100% {
    opacity: 0;
    transform: scale(1.55)
  }
}

/* --- Rotating wireframe spheres (background) - Optimized --- */
.orbs-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1
}

.orb {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: .25;
  will-change: transform;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

/* individual positions + sizes + speed - Reduced complexity */
.orb-1 {
  top: 6%;
  right: 5%;
  width: 200px;
  height: 200px;
  animation: spinSlow 60s linear infinite
}

.orb-2 {
  top: 20%;
  left: 8%;
  width: 260px;
  height: 260px;
  animation: spinSlow 80s linear infinite reverse
}

.orb-3 {
  top: 42%;
  right: 18%;
  width: 220px;
  height: 220px;
  animation: spinSlow 70s linear infinite
}

.orb-4 {
  bottom: 22%;
  left: 12%;
  width: 180px;
  height: 180px;
  animation: spinSlow 90s linear infinite reverse
}

.orb-5 {
  bottom: 8%;
  right: 10%;
  width: 260px;
  height: 260px;
  animation: spinSlow 100s linear infinite
}

.orb-6 {
  top: 70%;
  left: 40%;
  width: 200px;
  height: 200px;
  animation: spinSlow 75s linear infinite reverse
}

.orb-7 {
  top: 10%;
  left: 40%;
  width: 160px;
  height: 160px;
  animation: spinSlow 85s linear infinite
}

.orb-8 {
  bottom: 38%;
  right: 40%;
  width: 140px;
  height: 140px;
  animation: spinSlow 46s linear infinite reverse
}

@media (max-width: 900px) {
  .orb {
    opacity: .22
  }

  .orb-3,
  .orb-4,
  .orb-6,
  .orb-7,
  .orb-8 {
    display: none
  }

  .orb-1 {
    top: 8%;
    right: -20px
  }

  .orb-2 {
    top: 65%;
    left: -30px
  }

  .orb-5 {
    bottom: -10px;
    right: -20px
  }
}

/* Minimal rotating wireframe globes */
.orbs-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1
}

.orb {
  position: absolute;
  opacity: .28;
  filter: drop-shadow(0 0 .6px rgba(0, 0, 0, .1))
}

@keyframes spinSlow {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

.orb-a {
  top: 10%;
  right: 6%;
  width: 240px;
  height: 240px;
  animation: spinSlow 44s linear infinite
}

.orb-b {
  bottom: 12%;
  left: 8%;
  width: 200px;
  height: 200px;
  animation: spinSlow 52s linear infinite reverse
}

.orb-c {
  top: 55%;
  right: 20%;
  width: 160px;
  height: 160px;
  animation: spinSlow 48s linear infinite
}

@media (max-width: 900px) {
  .orb-b {
    display: none
  }

  .orb-a {
    right: -30px;
    top: 12%;
    width: 200px;
    height: 200px
  }

  .orb-c {
    right: -10px;
    top: 70%;
    width: 140px;
    height: 140px
  }
}

/* Rotating dotted wireframe globes (background) */
.orbs-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1
}

.orb {
  position: absolute;
  opacity: .28;
  filter: drop-shadow(0 0 .6px rgba(0, 0, 0, .18))
}

@keyframes spinSlow {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

.orb-a {
  top: 12%;
  right: 6%;
  width: 240px;
  height: 240px;
  animation: spinSlow 44s linear infinite
}

.orb-b {
  bottom: 10%;
  left: 10%;
  width: 200px;
  height: 200px;
  animation: spinSlow 52s linear infinite reverse
}

@media (max-width: 900px) {
  .orb-b {
    display: none
  }

  .orb-a {
    right: -24px;
    top: 14%;
    width: 200px;
    height: 200px
  }
}

/* --- Glassmorphism sections --- */
.glass {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.light .glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .35));
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 18px 45px -28px rgba(15, 23, 42, .25);
}

/* decorative blobs */
.glass::before,
.glass::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  filter: blur(12px);
  opacity: .38;
  z-index: -1;
}

.glass::before {
  top: -30px;
  right: -30px;
  background: radial-gradient(closest-side, rgba(198, 255, 0, .55), rgba(198, 255, 0, 0));
}

.glass::after {
  bottom: -30px;
  left: -30px;
  background: radial-gradient(closest-side, rgba(62, 235, 190, .55), rgba(62, 235, 190, 0));
}

.glass p {
  line-height: 1.85
}

.glass .title {
  font-weight: 900;
  letter-spacing: -.02em
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Enhanced hover effects */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Professional gradient text */
.gradient-text {
  background: linear-gradient(135deg, #3eebbe, #00c3ae);
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced glass effect */
.glass-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Professional button styles */
.btn-primary {
  background: linear-gradient(135deg, #c6ff00, #3eebbe);
  color: #0b0f14;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(198, 255, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198, 255, 0, 0.4);
}

/* Professional card styles */
.card-professional {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}


.card-professional:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 40px rgba(62, 235, 190, 0.1);
}


/* Project card styles with glowing border */
.project-card {
  position: relative;
  overflow: hidden;
}


.project-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(62, 235, 190, 0.1);
}

/* Package card styles with glowing border */
.package-card {
  position: relative;
  overflow: hidden;
}


.package-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 25px rgba(62, 235, 190, 0.1);
}

/* Progress Bar Styles */
.progress-bar {
  width: 0%;
  transition: width 2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-bar.animate {
  animation: progress-fill 2s ease-out forwards;
}

@keyframes progress-fill {
  from {
    width: 0%;
  }

  to {
    width: var(--target-width);
  }
}

/* Portfolio Advanced Slider Styles */
:root {
  --portfolio-gap: 1.25rem;
  --portfolio-speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --portfolio-closed: 5rem;
  --portfolio-open: 30rem;
  --portfolio-accent: #3eebbe;
}

.portfolio-slider {
  max-width: 1400px;
  margin: auto;
  overflow: hidden;
}

.portfolio-track {
  display: flex;
  gap: var(--portfolio-gap);
  align-items: flex-start;
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-card {
  position: relative;
  flex: 0 0 var(--portfolio-closed);
  height: 26rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex-basis var(--portfolio-speed), transform var(--portfolio-speed);
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-card[active] {
  flex-basis: var(--portfolio-open);
  transform: translateY(-6px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.portfolio-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(75%);
  transition: filter 0.3s, transform var(--portfolio-speed);
}

.portfolio-card:hover .portfolio-card__bg {
  filter: brightness(0.9) saturate(100%);
  transform: scale(1.06);
}

.portfolio-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 2;
}

.portfolio-card__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.portfolio-card__thumb,
.portfolio-card__btn {
  display: none;
}

.portfolio-card[active] .portfolio-card__content {
  flex-direction: row;
  align-items: center;
  padding: 1.2rem 2rem;
  gap: 1.1rem;
}

.portfolio-card[active] .portfolio-card__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 2.4rem;
}

.portfolio-card[active] .portfolio-card__thumb,
.portfolio-card[active] .portfolio-card__btn {
  display: block;
}

.portfolio-card__thumb {
  width: 133px;
  height: 269px;
  border-radius: 0.45rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


.portfolio-card__btn {
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 9999px;
  background: var(--portfolio-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.portfolio-card__btn:hover {
  background: #2dd4bf;
}

.portfolio-controls {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.portfolio-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-nav-btn:hover {
  background: var(--portfolio-accent);
}

.portfolio-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.portfolio-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 20px 0;
}

.portfolio-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.3s;
}

.portfolio-dot.active {
  background: var(--portfolio-accent);
  transform: scale(1.2);
}

/* Dark mode support */
.dark .portfolio-card {
  background: #1e293b;
}

.dark .portfolio-card__content {
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9) 100%);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  :root {
    --portfolio-closed: 100%;
    --portfolio-open: 100%;
    --portfolio-gap: 0.8rem;
  }

  .portfolio-track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    gap: 0.8rem;
    padding-bottom: 20px;
  }

  .portfolio-card {
    height: auto;
    min-height: 80px;
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
  }

  .portfolio-card[active] {
    min-height: 300px;
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .portfolio-card__content {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
  }

  .portfolio-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
    margin-right: auto;
  }

  .portfolio-card__thumb,
  .portfolio-card__btn {
    display: none;
  }

  .portfolio-card[active] .portfolio-card__content {
    align-items: flex-start;
    padding: 1.5rem;
  }

  .portfolio-card[active] .portfolio-card__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }

  .portfolio-card[active] .portfolio-card__thumb {
    width: 200px;
    height: 267px;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
  }


  .portfolio-card[active] .portfolio-card__btn {
    align-self: center;
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }

  .portfolio-dots {
    display: none;
  }

  .portfolio-controls {
    width: 100%;
    justify-content: space-between;
    padding: 0 15px 20px;
  }

  .portfolio-nav-btn {
    position: static;
    transform: none;
  }
}


/* Dark mode card styles */
.dark .card-professional {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}


/* عزل الأقسام عن الهيدر المثبت */
[id] {
  scroll-margin-top: 92px;
}

/* ===== Fix: Mobile header background/stacking ===== */
@media (max-width: 768px) {
  .header-fixed {
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px -20px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html.dark .header-fixed {
    background-color: #0f172a !important;
  }
}

/* ===== Medium screens font size adjustment ===== */
@media (min-width: 768px) {
  .md\:text-4xl {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}


/* ===== Footer redesign ===== */
.footer-mobile {
  background: #0b1320;
  color: #fff
}

.footer-mobile .title {
  font-weight: 800;
  margin-bottom: .5rem
}

.footer-mobile .muted {
  color: rgba(255, 255, 255, .75)
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: rgba(198, 255, 0, .6);
  box-shadow: 0 8px 25px rgba(198, 255, 0, .3), 0 0 20px rgba(62, 235, 190, .2);
  background: rgba(198, 255, 0, .1);
}

.footer-social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(198, 255, 0, .2), rgba(62, 235, 190, .2));
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: inherit;
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a i {
  position: relative;
  z-index: 2;
  font-size: 18px;
  color: rgba(255, 255, 255, .8);
  transition: color .3s ease;
}

.footer-social a:hover i {
  color: #c6ff00;
  text-shadow: 0 0 10px rgba(198, 255, 0, .5);
}

/* Responsive social icons */
@media (max-width: 640px) {
  .footer-social {
    gap: 8px;
    justify-content: center;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }

  .footer-social a i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .footer-social {
    gap: 6px;
    max-width: 100%;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-social a i {
    font-size: 14px;
  }
}

.footer-qr {
  width: 164px;
  height: 164px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #0f172a
}

/* Desktop Footer Layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Mobile Footer Layout */
@media(max-width:768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ===== Theme toggle visibility ===== */
.float-btn.theme {
  background: linear-gradient(135deg, #111827, #1f2937);
  border-color: rgba(255, 255, 255, .2);
}

html.light .float-btn.theme {
  background: linear-gradient(135deg, #3eebbe, #c6ff00);
  color: #0b0f14;
}

/* Header theme button */
#themeToggleHdr {
  background: linear-gradient(135deg, #3eebbe, #c6ff00);
  color: #0b0f14;
  border: none;
}

html.dark #themeToggleHdr {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}

/* ===== Unified Icon System ===== */
.icon-primary {
  color: #3eebbe;
  transition: all 0.3s ease;
}

.icon-secondary {
  color: #c6ff00;
  transition: all 0.3s ease;
}

.icon-gradient {
  background: linear-gradient(135deg, #3eebbe, #c6ff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(62, 235, 190, 0.1), rgba(198, 255, 0, 0.1));
  border: 1px solid rgba(62, 235, 190, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-container:hover {
  background: linear-gradient(135deg, rgba(62, 235, 190, 0.2), rgba(198, 255, 0, 0.2));
  border-color: rgba(62, 235, 190, 0.4);
  transform: scale(1.05);
}

.icon-container i {
  font-size: 20px;
  color: #3eebbe;
}

.icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.icon-large i {
  font-size: 24px;
}

.icon-small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.icon-small i {
  font-size: 16px;
}

/* ===== Process Icons - Matching Features Style ===== */
.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(62, 235, 190, 0.2), rgba(198, 255, 0, 0.2));
  border: 1px solid rgba(62, 235, 190, 0.4);
}

.process-icon:hover {
  background: linear-gradient(135deg, rgba(62, 235, 190, 0.3), rgba(198, 255, 0, 0.3));
  border-color: rgba(62, 235, 190, 0.6);
  transform: scale(1.05);
}

.process-icon i {
  font-size: 24px;
  color: #3eebbe;
  transition: all 0.3s ease;
}

.process-icon:hover i {
  transform: scale(1.1);
}


/* Process number badges - distinct from card icons */
.process-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: white;
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.process-number:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Stats icons */
.stats-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #3eebbe, #c6ff00);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.stats-icon:hover::before {
  opacity: 0.2;
}

.stats-icon i {
  font-size: 28px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.stats-icon:hover i {
  transform: scale(1.1);
}

/* Stats symbol badges */
.stats-symbol {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: white;
  position: absolute;
  top: -8px;
  right: -8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.stats-symbol:hover {
  transform: scale(1.1);
}

/* Light mode stats adjustments */
html.light .stats-icon {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

html.light .stats-icon i {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dark mode stats adjustments */
html.dark .stats-icon {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

html.dark .stats-icon i {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== Font Size and Weight Updates ===== */
.font-black {
  font-weight: 700 !important;
}

@media (max-width: 640px) {
  .font-black {
    font-size: 2rem !important;
    line-height: 1 !important;
  }
}

/* ===== FAQ Cards - Accordion Style ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-card.active {
  border-color: #3eebbe;
  box-shadow: 0 4px 12px rgba(62, 235, 190, 0.15);
}

.faq-question {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
  transition: all 0.3s ease;
}

.faq-card.active .faq-question {
  color: #3eebbe;
}

.faq-icon {
  transition: all 0.3s ease;
  color: #6b7280;
  font-size: 14px;
}

.faq-card.active .faq-icon {
  transform: rotate(180deg);
  color: #3eebbe;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f9fafb;
}

.faq-card.active .faq-answer {
  max-height: 350px;
  padding: 0 20px 20px 20px;
}

.faq-answer p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Dark mode FAQ styles */
html.dark .faq-card {
  background: #1e293b;
  border-color: #334155;
}

html.dark .faq-card.active {
  border-color: #3eebbe;
  box-shadow: 0 4px 12px rgba(62, 235, 190, 0.2);
}

html.dark .faq-question {
  color: #f1f5f9;
}

html.dark .faq-card.active .faq-question {
  color: #3eebbe;
}

html.dark .faq-answer {
  background: #0f172a;
}

html.dark .faq-answer p {
  color: #cbd5e1;
}

/* ===== Theme-based Image Switching ===== */
.light-image {
  display: block;
}

.dark-image {
  display: none;
}

html.dark .light-image {
  display: none;
}

html.dark .dark-image {
  display: block;
}

/* Store Cards Styles */
.store-card {
  display: block;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.dark .store-card {
  background: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(62, 235, 190, 0.1);
}

.store-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.store-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.store-card:hover .store-card__image {
  transform: scale(1.1);
}

.store-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-direction: row-reverse;
}

.store-card:hover .store-card__overlay {
  opacity: 1;
}

.store-card__view-text {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.store-card__icon {
  color: #3eebbe;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.store-card:hover .store-card__icon {
  transform: translateX(-5px);
}

.store-card__content {
  padding: 1.5rem;
}

.store-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.dark .store-card__title {
  color: #f1f5f9;
}

.store-card:hover .store-card__title {
  color: #3eebbe;
}

.store-card__description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.dark .store-card__description {
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
  .store-card__image-wrapper {
    height: 200px;
  }

  .store-card__content {
    padding: 1rem;
  }

  .store-card__title {
    font-size: 1.1rem;
  }

  .store-card__description {
    font-size: 0.8rem;
  }
}

/* === Patch: Shared Enhancements === */
:root {
  --brand: #c6ff00;
  --teal: #3eebbe;
  --ink: #0b0f14;
}

html {
  scroll-behavior: smooth
}

/* Mirror shine on buttons */
.btn-shine {
  position: relative;
  overflow: hidden
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -120%;
  width: 200%;
  height: 300%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: transform .6s ease;
  pointer-events: none;
}

.btn-shine:hover::after {
  transform: translateX(120%) skewX(-20deg)
}

/* Card hover animation */
.card-animate {
  transition: transform .3s ease, box-shadow .3s ease
}

.card-animate:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .35)
}

/* Floating action buttons */
.float-stack {
  position: fixed;
  left: 1rem;
  bottom: 1.3rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.float-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(17, 24, 39, .25);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45), inset 0 0 0 3px rgba(0, 0, 0, .06)
}

.float-btn i {
  color: #fff;
  font-size: 22px
}

.float-btn.phone {
  background: #c6ff00;
  color: #203106;
  --ring: rgba(198, 255, 0, .45)
}

.float-btn.whatsapp {
  background: #25D366;
  color: #0b2916;
  --ring: rgba(37, 211, 102, .42)
}

.float-btn.theme {
  background: #111827
}

/* triple pulse */
.float-btn.pulse {
  overflow: visible
}

.float-btn.pulse .ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 3px solid;
  opacity: 0;
  transform: scale(.8)
}

.float-btn.pulse .r1 {
  border-color: rgba(62, 235, 190, .55);
  animation: r1 1.8s ease-out infinite
}

.float-btn.pulse .r2 {
  border-color: rgba(198, 255, 0, .55);
  animation: r2 1.8s ease-out infinite .25s
}

.float-btn.pulse .r3 {
  border-color: rgba(62, 235, 190, .35);
  animation: r3 1.8s ease-out infinite .5s
}

@keyframes r1 {
  0% {
    opacity: .7;
    transform: scale(.8)
  }

  70% {
    opacity: .15
  }

  100% {
    opacity: 0;
    transform: scale(1.45)
  }
}

@keyframes r2 {
  0% {
    opacity: .7;
    transform: scale(.8)
  }

  70% {
    opacity: .12
  }

  100% {
    opacity: 0;
    transform: scale(1.55)
  }
}

@keyframes r3 {
  0% {
    opacity: .7;
    transform: scale(.8)
  }

  70% {
    opacity: .10
  }

  100% {
    opacity: 0;
    transform: scale(1.65)
  }
}

/* Back to top */
#toTop {
  position: fixed;
  right: 1rem;
  bottom: 1.3rem;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: #0b0f14;
  font-weight: 900;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45);
  transition: all .3s ease;
  z-index: 60;
  cursor: pointer;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .float-stack {
    left: .8rem;
    bottom: 1rem;
    padding-bottom: 30px;
  }

  #toTop {
    right: .8rem;
    bottom: 1rem
  }
}

/* Flying Bird Animation - Optimized */
.flying-bird {
  position: fixed;
  top: 20%;
  left: -180px;
  z-index: 1000;
  width: 75px;
  height: 55px;
  animation: flyLeftToRight 20s ease-in-out infinite;
  will-change: transform;
}

.bird-body {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #c6ff00, #3eebbe);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.bird-head {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #bed632, #2dd4bf);
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 26px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.bird-beak {
  width: 0;
  height: 0;
  border-left: 14px solid #f59e0b;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  position: absolute;
  top: 11px;
  left: 45px;
}

.bird-wing {
  width: 35px;
  height: 28px;
  background: linear-gradient(135deg, #a3e635, #10b981);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  top: 4px;
  left: 10px;
  animation: wingFlap 0.5s ease-in-out infinite;
  z-index: 1;
}

.bird-wing-2 {
  width: 30px;
  height: 24px;
  background: linear-gradient(135deg, #84cc16, #059669);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  top: 8px;
  left: 15px;
  animation: wingFlap 0.5s ease-in-out infinite 0.25s;
  z-index: 2;
}

.bird-tail {
  width: 22px;
  height: 15px;
  background: linear-gradient(135deg, #84cc16, #059669);
  border-radius: 0 50% 50% 0;
  position: absolute;
  top: 15px;
  left: -15px;
}

.bird-eye {
  width: 7px;
  height: 7px;
  background: #1f2937;
  border-radius: 50%;
  position: absolute;
  top: 6px;
  left: 14px;
}

@keyframes flyLeftToRight {
  0% {
    left: -180px;
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }

  80% {
    left: calc(100vw - 60px);
    transform: translateY(-12px) rotate(1deg);
    opacity: 1;
  }

  100% {
    left: calc(100vw + 60px);
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
}

@keyframes wingFlap {

  0%,
  100% {
    transform: scaleY(1) rotate(0deg) scaleX(1);
  }

  25% {
    transform: scaleY(0.8) rotate(3deg) scaleX(1.1);
  }

  50% {
    transform: scaleY(0.5) rotate(8deg) scaleX(1.2);
  }

  75% {
    transform: scaleY(0.7) rotate(4deg) scaleX(1.1);
  }
}

/* Mobile Bird Speed */
@media (max-width: 768px) {
  .flying-bird {
    animation: flyLeftToRight 20s ease-in-out infinite;
  }
}

.partners-marquee {
  position: relative;
  overflow: hidden;
  padding-block: 10px;
}

.partners-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  animation: partners-scroll var(--partners-speed, 40s) linear infinite;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

.partners-marquee .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .8;
  transition: filter .2s, opacity .2s, transform .2s;
}

.partners-marquee .logo img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

/* Back Button Responsive Styles */
@media (max-width: 768px) {
  .back-button {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.75rem !important;
  }

  .back-button i {
    font-size: 0.875rem !important;
    margin-left: 0.5rem !important;
  }

  .back-button-text {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .back-button {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.5rem !important;
  }

  .back-button i {
    font-size: 0.75rem !important;
    margin-left: 0.25rem !important;
  }
}