/* =========================================================
   VisionQast — style.css
   Dark futuristic theme with glassmorphism + neon gradients
   ========================================================= */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-primary:    #050810;
  --bg-secondary:  #080d1a;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);

  --neon-blue:   #00c6ff;
  --neon-purple: #a855f7;
  --neon-pink:   #ec4899;
  --accent:      #6366f1;

  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-hero: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --gradient-text-val: linear-gradient(135deg, #00c6ff, #a855f7, #ec4899);

  --text-primary:   #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted:     #4a5568;

  --border:        rgba(255,255,255,0.08);
  --border-glow:   rgba(99,102,241,0.4);

  --glass-bg:      rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.1);
  --glass-blur:    blur(20px);

  --shadow-glow: 0 0 30px rgba(99,102,241,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);

  --font-main:    'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  overflow-x: hidden;
}

*, *::before, *::after {
  min-width: 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hide default cursor on mouse devices only */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ── Particles Canvas ───────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Custom Cursor ──────────────────────────────────────── */

/* Small dot — snaps instantly to mouse */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--neon-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
  box-shadow: 0 0 8px var(--neon-blue);
  will-change: left, top;
}

/* Outer ring — follows with smooth lag */
#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(99, 102, 241, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease,
              opacity 0.3s ease;
  will-change: left, top;
}

/* Ambient glow — large soft light behind cursor */
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  will-change: left, top;
}

/* Hover state — cursor expands on interactive elements */
body.cursor-hover #cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}

body.cursor-hover #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(168, 85, 247, 0.06);
}

body.cursor-hover #cursor-glow {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(168,85,247,0.10) 0%, transparent 70%);
}

/* Click state */
body.cursor-click #cursor-dot {
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: 0 0 16px #fff;
}

body.cursor-click #cursor-ring {
  width: 28px;
  height: 28px;
  border-color: rgba(255,255,255,0.8);
}

/* Hide on touch/mobile */
@media (hover: none) and (pointer: coarse) {
  #cursor-dot, #cursor-ring, #cursor-glow { display: none; }
}

/* ── Loading Screen ─────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }

/* .loader-logo text class removed — replaced by .loader-logo-img */

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-text-val);
  border-radius: 2px;
  animation: loadFill 2s ease forwards;
}

@keyframes loadFill { to { width: 100%; } }

/* ── Scroll to Top ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

#scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(99,102,241,0.6); }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Shared ─────────────────────────────────────── */
.section { padding: 7rem 0; position: relative; z-index: 2; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--neon-blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ── Gradient Text ──────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-text-val);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-outline {
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,198,255,0.15);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

.btn-glow:hover {
  box-shadow: 0 0 40px rgba(99,102,241,0.7), 0 8px 30px rgba(99,102,241,0.4);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ── Glass Card ─────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
}

/* ── AOS Animations ─────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0);
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5,8,16,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-logo span { color: var(--neon-blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-cta { margin-left: 1rem; white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -200px; left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7, transparent);
  bottom: -150px; right: -100px;
  animation-delay: -3s;
}

.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  top: 30%; left: 50%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,30px) scale(1.1); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(0,198,255,0.08);
  border: 1px solid rgba(0,198,255,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--neon-blue);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,198,255,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(0,198,255,0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.typing-text {
  display: inline-block;
  min-width: 3ch;
  border-right: 3px solid var(--neon-blue);
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  50% { border-color: transparent; }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat { text-align: left; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text-val);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-blue);
}

.stat p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.2rem; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-card-container { position: relative; width: 100%; max-width: 420px; }

.hero-glass-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

.main-card {
  padding: 1.5rem;
  animation: heroCardFloat 4s ease-in-out infinite;
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-dots { display: flex; gap: 6px; }

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.card-title-small { color: var(--text-secondary); font-size: 0.82rem; }

.card-metrics { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.metric { display: flex; align-items: center; gap: 1rem; }

.metric-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-icon.purple { background: rgba(168,85,247,0.15); }
.metric-icon.blue   { background: rgba(0,198,255,0.15); }
.metric-icon.green  { background: rgba(34,197,94,0.15); }

.metric-label { font-size: 0.75rem; color: var(--text-secondary); }
.metric-value { font-size: 0.95rem; font-weight: 700; }

.card-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.bar-wrap {
  flex: 1;
  height: var(--h);
  display: flex;
  align-items: flex-end;
}

.bar {
  width: 100%;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #6366f1, #a855f7);
  animation: barGrow 1.5s ease forwards;
  transform-origin: bottom;
}

.bar.bar-2 { background: linear-gradient(to top, #00c6ff, #0072ff); }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.float-card-1, .float-card-2 {
  position: absolute;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.float-card-1 {
  top: -20px; right: -30px;
  animation: floatCard1 3s ease-in-out infinite;
}

.float-card-2 {
  bottom: -20px; left: -30px;
  animation: floatCard2 3.5s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

@keyframes floatCard2 {
  0%,100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-8px) rotate(-2deg); }
}

.float-icon { font-size: 1.3rem; }

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  z-index: 2;
  animation: fadeInUp 1s 2s ease both;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--neon-blue);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-placeholder {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.05) 60%, transparent 100%);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-illustration { position: relative; }

.ai-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(99,102,241,0.3);
  animation: ringRotate 12s linear infinite;
  top: 50%; left: 50%;
  transform-origin: 50% 50%;
}

.ai-ring.ring-1 { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
.ai-ring.ring-2 { width: 280px; height: 280px; margin: -140px 0 0 -140px; animation-direction: reverse; border-color: rgba(168,85,247,0.25); }
.ai-ring.ring-3 { width: 360px; height: 360px; margin: -180px 0 0 -180px; border-color: rgba(0,198,255,0.2); }

@keyframes ringRotate { to { transform: rotate(360deg); } }

.ai-center-icon {
  font-size: 4rem;
  position: relative;
  z-index: 2;
}

.about-badge-card {
  position: absolute;
  bottom: 10px;
  right: -10px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: var(--radius-md);
}

.badge-icon { font-size: 1.5rem; }
.badge-title { font-weight: 700; font-size: 0.9rem; }
.badge-sub   { font-size: 0.75rem; color: var(--text-secondary); }

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pillar {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.pillar-icon { font-size: 1.5rem; flex-shrink: 0; }
.pillar h4   { font-weight: 600; margin-bottom: 0.3rem; }
.pillar p    { font-size: 0.88rem; color: var(--text-secondary); }
.pillar div  { text-align: left; }

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.about-stat .counter {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text-val);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat span:not(.counter) {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-blue);
}

.about-stat p { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* ── SERVICES ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  group: true;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 20px 60px rgba(99,102,241,0.2);
}

.service-card:hover::before { opacity: 0.06; }

.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: rgba(99,102,241,0.25);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

.service-icon { font-size: 1.5rem; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.service-tags span {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
}

.service-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.service-card:hover .service-arrow {
  color: var(--neon-blue);
  transform: translate(4px, -4px);
}

/* ── PORTFOLIO ──────────────────────────────────────────── */
.portfolio { background: var(--bg-secondary); }

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: var(--gradient-1);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; }

