/* ============================================================
   DevOpsly Studios — Premium Design System
   A world-class webdev & DevOps agency portfolio
   ============================================================ */

/* ===== Google Fonts + Variables ===== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Core Palette */
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #3B82F6;
  --cyan:        #06B6D4;
  --orange:      #F59E0B;
  --orange-dark: #D97706;
  --red:         #EF4444;
  --green:       #10B981;

  /* Backgrounds */
  --bg:          #F8FAFF;
  --bg-alt:      #FFFFFF;
  --bg-dark:     #060C18;
  --bg-dark-2:   #0D1421;
  --bg-dark-3:   #131C2E;
  --bg-card:     #FFFFFF;

  /* Text */
  --text:        #0F172A;
  --text-2:      #334155;
  --text-3:      #64748B;
  --text-4:      #94A3B8;

  /* Borders */
  --border:      rgba(15, 23, 42, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --grad-blue:   linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --grad-orange: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --grad-purple: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --grad-dark:   linear-gradient(135deg, #060C18 0%, #0D1421 100%);

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 4px 8px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 8px 16px rgba(15, 23, 42, 0.08), 0 24px 64px rgba(15, 23, 42, 0.12);
  --shadow-xl:   0 16px 32px rgba(15, 23, 42, 0.1), 0 40px 100px rgba(15, 23, 42, 0.18);
  --shadow-blue: 0 8px 32px rgba(37, 99, 235, 0.25);
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.3);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:           all 0.3s var(--ease);
  --t-slow:      all 0.6s var(--ease);

  /* Legacy aliases (for compatibility) */
  --primary-blue:       var(--blue);
  --primary-blue-dark:  var(--blue-dark);
  --accent-orange:      var(--orange);
  --accent-orange-dark: var(--orange-dark);
  --dark:               var(--text);
  --white:              var(--bg-card);
  --gray-100:           var(--bg);
  --gray-200:           #E8EBF4;
  --gray-300:           #C5CAD9;
  --gray-400:           var(--text-3);
  --gradient-blue:      var(--grad-blue);
  --gradient-orange:    var(--grad-orange);
  --shadow-glow:        0 0 60px rgba(37, 99, 235, 0.3);
  --transition:         var(--t);
}

/* ===== Dark Mode ===== */
.dark-mode {
  --bg:          #060C18;
  --bg-alt:      #0D1421;
  --bg-card:     #111827;
  --text:        #F1F5F9;
  --text-2:      #CBD5E1;
  --text-3:      #94A3B8;
  --text-4:      #64748B;
  --border:      rgba(255, 255, 255, 0.07);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 8px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.25);
  --shadow-lg:   0 8px 16px rgba(0,0,0,0.35), 0 24px 64px rgba(0,0,0,0.3);

  /* Legacy aliases */
  --dark:        #F1F5F9;
  --white:       #111827;
  --gray-100:    #131C2E;
  --gray-200:    #1E2A3E;
  --gray-300:    #2E3A50;
  --gray-400:    #94A3B8;
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.4);
}

.dark-mode .code-window { background: #070D1A; }
.dark-mode .window-header { background: #0D1421; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--t);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}

.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 159, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 159, 11, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-full { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--t);
}

.navbar.scrolled {
  background: rgba(6, 12, 24, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; }

.logo-box {
  display: flex;
  align-items: stretch;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  border: 2px solid rgba(15, 23, 42, 0.75);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--t);
}

.logo-mark { display: none; }

/* Default = light mode, scrolled (dark logo on white navbar) */
.logo-dev {
  background: #0F172A;
  color: #fff;
  padding: 7px 11px;
  transition: var(--t);
}

.logo-studios {
  background: transparent;
  color: #0F172A;
  padding: 7px 11px;
  transition: var(--t);
}

/* Footer logo — always white since footer bg is always dark */
.footer .logo-box     { border-color: rgba(255,255,255,0.9); }
.footer .logo-dev     { background: rgba(255,255,255,0.95); color: #060C18; }
.footer .logo-studios { color: rgba(255,255,255,0.95); }

/* Dark mode — white logo always (both scrolled and not scrolled) */
.dark-mode .logo-box    { border-color: rgba(255,255,255,0.9); }
.dark-mode .logo-dev    { background: rgba(255,255,255,0.95); color: #060C18; }
.dark-mode .logo-studios { color: rgba(255,255,255,0.95); }

.navbar.scrolled .logo-box { transform: scale(0.92); }

/* Light mode navbar when scrolled — white glass background, dark links */
body:not(.dark-mode) .navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.06);
}
body:not(.dark-mode) .navbar.scrolled .nav-links a       { color: rgba(15, 23, 42, 0.65); }
body:not(.dark-mode) .navbar.scrolled .nav-links a:hover { color: #0F172A; }
body:not(.dark-mode) .navbar.scrolled #theme-toggle      { border-color: rgba(15,23,42,0.2); color: #0F172A; }

/* Nav Links */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--grad-blue);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

/* Theme Toggle */
.theme-toggle {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

#theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 9px;
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
}

#theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

#theme-toggle svg { width: 18px; height: 18px; }

.sun-icon { display: block; }
.moon-icon { display: none; }
.dark-mode .sun-icon { display: none; }
.dark-mode .moon-icon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: var(--t);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Dark layered background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: #070D1A;
}

