/* =============================================
   VISOBOTICS — Corporate Design System v2.0
   ============================================= */

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

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Brand Colors — solid primary, no heavy gradients */
  --brand-primary: #1a6bff;
  --brand-primary-dark: #0a4fd4;
  --brand-primary-light: #4d8fff;
  --brand-primary-rgb: 26, 107, 255;
  --brand-accent: #0f3fa6;
  /* deep navy accent */

  /* Neutrals */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Semantic */
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --bg-surface: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-col: #e2e8f0;

  /* Typography */
  --font-heading: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py: 100px;
  --section-py-sm: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .12);

  /* Transition */
  --transition: all 0.26s cubic-bezier(.4, 0, .2, 1);
}

/* --- Base Reset & Typography --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
  /* Better than hidden for sticky/fixed stability on some mobile browsers */
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  padding-top: 0;
  /* Sticky elements stay in flow, so no initial padding needed */
  -ms-overflow-style: none;
  /* IE/Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Adjust body padding for mobile when ticker + nav height changes */
@media (max-width: 991.98px) {
  body {
    padding-top: 0;
  }
}

/* Hide WebKit scrollbar */
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fw-600 {
  font-weight: 600 !important;
}

.rounded-brand {
  border-radius: var(--radius-md) !important;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ============================================
   TOP BAR — scrolling ticker
   ============================================ */
.top-bar {
  background: var(--brand-primary);
  color: #fff;
  padding: 9px 0;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .01em;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

@media (max-width: 991.98px) {
  .top-bar {
    padding: 6px 0;
    font-size: 0.78rem;
  }
}

.top-bar-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.top-bar-item {
  display: inline-block;
  padding: 0 48px;
}

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

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.top-bar a {
  color: rgba(255, 255, 255, .85);
  text-decoration: underline;
}

.top-bar a:hover {
  color: #fff;
}

/* ============================================
   NAVBAR & HEADER
   ============================================ */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1050;
  transition: var(--transition);
}

.navbar-visobotics {
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-col);
  padding: 13px 0;
  transition: var(--transition);
  box-shadow: none;
}

.navbar-visobotics.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
  padding: 9px 0;
}

.navbar-brand img {
  height: 32px;
}

@media (max-width: 991.98px) {
  .navbar-visobotics {
    padding: 8px 0;
  }

  .navbar-visobotics .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-brand img {
    height: 26px;
  }

  .navbar-brand span {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 380px) {
  .navbar-brand span {
    font-size: 0.95rem !important;
  }

  .navbar-brand img {
    height: 24px;
  }

  .ham-icon {
    width: 24px;
  }
}

.nav-link {
  font-weight: 500;
  font-size: .92rem;
  color: var(--neutral-700) !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary) !important;
  background: rgba(26, 107, 255, .06);
}

.nav-link.active {
  font-weight: 600;
}

.btn-nav-cta {
  background: var(--brand-primary) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 4px 14px rgba(26, 107, 255, .3);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--brand-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 107, 255, .4);
}

/* ============================================
   ANIMATED HAMBURGER BUTTON
   ============================================ */
.navbar-toggler {
  border: none !important;
  padding: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  outline: none !important;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Hamburger lines */
.ham-icon {
  display: flex;
  flex-direction: column;
  width: 28px;
  gap: 5px;
  position: relative;
}

.ham-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--neutral-800);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
    opacity .25s ease,
    width .3s ease;
  transform-origin: center;
}

.ham-icon span:nth-child(1) {
  width: 28px;
}

.ham-icon span:nth-child(2) {
  width: 20px;
}

.ham-icon span:nth-child(3) {
  width: 24px;
}

/* Open state — transforms to X */
.navbar-toggler[aria-expanded="true"] .ham-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 28px;
}

.navbar-toggler[aria-expanded="true"] .ham-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .ham-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 28px;
}

/* Legacy toggler style override */
.navbar-toggler-old {
  border: 0;
  padding: 6px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-brand {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  border: 2px solid var(--brand-primary);
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-brand:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 107, 255, .35);
}

.btn-brand:focus {
  outline: 3px solid rgba(26, 107, 255, .35);
  outline-offset: 2px;
}

.btn-brand.btn-sm {
  padding: 8px 20px;
  font-size: .85rem;
}

.btn-outline-brand {
  display: inline-block;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-outline-brand:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 107, 255, .3);
}

.btn-outline-brand.btn-sm {
  padding: 7px 18px;
  font-size: .85rem;
}

