/* ============================================================
   MindScape Technologies — Custom CSS
   Premium glassmorphism, animations — Light Mode Only
   ============================================================ */

/* ── Google Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --sky: #0ea5e9;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --gradient-3: linear-gradient(135deg, #6366f1 0%, #2563eb 50%, #0ea5e9 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(37,99,235,0.35);
  --radius: 16px;
  --radius-lg: 24px;
}

/* Light mode — only theme */
:root, [data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.95);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --glass-card: rgba(255,255,255,0.7);
  --glass-card-border: rgba(255,255,255,0.9);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ── Selection ── */
::selection { background: rgba(37,99,235,0.3); color: var(--text-primary); }

/* ── Page Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse-scale 1.5s ease-in-out infinite;
}

.loader-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  animation: pulse-scale 1.5s ease-in-out infinite;
}

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

.loader-bar-fill {
  height: 100%;
  background: var(--gradient-2);
  border-radius: 2px;
  animation: loading-bar 1.8s ease-in-out infinite;
}

@keyframes loading-bar {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: rgba(37,99,235,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  animation: slideDown 0.3s ease;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--primary); background: rgba(37,99,235,0.08); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gradient-2);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,99,235,0.06); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { background: rgba(37,99,235,0.1); transform: translateX(4px); }

/* ── Section Layout ── */
.section {
  padding: 5rem 0;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.container {
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(37,99,235,0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 0.75rem;
}

.gradient-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  transition: var(--transition);
}
.glass-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Hero Shapes ── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2563eb, transparent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6366f1, transparent);
  bottom: -50px; left: -50px;
  animation-delay: 3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #0ea5e9, transparent);
  top: 30%; left: 40%;
  animation-delay: 5s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Grid lines overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Animated counter ── */
.counter { font-variant-numeric: tabular-nums; }

/* ── Stats Grid ── */
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; font-weight: 500; }

/* ── Service Card ── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gradient-3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.service-card:hover::before { opacity: 0.04; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover .service-icon-wrap { background: var(--gradient-2); }
.service-card:hover .service-icon-wrap svg,
.service-card:hover .service-icon-wrap i { color: white; }

.service-card > * { position: relative; z-index: 1; }

.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(37,99,235,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  font-size: 1.5rem;
  color: var(--primary);
}

/* ── Tech Card ── */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.tech-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.15);
}
.tech-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  transition: var(--transition);
}
.tech-card:hover .tech-icon { transform: scale(1.15) rotate(-5deg); }
.tech-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ── Portfolio Card ── */
.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(15,23,42,0.85));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* ── Testimonial Card ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1rem 0;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── CTA Banner ── */
.cta-banner {
  background: var(--gradient-3);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

/* ── Footer ── */
footer {
  background: #080f1f;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #94a3b8;
  padding-top: 24px !important;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
  padding: 0.2rem 0;
}
.footer-link:hover { color: var(--primary-light); }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-3px); }

/* ── Back to Top ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-2);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  z-index: 500;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(37,99,235,0.6); }

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── Hero Typing Animation ── */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Tab Buttons ── */
.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ── FAQ Accordion ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 1rem;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(37,99,235,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 0.85rem;
}
.faq-item.open .faq-icon { background: var(--primary); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--bg-card);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ── Blog Card ── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.blog-card:hover .blog-img { transform: scale(1.05); }
.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
}

/* ── Career Card ── */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.job-card:hover { border-color: var(--primary); transform: translateX(6px); box-shadow: var(--shadow-md); }
.job-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-remote { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-full { background: rgba(37,99,235,0.1); color: var(--primary); }
.badge-intern { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* ── Contact Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: var(--bg-card); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── Pricing Card ── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
}
.pricing-card.featured {
  background: var(--gradient-3);
  border-color: transparent;
  transform: scale(1.04);
}
.pricing-card:not(.featured):hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-price {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-name,
.pricing-card.featured li { color: white; }

/* ── Timeline ── */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-2);
  transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding: 0 3rem 3rem; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
  position: absolute;
  top: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -7px; }
.timeline-item:nth-child(even) .timeline-dot { left: -7px; }
.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.timeline-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; text-align: left !important; }
  .timeline-dot { left: 13px !important; right: auto !important; }
}

/* ── Marquee ── */
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Misc ── */
.divider {
  height: 1px;
  background: var(--border);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue { background: rgba(37,99,235,0.1); color: var(--primary); }
.badge-green { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-yellow { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* Page Hero Banner */
.page-hero {
  padding: 7rem 0 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0.04;
}

/* ── Value Card ── */
.value-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}
.value-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* ── Team Card ── */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.team-img { width: 100%; height: 240px; object-fit: cover; display: block; }
.team-socials { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.team-social-link {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}
.team-social-link:hover { background: var(--primary); color: white; }

/* ── Utility ── */
.text-gradient { background: var(--gradient-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bg-gradient { background: var(--gradient-2); }
.border-gradient { border-image: var(--gradient-2) 1; }

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes spin-slow { to { transform: rotate(360deg); } }

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-scale { animation: pulse-scale 2s ease-in-out infinite; }

/* ── Industry Pills ── */
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}
.industry-pill:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,99,235,0.06); transform: translateY(-2px); }

/* Print */
@media print { #navbar, #back-to-top, #page-loader { display: none !important; } }

/* ═══════════════════════════════════════════════
   IMPROVEMENT PACK — Priority 1 + 2 + 3
   ═══════════════════════════════════════════════ */

/* ── P1.1 Stat Card — stronger border + visible glow on hover ── */
.stat-card {
  border: 1px solid rgba(37,99,235,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.stat-card::before {
  transform: scaleX(1) !important; /* always show top accent */
  opacity: 0.6;
}
.stat-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary), 0 8px 32px rgba(37,99,235,0.2) !important;
}
.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(37,99,235,0.3));
}

/* ── P2.2 Service Card — enhanced hover glow ── */
.service-card:hover {
  border-color: rgba(37,99,235,0.4) !important;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2), 0 20px 60px rgba(37,99,235,0.15) !important;
}