.portfolio-img { position: relative; overflow: hidden; border-radius: var(--radius-lg); }

/* ── Portfolio Placeholder (emoji bg, used when no image) ── */
.portfolio-placeholder {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s ease;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portfolio-placeholder span { filter: drop-shadow(0 0 20px rgba(99,102,241,0.5)); }

/* Placeholder gradient themes — add more using: .my-name { background: linear-gradient(...); } */
.web-1     { background: linear-gradient(135deg, #0f0c29, #302b63); }
.app-1     { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.sec-1     { background: linear-gradient(135deg, #0d0d0d, #1a0a2e); }
.des-1     { background: linear-gradient(135deg, #12001e, #2d0036); }
.web-2     { background: linear-gradient(135deg, #001233, #023e8a); }
.app-2     { background: linear-gradient(135deg, #10002b, #240046); }
.mkt-1     { background: linear-gradient(135deg, #1a0a00, #3d1f00); }
.seo-1     { background: linear-gradient(135deg, #001a0f, #003d23); }
.cloud-1   { background: linear-gradient(135deg, #00001a, #00003d); }

/* ── Real Project Image (use <img> instead of placeholder) ── */
.portfolio-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

.portfolio-card:hover .portfolio-overlay  { opacity: 1; }
.portfolio-card:hover .portfolio-placeholder { transform: scale(1.05); }

/* ── Project tags inside overlay ────────────────────────── */
.portfolio-tags {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.portfolio-tags span {
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: var(--text-secondary);
}

/* ── Portfolio overlay live + github buttons ─────────────── */
.portfolio-btns {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-ghost {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: rgba(0,198,255,0.08);
}

.portfolio-info { text-align: center; padding: 1.5rem; }

.portfolio-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-info p  { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.2rem; }

/* ── WHY CHOOSE US ──────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.35);
  box-shadow: var(--shadow-glow);
}

.why-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(99,102,241,0.4));
}

.why-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.why-card p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── PROCESS ────────────────────────────────────────────── */
.process { background: var(--bg-secondary); }

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
  z-index: 0;
  opacity: 0.4;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.step-content {
  padding: 1.5rem;
  transition: var(--transition);
}

.step-content:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,0.35);
  box-shadow: var(--shadow-glow);
}

.step-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.step-content h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-content p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonial-slider { position: relative; overflow: hidden; }

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-card {
  min-width: calc(33.333% - 1rem);
  padding: 2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.stars { font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author h4 { font-size: 0.92rem; font-weight: 600; }
.testimonial-author p  { font-size: 0.78rem; color: var(--text-secondary); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--gradient-1);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.dot-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.dot-indicator.active {
  background: var(--neon-blue);
  width: 24px;
  border-radius: 4px;
}

/* ── TECHNOLOGIES ───────────────────────────────────────── */
.technologies { background: var(--bg-secondary); overflow: hidden; }

.tech-marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.tech-marquee-wrap::before,
.tech-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 150px;
  z-index: 2;
}

.tech-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), transparent);
}

.tech-marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-secondary), transparent);
}

.tech-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.tech-item:hover {
  color: var(--text-primary);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 15px rgba(99,102,241,0.15);
}

.tech-icon { font-size: 1.2rem; }


/* ── PRICING ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  transform: scale(1.02);
}

.pricing-card.popular:hover { transform: scale(1.02) translateY(-8px); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-header { text-align: center; margin-bottom: 1.5rem; }

.plan-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }

.pricing-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pricing-header p { font-size: 0.85rem; color: var(--text-secondary); }

.pricing-features { margin-bottom: 2rem; }

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.feat-check { color: #22c55e; font-weight: 700; }
.feat-x     { color: var(--text-muted); }
.feat-disabled { opacity: 0.4; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { background: var(--bg-secondary); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: rgba(99,102,241,0.3); }
.faq-item.open  { border-color: rgba(99,102,241,0.4); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  transition: var(--transition);
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--neon-blue);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateX(6px);
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item h4 { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.2rem; }
.contact-item p  { color: var(--text-secondary); font-size: 0.85rem; }

.contact-social {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  color: #fff;
  background: var(--gradient-1);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.map-placeholder {
  padding: 2rem;
  text-align: center;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
}

.map-inner { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.map-icon  { font-size: 2.5rem; }
.map-inner p { font-weight: 600; }
.map-sub { font-size: 0.82rem; color: var(--text-secondary); }

/* Contact Form */
.contact-form {
  padding: 2.5rem;
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-group select {
  appearance: none;
  cursor: pointer;
  color: var(--text-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #0d1117;
  color: #f0f4ff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
  background: rgba(255,255,255,0.06);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition);
  background: transparent;
}

.form-group textarea ~ label { top: 1rem; transform: none; }

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.55rem;
  left: 0.8rem;
  font-size: 0.75rem;
  color: var(--neon-blue);
  padding: 0 0.3rem;
  background: var(--bg-primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.field-error { display: block; font-size: 0.75rem; color: #f87171; margin-top: 0.3rem; min-height: 1em; }

.form-group.error input,
.form-group.error textarea {
  border-color: #f87171;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  color: #22c55e;
  font-size: 0.88rem;
  text-align: center;
}

.form-success.show { display: block; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border); }

.footer-top { padding: 5rem 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.6fr;
  gap: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo span { color: var(--neon-blue); }

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.footer-links-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.footer-links-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-links-col a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links-col a:hover { color: var(--neon-blue); padding-left: 4px; }

.footer-newsletter h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.6rem; }
.footer-newsletter > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.6; }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus { border-color: rgba(99,102,241,0.4); }

.newsletter-success {
  font-size: 0.8rem;
  color: #22c55e;
  margin-top: 0.5rem;
  min-height: 1em;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-inner p { font-size: 0.82rem; color: var(--text-muted); }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: var(--text-muted); transition: var(--transition); }
.footer-legal a:hover { color: var(--neon-blue); }

/* ── Google Review CTA (inside testimonials) ────────────── */
.google-review-cta {
  margin-top: 3rem;
}

.google-review-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  flex-wrap: wrap;
}

.google-stars-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.google-logo { flex-shrink: 0; }

.google-rating-info .google-stars {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #facc15;
  margin-bottom: 0.2rem;
}

.google-rating-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.google-review-text { flex: 1; min-width: 160px; }

.google-review-text h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.google-review-text p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  background: #fff;
  border: 2px solid #dadce0;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: #3c4043;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn-google-review:hover {
  background: #f8f9fa;
  border-color: #aecbfa;
  box-shadow: 0 4px 20px rgba(66,133,244,0.25);
  transform: translateY(-2px);
}

/* ── Floating Google Review Badge ─────────────────────────── */
#google-review-float {
  position: fixed;
  bottom: 2rem;
  left: 1.5rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem 0.6rem 0.8rem;
  background: #fff;
  border: 1.5px solid #dadce0;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  text-decoration: none;
  color: #3c4043;
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
  white-space: nowrap;
}

#google-review-float:hover {
  box-shadow: 0 6px 28px rgba(66,133,244,0.3);
  transform: translateY(-3px) scale(1.04);
  border-color: #aecbfa;
}

.float-review-text { line-height: 1; }

/* Light mode adjustments */
body.light-mode .google-review-inner {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

body.light-mode .google-review-text h3 { color: #0d1423; }
body.light-mode .google-review-text p  { color: #4a5568; }
body.light-mode .google-rating-info p  { color: #64748b; }

/* Responsive */
@media (max-width: 768px) {
  .google-review-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .btn-google-review { width: 100%; justify-content: center; }

  #google-review-float { bottom: 1.25rem; left: 1rem; }
  .float-review-text  { display: none; }
  #google-review-float { padding: 0.65rem; border-radius: 50%; }
}

/* ── AOS delay helpers ──────────────────────────────────── */
[data-aos-delay="100"] { transition-delay: 0.1s !important; }
[data-aos-delay="200"] { transition-delay: 0.2s !important; }
[data-aos-delay="300"] { transition-delay: 0.3s !important; }
[data-aos-delay="400"] { transition-delay: 0.4s !important; }
[data-aos-delay="500"] { transition-delay: 0.5s !important; }
[data-aos-delay="600"] { transition-delay: 0.6s !important; }
[data-aos-delay="700"] { transition-delay: 0.7s !important; }

/* ── fadeInUp keyframe ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE — Full Device Coverage
   320px · 375px · 480px · 600px · 768px · 1024px · 1280px · 1440px+
   ========================================================= */

/* ── Touch devices: disable custom cursor ───────────────── */
@media (hover: none) and (pointer: coarse) {
  body         { cursor: auto; }
  #cursor-glow { display: none; }
}

/* ── Ultra-wide 1920px+ ─────────────────────────────────── */
@media (min-width: 1920px) {
  .container    { max-width: 1440px; }
  .section      { padding: 9rem 0; }
  .hero-title   { font-size: 5rem; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Large Desktop 1440px ───────────────────────────────── */
@media (max-width: 1440px) {
  .container    { max-width: 1200px; }
  .hero-title   { font-size: clamp(2rem, 3.5vw, 3.6rem); }
}

/* ── Desktop 1280px ─────────────────────────────────────── */
@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .container     { padding: 0 2rem; }
}

/* ── Small Desktop / Large Tablet Landscape 1100px ─────── */
@media (max-width: 1100px) {
  .hero-container { gap: 2rem; }
  .hero-title     { font-size: clamp(2rem, 4vw, 3.2rem); }

  .about-grid     { gap: 3rem; }
  .about-img-placeholder { width: 320px; height: 320px; }

  .services-grid  { grid-template-columns: repeat(2, 1fr); }

  .footer-grid    { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
  .footer-newsletter { grid-column: 1 / -1; }
}

/* ── Tablet Landscape 1024px ────────────────────────────── */
@media (max-width: 1024px) {
  /* Hero */
  .hero           { padding: 6rem 0 4rem; min-height: auto; }
  .hero-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-content   { display: flex; flex-direction: column; align-items: center; }
  .hero-visual    { order: -1; width: 100%; display: flex; justify-content: center; }
  .hero-title     { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-subtitle  { max-width: 580px; text-align: center; }
  .hero-cta       { justify-content: center; }
  .hero-stats     { justify-content: center; gap: 1.5rem; }
  .hero-badge     { margin: 0 auto 1.5rem; }
  .hero-card-container { max-width: 460px; }

  /* About */
  .about          { }
  .about-grid     { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .about-image-wrap { justify-content: center; }
  .about-pillars  { align-items: center; max-width: 500px; margin: 1.5rem auto 0; }
  .about-stats-row { grid-template-columns: repeat(4, 1fr); }
  .about-text     { text-align: left; }

  /* Services */
  .services-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Why */
  .why-grid       { grid-template-columns: repeat(2, 1fr); }

  /* Process */
  .process-timeline        { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .process-timeline::before { display: none; }

  /* Testimonials */
  .testimonial-card { min-width: calc(50% - 0.75rem); }

  /* Pricing */

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-newsletter { grid-column: 1 / -1; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .contact-social { grid-column: 1 / -1; }
  .map-placeholder { grid-column: 1 / -1; }
}

/* ── Tablet Portrait 768px ──────────────────────────────── */
@media (max-width: 768px) {
  /* Global */
  .section        { padding: 5rem 0; }
  .container      { padding: 0 1.25rem; }
  .section-title  { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .section-subtitle { font-size: 0.95rem; }

  /* Navbar */
  .nav-links      { display: none; }
  .nav-cta        { display: none; }
  .hamburger      { display: flex; }
  .nav-container  { position: relative; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5,8,16,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.1rem;
    z-index: 999;
  }

  .nav-links.open .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  /* Hero */
  .hero           { padding: 5.5rem 0 3.5rem; }
  .hero-title     { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-subtitle  { font-size: 0.95rem; }
  .hero-cta       { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-cta .btn  { width: 100%; max-width: 280px; justify-content: center; }
  .hero-stats     { gap: 1.25rem; }
  .stat-num       { font-size: 1.6rem; }
  .hero-card-container { max-width: 380px; }
  .float-card-1   { right: -5px; top: -10px; }
  .float-card-2   { left: -5px; bottom: -10px; }

  /* About */
  .about-img-placeholder { width: 280px; height: 280px; }
  .ai-ring.ring-3 { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
  .ai-ring.ring-2 { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
  .ai-ring.ring-1 { width: 145px; height: 145px; margin: -72.5px 0 0 -72.5px; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .about-badge-card { position: static; margin: 1.25rem auto 0; width: fit-content; }

  /* Services */
  .services-grid  { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .portfolio-filter { gap: 0.5rem; }
  .filter-btn     { padding: 0.4rem 1rem; font-size: 0.8rem; }

  /* Why */
  .why-grid       { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Process */
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  /* Testimonials */
  .testimonial-card { min-width: 100%; }

  /* Pricing */

  /* FAQ */
  .faq-question   { font-size: 0.9rem; padding: 1rem 1.25rem; }

  /* Contact */
  .contact-info   { display: flex; flex-direction: column; }
  .form-row       { grid-template-columns: 1fr; }
  .contact-form   { padding: 1.5rem; }
  .contact-form h3 { font-size: 1.1rem; }

  /* Footer */
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-newsletter { grid-column: 1 / -1; }
  .footer-brand   { grid-column: 1 / -1; }
  .newsletter-form { flex-direction: row; }

  /* Footer bottom */
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
}

/* ── Large Mobile 600px ─────────────────────────────────── */
@media (max-width: 600px) {
  /* Process — single column */
  .process-timeline { grid-template-columns: 1fr; gap: 1rem; }

  /* Why — single column */
  .why-grid       { grid-template-columns: 1fr; gap: 1rem; }

  /* Services — single column */
  .services-grid  { grid-template-columns: 1fr; gap: 1rem; }

  /* Pricing — single column */
  .pricing-grid   { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; gap: 1.25rem; }
  .pricing-card.popular { transform: none; border-color: rgba(99,102,241,0.5); }
  .pricing-card.popular:hover { transform: translateY(-8px); }

  /* About stats */
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }

  /* About badge — prevent overflow */
  .about-badge-card { position: static; margin: 1.25rem auto 0; width: fit-content; }
  .about-image-wrap { flex-direction: column; align-items: center; }

  /* Testimonials */
  .testimonial-card { padding: 1.5rem; }

  /* Hero card smaller */
  .hero-card-container { max-width: 340px; }
  .main-card      { padding: 1.25rem; }

  /* Section spacing */
  .section        { padding: 4.5rem 0; }
}

/* ── Standard Mobile 480px ──────────────────────────────── */
@media (max-width: 480px) {
  /* Global */
  .section        { padding: 4rem 0; }
  .container      { padding: 0 1rem; }
  .section-title  { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section-tag    { font-size: 0.72rem; }
  .btn            { padding: 0.7rem 1.4rem; font-size: 0.88rem; }

  /* Loading screen */
  .loader-logo-img { width: 180px; }
  .loader-bar     { width: 160px; }

  /* Scroll top */
  #scroll-top     { width: 42px; height: 42px; font-size: 1.2rem; bottom: 1.25rem; right: 1.25rem; }

  /* Navbar */
  .logo-img       { height: 36px; }
  #theme-toggle   { width: 38px; height: 38px; }

  /* Hero */
  .hero           { padding: 5rem 0 3rem; }
  .hero-title     { font-size: clamp(1.7rem, 8vw, 2.2rem); line-height: 1.2; }
  .hero-subtitle  { font-size: 0.9rem; }
  .hero-badge     { font-size: 0.74rem; }
  .hero-stats     { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
  .stat-num       { font-size: 1.4rem; }
  .stat p         { font-size: 0.78rem; }
  .stat-divider   { display: none; }
  .hero-cta .btn  { max-width: 100%; }
  .hero-card-container { max-width: 300px; }
  .float-card-1, .float-card-2 { display: none; }

  /* About */
  .about-img-placeholder { width: 240px; height: 240px; }
  .ai-ring.ring-3 { width: 240px; height: 240px; margin: -120px 0 0 -120px; }
  .ai-ring.ring-2 { width: 175px; height: 175px; margin: -87.5px 0 0 -87.5px; }
  .ai-ring.ring-1 { width: 115px; height: 115px; margin: -57.5px 0 0 -57.5px; }
  .about-badge-card { display: none; }
  .about-text     { font-size: 0.9rem; }
  .pillar         { flex-direction: column; text-align: left; }
  .pillar-icon    { font-size: 1.25rem; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .about-stat .counter { font-size: 1.5rem; }

  /* Services */
  .services-grid  { grid-template-columns: 1fr; gap: 1rem; }
  .service-card   { padding: 1.5rem; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
  .portfolio-placeholder,
  .portfolio-img img { height: 200px; }
  .portfolio-filter { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; flex-wrap: nowrap; }
  .filter-btn     { flex-shrink: 0; }

  /* Why */
  .why-grid       { grid-template-columns: 1fr; gap: 1rem; }
  .why-card       { padding: 1.5rem; }

  /* Process */
  .process-timeline { grid-template-columns: 1fr; gap: 1rem; }
  .step-content   { padding: 1.25rem; }

  /* Testimonials */
  .testimonial-card { padding: 1.25rem; }
  .testimonial-text { font-size: 0.88rem; }

  /* Technologies */
  .tech-item      { padding: 0.6rem 1rem; font-size: 0.82rem; }

  /* Pricing */
  .amount         { font-size: 2rem; }

  /* FAQ */
  .faq-question   { font-size: 0.88rem; padding: 1rem; }
  .faq-answer p   { padding: 0 1rem 1rem; font-size: 0.86rem; }

  /* Contact */
  .contact-form   { padding: 1.25rem; }
  .map-placeholder { min-height: 130px; }

  /* Footer */
  .footer-top     { padding: 3.5rem 0 2rem; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-newsletter { grid-column: auto; }
  .footer-brand   { grid-column: auto; }
  .newsletter-form { flex-direction: column; gap: 0.6rem; }
  .footer-links-col h4 { margin-bottom: 0.75rem; }
  .footer-bottom  { padding: 1rem 0; }
}

/* ── Small Mobile 375px ─────────────────────────────────── */
@media (max-width: 375px) {
  /* Global */
  .container      { padding: 0 0.875rem; }
  .section        { padding: 3.5rem 0; }
  .section-title  { font-size: 1.55rem; }
  .section-header { margin-bottom: 2.5rem; }

  /* Navbar */
  .nav-logo       { }
  .logo-img       { height: 32px; padding: 3px 7px; }
  #theme-toggle   { width: 34px; height: 34px; }
  .hamburger span { width: 20px; }

  /* Hero */
  .hero           { padding: 4.5rem 0 2.5rem; }
  .hero-title     { font-size: 1.65rem; }
  .hero-subtitle  { font-size: 0.86rem; }
  .hero-cta       { gap: 0.6rem; }
  .btn            { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
  .hero-stats     { gap: 1rem; }
  .stat-num       { font-size: 1.25rem; }
  .hero-card-container { max-width: 275px; }
  .main-card      { padding: 1rem; }
  .metric-label   { font-size: 0.7rem; }
  .metric-value   { font-size: 0.85rem; }

  /* About */
  .about-img-placeholder { width: 210px; height: 210px; }
  .ai-ring.ring-3 { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
  .ai-ring.ring-2 { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .ai-ring.ring-1 { width: 95px;  height: 95px;  margin: -47.5px 0 0 -47.5px; }
  .ai-center-icon { font-size: 3rem; }
  .about-stats-row { gap: 0.5rem; }
  .about-stat     { padding: 0.75rem 0.4rem; }
  .about-stat .counter { font-size: 1.3rem; }

  /* Services */
  .service-card   { padding: 1.25rem; }
  .service-card h3 { font-size: 0.95rem; }
  .service-card p  { font-size: 0.82rem; }

  /* Portfolio */
  .portfolio-placeholder,
  .portfolio-img img { height: 180px; }
  .portfolio-placeholder { font-size: 2.5rem; }

  /* Pricing */
  .pricing-grid          { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 1.5rem; }
  .pricing-card          { padding: 1.5rem 1.25rem; }
  .pricing-card.popular  { transform: none; border-color: rgba(99,102,241,0.5); }
  .pricing-header h3     { font-size: 1.1rem; }
  .pricing-features li   { font-size: 0.82rem; }

  /* Contact */
  .contact-form   { padding: 1rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 0.8rem 0.875rem; font-size: 0.85rem; }

  /* Footer */
  .footer-logo-img { height: 34px; }
  .footer-brand p { font-size: 0.82rem; }
  .footer-links-col a { font-size: 0.82rem; }
}

/* ── Very Small Mobile 320px ────────────────────────────── */
@media (max-width: 320px) {
  body            { font-size: 14px; }
  .container      { padding: 0 0.75rem; }
  .section        { padding: 3rem 0; }

  .hero           { padding: 4rem 0 2rem; }
  .hero-title     { font-size: 1.45rem; letter-spacing: -0.01em; }
  .hero-subtitle  { font-size: 0.82rem; }
  .hero-badge     { font-size: 0.7rem; padding: 0.3rem 0.8rem; }
  .btn            { padding: 0.6rem 1rem; font-size: 0.82rem; }
  .hero-card-container { max-width: 250px; }
  .section-title  { font-size: 1.4rem; }

  .service-card   { padding: 1rem; }
  .why-card       { padding: 1.25rem; }
  .step-content   { padding: 1rem; }
  .testimonial-card { padding: 1rem; }
  .faq-question   { padding: 0.875rem 1rem; font-size: 0.84rem; }
  .contact-form   { padding: 0.875rem; }

  .logo-img       { height: 30px; padding: 3px 6px; }
  #theme-toggle   { width: 32px; height: 32px; }
  .hamburger span { width: 18px; }
  #scroll-top     { width: 38px; height: 38px; font-size: 1rem; }

  .footer-grid    { gap: 1.5rem; }
  .newsletter-form input { padding: 0.6rem 0.75rem; font-size: 0.82rem; }
}

/* ── Landscape orientation on small phones ──────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero           { padding: 4rem 0 2rem; min-height: auto; }
  .hero-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .hero-visual    { order: 0; }
  .hero-content   { align-items: flex-start; }
  .hero-title     { font-size: 1.6rem; text-align: left; }
  .hero-subtitle  { text-align: left; font-size: 0.85rem; margin-bottom: 1.5rem; }
  .hero-cta       { justify-content: flex-start; flex-direction: row; }
  .hero-badge     { margin: 0 0 1rem; }
  .hero-stats     { justify-content: flex-start; }
  .hero-card-container { max-width: 320px; }
  .float-card-1, .float-card-2 { display: none; }
  #navbar         { padding: 0.6rem 0; }
  .hero-scroll-hint { display: none; }
  .section        { padding: 3rem 0; }
}

/* ── Mobile nav CTA item ─────────────────────────────────── */
.nav-cta-mobile { display: none; }

@media (max-width: 768px) {
  .nav-links.open .nav-cta-mobile {
    display: block;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: none !important;
  }
  .nav-cta-mobile .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Light mode overrides for mobile nav ────────────────── */
@media (max-width: 768px) {
  body.light-mode .nav-links.open {
    background: rgba(240,244,255,0.98);
    border-color: rgba(99,102,241,0.12);
  }

  body.light-mode .nav-links.open .nav-link {
    color: var(--text-primary);
    border-bottom-color: rgba(99,102,241,0.06);
  }
}

/* =========================================================
   LOGO IMAGE
   ========================================================= */

/* Loader logo image */
.loader-logo-img {
  width: 220px;
  object-fit: contain;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 20px rgba(99,102,241,0.5));
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  from { filter: drop-shadow(0 0 10px rgba(99,102,241,0.3)); }
  to   { filter: drop-shadow(0 0 30px rgba(99,102,241,0.8)); }
}

/* Navbar logo image */
.nav-logo { display: flex; align-items: center; }

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  /* White bg logo needs a pill on dark backgrounds */
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.logo-img:hover {
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transform: scale(1.03);
}

/* Footer logo image */
.footer-logo { display: inline-block; margin-bottom: 1rem; }

.footer-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.footer-logo-img:hover { box-shadow: 0 4px 20px rgba(99,102,241,0.35); }

/* =========================================================
   THEME TOGGLE BUTTON
   ========================================================= */

#theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

#theme-toggle:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 16px rgba(0,198,255,0.35);
  transform: rotate(20deg) scale(1.1);
}

.theme-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Dark mode — show sun (to switch to light) */
body:not(.light-mode) .sun-icon  { opacity: 1;  transform: rotate(0deg) scale(1); }
body:not(.light-mode) .moon-icon { opacity: 0;  transform: rotate(90deg) scale(0.5); }

/* Light mode — show moon (to switch to dark) */
body.light-mode .sun-icon  { opacity: 0;  transform: rotate(-90deg) scale(0.5); }
body.light-mode .moon-icon { opacity: 1;  transform: rotate(0deg) scale(1); }

/* =========================================================
   LIGHT MODE — Full Bright Theme
   ========================================================= */

body.light-mode {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f1f5fb;
  --bg-card:       rgba(255,255,255,0.95);
  --bg-card-hover: #ffffff;

  --text-primary:   #0d1423;
  --text-secondary: #4a5568;
  --text-muted:     #9ca3af;

  --border:        rgba(13,20,35,0.09);
  --border-glow:   rgba(99,102,241,0.3);

  --glass-bg:      #ffffff;
  --glass-border:  rgba(99,102,241,0.14);

  --shadow-glow: 0 0 30px rgba(99,102,241,0.12);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.07);
}

/* ── Loader ──────────────────────────────────── */
body.light-mode #loader { background: #ffffff; }

/* ── Scrollbar ───────────────────────────────── */
body.light-mode { scrollbar-color: #6366f1 #e2e8f0; }

/* ── Particles ───────────────────────────────── */
body.light-mode #particles-canvas { opacity: 0.25; }

/* ── Cursor ──────────────────────────────────── */
body.light-mode #cursor-dot  { background: #6366f1; box-shadow: 0 0 8px #6366f1; }
body.light-mode #cursor-ring { border-color: rgba(99,102,241,0.5); }
body.light-mode #cursor-glow { background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%); }

/* ── Navbar ──────────────────────────────────── */
body.light-mode #navbar        { background: rgba(255,255,255,0.88); }
body.light-mode #navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(99,102,241,0.12);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
body.light-mode .nav-link               { color: #4a5568; }
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active        { color: #0d1423; background: rgba(99,102,241,0.07); }
body.light-mode #theme-toggle           { border-color: rgba(245,158,11,0.45); color: #d97706; }
body.light-mode #theme-toggle:hover     { border-color: #d97706; box-shadow: 0 0 14px rgba(217,119,6,0.35); }

/* ── Hero ────────────────────────────────────── */
body.light-mode .hero           { background: #ffffff; }
body.light-mode .blob           { opacity: 0.08; }
body.light-mode .grid-lines {
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
body.light-mode .hero-badge {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
  color: #6366f1;
}
body.light-mode .badge-dot        { background: #6366f1; }
body.light-mode .hero-subtitle    { color: #4a5568; }
body.light-mode .stat p           { color: #4a5568; }
body.light-mode .stat-divider     { background: rgba(13,20,35,0.1); }

/* Hero card */
body.light-mode .hero-glass-card {
  background: #ffffff;
  border-color: rgba(99,102,241,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
body.light-mode .card-title-small { color: #64748b; }
body.light-mode .metric-label     { color: #64748b; }
body.light-mode .metric-value     { color: #0d1423; }
body.light-mode .float-card-1,
body.light-mode .float-card-2     { color: #0d1423; }

/* ── About ───────────────────────────────────── */
body.light-mode .about             { background: #f1f5fb; }
body.light-mode .about-text        { color: #4a5568; }
body.light-mode .about-img-placeholder {
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  border-color: rgba(99,102,241,0.15);
}
body.light-mode .pillar {
  background: #ffffff;
  border-color: rgba(99,102,241,0.1);
}
body.light-mode .pillar h4 { color: #0d1423; }
body.light-mode .pillar p  { color: #4a5568; }
body.light-mode .about-stat {
  background: #ffffff;
  border-color: rgba(99,102,241,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
body.light-mode .about-stat p { color: #4a5568; }
body.light-mode .about-badge-card { background: #ffffff; border-color: rgba(99,102,241,0.12); }
body.light-mode .badge-title      { color: #0d1423; }
body.light-mode .badge-sub        { color: #64748b; }

/* ── Services ────────────────────────────────── */
body.light-mode .services         { background: #ffffff; }
body.light-mode .service-card {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
body.light-mode .service-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 16px 48px rgba(99,102,241,0.1);
}
body.light-mode .service-card h3  { color: #0d1423; }
body.light-mode .service-card p   { color: #4a5568; }
body.light-mode .service-icon-wrap {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.15);
}
body.light-mode .service-tags span {
  background: rgba(99,102,241,0.07);
  border-color: rgba(99,102,241,0.15);
  color: #4a5568;
}
body.light-mode .service-arrow    { color: #9ca3af; }
body.light-mode .service-card:hover .service-arrow { color: #6366f1; }

/* ── Portfolio ───────────────────────────────── */
body.light-mode .portfolio        { background: #f1f5fb; }
body.light-mode .portfolio-card   { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
body.light-mode .portfolio-overlay {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
body.light-mode .portfolio-cat    { color: #6366f1; }
body.light-mode .portfolio-info h3 { color: #0d1423; }
body.light-mode .portfolio-info p  { color: #4a5568; }
body.light-mode .portfolio-tags span {
  background: rgba(99,102,241,0.07);
  border-color: rgba(99,102,241,0.15);
  color: #4a5568;
}
body.light-mode .filter-btn       { color: #4a5568; border-color: rgba(13,20,35,0.12); background: #ffffff; }
body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active { color: #ffffff; }

/* ── Why Choose Us ───────────────────────────── */
body.light-mode .why              { background: #ffffff; }
body.light-mode .why-card {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
body.light-mode .why-card:hover   { border-color: rgba(99,102,241,0.25); box-shadow: 0 12px 40px rgba(99,102,241,0.1); }
body.light-mode .why-card h3      { color: #0d1423; }
body.light-mode .why-card p       { color: #4a5568; }

/* ── Process ─────────────────────────────────── */
body.light-mode .process          { background: #f1f5fb; }
body.light-mode .step-content {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
body.light-mode .step-content:hover { border-color: rgba(99,102,241,0.25); box-shadow: 0 12px 40px rgba(99,102,241,0.1); }
body.light-mode .step-number      { color: #6366f1; }
body.light-mode .step-content h3  { color: #0d1423; }
body.light-mode .step-content p   { color: #4a5568; }

/* ── Testimonials ────────────────────────────── */
body.light-mode .testimonials     { background: #ffffff; }
body.light-mode .testimonial-card {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
body.light-mode .testimonial-text  { color: #4a5568; }
body.light-mode .testimonial-author h4 { color: #0d1423; }
body.light-mode .testimonial-author p  { color: #64748b; }
body.light-mode .slider-btn {
  background: #ffffff;
  border-color: rgba(13,20,35,0.1);
  color: #0d1423;
}
body.light-mode .dot-indicator     { background: #cbd5e1; }
body.light-mode .dot-indicator.active { background: #6366f1; }

/* ── Technologies ────────────────────────────── */
body.light-mode .technologies      { background: #f1f5fb; }
body.light-mode .tech-item {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  color: #4a5568;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
body.light-mode .tech-item:hover   { border-color: rgba(99,102,241,0.25); color: #0d1423; }
body.light-mode .tech-marquee-wrap::before {
  background: linear-gradient(90deg, #f1f5fb, transparent);
}
body.light-mode .tech-marquee-wrap::after {
  background: linear-gradient(-90deg, #f1f5fb, transparent);
}

/* ── Pricing ─────────────────────────────────── */
body.light-mode .pricing           { background: #ffffff; }
body.light-mode .pricing-card {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
body.light-mode .pricing-card:hover { box-shadow: 0 16px 48px rgba(99,102,241,0.1); }
body.light-mode .pricing-card.popular {
  background: #fafbff;
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 8px 40px rgba(99,102,241,0.12);
}
body.light-mode .pricing-header h3 { color: #0d1423; }
body.light-mode .pricing-header p  { color: #4a5568; }
body.light-mode .pricing-features li { color: #0d1423; border-bottom-color: rgba(13,20,35,0.05); }
body.light-mode .feat-disabled     { opacity: 0.4; }

/* ── FAQ ─────────────────────────────────────── */
body.light-mode .faq               { background: #f1f5fb; }
body.light-mode .faq-item {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
body.light-mode .faq-item:hover    { border-color: rgba(99,102,241,0.2); }
body.light-mode .faq-item.open     { border-color: rgba(99,102,241,0.35); box-shadow: 0 4px 20px rgba(99,102,241,0.08); }
body.light-mode .faq-question      { color: #0d1423; }
body.light-mode .faq-question:hover { background: rgba(99,102,241,0.03); }
body.light-mode .faq-answer p      { color: #4a5568; }

/* ── Contact ─────────────────────────────────── */
body.light-mode .contact           { background: #ffffff; }
body.light-mode .contact-item {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
body.light-mode .contact-item:hover { border-color: rgba(99,102,241,0.2); }
body.light-mode .contact-item h4   { color: #0d1423; }
body.light-mode .contact-item p    { color: #4a5568; }
body.light-mode .map-placeholder {
  background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
  border-color: rgba(99,102,241,0.1);
}
body.light-mode .map-inner p       { color: #0d1423; }
body.light-mode .map-sub           { color: #64748b; }

/* Contact form */
body.light-mode .contact-form {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
body.light-mode .contact-form h3   { color: #0d1423; }

body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select {
  background: #f8faff;
  border-color: rgba(13,20,35,0.12);
  color: #0d1423;
}
body.light-mode .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  color: #0d1423;
}
body.light-mode .form-group select option {
  background: #ffffff;
  color: #0d1423;
}
body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder { color: #9ca3af; }
body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus,
body.light-mode .form-group select:focus {
  background: #ffffff;
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
body.light-mode .form-group label  { color: #9ca3af; }
body.light-mode .form-group input:focus ~ label,
body.light-mode .form-group input:not(:placeholder-shown) ~ label,
body.light-mode .form-group textarea:focus ~ label,
body.light-mode .form-group textarea:not(:placeholder-shown) ~ label {
  background: #f8faff;
  color: #6366f1;
}
body.light-mode .social-link {
  background: #f1f5fb;
  border-color: rgba(13,20,35,0.1);
  color: #4a5568;
}
body.light-mode .social-link:hover { color: #ffffff; }

/* ── Footer ──────────────────────────────────── */
body.light-mode .footer            { background: #f1f5fb; border-top-color: rgba(13,20,35,0.08); }
body.light-mode .footer-bottom     { border-top-color: rgba(13,20,35,0.07); }
body.light-mode .footer-bottom-inner p { color: #64748b; }
body.light-mode .footer-brand p    { color: #4a5568; }
body.light-mode .footer-links-col h4  { color: #0d1423; }
body.light-mode .footer-links-col a   { color: #4a5568; }
body.light-mode .footer-links-col a:hover { color: #6366f1; }
body.light-mode .footer-newsletter > p   { color: #4a5568; }
body.light-mode .footer-legal a    { color: #64748b; }
body.light-mode .footer-legal a:hover { color: #6366f1; }
body.light-mode .newsletter-form input {
  background: #ffffff;
  border-color: rgba(13,20,35,0.12);
  color: #0d1423;
}
body.light-mode .newsletter-form input::placeholder { color: #9ca3af; }

/* ── Logo ────────────────────────────────────── */
body.light-mode .logo-img,
body.light-mode .footer-logo-img   { background: transparent; padding: 0; box-shadow: none; }

/* ── Section tags ────────────────────────────── */
body.light-mode .section-tag       { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: #6366f1; }
body.light-mode .section-subtitle  { color: #4a5568; }

/* ── Scroll top ──────────────────────────────── */
body.light-mode #scroll-top        { box-shadow: 0 4px 20px rgba(99,102,241,0.2); }

/* ── Glass cards (global) ────────────────────── */
body.light-mode .glass-card {
  background: #ffffff;
  border-color: rgba(13,20,35,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-1);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--neon-blue);
  outline-offset: 2px;
}

/* Focus-visible styles (keyboard navigation) */
:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* Lazy images */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded { opacity: 1; }

/* =========================================================
   PERFORMANCE — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .blob, .ai-ring, .typing-text, .loader-fill,
  .tech-track, .scroll-wheel, .badge-dot { animation: none !important; }

  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ========================================================= */

/* ── Portfolio overlay: always visible on touch devices ─── */
@media (hover: none) and (pointer: coarse) {
  .portfolio-overlay {
    opacity: 1;
    background: rgba(5,8,16,0.80);
  }
  .portfolio-card:hover .portfolio-placeholder { transform: none; }
}

/* ── Footer: collapse to 1 column at ≤600px ────────────── */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .footer-brand,
  .footer-newsletter {
    grid-column: auto !important;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-top { padding: 3rem 0 2rem; }
}

/* ── Contact: fix form row at ≤600px ────────────────────── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.25rem; }
}

/* ── Hero: better sizing on mid-mobile (360–480px) ─────── */
@media (max-width: 480px) {
  .hero { padding: 4.8rem 0 2.5rem; }
  .hero-container { gap: 1.5rem; }
  .hero-visual { max-width: 300px; margin: 0 auto; }
  .hero-card-container { max-width: 100%; }
  .main-card { padding: 1rem; }
  .card-bar-chart { height: 48px; }
  .metric-icon { width: 32px; height: 32px; font-size: 0.9rem; }
}

/* ── Navbar: tighten spacing on small screens ───────────── */
@media (max-width: 400px) {
  .nav-container { gap: 0.3rem; padding: 0 1rem; }
  .logo-img { height: 34px; }
  #theme-toggle { width: 36px; height: 36px; }
}

/* ── Testimonial slider: ensure no overflow ─────────────── */
.testimonial-slider { overflow: hidden; width: 100%; }

/* ── About image: better sizing on mid-mobile ───────────── */
@media (max-width: 600px) {
  .about-img-placeholder { width: 260px; height: 260px; }
  .ai-ring.ring-3 { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .ai-ring.ring-2 { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
  .ai-ring.ring-1 { width: 125px; height: 125px; margin: -62.5px 0 0 -62.5px; }
}

/* ── Section header: less bottom gap on mobile ──────────── */
@media (max-width: 600px) {
  .section-header { margin-bottom: 2.5rem; }
  .section { padding: 4rem 0; }
}

/* ── Buttons: full-width friendly on tiny screens ───────── */
@media (max-width: 360px) {
  .hero-cta .btn { max-width: 100%; font-size: 0.84rem; }
  .btn { padding: 0.65rem 1rem; }
}

/* ── Scroll to top: don't overlap Google review badge ───── */
@media (max-width: 480px) {
  #scroll-top { bottom: 1rem; right: 1rem; }
  #google-review-float { bottom: 1rem; left: 0.75rem; }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */

@media print {
  /* Reset dark theme for print */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide decorative/interactive elements */
  #loader, #cursor-glow, #scroll-top, #particles-canvas,
  .hamburger, .hero-visual, .blob, .grid-lines,
  .hero-scroll-hint, .portfolio-filter, .slider-controls,
  .tech-marquee-wrap, #theme-toggle, .footer-newsletter,
  .contact-form { display: none !important; }

  /* Show full URLs after links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #666;
  }

  /* Page breaks */
  section { page-break-inside: avoid; }
  h2, h3  { page-break-after: avoid; }

  /* Adjust navbar for print */
  #navbar {
    position: static !important;
    background: #fff !important;
    border-bottom: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  .nav-links { display: flex !important; }
  .nav-cta   { display: none !important; }

  /* Remove glassmorphism */
  .glass-card {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    backdrop-filter: none !important;
  }

  /* Service / why / process grids */
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .process-timeline         { grid-template-columns: repeat(3, 1fr) !important; }

  /* Footer */
  .footer { background: #fff !important; border-top: 1px solid #ddd !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Ensure text is readable */
  .gradient-text {
    -webkit-text-fill-color: #333 !important;
    background: none !important;
    color: #333 !important;
  }

  .section-tag  { color: #555 !important; border-color: #ccc !important; background: #f0f0f0 !important; }
  .text-secondary { color: #555 !important; }
  p { color: #333 !important; }
}