.btn-cta-white {
  display: inline-block;
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.btn-cta-white:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}


.btn-cta-primary {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.btn-cta-primary:hover {
  background: #fff;
  color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50px;
  padding: 11px 30px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-py {
  padding: var(--section-py) 0;
}

.section-py-sm {
  padding: var(--section-py-sm) 0;
}

.bg-surface {
  background: var(--bg-surface) !important;
}

.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 0;
  line-height: 1.75;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ============================================
   PAGE BANNER (inner pages)
   ============================================ */
.page-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--neutral-900);
}

.page-banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .32;
}

.page-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .85) 0%, rgba(15, 23, 42, .4) 100%);
}

.page-banner .banner-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  width: 100%;
}

.page-banner h1,
.page-banner .hero-title {
  color: #fff !important;
}

.page-banner .hero-subtitle {
  color: rgba(255, 255, 255, .78);
}

.page-banner .section-label {
  color: rgba(255, 255, 255, .65);
}

.page-banner .breadcrumb-item a {
  color: rgba(255, 255, 255, .6);
}

.page-banner .breadcrumb-item.active {
  color: rgba(255, 255, 255, .85);
}

.page-banner .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .4);
}

/* Legacy .page-hero compat */
.page-hero {
  background: var(--neutral-50);
  padding: 70px 0 55px;
  border-bottom: 1px solid var(--border-col);
}

/* ============================================
   HERO SLIDER (Homepage)
   ============================================ */
.hero-swiper {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 820px;
}

.hero-swiper .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-swiper .slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-swiper .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 20, 50, .82) 0%, rgba(10, 20, 50, .45) 60%, rgba(10, 20, 50, .18) 100%);
}

.hero-swiper .slide-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 680px;
  padding: 0 16px;
}

.hero-swiper .slide-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.hero-swiper .slide-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 18px;
}

.hero-swiper .slide-title .accent {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--brand-primary);
  text-underline-offset: 6px;
}

.hero-swiper .slide-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .8);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-swiper .slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Swiper pagination / nav */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  color: #fff;
  transition: var(--transition);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 900;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .5);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--brand-primary);
  transform: scale(1.3);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--brand-primary);
  padding: 32px 0;
}

.stats-bar .stat-item {
  text-align: center;
}

.stats-bar .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
}

.stats-bar .stat-label {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 4px;
}

.stats-bar .divider {
  border-left: 1px solid rgba(255, 255, 255, .2);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(26, 107, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--brand-primary);
  color: #fff;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.project-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--neutral-100);
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.06);
}

.project-card-body {
  padding: 24px;
}

.project-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(26, 107, 255, .08);
  color: var(--brand-primary);
  border-radius: 4px;
  padding: 3px 10px;
  margin: 2px;
  letter-spacing: .03em;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 10px 0 8px;
  color: var(--text-main);
}

.project-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Project filter buttons */
.filter-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-col);
  border-radius: 50px;
  padding: 7px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.blog-card .blog-img {
  height: 210px;
  overflow: hidden;
  background: var(--neutral-100);
}

.blog-card .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.06);
}

.blog-card .blog-body {
  padding: 24px;
}

.blog-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-primary);
  background: rgba(26, 107, 255, .07);
  border-radius: 4px;
  padding: 3px 9px;
  display: inline-block;
}

/* Featured blog card (horizontal) */
.blog-card.featured {
  flex-direction: row;
  display: flex;
}

.blog-card.featured .blog-img {
  min-width: 300px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .blog-card.featured {
    flex-direction: column;
  }

  .blog-card.featured .blog-img {
    min-width: unset;
    height: 200px;
  }
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--brand-primary);
  opacity: .12;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 107, 255, .25);
}

.star-rating {
  color: #f59e0b;
  font-size: 1rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-col);
}

/* ============================================
   TESTIMONIAL SWIPER (Testimonials page)
   ============================================ */
.testimonial-swiper {
  padding-bottom: 50px !important;
}

.testimonial-swiper .swiper-pagination-bullet {
  background: var(--neutral-300);
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: var(--brand-primary);
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar.lg {
  width: 120px;
  height: 120px;
  font-size: 2.4rem;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-col) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item .accordion-button {
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: .95rem;
  box-shadow: none;
  padding: 18px 24px;
}

.faq-item .accordion-button:not(.collapsed) {
  color: var(--brand-primary);
  background: rgba(26, 107, 255, .03);
}

.faq-item .accordion-button::after {
  filter: none;
}

.faq-item .accordion-body {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--brand-primary);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-col);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: .95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 255, .1);
  background: var(--bg-card);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 72px 0 30px;
}

