/* ============================================================
   Lazy-Skipper — Main Stylesheet
   ============================================================ */

/* ── Google Fonts & Variables ──────────────────────────────── */
:root {
  --primary: #4f8ef7;
  --primary-dark: #3a6fd8;
  --secondary: #7c3aed;
  --accent: #06d6a0;
  --gradient: linear-gradient(135deg, #4f8ef7 0%, #7c3aed 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);

  /* Dark theme (default) */
  --bg: #0a0e1a;
  --bg-2: #111827;
  --bg-3: #1a2035;
  --bg-card: rgba(17,24,39,0.8);
  --border: rgba(255,255,255,0.07);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(79,142,247,0.15);
  --navbar-bg: rgba(10,14,26,0.92);

  --radius: 16px;
  --radius-sm: 8px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --bg-3: #f1f5f9;
  --bg-card: rgba(255,255,255,0.9);
  --border: rgba(0,0,0,0.08);
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(79,142,247,0.1);
  --navbar-bg: rgba(248,250,252,0.95);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  transition: background 0.4s ease, color 0.4s ease;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }

::selection { background: var(--primary); color: #fff; }

/* ── Preloader ─────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }
.preloader-logo {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  animation: pulse 1.5s ease infinite;
}
.preloader-logo .logo-mark {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 800; color: #fff; letter-spacing: -1px;
}
.preloader-bar {
  width: 200px; height: 3px; background: var(--border);
  border-radius: 2px; margin: 0 auto 12px; overflow: hidden;
}
.preloader-progress {
  height: 100%; background: var(--gradient);
  border-radius: 2px; animation: loading 2s ease forwards;
}
.preloader-text { color: var(--text-muted); font-size: 13px; }

@keyframes loading { from { width: 0 } to { width: 100% } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ── Navbar ────────────────────────────────────────────────── */
#mainNav {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: var(--transition);
}
#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text) !important; font-weight: 700;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px;
  font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.brand-name { font-family: var(--font-display); font-size: 18px; }
.brand-name .accent { color: var(--primary); }

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500; font-size: 15px;
  padding: 6px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text) !important;
  background: rgba(79,142,247,0.08);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 1px;
  background: var(--gradient);
}

/* Theme toggle */
.btn-theme-toggle {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 15px;
}
.btn-theme-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Nav CTA */
.btn-nav-cta {
  background: var(--gradient); border: none;
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: #fff !important;
  transition: var(--transition);
}
.btn-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(79,142,247,0.4); }

/* Mobile toggler */
.navbar-toggler { border: none; background: transparent; padding: 4px; }
.toggler-icon {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 1px;
  margin: 5px 0; transition: var(--transition);
}

/* Sticky quote */
.sticky-quote-btn {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  background: var(--gradient); color: #fff !important;
  padding: 10px 14px 10px 10px;
  border-radius: 0 8px 8px 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  z-index: 100; box-shadow: var(--shadow);
  transition: var(--transition);
  writing-mode: horizontal-tb;
}
.sticky-quote-btn:hover { padding-right: 20px; }
.sticky-quote-btn span { display: none; }
.sticky-quote-btn:hover span { display: inline; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gradient); border: none;
  color: #fff; font-weight: 600; padding: 14px 32px;
  border-radius: var(--radius-sm); transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn-primary:hover::before { background: rgba(255,255,255,0.1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,142,247,0.4); color: #fff; }

.btn-outline-primary {
  background: transparent; border: 1.5px solid var(--primary);
  color: var(--primary); font-weight: 600; padding: 13px 32px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-outline-primary:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79,142,247,0.3);
}

.btn-ghost {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-weight: 500; padding: 14px 32px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* YouTube button */
.btn-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); border: none;
  color: #fff; font-weight: 600; padding: 14px 32px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-youtube:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,0,0,0.35); color: #fff; opacity: 0.95; }
.btn-youtube.btn-sm { padding: 8px 16px; }