/* Dot grid pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Gradient orbs */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(6, 182, 212, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

/* Hero scanline overlay for tech feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.015) 2px,
    rgba(0,0,0,0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Wave bottom divider */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(56% 100% at 50% 100%);
  z-index: 2;
}

.dark-mode .hero::after { background: var(--bg); }

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text { color: #fff; }

/* Tag line above hero title */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #60A5FA;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-tag-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.title-white { display: block; color: #fff; }

.title-orange {
  display: block;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
  margin-top: -14px;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}


/* Stats */
.hero-stats {
  display: flex;
  gap: 44px;
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  align-self: stretch;
  margin: 4px 0;
}

/* ===== Hero Visual ===== */
.hero-visual {
  position: relative;
  height: 520px;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  animation: float 5s ease-in-out infinite;
  z-index: 10;
}

.floating-card .card-icon { font-size: 1.2rem; }

.card-1 { top: 22%; left: 2%;  animation-delay: 0s;   }
.card-2 { top: 2%;  left: 16%; animation-delay: 1.2s; }
.card-3 { top: 72%; left: 2%;  animation-delay: 2.4s; }
.card-4 { top: 48%; left: 6%;  animation-delay: 0.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Terminal window */
.code-window {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(320px, 42vw);
  background: #070D1A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.15),
    0 24px 80px rgba(0,0,0,0.5),
    0 0 80px rgba(37, 99, 235, 0.08);
  z-index: 5;
}

.window-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #0D1421;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green  { background: #28CA41; }

.terminal-title {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.terminal-content {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  min-height: 220px;
  color: #E8E8E8;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt { color: #10B981; font-weight: 700; }
.command { color: #F8F8F2; }
.cursor { color: #10B981; animation: blink 1s step-end infinite; }

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal-output { margin-top: 6px; color: #8BE9FD; }

.terminal-output .output-line {
  margin: 3px 0;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.terminal-output .success  { color: #10B981; }
.terminal-output .info     { color: #8BE9FD; }
.terminal-output .warning  { color: #F1FA8C; }
.terminal-output .highlight { color: #FF79C6; }
.terminal-output .white    { color: #F8F8F2; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  z-index: 3;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid rgba(255,255,255,0.3);
  border-bottom: 1.5px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section Commons ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-tag::before { content: '//'; opacity: 0.5; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.section-desc {
  color: var(--text-3);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: 18px;
  position: relative;
  transition: var(--t);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Subtle gradient top accent */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px 18px 0 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

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

.service-card.featured {
  background: var(--grad-blue);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-blue);
}

.service-card.featured::before { display: none; }

.service-card.featured:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.4);
}

.service-card.featured h3,
.service-card.featured p { color: #fff; }

.service-card.featured .service-features span {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.service-card.featured .service-icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.featured-badge {
  position: absolute;
  top: -11px; right: 24px;
  background: var(--grad-orange);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 159, 11, 0.35);
}

.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--blue);
  transition: var(--t);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card:hover .service-icon {
  background: rgba(37, 99, 235, 0.14);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-3);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-features span {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--t);
}

.service-card:hover .service-features span {
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--blue);
}

/* Colored icons per service */
.services-grid .service-card:nth-child(1) .service-icon { background: rgba(37, 99, 235, 0.1); color: #3B82F6; }
.services-grid .service-card:nth-child(3) .service-icon { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.services-grid .service-card:nth-child(4) .service-icon { background: rgba(124, 58, 237, 0.12); color: #8B5CF6; }
.services-grid .service-card:nth-child(5) .service-icon { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.services-grid .service-card:nth-child(6) .service-icon { background: rgba(239, 68, 68, 0.1); color: #EF4444; }

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: 120px 0;
  background: #0A1222;
  position: relative;
}

.portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 10%, transparent 80%);
  pointer-events: none;
}

.portfolio .container { position: relative; z-index: 2; }

.portfolio .section-tag {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
  color: #60A5FA;
}

.portfolio .section-title { color: #fff; }
.portfolio .section-desc { color: rgba(255,255,255,0.5); }

.dark-mode .portfolio { background: #070D1A; }

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

.portfolio-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: var(--t-slow);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(37, 99, 235, 0.35);
  border-color: rgba(37, 99, 235, 0.35);
}

.portfolio-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 24, 0.85) 0%, rgba(6, 12, 24, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  opacity: 0;
  transition: var(--t);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay span {
  background: rgba(255,255,255,0.95);
  color: #0F172A;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(14px);
  transition: transform 0.4s var(--ease-spring);
  letter-spacing: 0.02em;
}

.portfolio-card:hover .portfolio-overlay span {
  transform: translateY(0);
}

.portfolio-info {
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.portfolio-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
}

.portfolio-info p {
  color: rgba(255,255,255,0.38);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 120px 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}

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

.pricing-card--featured {
  background: var(--grad-blue);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-blue);
  transform: scale(1.02);
}

.pricing-card--featured:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.4);
}

.pricing-card--featured .pricing-subtitle,
.pricing-card--featured .pricing-meta {
  color: rgba(255,255,255,0.75);
}

.pricing-card--featured .pricing-features li {
  color: rgba(255,255,255,0.88);
}

.pricing-card--featured .pricing-features li::before {
  color: rgba(255,255,255,0.9);
}

.pricing-badge {
  position: absolute;
  top: -12px; left: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad-orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 159, 11, 0.3);
}

.pricing-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-bottom: 20px;
  line-height: 1.55;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.pricing-card--featured .pricing-price {
  border-bottom-color: rgba(255,255,255,0.15);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.pricing-card--featured .pricing-amount { color: #fff; }

.pricing-meta {
  font-size: 0.82rem;
  color: var(--text-3);
}

.pricing-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-2);
  line-height: 1.5;
}

.pricing-features li::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Extra cards */
.pricing-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  transition: var(--t);
}

.pricing-extra-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
}

.pricing-extra-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.pricing-extra-price {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.pricing-extra-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-3);
}

.pricing-extra-card ul li::before {
  content: '·  ';
  color: var(--blue);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 120px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text .section-tag { margin-bottom: 18px; }
.about-text .section-title { text-align: left; margin-bottom: 20px; }

.about-desc {
  color: var(--text-3);
  font-size: 1.05rem;
  margin-bottom: 44px;
  line-height: 1.75;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-blue);
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.feature-content p {
  color: var(--text-3);
  font-size: 0.9rem;
}

/* About Visual Card */
.about-visual { display: flex; justify-content: center; }

.about-card {
  background: var(--bg-dark);
  background: linear-gradient(145deg, #0D1421 0%, #0A1628 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 44px 40px;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 24px 80px rgba(0,0,0,0.3),
    0 0 80px rgba(37, 99, 235, 0.06);
  max-width: 400px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
  border-radius: 24px 24px 0 0;
}

.about-card-inner { color: #fff; }

.about-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-card p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0; padding: 0;
}

.about-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

.about-card-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.about-card-unique .about-card-inner h3 { margin-bottom: 12px; }
.about-card-unique .about-card-inner p  { margin-bottom: 20px; }

/* Legacy helpers that exist in HTML */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 7px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.rating { display: flex; align-items: center; gap: 12px; }
.stars  { color: var(--orange); font-size: 1.1rem; }
.rating-text { font-weight: 600; color: #fff; }

/* ===== BLOGS SECTION ===== */
.blogs {
  padding: 120px 0;
  background: var(--bg);
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  min-height: 120px;
}

.blogs-loading, .blogs-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.blogs-error { color: var(--red); }

.blog-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--t);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.blog-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--blue); }

.blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-4);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  background: rgba(37, 99, 235, 0.07);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 5px;
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Dot grid on CTA */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.cta::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: 0.02em;
}

.cta-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 120px 0;
  background: var(--bg-alt);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: var(--t);
}

.contact-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-details h4 {
  font-size: 0.75rem;
  color: var(--text-4);
  margin-bottom: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-details a, .contact-details span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-details a:hover { color: var(--blue); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-3);
  transition: var(--t);
  box-shadow: var(--shadow-xs);
}

.social-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

.social-link svg { width: 18px; height: 18px; }

/* Contact promise strip */
.contact-promise {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  margin-top: 4px;
}

.contact-promise-icon {
  color: var(--blue);
  flex-shrink: 0;
}
.contact-promise-icon svg { width: 20px; height: 20px; }

.contact-promise p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.5;
}
.contact-promise p strong { color: var(--text); }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  padding: 40px 36px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: var(--t);
  outline: none;
}

.form-group option { background: var(--bg-card); color: var(--text); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-4);
  margin-top: 12px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-msme { margin-top: 24px; }

.footer-msme__logo {
  display: block;
  width: 130px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-links { display: flex; gap: 80px; }

.footer-col h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 22px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* ===== WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65);
}

