/* ==================================================
   SWADI — Futuristic Portfolio Styles
   ================================================== */

:root {
  --bg: #0a0a0f;
  --bg-deep: #050509;
  --bg-card: #111118;
  --cyber-blue: #00d4ff;
  --cyber-purple: #8b5cf6;
  --cyber-green: #00ff88;
  --cyber-pink: #ff006e;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg-deep);
  color: #fff;
  overflow-x: clip;
}
body { cursor: none; }

/* Lenis smooth-scroll required styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* RTL adjustments */
html[dir="rtl"] body { font-family: "Cairo", sans-serif !important; }
html[dir="rtl"] .font-display { font-family: "Cairo", sans-serif !important; font-weight: 900; }
html[dir="rtl"] .font-mono { font-family: "JetBrains Mono", monospace !important; }

/* Selection */
::selection { background: var(--cyber-blue); color: #000; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyber-blue), var(--cyber-purple));
  border-radius: 4px;
}

/* ==================================================
   LOADING SCREEN
   ================================================== */
#loader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.loader-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--cyber-blue) transparent transparent transparent;
  filter: drop-shadow(0 0 10px var(--cyber-blue));
}
.loader-ring div:nth-child(1) { animation-delay: -0.45s; border-color: var(--cyber-purple) transparent transparent transparent; filter: drop-shadow(0 0 10px var(--cyber-purple)); }
.loader-ring div:nth-child(2) { animation-delay: -0.3s; border-color: var(--cyber-green) transparent transparent transparent; filter: drop-shadow(0 0 10px var(--cyber-green)); }
.loader-ring div:nth-child(3) { animation-delay: -0.15s; }

@keyframes loader-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-logo {
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,212,255,0.5)); }
  50% { filter: drop-shadow(0 0 25px rgba(139,92,246,0.8)); }
}

.loader-bar {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple), var(--cyber-green));
  animation: load 2s ease-in-out infinite;
}
@keyframes load {
  0% { width: 0; transform: translateX(0); }
  50% { width: 100%; transform: translateX(0); }
  100% { width: 100%; transform: translateX(100%); }
}

/* ==================================================
   CUSTOM CURSOR
   ================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyber-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyber-blue);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cyber-blue);
  border-radius: 50%;
  transition: transform 0.15s ease-out, width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.active {
  width: 60px;
  height: 60px;
  border-color: var(--cyber-purple);
  background: rgba(139,92,246,0.1);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==================================================
   BACKGROUND GRID
   ================================================== */
.bg-grid {
  background-image:
    linear-gradient(rgba(0,212,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ==================================================
   NAVBAR
   ================================================== */
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--cyber-blue);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.mobile-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}
.mobile-link:hover { color: var(--cyber-blue); }

/* ==================================================
   BUTTONS
   ================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35), inset 0 0 15px rgba(255,255,255,0.08);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,212,255,0.55), inset 0 0 20px rgba(255,255,255,0.15); }
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.35s;
}
.btn-secondary:hover {
  border-color: var(--cyber-purple);
  background: rgba(139,92,246,0.1);
  box-shadow: 0 0 25px rgba(139,92,246,0.35);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid rgba(0,212,255,0.4);
  color: var(--cyber-blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 10px;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(37,211,102,0.4);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 5px 30px rgba(37,211,102,0.6); }

/* ==================================================
   HERO
   ================================================== */
.float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  font-family: "Orbitron", sans-serif;
  color: var(--cyber-blue);
  text-shadow: 0 0 20px var(--cyber-blue);
  animation: float 6s ease-in-out infinite;
}
.float-icon:nth-child(2n) { color: var(--cyber-purple); text-shadow: 0 0 20px var(--cyber-purple); animation-delay: -1.5s; animation-duration: 8s; }
.float-icon:nth-child(3n) { color: var(--cyber-green); text-shadow: 0 0 20px var(--cyber-green); animation-delay: -3s; animation-duration: 10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, -30px) rotate(-5deg); }
  75% { transform: translate(15px, -10px) rotate(3deg); }
}

/* Glitch */
.glitch-text {
  position: relative;
}

.type-cursor {
  color: var(--cyber-blue);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Scroll mouse */
.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--cyber-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyber-blue);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ==================================================
   REVEAL ANIMATIONS
   ================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================================================
   ABOUT
   ================================================== */
.card-3d {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-3d:hover { transform: perspective(1000px) rotateY(-6deg) rotateX(6deg) scale(1.02); }

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--cyber-blue);
  filter: drop-shadow(0 0 6px var(--cyber-blue));
}
.corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.05);
  color: rgba(255,255,255,0.8);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  border-radius: 999px;
  transition: all 0.3s;
  cursor: default;
}
.chip:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyber-blue);
  color: #fff;
  box-shadow: 0 0 15px rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

/* ==================================================
   SERVICE CARDS
   ================================================== */
.service-card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17, 17, 24, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0,212,255,0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--cyber-blue), transparent, var(--cyber-purple), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 20px 60px rgba(0,212,255,0.15);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(0,212,255,0.2);
  filter: drop-shadow(0 0 15px rgba(0,212,255,0.35));
  transition: transform 0.4s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-6deg); }

.service-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.service-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--cyber-blue);
  letter-spacing: 1px;
  transition: all 0.3s;
}
.service-link:hover { color: var(--cyber-green); text-shadow: 0 0 10px var(--cyber-green); }

/* ==================================================
   PRODUCT CARDS
   ================================================== */