/* GitHub button */
.btn-github {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; padding: 14px 32px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-github:hover { background: #333; color: #fff; border-color: #333; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
[data-theme="light"] .btn-github:hover { background: #24292e; color: #fff; border-color: #24292e; }
.btn-github.btn-sm { padding: 8px 16px; }

/* Portfolio overlay icon variants */
.portfolio-overlay-youtube:hover { background: #ff0000; color: #fff; }
.portfolio-overlay-github:hover { background: #24292e; color: #fff; }

/* ── Section helpers ────────────────────────────────────────── */
.section-padding { padding: 100px 0; }
.section-padding-sm { padding: 60px 0; }

.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2);
  color: var(--primary); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-badge i { font-size: 11px; }

.section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}

.section-subtitle { color: var(--text-muted); font-size: 17px; max-width: 600px; }

/* ── Glass card ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(79,142,247,0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 140px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,142,247,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(124,58,237,0.08) 0%, transparent 60%);
}
/* Overlay shown when a custom hero background image is set */
.hero-img-overlay {
  position: absolute; inset: 0;
  background: #000;
  z-index: 1;
}
/* Ensure hero content sits above the overlay — only target the container */
.hero-section > .container { position: relative; z-index: 2; }
/* Keep background/decoration elements absolutely positioned */
.hero-bg, .hero-grid, .hero-left-bg, .hero-shape { position: absolute; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.25);
  color: var(--primary); padding: 8px 18px;
  border-radius: 50px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.hero-left-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background-image: url('../images/coding-hero-bg.png');
  background-size: cover;
  background-position: left center;
  opacity: 0.25;
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
  animation: fadeRight 1.5s ease-out both;
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 0.25; transform: translateX(0); }
}
.hero-title {
  font-size: clamp(40px, 8vw, 90px); font-weight: 900;
  line-height: 1.1; letter-spacing: -3px; color: var(--text);
  margin-bottom: 24px; animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-title .gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--text-muted); max-width: 560px;
  font-weight: 500;
  margin-bottom: 40px; line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px;
  animation: fadeInUp 0.8s ease 1s both;
  align-items: center;
}
.hero-stat-value {
  font-family: var(--font-display); font-size: 38px;
  font-weight: 800; color: var(--text);
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }
.hero-stat-divider { width: 1px; height: 50px; background: var(--border); }

/* Floating shapes */
.hero-shape {
  position: absolute; border-radius: 50%;
  background: var(--gradient); opacity: 0.06;
  filter: blur(60px); animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; bottom: 0; left: -100px; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }

/* Typing animation cursor */
.typewriter-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--primary);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* ── 3D Carousel ────────────────────────────────────────────── */
.carousel-section { padding: 100px 0; overflow: hidden; background: var(--bg-2); }
.carousel-container { position: relative; }
.carousel-scene {
  perspective: 1200px; perspective-origin: 50% 50%;
  height: 540px; cursor: pointer;
  margin-top: 40px;
}
.carousel-3d {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.645,0.045,0.355,1);
  position: relative;
}
.carousel-item-3d {
  position: absolute; top: 50%; left: 50%;
  width: 240px; height: 380px; margin: -190px 0 0 -120px;
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.645,0.045,0.355,1);
  cursor: pointer;
}
.carousel-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  height: 100%; display: flex; flex-direction: column;
}
.carousel-item-3d.active .carousel-card {
  border-color: rgba(79,142,247,0.4);
  box-shadow: 0 0 40px rgba(79,142,247,0.2);
}
.carousel-card-img {
  width: 100%; height: 140px; object-fit: cover; flex-shrink: 0;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
}
.carousel-card-img-placeholder {
  width: 100%; height: 140px; flex-shrink: 0;
  background: var(--gradient); opacity: 0.15;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--primary);
}
.carousel-card-body { padding: 20px; }
.carousel-card-category {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 8px;
}
.carousel-card-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 8px; line-height: 1.3;
}
.carousel-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Carousel controls */
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 50px;
}
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: var(--transition);
}
.carousel-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ── Services Section ───────────────────────────────────────── */
.service-card {
  padding: 36px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  right: 0; height: 3px; background: var(--gradient);
  transform: scaleX(0); transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(79,142,247,0.25); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--primary); margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient); color: #fff; border-color: transparent;
}
.service-card h4 { font-size: 18px; margin-bottom: 12px; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ── Portfolio Grid ─────────────────────────────────────────── */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gradient); color: #fff; border-color: transparent;
}