/* ===== CHATBOT WIDGET ===== */
.chatbot-widget {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  font-family: var(--font-body);
}

.chatbot-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.45);
  transition: var(--t);
  border: none;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(37, 99, 235, 0.55);
}

.chatbot-window {
  position: absolute;
  bottom: 76px; right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: var(--grad-blue);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h4 { margin: 0; font-size: 0.95rem; font-weight: 700; }

.chatbot-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--t);
}

.chatbot-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.chatbot-message {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.chatbot-message--bot {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
}

.chatbot-message--user {
  align-self: flex-end;
  background: var(--grad-blue);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}

.chatbot-message p { margin: 0; }

.chatbot-input-area {
  padding: 14px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--t);
  background: var(--bg);
  color: var(--text);
}

.chatbot-input:focus { border-color: var(--blue); }

.chatbot-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
  flex-shrink: 0;
}

.chatbot-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark-3);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transition: transform 0.4s var(--ease-spring);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 400px;
  text-align: center;
}

.notification.show { transform: translateX(-50%) translateY(0); }

/* ===== ANIMATIONS ===== */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.featured { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-tech { justify-content: center; }
  .hero-visual { display: none; }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-5px); }

  .pricing-extra-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-text .section-title { text-align: center; }
  .about-desc { text-align: center; }

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

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6, 12, 24, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.active { display: flex; }
  .hamburger { display: flex; }

  .hero-title { font-size: 2.1rem; }

  .hero-cta { flex-direction: column; align-items: center; }

  .hero-stats {
    flex-direction: row;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blogs-grid     { grid-template-columns: 1fr; }

  .footer-links { flex-direction: column; gap: 32px; }

  .contact-form { padding: 28px 22px; }

  .chatbot-window {
    width: calc(100vw - 24px);
    right: -4px;
    bottom: 76px;
  }

  .about-card { padding: 32px 26px; }

  .section-header { margin-bottom: 52px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 1.75rem; }
  .hero-subheading { display: none; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 2rem; }
  .pricing-grid { gap: 16px; }
}

