/* ==========================================================================
   Aeorax - Modern Bento Glassmorphism Design System & Theme Styles
   Author: Aeorax Digital Solutions (aeorax.com)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Dark Theme (Default) */
  --bg-color: #06080e;
  --bg-dots: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(14, 20, 33, 0.65);
  --card-bg-hover: rgba(19, 29, 49, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(59, 130, 246, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --nav-bg: rgba(6, 8, 14, 0.8);
  --nav-border: rgba(255, 255, 255, 0.08);
  --dropdown-bg: rgba(11, 17, 29, 0.96);
  --modal-overlay: rgba(3, 5, 10, 0.8);

  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-glow: rgba(6, 182, 212, 0.3);

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
  --btn-primary-bg: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --btn-secondary-bg: rgba(255, 255, 255, 0.04);
  --btn-secondary-border: rgba(255, 255, 255, 0.1);

  --badge-bg: rgba(59, 130, 246, 0.12);
  --badge-border: rgba(59, 130, 246, 0.25);
  --badge-text: #60a5fa;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 20px 40px -12px rgba(59, 130, 246, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-dots: rgba(15, 23, 42, 0.04);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bg-hover: rgba(255, 255, 255, 0.98);
  --card-border: rgba(226, 232, 240, 0.9);
  --card-border-hover: rgba(37, 99, 235, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(226, 232, 240, 0.9);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --modal-overlay: rgba(15, 23, 42, 0.6);

  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent-cyan: #0891b2;
  --accent-purple: #7c3aed;

  --btn-secondary-bg: rgba(15, 23, 42, 0.04);
  --btn-secondary-border: rgba(15, 23, 42, 0.12);

  --badge-bg: rgba(37, 99, 235, 0.08);
  --badge-border: rgba(37, 99, 235, 0.2);
  --badge-text: #2563eb;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 1);
  --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 1);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Ambient Glow Background Orbs */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.ambient-orb--1 {
  top: -10%;
  left: 25%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
}

.ambient-orb--2 {
  top: 35%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

.ambient-orb--3 {
  bottom: 5%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  width: fit-content;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseEffect 2s infinite;
}

@keyframes pulseEffect {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: #ffffff;
  box-shadow: 0 6px 24px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 30%
  );
  transform: rotate(30deg) translate(-100%, -100%);
  transition: transform 0.75s ease;
}

.btn--primary:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--primary-glow);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.35s ease;
}

.header--scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding: 0.85rem 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.25rem;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav__item--dropdown {
  position: relative;
}

.nav__item--dropdown:hover .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  width: 320px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0.75rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.dropdown__menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dropdown__menu li a span.icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.dropdown__menu li a:hover {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
  transform: translateX(4px);
}

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

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

/* Mobile Toggle Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-cta {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 10.5rem 0 6rem;
  position: relative;
  text-align: center;
}

.hero__content {
  max-width: 920px;
  margin: 0 auto;
}

.hero .badge {
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.75rem;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* Client logos marquee banner */
.hero-clients {
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.hero-clients__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.marquee-container {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  animation: marqueeScroll 28s linear infinite;
  flex-shrink: 0;
}

.marquee-item {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.marquee-item:hover {
  opacity: 1;
  color: var(--primary-light);
}

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

/* ==========================================================================
   Bento Grid & Services Section
   ========================================================================== */
.services-section {
  padding: 6.5rem 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

.bento-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              background-color 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Dynamic Radial Mouse Glow */
.bento-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: 0;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-hover);
  background-color: var(--card-bg-hover);
}

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

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

/* Column spans */
.bento-card--8 { grid-column: span 8; }
.bento-card--7 { grid-column: span 7; }
.bento-card--6 { grid-column: span 6; }
.bento-card--5 { grid-column: span 5; }
.bento-card--4 { grid-column: span 4; }
.bento-card--12 { grid-column: span 12; }

.bento-card__top {
  margin-bottom: 2rem;
}

.bento-card__icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bento-card:hover .bento-card__icon-wrap {
  transform: scale(1.1) rotate(4deg);
  background: rgba(59, 130, 246, 0.2);
}

.bento-card__tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.bento-card__title {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.bento-card__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.bento-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-pill {
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-weight: 500;
}

.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.bento-card__link:hover {
  gap: 0.85rem;
  color: #fff;
}

/* ==========================================================================
   Stats & Metric Counters
   ========================================================================== */
.stats-section {
  padding: 4rem 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: rgba(14, 20, 33, 0.35);
  backdrop-filter: blur(10px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   Portfolio / Our Work Showcase
   ========================================================================== */
.portfolio-section {
  padding: 6.5rem 0;
}

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

.filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.portfolio-card__media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.12) 0%, rgba(10, 15, 26, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--card-border);
}

[data-theme="light"] .portfolio-card__media {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.portfolio-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(10, 15, 26, 0.75);
  border: 1px solid var(--card-border);
  color: var(--primary-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

[data-theme="light"] .portfolio-card__badge {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  border-color: rgba(226, 232, 240, 0.9);
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.08) translateY(-4px);
}

.portfolio-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.portfolio-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-card__desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.portfolio-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 0.775rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  font-weight: 600;
}

/* ==========================================================================
   Testimonials Slider
   ========================================================================== */
.testimonials-section {
  padding: 6.5rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08), transparent 60%);
}