.portfolio-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.portfolio-img {
  position: relative; overflow: hidden; height: 220px;
  background: var(--gradient);
}
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(10,14,26,0.85);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
}
.portfolio-overlay-btn:hover { background: var(--primary); color: #fff; }
.portfolio-body { padding: 24px; }
.portfolio-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 8px;
}
.portfolio-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 4px;
  background: rgba(79,142,247,0.08); color: var(--primary);
  border: 1px solid rgba(79,142,247,0.15);
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  padding: 36px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(79,142,247,0.3); box-shadow: var(--shadow-glow); }
.testimonial-quote {
  font-size: 48px; color: var(--primary); opacity: 0.3;
  line-height: 1; margin-bottom: 16px; font-family: Georgia, serif;
}
.testimonial-text { color: var(--text-muted); font-size: 15px; line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  padding: 100px 0; position: relative; overflow: hidden;
  background: var(--bg-2);
}
.cta-card {
  padding: 80px; text-align: center;
  background: var(--bg-card); border: 1px solid rgba(79,142,247,0.2);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,142,247,0.15), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.cta-card p { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Stats counter ──────────────────────────────────────────── */
.stats-section { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: var(--font-display); font-size: 52px; font-weight: 900;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 15px; margin-top: 8px; }
.stat-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ── Blog cards ─────────────────────────────────────────────── */
.blog-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.blog-img { height: 200px; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-img-placeholder { width: 100%; height: 200px; background: var(--gradient); opacity: 0.1; }
.blog-body { padding: 24px; }
.blog-category {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 10px;
}
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.blog-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-light); }
.blog-meta i { color: var(--primary); }

/* ── Chatbot ─────────────────────────────────────────────────── */
#chatbotWidget { position: fixed; bottom: 28px; right: 28px; z-index: 999; }
.chatbot-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient); color: #fff; border: none;
  font-size: 22px; cursor: pointer; position: relative;
  box-shadow: 0 4px 24px rgba(79,142,247,0.5);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(79,142,247,0.4);
  animation: chatPulse 2s ease-out infinite;
}
@keyframes chatPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.chat-notification {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #ef4444; color: #fff; font-size: 11px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.chatbot-panel {
  position: absolute; bottom: 80px; right: 0;
  width: 360px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  display: none; flex-direction: column;
  animation: slideUp 0.3s ease;
}
.chatbot-panel.open { display: flex; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chatbot-header {
  padding: 16px 20px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: space-between;
}
.chatbot-agent { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  font-weight: 700; font-size: 14px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.agent-status {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
}
.agent-info strong { color: #fff; font-size: 14px; display: block; }
.agent-info small { color: rgba(255,255,255,0.7); font-size: 11px; }
.chatbot-close { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 16px; }

.chatbot-messages {
  height: 300px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg { max-width: 85%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.5;
}
.bot .chat-bubble { background: var(--bg-3); color: var(--text); border-bottom-left-radius: 4px; }
.user .chat-bubble { background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-time { font-size: 10px; color: var(--text-light); margin-top: 4px; text-align: right; }
.bot .chat-time { text-align: left; }

.chatbot-quick-replies {
  padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--border);
}
.quick-reply {
  padding: 6px 12px; border-radius: 20px;
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2);
  color: var(--primary); font-size: 12px; cursor: pointer; transition: var(--transition);
}
.quick-reply:hover { background: var(--primary); color: #fff; }

.chatbot-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--border);
}
.chatbot-input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 13px;
  outline: none; transition: var(--transition);
}
.chatbot-input:focus { border-color: var(--primary); }
.chatbot-send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient); color: #fff; border: none;
  cursor: pointer; font-size: 14px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.chatbot-send:hover { opacity: 0.85; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 100px; right: 28px;
  width: 50px; height: 50px; border-radius: 50%; z-index: 99;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); background: #1ebe5d; color: #fff; }

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 46px; height: 46px; border-radius: 50%; z-index: 99;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: var(--transition);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 80px 0 0; position: relative; overflow: hidden;
}
.footer-glow {
  position: absolute; width: 600px; height: 300px;
  background: radial-gradient(circle, rgba(79,142,247,0.05), transparent);
  top: 0; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.footer-heading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); font-size: 14px; }