/* ===== Clients / Trusted By Section ===== */
.clients.section {
  padding: 80px 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.clients-marquee-wrap {
  position: relative;
  margin-top: 48px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.clients-marquee {
  overflow: hidden;
  width: 100%;
}

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

.clients-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

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

.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 24px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 160px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.client-logo-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}

.client-logo-item img {
  height: 52px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.3s var(--ease);
}

.client-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Dark mode: convert to white silhouettes — eliminates white-bg logos clashing with dark cards */
.dark-mode .client-logo-item img {
  filter: brightness(0) invert(1) opacity(0.55);
}
.dark-mode .client-logo-item:hover img {
  filter: brightness(0) invert(1) opacity(1);
}

.client-logo-item span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.client-logo-item em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--bg-alt);
  background: var(--blue);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .client-logo-item {
    min-width: 130px;
    padding: 18px 22px;
  }
  .client-logo-item img { height: 40px; }
  .clients-track { gap: 28px; animation-duration: 20s; }
}

/* ===== SERVICE AREAS SECTION ===== */
.service-areas {
  padding: 100px 0;
  background: var(--bg);
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.area-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--t);
}

.area-item:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37, 99, 235, 0.04);
}

.area-item--home {
  border-color: var(--orange);
  background: rgba(245, 158, 11, 0.06);
  gap: 10px;
}