.testimonials-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-track {
  overflow: hidden;
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateX(0);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 2rem;
}

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

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.author-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--btn-secondary-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--primary);
}

/* ==========================================================================
   Interactive Quote Calculator / Modal
   ========================================================================== */
.quote-section {
  padding: 6.5rem 0;
  position: relative;
}

.quote-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--card-border-hover);
  border-radius: 28px;
  padding: 4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-hover);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.quote-form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.mobile-services-dropdown {
  display: none;
}

.desktop-services-checkboxes {
  display: grid;
}

.service-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.checkbox-pill:hover,
.checkbox-pill input:checked + span {
  color: var(--primary-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 5.5rem 0 2.5rem;
  border-top: 1px solid var(--card-border);
  background: rgba(6, 8, 14, 0.95);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

[data-theme="light"] .footer {
  background: #edf2f7;
  border-top: 2px solid #cbd5e1;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo img {
  height: 40px;
  margin-bottom: 1.25rem;
}

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

[data-theme="light"] .footer-brand p {
  color: #1e293b;
  font-weight: 450;
}

.footer-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

[data-theme="light"] .footer-title {
  color: #090d16;
  font-weight: 800;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

[data-theme="light"] .footer-links a {
  color: #334155;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

[data-theme="light"] .footer-links a:hover {
  color: #1d4ed8;
  font-weight: 600;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  margin-bottom: 1.15rem;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--primary-light);
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

[data-theme="light"] .footer-contact-icon {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1d4ed8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .footer-contact-item strong {
  color: #0f172a;
  font-weight: 700;
}

.footer-contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

[data-theme="light"] .footer-contact-item a {
  color: #1d4ed8;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: var(--primary-light);
}

[data-theme="light"] .footer-contact-item a:hover {
  color: #0284c7;
  text-decoration: underline;
}

[data-theme="light"] .footer-contact-item span:not(.footer-contact-icon) {
  color: #334155;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

[data-theme="light"] .social-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

[data-theme="light"] .social-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 550;
}

[data-theme="light"] .footer-bottom p {
  color: #334155;
}

/* Floating WhatsApp Quick Action Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 990;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__title { font-size: 3.25rem; }
  .section-title { font-size: 2.25rem; }
  .bento-card--8, .bento-card--7, .bento-card--6, .bento-card--5, .bento-card--4 {
    grid-column: span 12;
  }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-banner { grid-template-columns: 1fr; padding: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 1.15rem;
    width: 100%;
    max-width: 100%;
  }

  /* Header & Navigation */
  .menu-toggle { display: block; }
  
  .header__actions .header-cta {
    display: none !important;
  }

  .mobile-nav-cta {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: var(--dropdown-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 5.5rem 1.75rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav__menu.nav--active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .nav-chevron {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 0.85rem;
    margin-left: 0.25rem;
  }

  .nav__link--dropdown-toggle.is-open .nav-chevron {
    transform: rotate(180deg);
  }

  .dropdown__menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 12px;
  }

  .dropdown__menu.dropdown--open {
    display: block;
    animation: fadeInDropdown 0.25s ease;
  }

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

  .dropdown__menu li a {
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
  }

  /* Hero Section */
  .hero {
    padding: 7.25rem 0 3.25rem;
  }

  .hero__title {
    font-size: 2.25rem;
    line-height: 1.18;
    margin-bottom: 1.15rem;
    letter-spacing: -0.02em;
  }

  .hero__description {
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 1.85rem;
  }

  .hero__cta {
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    width: 100%;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-clients {
    padding-top: 1.5rem;
  }

  .marquee-track {
    gap: 2rem;
  }

  .marquee-item {
    font-size: 1rem;
  }

  /* Common Headings */
  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.95rem;
    margin-bottom: 0.85rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .services-section,
  .portfolio-section,
  .testimonials-section,
  .quote-section {
    padding: 3.75rem 0;
  }

  /* Bento Grid */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bento-card {
    grid-column: span 1 !important;
    padding: 1.65rem 1.25rem;
    border-radius: 18px;
  }

  .bento-card__icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
    border-radius: 12px;
    margin-bottom: 1.15rem;
  }

  .bento-card__title {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
  }

  .bento-card__desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
  }

  .bento-card__features {
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .feature-pill {
    font-size: 0.775rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
  }

  /* Stats Section */
  .stats-section {
    padding: 2.5rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.5rem;
  }

  .stat-item {
    padding: 0.5rem 0.25rem;
  }

  .stat-number {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
  }

  .stat-label {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* Portfolio Section */
  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.25rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    margin-bottom: 2rem;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-card {
    border-radius: 16px;
  }

  .portfolio-card__media {
    height: 195px;
  }

  .portfolio-card__img {
    max-height: 155px;
  }

  .portfolio-card__body {
    padding: 1.25rem 1.15rem;
  }

  .portfolio-card__title {
    font-size: 1.15rem;
  }

  .portfolio-card__desc {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .tech-tag {
    font-size: 0.725rem;
    padding: 0.25rem 0.55rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.65rem 1.15rem;
    border-radius: 18px;
  }

  .testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .author-avatar {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .author-info h4 {
    font-size: 0.95rem;
  }

  .author-info p {
    font-size: 0.8rem;
  }

  .slider-controls {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
  }

  /* Quote Form */
  .quote-banner {
    grid-template-columns: 1fr;
    padding: 1.65rem 1.15rem;
    border-radius: 20px;
    gap: 2rem;
  }

  .quote-banner h2 {
    font-size: 1.75rem;
  }

  .quote-banner p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .quote-form-card {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }

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

  .mobile-services-dropdown {
    display: block;
  }

  .desktop-services-checkboxes {
    display: none !important;
  }

  .service-checkboxes {
    display: none !important;
  }

  /* Compact Styled Mobile Footer */
  .footer {
    padding: 3rem 0 5.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    margin-bottom: 1.75rem;
  }

  .footer-brand {
    grid-column: span 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
  }

  [data-theme="light"] .footer-brand {
    border-bottom: 1px solid #cbd5e1;
  }

  .footer-brand .footer-logo img {
    height: 32px;
    margin-bottom: 0.5rem;
  }

  .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.55;
    max-width: 420px;
    margin: 0 auto 0.75rem;
  }

  .footer-socials {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
  }

  .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .footer-nav-col,
  .footer-solutions-col {
    grid-column: span 1;
  }

  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.35rem;
  }

  .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
  }

  .footer-links li {
    margin-bottom: 0.4rem;
  }

  .footer-links a {
    font-size: 0.825rem;
    line-height: 1.35;
  }

  .footer-contact-col {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.15rem;
  }

  [data-theme="light"] .footer-contact-col {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }

  .footer-contact-col .footer-title {
    margin-bottom: 0.85rem;
  }

  .footer-contact-item {
    gap: 0.65rem;
    font-size: 0.825rem;
    margin-bottom: 0.65rem;
  }

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

  .footer-contact-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
  }

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

  .footer-contact-item strong {
    font-size: 0.825rem;
  }

  .footer-contact-item a,
  .footer-contact-item span {
    font-size: 0.825rem;
  }

  .footer-bottom {
    padding-top: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
    font-size: 0.775rem;
    line-height: 1.45;
    max-width: 92%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.95rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .portfolio-card__media {
    height: 180px;
  }

  .portfolio-card__img {
    max-height: 140px;
  }

  .service-checkboxes {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2.5rem 0 5rem;
  }

  .footer-grid {
    gap: 1.35rem 0.75rem;
  }

  .footer-brand p {
    font-size: 0.8rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-contact-col {
    padding: 0.95rem;
  }

  .whatsapp-float {
    bottom: 1.15rem;
    right: 1.15rem;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