.footer-contact-list i { color: var(--primary); margin-top: 2px; width: 16px; }
.footer-contact-list a { color: var(--text-muted); }
.footer-contact-list a:hover { color: var(--primary); }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-link:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.social-link.whatsapp:hover { background: #25d366; }

.footer-newsletter { display: flex; gap: 0; }
.footer-newsletter form { display: flex; width: 100%; }
.footer-newsletter input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border);
  border-right: none; border-radius: 8px 0 0 8px;
  padding: 10px 16px; color: var(--text); font-size: 13px; outline: none;
}
.footer-newsletter button {
  background: var(--gradient); border: none; color: #fff;
  padding: 10px 16px; border-radius: 0 8px 8px 0; cursor: pointer;
}

.footer-top { padding-bottom: 60px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  color: var(--text-muted); font-size: 13px;
}
.footer-policy-link { color: var(--text-muted); font-size: 13px; margin-left: 20px; }
.footer-policy-link:hover { color: var(--primary); }

/* ── Form styles ─────────────────────────────────────────────── */
.form-control, .form-select {
  background: var(--bg-3) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; border-radius: var(--radius-sm) !important;
  padding: 14px 16px !important; font-size: 15px;
  transition: var(--transition) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(79,142,247,0.15) !important;
}
.form-control::placeholder { color: var(--text-light) !important; }
.form-label { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-select option { background: var(--bg-2); }

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px; position: relative; overflow: hidden;
  background: var(--bg);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 0%, rgba(79,142,247,0.12) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; }
.breadcrumb-item { color: var(--text-muted); font-size: 13px; }
.breadcrumb-item.active { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }

