/* =============================================
   HAMEX TECHNOLOGIES â€” PREMIUM STYLESHEET
   Dark + Neon | Glassmorphism | Minimal
============================================= */

@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ---- VARIABLES ---- */
:root {
  --cyan: #06b6d4;
  --cyan-glow: rgba(6,182,212,0.25);
  --violet: #7c3aed;
  --violet-glow: rgba(124,58,237,0.25);
  --green: #10b981;
  --bg: #040810;
  --bg2: #080f1c;
  --bg3: #0d1526;
  --surface: rgba(13,21,38,0.7);
  --surface2: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(6,182,212,0.3);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --nav-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 10px; }

/* ---- SELECTION ---- */
::selection { background: var(--cyan-glow); color: var(--cyan); }

/* ===================== PRELOADER ===================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  animation: pulse-logo 1.2s ease-in-out infinite;
}
.preloader-logo span { color: var(--cyan); }
.preloader-bar {
  width: 200px; height: 3px;
  background: var(--surface2);
  border-radius: 10px; overflow: hidden; margin: 0 auto;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 10px;
  animation: fillBar 1.8s ease-in-out forwards;
}
@keyframes fillBar { from { width: 0; } to { width: 100%; } }
@keyframes pulse-logo { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* ===================== TYPOGRAPHY ===================== */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 4rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0; transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,182,212,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(4,8,16,0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: #fff; flex-shrink: 0;
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
}
.nav-cta { margin-left: 1rem; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 34px; padding: 4px; margin-left: auto;
}
.burger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text); transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem 2rem 1.5rem;
  background: rgba(4,8,16,0.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: 10px;
  font-weight: 500; color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: var(--surface2); color: var(--cyan); }

/* ===================== SECTIONS ===================== */
.section { padding: 7rem 0; }
.section-dark { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 60%),
              linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: drift 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: rgba(124,58,237,0.12); top: 10%; left: 5%; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: rgba(6,182,212,0.10); top: 60%; right: 10%; animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: rgba(16,185,129,0.07); bottom: 10%; left: 40%; animation-delay: -5s; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-20px); } }

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 8px 18px; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--cyan); border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-dim);
  line-height: 1.7; margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  max-width: fit-content;
}
.stat-item { text-align: center; }
.stat-item span.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--cyan);
}
.stat-item > span:not(.stat-num) {
  font-size: 2rem; font-weight: 800; color: var(--cyan);
}
.stat-item p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual { position: relative; z-index: 1; }
.hero-card-wrapper { position: relative; }
.hero-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 0 80px rgba(6,182,212,0.2), 0 0 160px rgba(124,58,237,0.1);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floating-card {
  position: absolute;
  background: rgba(13,21,38,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}
.floating-card i { color: var(--cyan); font-size: 1.1rem; }
.card-1 { top: 12%; left: -10%; animation-delay: -1s; }
.card-2 { top: 50%; right: -8%; animation-delay: -2s; }
.card-3 { bottom: 12%; left: 5%; animation-delay: -3s; }
.card-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-muted);
  animation: float 2.5s ease-in-out infinite;
  z-index: 1;
}
.scroll-dot {
  width: 24px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px; position: relative;
}
.scroll-dot::after {
  content: ''; position: absolute;
  width: 4px; height: 8px;
  background: var(--cyan); border-radius: 2px;
  top: 5px; left: 50%; transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { opacity:1; top:5px; } 50% { opacity:0; top:20px; } }

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15), transparent 70%);
  border-radius: var(--radius-lg);
}
.about-code-block {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,182,212,0.1);
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.code-title { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }
.about-code-block pre {
  padding: 1.5rem 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem; line-height: 2;
  overflow-x: auto;
}
.c-kw { color: #c084fc; }
.c-key { color: var(--cyan); }
.c-str { color: #86efac; }
.c-num { color: #fb923c; }
.c-fun { color: #fde68a; }
.about-badge-floating {
  position: absolute; bottom: -20px; right: -20px;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.about-badge-floating i { font-size: 1.8rem; color: #f59e0b; }
.about-badge-floating strong { display: block; font-size: 0.9rem; }
.about-badge-floating small { color: var(--text-muted); font-size: 0.75rem; }
.about-text { color: var(--text-dim); line-height: 1.8; margin-bottom: 1rem; }
.about-text strong { color: var(--cyan); }
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2rem;
}
.pillar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
  font-size: 0.9rem; font-weight: 500;
  transition: border-color 0.3s;
}
.pillar:hover { border-color: var(--cyan); }
.pillar i { color: var(--cyan); font-size: 1.1rem; }

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.service-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
}
.service-card:hover .card-glow { opacity: 1; }
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(6,182,212,0.07), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.featured-card {
  border-color: rgba(6,182,212,0.4);
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(124,58,237,0.06));
}
.featured-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  letter-spacing: 0.06em;
}
.service-icon {
  width: 56px; height: 56px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon i { font-size: 1.5rem; color: var(--cyan); }
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.service-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-tags li {
  font-size: 0.72rem; font-weight: 600;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 10px; border-radius: 100px;
}

/* ===================== PORTFOLIO ===================== */
.filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
  padding: 8px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(6,182,212,0.08);
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover { border-color: var(--cyan); transform: translateY(-6px); }
.project-card.hidden { display: none; }
.project-img { position: relative; height: 200px; overflow: hidden; }
.project-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color1), var(--color2));
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85;
}
.project-placeholder i { font-size: 4rem; color: rgba(255,255,255,0.3); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(4,8,16,0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-info { padding: 1.5rem; }
.project-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.project-tags span {
  font-size: 0.7rem; font-weight: 600;
  color: var(--violet);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 3px 10px; border-radius: 100px;
}
.project-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.project-info p { font-size: 0.87rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 1rem; }
.project-stats { display: flex; gap: 1rem; }
.pstat {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
}
.pstat i { color: var(--cyan); font-size: 0.75rem; }

/* ===================== WHY US ===================== */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.why-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.why-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
}
.why-icon i { font-size: 1.6rem; color: var(--cyan); }
.why-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem;
}
.why-card p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; }