.area-item--home strong { color: var(--orange-dark); }

.area-item--home em {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--orange);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.area-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.area-item--home .area-dot {
  background: var(--orange);
  opacity: 1;
}

.areas-note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .area-item { padding: 8px 14px; font-size: 0.82rem; }
}

/* ============================================================
   3D TILT + GLARE SYSTEM
   ============================================================ */

.service-card,
.portfolio-card,
.pricing-card,
.blog-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* ============================================================
   HERO ORBITAL RINGS
   ============================================================ */

.hero-orbit {
  position: absolute;
  right: -110px;
  top: 50%;
  transform: translateY(-50%);
  width: 510px;
  height: 510px;
  z-index: 1;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
}

.orbit-ring-1 {
  inset: 0;
  border: 1px solid rgba(37, 99, 235, 0.24);
  animation: orbit-spin 26s linear infinite;
  will-change: transform;
}

.orbit-ring-1::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3B82F6;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px #3B82F6, 0 0 30px rgba(59,130,246,0.7);
}

.orbit-ring-1::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #06B6D4;
  bottom: -3.5px; left: 28%;
  box-shadow: 0 0 10px #06B6D4, 0 0 22px rgba(6,182,212,0.7);
}

.orbit-ring-2 {
  inset: 88px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  animation: orbit-spin 17s linear infinite reverse;
  will-change: transform;
}

.orbit-ring-2::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  top: -4px; right: 18%;
  box-shadow: 0 0 10px #F59E0B, 0 0 22px rgba(245,158,11,0.7);
}

.orbit-ring-3 {
  inset: 183px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  animation: orbit-spin 11s linear infinite;
  will-change: transform;
}

.orbit-ring-3::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8B5CF6;
  left: -3px; top: 38%;
  box-shadow: 0 0 10px #8B5CF6, 0 0 20px rgba(139,92,246,0.7);
}

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.32) 0%, rgba(37,99,235,0.06) 65%, transparent 100%);
  animation: orb-pulse 4s ease-in-out infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(37,99,235,0.4), 0 0 56px rgba(37,99,235,0.15); }
  50%       { box-shadow: 0 0 56px rgba(37,99,235,0.65), 0 0 100px rgba(37,99,235,0.28); }
}

/* ============================================================
   LIGHT THEME — SECTION DEPTH & POLISH
   ============================================================ */

/* Services: ambient orb top-right */
.services::after {
  content: '';
  position: absolute;
  top: -80px; right: -150px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.services .container { position: relative; z-index: 1; }

/* Light mode: better base shadow on cards */
body:not(.dark-mode) .service-card {
  box-shadow: 0 2px 4px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.07);
}