/* ── Case Study ─────────────────────────────────────────────── */
.cs-hero { padding: 160px 0 80px; }
.cs-meta-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2);
  border-radius: 50px; font-size: 12px; color: var(--primary); font-weight: 600;
  margin-right: 8px; margin-bottom: 8px;
}
.cs-metric-card {
  text-align: center; padding: 30px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.cs-metric-card:hover { border-color: rgba(79,142,247,0.3); }
.cs-metric-value {
  font-size: 42px; font-weight: 900; font-family: var(--font-display);
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.cs-metric-label { color: var(--text-muted); font-size: 14px; }
.cs-section { margin-bottom: 48px; }
.cs-section h3 { color: var(--primary); font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.cs-section h3::before { content: ''; width: 4px; height: 22px; background: var(--gradient); border-radius: 2px; }

/* ── Appointment / Booking ──────────────────────────────────── */
.time-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.time-slot {
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; cursor: pointer; transition: var(--transition);
}
.time-slot:hover, .time-slot.selected {
  background: var(--gradient); color: #fff; border-color: transparent;
}
.time-slot.unavailable { opacity: 0.4; pointer-events: none; cursor: not-allowed; }

/* ── Team card ──────────────────────────────────────────────── */
.team-card { text-align: center; padding: 40px 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); transition: var(--transition); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(79,142,247,0.25); }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 36px; color: #fff; font-weight: 700; font-family: var(--font-display); }
.team-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.team-bio { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── Process steps ──────────────────────────────────────────── */
.process-step { display: flex; gap: 24px; align-items: flex-start; }
.process-num {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient); color: #fff; font-weight: 800;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.process-content h4 { font-size: 18px; margin-bottom: 8px; }
.process-content p { color: var(--text-muted); font-size: 14px; }
.process-connector { width: 2px; height: 40px; background: var(--border); margin: 0 25px; }

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

/* ── Responsive ─────────────────────────────────────────────── */

/* ── Tablet (≤991px) ────────────────────────────────────────── */
@media (max-width: 991px) {
  /* Navbar */
  .navbar-collapse {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 10px;
    border: 1px solid var(--border);
  }
  .nav-actions { margin-top: 16px; flex-direction: row; }
  .nav-link { padding: 10px 16px !important; }

  /* Hero */
  .hero-section { padding: 120px 0 60px; min-height: auto; }
  .hero-title { font-size: clamp(36px, 7vw, 64px); letter-spacing: -2px; }
  .hero-subtitle { font-size: 16px; max-width: 100%; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-divider { display: none; }
  .hero-stat-value { font-size: 30px; }

  /* Carousel */
  .carousel-scene { height: 320px; }
  .carousel-item-3d { width: 240px; margin-left: -120px; }

  /* CTA */
  .cta-card { padding: 48px 24px; }
  .cta-section { padding: 60px 0; }

  /* Stats */
  .stat-number { font-size: 40px; }

  /* Footer */
  .site-footer { padding: 60px 0 0; }
  .footer-top { padding-bottom: 40px; }

  /* Page hero */
  .page-hero { padding: 130px 0 60px; }
  .cs-hero { padding: 130px 0 60px; }

  /* Chatbot */
  .chatbot-panel { width: 340px; }
}

/* ── Mobile (≤767px) ────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Spacing */
  .section-padding { padding: 60px 0; }
  .section-padding-sm { padding: 40px 0; }

  /* Typography */
  .section-title { font-size: clamp(26px, 6vw, 36px); letter-spacing: -1px; }
  .section-subtitle { font-size: 15px; }

  /* Hero */
  .hero-section { padding: 100px 0 50px; }
  .hero-title { font-size: clamp(32px, 8vw, 48px); letter-spacing: -1px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline-primary,
  .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .hero-stats { gap: 16px; margin-top: 40px; }
  .hero-stat-value { font-size: 26px; }
  .hero-stat-label { font-size: 11px; }

  /* Carousel */
  .carousel-scene { height: 280px; }
  .carousel-item-3d { width: 220px; margin-left: -110px; }
  .carousel-card { padding: 20px 16px; }
  .carousel-card-title { font-size: 14px; }
  .carousel-card-desc { font-size: 12px; }
  .carousel-controls { margin-top: 30px; gap: 14px; }
  .carousel-btn { width: 42px; height: 42px; font-size: 15px; }

  /* Services */
  .service-card { padding: 28px 20px; }
  .service-card:hover { transform: none; }

  /* Stats */
  .stats-section { padding: 50px 0; }
  .stat-number { font-size: 36px; }
  .stat-label { font-size: 13px; }
  .stat-item { padding: 12px 8px; }

  /* Portfolio */
  .portfolio-filter { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filter-btn { white-space: nowrap; padding: 6px 16px; font-size: 13px; flex-shrink: 0; }
  .portfolio-img { height: 180px; }
  .portfolio-body { padding: 18px; }
  .portfolio-title { font-size: 16px; }
  .portfolio-card:hover { transform: none; }

  /* Testimonials */
  .testimonial-card { padding: 24px 20px; }
  .testimonial-text { font-size: 14px; }
  .testimonial-card:hover { transform: none; }

  /* Blog */
  .blog-img, .blog-img-placeholder { height: 180px; }
  .blog-body { padding: 18px; }
  .blog-title { font-size: 16px; }
  .blog-card:hover { transform: none; }

  /* CTA */
  .cta-card { padding: 36px 20px; }
  .cta-card h2 { font-size: clamp(24px, 5vw, 32px); }
  .cta-card p { font-size: 15px; margin-bottom: 24px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn-primary,
  .cta-btns .btn-outline-primary { width: 100%; text-align: center; }

  /* Footer */
  .site-footer { padding: 50px 0 0; }
  .footer-top { padding-bottom: 30px; }
  .footer-heading { margin-top: 28px; }
  .footer-newsletter { flex-direction: column; gap: 12px; }
  .footer-newsletter form { flex-direction: row; width: 100%; }
  .footer-newsletter input { min-width: 0; }
  .footer-bottom {
    flex-direction: column; text-align: center; gap: 10px;
  }
  .footer-bottom > div { flex-direction: column; gap: 8px; }
  .footer-policy-link { margin-left: 0; }

  /* Page hero */
  .page-hero { padding: 110px 0 50px; }
  .page-hero h1 { font-size: clamp(28px, 6vw, 42px); }
  .cs-hero { padding: 110px 0 50px; }

  /* Case study buttons */
  .cs-hero .d-flex.gap-3 { flex-direction: column; }
  .cs-hero .btn { width: 100%; text-align: center; font-size: 14px; padding: 12px 20px; }

  /* Chatbot */
  .chatbot-panel { width: 300px; right: -10px; }
  .chatbot-messages { height: 250px; }

  /* Floating buttons */
  #chatbotWidget { bottom: 20px; right: 16px; }
  .chatbot-toggle { width: 52px; height: 52px; font-size: 20px; }
  .whatsapp-float { bottom: 82px; right: 16px; width: 44px; height: 44px; font-size: 20px; }
  .back-to-top { bottom: 20px; left: 16px; width: 40px; height: 40px; font-size: 14px; }

  /* Sticky quote */
  .sticky-quote-btn { display: none; }

  /* Glass card */
  .glass-card { padding: 20px !important; }

  /* Trusted companies / logo strip */
  .trusted-strip { font-size: 13px; }

  /* Process steps */
  .process-step { gap: 16px; }
  .process-num { width: 42px; height: 42px; font-size: 15px; }
  .process-content h4 { font-size: 16px; }
  .process-content p { font-size: 13px; }
  .process-connector { height: 28px; margin: 0 20px; }

  /* Team card */
  .team-card { padding: 28px 18px; }
  .team-card:hover { transform: none; }

  /* CS metric card */
  .cs-metric-card { padding: 20px 14px; }
  .cs-metric-value { font-size: 32px; }
}

/* ── Small mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(28px, 9vw, 38px); }
  .hero-stats { 
    justify-content: flex-start; 
    gap: 12px; 
    flex-direction: row; 
    flex-wrap: wrap; 
  }
  .hero-stat { flex: 1 1 120px; text-align: left; }
  .hero-stat-value { font-size: 24px; }
  .hero-stat-label { font-size: 10px; }

  .stat-number { font-size: 30px; }

  .carousel-scene { height: 250px; }
  .carousel-item-3d { width: 200px; margin-left: -100px; }
  .carousel-card { padding: 16px; }
  .carousel-card-cat { font-size: 9px; }

  .testimonial-card { padding: 20px 16px; }
  .testimonial-quote { font-size: 36px; }

  .cta-card { padding: 28px 16px; }

  .chatbot-panel { width: 280px; right: -8px; bottom: 70px; }
  .chatbot-messages { height: 220px; }

  .page-hero { padding: 100px 0 40px; }
  .cs-hero { padding: 100px 0 40px; }

  .footer-bottom { font-size: 12px; }

  .service-card { padding: 24px 16px; }
  .service-icon { width: 50px; height: 50px; font-size: 20px; }

  /* Buttons */
  .btn-primary, .btn-outline-primary, .btn-ghost, .btn-youtube, .btn-github {
    padding: 12px 20px; font-size: 14px;
  }
}