.footer-brand img {
  height: 36px;
  filter: brightness(10);
  opacity: .9;
}

.footer-title {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  color: var(--neutral-400);
  font-size: .9rem;
  margin-bottom: 9px;
  transition: var(--transition);
}

.footer-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  font-size: .9rem;
  margin-right: 8px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, .08);
}

.footer-social a:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, .08);
  margin: 32px 0 20px;
}

/* ============================================
   BADGES / TAGS
   ============================================ */
.badge-soft-primary {
  background: rgba(26, 107, 255, .1);
  color: var(--brand-primary);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-soft-success {
  background: rgba(16, 185, 129, .1);
  color: #059669;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.badge-soft-orange {
  background: rgba(249, 115, 22, .1);
  color: #ea580c;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ============================================
   STAT CARDS (standalone)
   ============================================ */
.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
}

.stat-card .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}

/* Homepage stats (inside hero bar) */
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
}

/* ============================================
   COUNTER (animated)
   ============================================ */
.counter-wrap {
  text-align: center;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-item a {
  color: var(--neutral-500);
  font-size: .87rem;
}

.breadcrumb-item.active {
  color: var(--text-muted);
  font-size: .87rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--neutral-400);
}

/* ============================================
   FEATURE ITEMS
   ============================================ */
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-col);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  transition: var(--transition);
}

/* ============================================
   PROCESS / TIMELINE STEPS
   ============================================ */
.process-step {
  position: relative;
  padding-left: 70px;
  min-height: 60px;
  margin-bottom: 36px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}

.process-step .step-line {
  position: absolute;
  left: 25px;
  top: 52px;
  width: 2px;
  height: calc(100% - 8px);
  background: var(--border-col);
}

.process-step:last-child .step-line {
  display: none;
}

/* ============================================
   FOUNDER QUOTE
   ============================================ */
.founder-quote-block {
  background: var(--bg-surface);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px;
}

.founder-quote-block p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
}

/* ============================================
   PRODUCT CARDS (Products page)
   ============================================ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.product-card-img {
  height: 240px;
  overflow: hidden;
  background: var(--neutral-100);
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-img .product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.product-price small {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Detail page gallery */
.gallery-swiper {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 520px !important;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-swiper .swiper-slide img {
    height: 260px !important;
  }
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, .45);
  border-radius: 50%;
  color: #fff;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  font-size: .9rem;
  font-weight: 900;
}

/* ============================================
   BLOG POST CONTENT
   ============================================ */
.blog-post-content h2 {
  font-size: 1.55rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.blog-post-content p,
.blog-post-content li {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-main);
}

.blog-post-content ul {
  padding-left: 1.5rem;
}

.blog-post-content ul li {
  margin-bottom: .4rem;
}

.blog-post-content a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--brand-primary);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(26, 107, 255, .04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ============================================
   PAGINATION
   ============================================ */
.page-link {
  color: var(--brand-primary);
  border-color: var(--border-col);
  font-weight: 500;
}

.page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.page-link:hover {
  background: rgba(26, 107, 255, .06);
  color: var(--brand-primary-dark);
}

/* ============================================
   GLIGHTBOX OVERRIDES
   ============================================ */
.glightbox-clean .gclose {
  fill: #fff;
}

/* ============================================
   ANIMATIONS / AOS FALLBACK
   ============================================ */
[data-aos] {
  opacity: 0;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* ============================================
   STAT CARD (standalone — inner pages)
   ============================================ */
.stat-card {
  padding: 30px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-primary);
}

.stat-card .stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  font-family: var(--font-heading);
}

.stat-card .stat-label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   BLOG CARDS — featured horizontal variant
   ============================================ */
.blog-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.blog-card.featured .blog-img {
  height: 100%;
  min-height: 280px;
}

@media (max-width: 767px) {
  .blog-card.featured {
    grid-template-columns: 1fr;
  }

  .blog-card.featured .blog-img {
    min-height: 220px;
  }
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar.lg {
  width: 100px;
  height: 100px;
  font-size: 1.5rem;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   REVIEWER AVATAR (testimonials)
   ============================================ */
.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-col);
  display: block;
}

/* ============================================
   UTILITY — badge-soft-primary
   ============================================ */