/* ── P2.4 Tab Button — active state glow ── */
.tab-btn.active {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2), 0 4px 12px rgba(37,99,235,0.3);
}
.tab-btn:hover:not(.active) {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.3);
  color: var(--primary);
}

/* ── P2.3 Tech Proficiency Pill ── */
.tech-proficiency {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prof-expert   { background: rgba(16,185,129,0.12); color: #10b981; }
.prof-advanced { background: rgba(37,99,235,0.12);  color: var(--primary); }
.prof-used     { background: rgba(100,116,139,0.12); color: #64748b; }

/* ── P3.2 Form Validation — inline error messages ── */
.form-input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}
.form-input.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1) !important;
}
.form-error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}
.form-error-msg.show { display: block; }

/* ── P3.2 Toast Notification ── */
#toast-container {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 340px;
  pointer-events: all;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.toast-msg   { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; padding: 0; margin-left: 0.25rem; flex-shrink: 0; }
.toast-close:hover { color: var(--text-primary); }
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.success .toast-icon { color: #10b981; }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.error   .toast-icon { color: #ef4444; }

/* ── P3.4 Back-to-Top — SVG progress ring ── */
#back-to-top {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow: visible;
}
#back-to-top:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}
#scroll-progress-ring {
  position: absolute;
  top: -3px; left: -3px;
  width: 54px; height: 54px;
  pointer-events: none;
}
#scroll-progress-ring circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.1s linear;
}

/* ── P3.1 Floating Chat Widget ── */
#chat-widget {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
#chat-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-2);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 24px rgba(37,99,235,0.45);
  transition: var(--transition);
  position: relative;
}
#chat-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 10px 35px rgba(37,99,235,0.6); }
#chat-btn .chat-pulse {
  position: absolute;
  top: 2px; right: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
#chat-popup {
  display: none;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  transform-origin: bottom right;
  animation: popup-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#chat-popup.open { display: block; }
@keyframes popup-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.chat-popup-header {
  background: var(--gradient-2);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-popup-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid rgba(255,255,255,0.3);
}
.chat-popup-name  { font-weight: 700; font-size: 0.9rem; color: white; }
.chat-popup-status { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.chat-popup-body  { padding: 1.25rem; }
.chat-bubble {
  background: var(--bg-secondary);
  border-radius: 12px 12px 12px 2px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.chat-quick-reply {
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.15);
  cursor: pointer;
  transition: var(--transition);
}
.chat-quick-reply:hover { background: var(--primary); color: white; border-color: var(--primary); }
.chat-popup-input {
  display: flex;
  gap: 0.5rem;
}
.chat-popup-input input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
.chat-popup-input input:focus { border-color: var(--primary); }
.chat-popup-input button {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-popup-input button:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ── P1.4 Modal Scrollbar — styled ── */
#apply-modal > div {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
#apply-modal > div::-webkit-scrollbar { width: 4px; }
#apply-modal > div::-webkit-scrollbar-track { background: transparent; }
#apply-modal > div::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ── P3.3 Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.85rem; color: var(--text-secondary); max-width: 600px; }
.cookie-text a { color: var(--primary); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-accept {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-2);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-accept:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.cookie-decline {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-decline:hover { border-color: var(--primary); color: var(--primary); }

/* ── P5.1 CTA Button — animated gradient shimmer border ── */
.btn-primary-shimmer {
  position: relative;
}
.btn-primary-shimmer::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 52px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #6366f1, #2563eb);
  background-size: 300% 100%;
  z-index: -1;
  animation: shimmer-border 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary-shimmer:hover::after { opacity: 1; }
@keyframes shimmer-border {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* ── P1.3 Contact hero — reduce height so form is near-fold ── */
.contact-page-hero {
  padding-top: 6.5rem !important;
  padding-bottom: 2rem !important;
}

/* ── Portfolio filter — count badge ── */
.filter-count {
  font-size: 0.7rem;
  background: rgba(37,99,235,0.15);
  color: var(--primary);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  font-weight: 700;
  margin-left: 0.35rem;
}

/* ── Responsive fix: services grid last row centering ── */
.services-grid-centered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .services-grid-centered { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid-centered { grid-template-columns: 1fr; }
}

/* ── Theme toggle — sun/moon animation ── */
.theme-toggle {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}
.theme-toggle:active { transform: rotate(30deg) scale(0.9); }

/* ── Scroll progress bar (top of page) ── */
#scroll-progress-bar {
  position: fixed;
  top: 70px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-2);
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(37,99,235,0.5);
}

/* ── Tech tab panels — fade transition ── */
.tech-panel {
  animation: fadeInPanel 0.3s ease;
}
.tech-panel.hidden { display: none; }
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