.product-card {
  position: relative;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(17, 17, 24, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(0,212,255,0.3); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

.product-card-featured {
  border-color: rgba(139,92,246,0.35);
  background: linear-gradient(145deg, rgba(139,92,246,0.08), rgba(17,17,24,0.6));
  box-shadow: 0 0 40px rgba(139,92,246,0.2);
}
.product-card-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-blue), var(--cyber-green));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 4s linear infinite;
}
@keyframes border-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.product-mockup {
  position: relative;
}
.product-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,255,0.03) 2px, rgba(0,212,255,0.03) 4px);
  pointer-events: none;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,255,136,0.15);
  color: var(--cyber-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,255,136,0.3);
}

/* ==================================================
   PORTFOLIO
   ================================================== */
.filter-btn {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(17,17,24,0.4);
  color: rgba(255,255,255,0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 999px;
  transition: all 0.3s;
}
.filter-btn:hover { border-color: rgba(0,212,255,0.5); color: #fff; }
.filter-btn.active {
  background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.project-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,17,24,0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card.hide { display: none; }
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 20px 60px rgba(139,92,246,0.2);
}

.project-thumb {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(139,92,246,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.015) 8px, rgba(255,255,255,0.015) 16px);
  z-index: 2;
  pointer-events: none;
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,15,0.7));
  z-index: 2;
  pointer-events: none;
}
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: saturate(1.05);
}
.project-card:hover .project-thumb img {
  transform: scale(1.08);
}

.project-body { padding: 24px; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.project-tags span {
  padding: 3px 10px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyber-blue);
  border-radius: 999px;
  text-transform: uppercase;
}
.project-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #fff;
}
.project-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--cyber-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.project-link:hover { text-shadow: 0 0 10px var(--cyber-green); }

/* ==================================================
   CONTACT
   ================================================== */
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,17,24,0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: all 0.3s;
}
.contact-info-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0,212,255,0.1);
}
html[dir="rtl"] .contact-info-card:hover { transform: translateX(-4px); }

.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(139,92,246,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(0,212,255,0.2);
}
.ci-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.ci-value {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}
a.ci-value:hover { color: var(--cyber-blue); }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(17,17,24,0.5);
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
}
.social-btn:hover {
  border-color: var(--cyber-blue);
  color: var(--cyber-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,212,255,0.25);
}

/* Form fields */
.field label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(5, 5, 9, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyber-blue);
  background: rgba(0,212,255,0.03);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.1), 0 0 20px rgba(0,212,255,0.15);
}
.field select option { background: var(--bg-deep); color: #fff; }
.field textarea { resize: vertical; min-height: 120px; }

/* ==================================================
   FLOATING WHATSAPP
   ================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 6px rgba(37,211,102,0.15);
  transition: all 0.3s;
}
html[dir="rtl"] .float-whatsapp { right: auto; left: 28px; }
.float-whatsapp:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.2); }

.wa-tooltip {
  position: absolute;
  right: 75px;
  padding: 8px 14px;
  background: #0a0a0f;
  border: 1px solid rgba(37,211,102,0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.3s;
}
html[dir="rtl"] .wa-tooltip { right: auto; left: 75px; transform: translateX(-10px); }
.float-whatsapp:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ==================================================
   MISC
   ================================================== */
#scrollProgress { width: 0%; }

/* ==================================================
   DEMO CREDENTIALS HINT (V1 / V2 download cards)
   ================================================== */
.creds-hint {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(0,212,255,0.25);
  background: linear-gradient(90deg, rgba(0,212,255,0.05), rgba(0,212,255,0.02));
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  transition: all 0.3s ease;
}
.creds-hint:hover {
  border-color: rgba(0,212,255,0.45);
  background: linear-gradient(90deg, rgba(0,212,255,0.08), rgba(0,212,255,0.03));
  color: rgba(255,255,255,0.75);
}
.creds-hint svg { color: var(--cyber-blue); flex-shrink: 0; }
.creds-hint .creds-val {
  color: var(--cyber-blue);
  font-weight: 600;
  background: rgba(0,212,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}
.creds-hint .creds-sep { color: rgba(255,255,255,0.25); margin: 0 2px; }

.creds-hint-purple {
  border-color: rgba(139,92,246,0.3);
  background: linear-gradient(90deg, rgba(139,92,246,0.06), rgba(139,92,246,0.02));
}
.creds-hint-purple:hover {
  border-color: rgba(139,92,246,0.5);
  background: linear-gradient(90deg, rgba(139,92,246,0.1), rgba(139,92,246,0.04));
}
.creds-hint-purple svg { color: var(--cyber-purple); }
.creds-hint-purple .creds-val {
  color: var(--cyber-purple);
  background: rgba(139,92,246,0.1);
}

/* ==================================================
   SCROLL INDICATOR — corner placement (no overlap with stats)
   ================================================== */
.scroll-indicator-corner {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
  opacity: 0.85;
}
.scroll-indicator-corner:hover { color: var(--cyber-blue); opacity: 1; }
[dir="rtl"] .scroll-indicator-corner { right: auto; left: 24px; }

/* Hide scroll indicator on shorter or narrower viewports to avoid clutter */
@media (max-height: 780px), (max-width: 640px) {
  .scroll-indicator-corner { display: none; }
}

/* ==================================================
   RESPONSIVE TWEAKS
   ================================================== */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 12px; }
  .service-card, .product-card { padding: 28px 22px; }
}