/* Light mode: colored gradient accent line per service */
body:not(.dark-mode) .services-grid .service-card:nth-child(1)::before { background: linear-gradient(90deg, #3B82F6, #06B6D4); }
body:not(.dark-mode) .services-grid .service-card:nth-child(3)::before { background: linear-gradient(90deg, #10B981, #34D399); }
body:not(.dark-mode) .services-grid .service-card:nth-child(4)::before { background: linear-gradient(90deg, #8B5CF6, #3B82F6); }
body:not(.dark-mode) .services-grid .service-card:nth-child(5)::before { background: linear-gradient(90deg, #F59E0B, #F97316); }
body:not(.dark-mode) .services-grid .service-card:nth-child(6)::before { background: linear-gradient(90deg, #EF4444, #F59E0B); }

/* Light mode: colored hover shadow per service */
body:not(.dark-mode) .services-grid .service-card:nth-child(1):hover { box-shadow: 0 12px 32px rgba(37,99,235,0.13), 0 2px 8px rgba(37,99,235,0.07); }
body:not(.dark-mode) .services-grid .service-card:nth-child(3):hover { box-shadow: 0 12px 32px rgba(16,185,129,0.13), 0 2px 8px rgba(16,185,129,0.07); }
body:not(.dark-mode) .services-grid .service-card:nth-child(4):hover { box-shadow: 0 12px 32px rgba(124,58,237,0.13), 0 2px 8px rgba(124,58,237,0.07); }
body:not(.dark-mode) .services-grid .service-card:nth-child(5):hover { box-shadow: 0 12px 32px rgba(245,158,11,0.13), 0 2px 8px rgba(245,158,11,0.07); }
body:not(.dark-mode) .services-grid .service-card:nth-child(6):hover { box-shadow: 0 12px 32px rgba(239,68,68,0.13), 0 2px 8px rgba(239,68,68,0.07); }

/* Light mode: pricing alternate background */
body:not(.dark-mode) .pricing {
  background: linear-gradient(180deg, #fff 0%, #F8FAFF 100%);
}

/* Light mode: contact section */
body:not(.dark-mode) .contact {
  background: linear-gradient(135deg, #fff 0%, #F8FAFF 100%);
}

/* Light mode: blogs section */
body:not(.dark-mode) .blogs {
  background: linear-gradient(180deg, #F8FAFF 0%, #fff 100%);
}

/* Light mode: service areas */
body:not(.dark-mode) .service-areas {
  background: linear-gradient(180deg, #fff 0%, #F4F7FF 100%);
}

/* ============================================================
   DARK THEME — GLASSMORPHIC ATMOSPHERE
   ============================================================ */

/* Service cards */
.dark-mode .service-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.dark-mode .service-card:hover {
  background: linear-gradient(145deg, rgba(37,99,235,0.14) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(37,99,235,0.32);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,235,0.2), 0 0 40px rgba(37,99,235,0.08);
}

.dark-mode .service-card.featured {
  background: var(--grad-blue);
  backdrop-filter: none;
}

/* Pricing cards */
.dark-mode .pricing-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border-color: rgba(255,255,255,0.07);
}

.dark-mode .pricing-card:hover {
  background: linear-gradient(145deg, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(37,99,235,0.08);
}

.dark-mode .pricing-extra-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.07);
}

/* Blog cards */
.dark-mode .blog-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border-color: rgba(255,255,255,0.07);
}

.dark-mode .blog-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(37,99,235,0.07);
}

/* Contact cards */
.dark-mode .contact-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.07);
}

.dark-mode .contact-card:hover {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

/* Services ambient orb in dark */
.dark-mode .services::after {
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
}

/* ============================================================
   FLOATING CARD HOVER POLISH
   ============================================================ */

.floating-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.15);
  z-index: 11;
}

/* ============================================================
   AREA PILL HOVER SHADOW
   ============================================================ */

.area-item:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

/* Hide orbit rings below 1100px since hero-visual is hidden at 1024px */
@media (max-width: 1100px) {
  .hero-orbit { display: none; }
}

/* ============================================================
   ABOUT METRICS GRID
   ============================================================ */

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.about-metric {
  background: linear-gradient(145deg, #0D1421 0%, #0A1628 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.about-metric::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-metric:nth-child(1)::after { background: linear-gradient(90deg, #3B82F6, #06B6D4); }
.about-metric:nth-child(2)::after { background: linear-gradient(90deg, #10B981, #34D399); }
.about-metric:nth-child(3)::after { background: linear-gradient(90deg, #F59E0B, #F97316); }
.about-metric:nth-child(4)::after { background: linear-gradient(90deg, #8B5CF6, #3B82F6); }

.about-metric:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,235,0.12);
}

.about-metric:hover::after { opacity: 1; }

.about-metric-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-metric-icon svg { width: 20px; height: 20px; }

.about-metric:nth-child(1) .about-metric-icon { background: rgba(59,130,246,0.15); color: #60A5FA; }
.about-metric:nth-child(2) .about-metric-icon { background: rgba(16,185,129,0.15); color: #34D399; }
.about-metric:nth-child(3) .about-metric-icon { background: rgba(245,158,11,0.15); color: #FCD34D; }
.about-metric:nth-child(4) .about-metric-icon { background: rgba(124,58,237,0.15); color: #A78BFA; }

.about-metric-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.about-metric-number--text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.about-metric-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .about-metrics { max-width: 100%; }
  .about-metric { padding: 22px 18px; }
  .about-metric-number { font-size: 2rem; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
  z-index: 9999;
  box-shadow: 0 0 10px rgba(37,99,235,0.8), 0 0 4px rgba(245,158,11,0.5);
  pointer-events: none;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
#cursor-glow {
  position: fixed;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s;
  will-change: left, top;
}

/* ============================================================
   HERO PARTICLES CANVAS
   ============================================================ */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   HERO TITLE LINE REVEAL
   ============================================================ */
.hero-title-line {
  display: block;
  overflow: hidden;
}
.hero-title-inner {
  display: block;
  animation: lineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title-line:nth-child(1) .hero-title-inner { animation-delay: 0.1s; }
.hero-title-line:nth-child(2) .hero-title-inner { animation-delay: 0.3s; }
.hero-title-line:nth-child(3) .hero-title-inner { animation-delay: 0.5s; }
.hero-title-line-loc .hero-title-inner { font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: 0.18em; margin-top: 4px; }
.title-loc { color: var(--text-secondary); }

@keyframes lineReveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

/* Staggered hero element fade-up on load */
.hero-tag      { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0s    both; }
.hero-subheading { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }
.hero-subtitle   { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both; }
.hero-cta        { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.64s both; }
.hero-stats      { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.74s both; }
.hero-visual     { animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s  both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION TITLE UNDERLINE DRAW
   ============================================================ */
.section-title { position: relative; }

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.section-title.title-revealed::after { width: 52px; }

/* Don't underline centered / portfolio / about-left titles */
.portfolio .section-title::after { display: none; }
.about-text .section-title { display: inline-block; }

/* ============================================================
   LIGHT MODE — HERO SECTION
   ============================================================ */

/* Background */
body:not(.dark-mode) .hero-bg { background: #EEF2FF; }
body:not(.dark-mode) .hero-bg::before {
  background-image: radial-gradient(rgba(37, 99, 235, 0.13) 1px, transparent 1px);
}
body:not(.dark-mode) .hero-bg::after {
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(37,99,235,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(6,182,212,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 80%, rgba(124,58,237,0.06) 0%, transparent 60%);
}
body:not(.dark-mode) .hero::before { opacity: 0; }
body:not(.dark-mode) .hero::after  { background: var(--bg); }

/* Text */
body:not(.dark-mode) .hero-text    { color: #0F172A; }
body:not(.dark-mode) .title-white  { color: #0F172A; }
body:not(.dark-mode) .hero-subheading { color: rgba(15,23,42,0.52); }
body:not(.dark-mode) .hero-subtitle   { color: rgba(15,23,42,0.68); }

/* Tag */
body:not(.dark-mode) .hero-tag {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.22);
  color: #1D4ED8;
}

/* Stats */
body:not(.dark-mode) .stat-number  { color: #0F172A; }
body:not(.dark-mode) .stat-label   { color: rgba(15,23,42,0.5); }
body:not(.dark-mode) .stat-divider { background: rgba(15,23,42,0.12); }

/* Buttons */
body:not(.dark-mode) .btn-secondary {
  background: rgba(15,23,42,0.07);
  color: #0F172A;
  border-color: rgba(15,23,42,0.22);
}
body:not(.dark-mode) .btn-secondary:hover {
  background: rgba(15,23,42,0.13);
  border-color: rgba(15,23,42,0.38);
}

/* Floating cards */
body:not(.dark-mode) .floating-card {
  background: rgba(255,255,255,0.88);
  border-color: rgba(15,23,42,0.1);
  color: #0F172A;
  box-shadow: 0 8px 28px rgba(15,23,42,0.1);
}

/* Scroll indicator */
body:not(.dark-mode) .scroll-indicator { color: rgba(15,23,42,0.35); }
body:not(.dark-mode) .scroll-arrow {
  border-right-color: rgba(15,23,42,0.28);
  border-bottom-color: rgba(15,23,42,0.28);
}

/* Navbar in light mode (both scrolled and not — hero is light so nav links need to be dark always) */
body:not(.dark-mode) .nav-links a       { color: rgba(15,23,42,0.72); }
body:not(.dark-mode) .nav-links a:hover { color: #0F172A; }
body:not(.dark-mode) #theme-toggle {
  background: rgba(15,23,42,0.07);
  border-color: rgba(15,23,42,0.18);
  color: #0F172A;
}