/* ===================== CLIENT TYPES ===================== */
.clients-section { background: var(--bg); }
.client-types-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.client-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.client-type-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.client-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.client-type-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.client-type-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex; gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
  min-width: 100%; max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}
.stars { font-size: 1.25rem; margin-bottom: 1.25rem; }
.testimonial-card > p {
  font-size: 1rem; color: var(--text-dim);
  line-height: 1.8; margin-bottom: 1.75rem;
  font-style: italic;
}
.testimonial-card > p::before { content: '"'; }
.testimonial-card > p::after { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c), rgba(255,255,255,0.2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { font-size: 0.8rem; color: var(--text-muted); }
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2rem;
}
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.slider-dots { display: flex; gap: 6px; }
.slider-dot-item {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, width 0.3s;
  cursor: pointer;
}
.slider-dot-item.active { background: var(--cyan); width: 24px; border-radius: 4px; }

/* ===================== PROCESS ===================== */
.process-timeline {
  display: flex; flex-direction: column; gap: 0;
  max-width: 680px; margin: 0 auto;
}
.process-step {
  display: grid; grid-template-columns: 60px 56px 1fr;
  align-items: start; gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: rgba(6,182,212,0.15);
  line-height: 1;
  padding-top: 12px;
}
.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-icon i { font-size: 1.3rem; color: var(--cyan); }
.step-content { padding-top: 12px; }
.step-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem;
}
.step-content p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }
.step-connector {
  position: absolute;
  left: calc(60px + 1.5rem + 27px);
  top: 68px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, rgba(6,182,212,0.3), transparent);
}