.badge-soft-primary {
  background: rgba(26, 107, 255, .1);
  color: var(--brand-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  :root {
    --section-py: 52px;
    --section-py-sm: 30px;
  }

  .hero-swiper {
    height: 70vh;
  }

  .process-step {
    padding-left: 56px;
  }

  .process-step .step-num {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  :root {
    --section-py: 56px;
    --section-py-sm: 40px;
  }

  .hero-swiper {
    height: 85vh;
    min-height: 520px;
  }

  .hero-swiper .slide-title {
    font-size: 2rem;
  }

  .page-banner {
    min-height: 260px;
  }

  .page-banner .banner-content {
    padding: 60px 0 40px;
  }

  .stats-bar .divider {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
}

/* ============================================
   CONTACT PAGE — TYPE SELECTOR BAR
   ============================================ */
.contact-type-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-col);
  padding: 20px 0;
}

.contact-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 767px) {
  .contact-type-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .contact-type-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.ctype-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid var(--border-col);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.ctype-btn i {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.ctype-btn .ctype-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-main);
}

.ctype-btn .ctype-sub {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.ctype-btn:hover {
  border-color: var(--brand-primary);
  background: rgba(26, 107, 255, .04);
}

.ctype-btn.active {
  border-color: var(--brand-primary);
  background: rgba(26, 107, 255, .06);
}

.ctype-btn.active i {
  color: var(--brand-primary);
}

.ctype-btn.active .ctype-label {
  color: var(--brand-primary);
}

/* ============================================
   CONTACT PAGE — INFO PANEL & STEPS
   ============================================ */
.contact-info-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-step:last-child {
  margin-bottom: 0;
}

.cstep-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cstep-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-main);
}

.cstep-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Channel pills */
.contact-channel-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.contact-channel-pill:hover {
  border-color: var(--brand-primary);
  background: rgba(26, 107, 255, .04);
  color: var(--text-main);
}

.contact-channel-pill.static {
  cursor: default;
}

.contact-channel-pill.static:hover {
  border-color: var(--border-col);
  background: var(--bg-card);
}

.contact-channel-pill i {
  font-size: 1.2rem;
  color: var(--brand-primary);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.x-small {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ============================================
   CONTACT PAGE — FORM CARD & SECTIONS
   ============================================ */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 575px) {
  .contact-form-card {
    padding: 24px;
  }
}

.form-section {
  position: relative;
}

.form-section-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 0;
  padding: 0;
}

.form-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   CONTACT PAGE — SUCCESS ICON
   ============================================ */
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.success-icon i {
  font-size: 2.4rem;
  color: #10b981;
}

/* ============================================
   CONTACT PAGE — FAQ MINI CARDS
   ============================================ */
.contact-faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.contact-faq-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-primary);
}

.contact-faq-card i {
  font-size: 1.8rem;
  color: var(--brand-primary);
}

/* ============================================
   404 PAGE STYLES
   ============================================ */
.not-found-section {
  padding: 120px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.nf-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  line-height: .8;
  color: var(--brand-primary);
  opacity: 0.15;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  text-shadow: 10px 10px 0px rgba(26, 107, 255, 0.05);
}

.nf-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.nf-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.nf-link-pill {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-col);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.nf-link-pill:hover {
  background: rgba(26, 107, 255, .06);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* =============================================
   PORTFOLIO CARD STYLES
   ============================================= */

.portfolio-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: var(--border-col) !important;
}

.portfolio-card:hover {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 8px 24px rgba(26, 107, 255, 0.12) !important;
  transform: translateY(-4px);
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.portfolio-img-wrapper img {
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Tech Cards for Skills/Stack */
.tech-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-col);
  transition: all 0.3s ease;
  background: var(--bg-card);
}

.tech-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(26, 107, 255, 0.1);
  transform: translateY(-2px);
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  border-color: var(--border-col);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  min-width: 160px;
}

.dropdown-item {
  padding: 10px 16px;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text-main);
}

.dropdown-item:hover {
  background-color: rgba(26, 107, 255, 0.06);
  color: var(--brand-primary);
}

.dropdown-item.active {
  background-color: rgba(26, 107, 255, 0.1);
  color: var(--brand-primary);
  font-weight: 600;
}

/* Responsive Adjustments for Portfolio */
@media (max-width: 768px) {
  .portfolio-card {
    margin-bottom: 12px;
  }

  .portfolio-img-wrapper {
    height: 240px !important;
  }

  .tech-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .portfolio-img-wrapper {
    height: 200px !important;
  }

  .portfolio-card .p-4 {
    padding: 16px !important;
  }

  .badge {
    font-size: 0.7rem !important;
  }
}