/* ===================== PRICING ===================== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: start;
  margin-bottom: 3rem;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.featured-pricing {
  border-color: rgba(6,182,212,0.4);
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(124,58,237,0.06));
  transform: scale(1.03);
}
.featured-pricing:hover { transform: scale(1.03) translateY(-4px); }
.pricing-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; white-space: nowrap;
}
.pricing-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.25rem;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
}
.pricing-icon i { font-size: 1.4rem; color: var(--cyan); }
.pricing-badge {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  display: inline-block; margin-bottom: 0.75rem;
}
.pricing-badge.basic { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid #334155; }
.pricing-badge.standard { background: rgba(6,182,212,0.1); color: var(--cyan); border: 1px solid rgba(6,182,212,0.3); }
.pricing-badge.premium { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.pricing-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem;
}
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 0.75rem; }
.price-from { font-size: 0.8rem; color: var(--text-muted); }
.price-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 800; color: var(--cyan);
}
.pricing-desc { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1.5rem; line-height: 1.6; }
.pricing-features { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text-dim);
}
.pricing-features li i.fa-check { color: var(--green); font-size: 0.8rem; }
.pricing-features li.disabled { opacity: 0.4; }
.pricing-features li.disabled i.fa-xmark { color: var(--text-muted); font-size: 0.8rem; }
.custom-quote {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.custom-quote p { font-size: 1.05rem; color: var(--text-dim); }

/* ===================== CONTACT ===================== */
.contact-section { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon i { font-size: 1.2rem; color: var(--cyan); }
.contact-icon.whatsapp { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }
.contact-icon.whatsapp i { color: var(--green); }
.contact-icon.map { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2); }
.contact-icon.map i { color: #f59e0b; }
.contact-item h5 { font-weight: 700; margin-bottom: 2px; font-size: 0.9rem; }
.contact-item a, .contact-item span { font-size: 0.9rem; color: var(--text-dim); }
.contact-item a:hover { color: var(--cyan); }
.contact-socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.95rem;
  transition: var(--transition);
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(6,182,212,0.08); }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-group select option { background: var(--bg3); color: var(--text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 10px; padding: 14px 18px;
  color: var(--green); font-size: 0.9rem;
  margin-top: 1rem;
}
.form-success i { font-size: 1.1rem; }

/* ===================== FOOTER ===================== */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer-glow-top {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer-brand p {
  color: var(--text-muted); font-size: 0.88rem;
  line-height: 1.7; margin: 1rem 0 1.5rem;
  max-width: 280px;
}
.footer-logo { font-size: 1.25rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem;
  transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 1.25rem; color: var(--text);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a {
  font-size: 0.87rem; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-availability {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 6px 14px; border-radius: 100px;
  margin-top: 1rem;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: blink 1.5s infinite;
  box-shadow: 0 0 6px var(--green);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--text-muted);
}

/* ===================== CHATBOT ===================== */
.chatbot-widget {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 900;
}
.chatbot-toggle {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  padding: 14px 20px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 8px 32px rgba(6,182,212,0.4);
  transition: var(--transition);
  position: relative;
}
.chatbot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6,182,212,0.55);
}
.chatbot-ping {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px var(--green);
}
.chatbot-label { font-size: 0.85rem; }
.chatbot-icon-wrap i { font-size: 1.1rem; }
.chatbot-panel {
  position: absolute; bottom: calc(100% + 16px); right: 0;
  width: 360px;
  background: rgba(8,15,28,0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(6,182,212,0.1);
  display: none;
  flex-direction: column;
  max-height: 480px;
}
.chatbot-panel.open { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.chatbot-header {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6,182,212,0.05);
}
.chatbot-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 1.1rem; color: #fff;
}
.chatbot-status-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg2);
  animation: blink 1.5s infinite;
}
.chatbot-header strong { display: block; font-size: 0.9rem; }
.chatbot-header span { font-size: 0.75rem; color: var(--text-muted); }
.chatbot-close-btn {
  margin-left: auto; color: var(--text-muted);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.chatbot-close-btn:hover { background: var(--surface2); color: var(--text); }
.chatbot-messages {
  flex: 1; padding: 1rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem; line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-typing .chat-bubble {
  display: flex; gap: 4px; align-items: center; padding: 12px 16px;
}
.chat-typing .dot-1, .chat-typing .dot-2, .chat-typing .dot-3 {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing .dot-2 { animation-delay: 0.2s; }
.chat-typing .dot-3 { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.chat-quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.25rem;
}
.quick-reply {
  padding: 6px 12px;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; color: var(--cyan);
  background: rgba(6,182,212,0.06);
  transition: background 0.2s;
}
.quick-reply:hover { background: rgba(6,182,212,0.15); }
.chatbot-input-wrap {
  display: flex; gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}
.chatbot-input-wrap input {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); padding: 10px 14px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  outline: none;
}
.chatbot-input-wrap input:focus { border-color: var(--cyan); }
#chatbotSend {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
#chatbotSend:hover { transform: scale(1.08); }

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 800;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}
.back-to-top.visible {
  opacity: 1; visibility: visible;
}
.back-to-top:hover {
  border-color: var(--cyan); color: var(--cyan);
  transform: translateY(-3px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .client-types-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; gap: 1rem; }
  .featured-pricing { transform: none; }
  .featured-pricing:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .client-types-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  
  /* General Spacing & Centering */
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .section-title { font-size: 2.2rem; text-align: center; }
  .preloader-logo { font-size: 2.2rem; }
  .section-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .section-label { margin: 0 auto 1rem auto; }

  /* Hero Tweaks */
  #hero { padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-badge { margin: 0 auto 1.5rem auto; }
  .hero-title { font-size: 2.5rem; line-height: 1.2; text-align: center; }
  .hero-sub { font-size: 1rem; margin: 0 auto 2rem auto; text-align: center; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 1rem; margin: 0 auto 3rem auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { 
    width: 100%; max-width: 100%;
    flex-direction: row; justify-content: space-evenly;
    padding: 1.25rem 1rem; 
  }
  .stat-divider { width: 1px; height: 40px; }

  /* About Tweaks */
  .about-visual { display: flex; flex-direction: column; gap: 1rem; position: relative; }
  .about-badge-floating { 
    position: static; 
    width: 100%; justify-content: center; 
    box-shadow: none; border: 1px solid var(--border);
  }
  .about-code-block pre { padding: 1.25rem 1rem; font-size: 0.8rem; }
  .about-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .about-text { text-align: center; }
  .about-pillars { grid-template-columns: 1fr; width: 100%; }

  /* Other Sections */
  .service-card { padding: 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
  .service-tags { justify-content: center; }
  .project-info { padding: 1.25rem; text-align: center; }
  .project-tags { justify-content: center; }
  .project-stats { justify-content: center; }
  .why-card { padding: 1.5rem; }
  .testimonial-card { padding: 1.5rem; }
  .contact-form { padding: 1.5rem; }
  
  .chatbot-panel { width: calc(100vw - 3rem); max-width: 350px; right: 0; }
  
  /* Modals */
  .cs-modal { padding: 1.5rem; }
  .cs-content h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .client-types-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  
  .hero-title { font-size: 2.1rem; }
  .hero-stats { flex-direction: column; gap: 1.25rem; align-items: center; }
  .stat-divider { width: 80px; height: 1px; }
  
  .chatbot-widget { bottom: 1rem; right: 1rem; }
  .back-to-top { bottom: 1rem; left: 1rem; }
}

/* ===================== CASE STUDY MODAL ===================== */
.cs-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(4, 9, 20, 0.85); backdrop-filter: blur(8px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cs-modal-overlay.open { opacity: 1; pointer-events: auto; }

.cs-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto;
  position: relative; padding: 2.5rem; transform: translateY(20px);
  transition: transform 0.3s ease;
}
.cs-modal-overlay.open .cs-modal { transform: translateY(0); }

.cs-close-btn {
  position: absolute; top: 1rem; right: 1rem; background: var(--surface-light);
  border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s ease;
}
.cs-close-btn:hover { background: var(--surface-hover); color: var(--white); transform: rotate(90deg); }

.cs-content h2 { margin-bottom: 0.5rem; font-size: 2rem; color: var(--white); }
.cs-content h3 { color: var(--cyan); margin-top: 1.5rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;}
.cs-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.cs-content ul { list-style: none; margin-bottom: 1.5rem; }
.cs-content li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.cs-content li i { color: var(--cyan); margin-top: 0.25rem; font-size: 0.9rem;}
