/* ============================================================
   ENTERPRISE PORTFOLIO CMS — main.css
   Stack: Bootstrap 5 + Custom Design System
   Theme: Premium Dark / Minimal Luxury
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ────────────────────────────────────────────── */
:root {
  /* Palette */
  --clr-bg: #0a0a0f;
  --clr-bg-2: #0f0f1a;
  --clr-bg-card: #13131f;
  --clr-bg-glass: rgba(255, 255, 255, 0.04);
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-border-2: rgba(255, 255, 255, 0.12);

  --clr-primary: #6366f1;
  --clr-primary-2: #818cf8;
  --clr-secondary: #06b6d4;
  --clr-accent: #f59e0b;
  --clr-success: #22c55e;
  --clr-danger: #ef4444;

  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-text-dim: #475569;
  --clr-white: #ffffff;

  /* Gradient */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --grad-hero: linear-gradient(135deg, #0a0a0f 0%, #13131f 50%, #0f0f1a 100%);
  --grad-card: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
  --grad-glow: radial-gradient(ellipse 60% 50% at 50% -20%, rgba(99, 102, 241, 0.3) 0%, transparent 70%);

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Sizing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.15);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.5s ease;
  --t-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 2. RESET & BASE ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* prevent flicker only */
body.preload {
  overflow: hidden;
}

/* main preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f172a, #020617);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* hide state */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* inner container */
.preloader-inner {
  text-align: center;
}

/* LOGO TEXT */
.preloader-logo {
  font-family: var(--font-display, sans-serif);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 2s linear infinite;
  margin-bottom: 10px;
}

/* sub text */
.preloader-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* loading bar */
.preloader-bar {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;

  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.preloader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #06b6d4);

  animation: loadFill 1.5s ease forwards;
}

/* animations */
@keyframes loadFill {
  to {
    width: 100%;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ── 4. TYPOGRAPHY ───────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

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

.text-muted-custom {
  color: var(--clr-text-muted) !important;
}

a {
  color: var(--clr-primary-2);
  text-decoration: none;
  transition: color var(--t-base);
}

a:hover {
  color: var(--clr-white);
}

p {
  color: var(--clr-text-muted);
}

/* Section titles */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary-2);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-top: 0.75rem;
}

/* ── 5. NAVBAR ───────────────────────────────────────────────────────────── */
#mainNav {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  padding: 0.85rem 0;
  transition: background var(--t-base), box-shadow var(--t-base);
}

#mainNav.scrolled {
  background: rgba(10, 10, 15, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: var(--font-display);
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-logo {
  filter: brightness(1.1);
}

.nav-link {
  color: var(--clr-text-muted) !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast) !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: left var(--t-base), right var(--t-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-white) !important;
  background: rgba(99, 102, 241, 0.1);
}

.nav-link.active::after {
  left: 12px;
  right: 12px;
}

/* Mobile toggler */
.navbar-toggler {
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 34px;
}

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

.toggler-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* ── 6. BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  transition: all var(--t-spring);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
  color: #fff !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--clr-primary) !important;
  color: var(--clr-primary-2) !important;
}

.btn-outline-primary:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--clr-primary-2) !important;
  color: var(--clr-white) !important;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border) !important;
  color: var(--clr-text) !important;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--clr-border-2);
  color: var(--clr-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sizes */
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ── 7. CARDS & GLASS ────────────────────────────────────────────────────── */
.glass-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.glass-card .card-gradient-overlay {
  background: var(--grad-card);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.12);
  color: var(--clr-primary-2);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ── 8. HERO SECTION ─────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--clr-bg);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-primary-2);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-top: 1.25rem;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: rgba(99, 102, 241, 0.15);
  animation: floatOrb1 8s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -50px;
  background: rgba(6, 182, 212, 0.1);
  animation: floatOrb2 10s ease-in-out infinite;
}

@keyframes floatOrb1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, 20px) scale(1.05);
  }

  66% {
    transform: translate(20px, -30px) scale(0.95);
  }
}

@keyframes floatOrb2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -20px);
  }
}

/* Hero image */
.hero-img-wrap {
  position: relative;
  z-index: 2;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: var(--radius-xl);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ── 9. SECTIONS ─────────────────────────────────────────────────────────── */
section {
  padding: 6rem 0;
}

section.section-sm {
  padding: 4rem 0;
}

section.section-lg {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-eyebrow {
  justify-content: center;
}

.section-header.centered .section-eyebrow::before {
  display: none;
}

.section-header.centered .section-subtitle {
  margin: 0.75rem auto 0;
}

/* Dividers */
.gradient-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--clr-primary) 30%, var(--clr-secondary) 70%, transparent);
  opacity: 0.3;
  margin: 0;
}

/* ── 10. SKILLS / PROGRESS BARS ──────────────────────────────────────────── */
.skill-item {
  margin-bottom: 1.25rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
}

.skill-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-primary-2);
}

.skill-bar {
  height: 6px;
  background: var(--clr-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--t-base);
}

.skill-category-card:hover {
  border-color: var(--clr-primary);
}

.skill-category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ── 11. PORTFOLIO CARDS ─────────────────────────────────────────────────── */
.portfolio-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.12);
}

.portfolio-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--clr-bg-2);
}

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

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

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.75rem;
}

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

.portfolio-card-body {
  padding: 1.5rem;
}

.portfolio-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-primary-2);
  margin-bottom: 0.5rem;
}

.portfolio-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.portfolio-card-desc {
  font-size: 0.87rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.portfolio-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  background: transparent;
  transition: all var(--t-fast);
}

.filter-tab:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-2);
}

.filter-tab.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* ── 12. BLOG CARDS ──────────────────────────────────────────────────────── */
.blog-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--clr-bg-2);
}

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

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

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.blog-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-primary-2);
}

.blog-date {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

.blog-reading-time {
  font-size: 0.78rem;
  color: var(--clr-text-dim);
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* ── 13. SERVICE CARDS ───────────────────────────────────────────────────── */
.service-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--t-base);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--clr-primary-2);
  margin: 0 auto 1.5rem;
  transition: background var(--t-base), transform var(--t-spring);
}

.service-card:hover .service-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ── 14. TESTIMONIALS / SWIPER ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: rgba(99, 102, 241, 0.15);
  pointer-events: none;
}

.testimonial-stars {
  color: var(--clr-accent);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.75rem;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--clr-bg-2);
  flex-shrink: 0;
  border: 2px solid var(--clr-primary);
}

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

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-white);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

/* Swiper custom */
.swiper-pagination-bullet {
  background: var(--clr-border) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--clr-primary) !important;
  width: 20px !important;
  border-radius: 4px !important;
}

/* ── 15. TIMELINE (Experience / Education) ───────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-secondary), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.42rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: 2px solid var(--clr-bg);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clr-primary-2);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--clr-text-dim);
  line-height: 1.7;
}

/* ── 16. STATS COUNTER ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ── 17. CTA SECTION ─────────────────────────────────────────────────────── */
.cta-section {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.5;
  pointer-events: none;
}

.cta-section>* {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--clr-white);
}

.cta-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 18. FORMS ───────────────────────────────────────────────────────────── */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--clr-border) !important;
  color: var(--clr-text) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.92rem !important;
  transition: border-color var(--t-base), box-shadow var(--t-base) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--clr-primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
  background: rgba(99, 102, 241, 0.06) !important;
  color: var(--clr-white) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--clr-text-dim) !important;
}

.form-label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  margin-bottom: 0.4rem;
}

.form-select option {
  background: var(--clr-bg-2);
  color: var(--clr-text);
}

.contact-form-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

/* ── 19. FLOATING ACTIONS / FAB ──────────────────────────────────────────── */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.75rem;
}

.fab-main {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all var(--t-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.fab-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text) !important;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-spring);
  box-shadow: var(--shadow-md);
}

.fab-item:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff !important;
  transform: scale(1.1);
}

.fab-whatsapp:hover {
  background: #25D366 !important;
  border-color: #25D366 !important;
}

.fab-phone:hover {
  background: var(--clr-secondary) !important;
  border-color: var(--clr-secondary) !important;
}

[x-cloak] {
  display: none !important;
}

/* ── 20. SCROLL TO TOP ───────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--t-base);
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* ── 21. FOOTER ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-top: 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  transition: color var(--t-fast);
}

.footer-links a:hover {
  color: var(--clr-primary-2);
}

.footer-bottom {
  border-top-color: var(--clr-border) !important;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--t-fast);
}

.social-link:hover {
  background: var(--c, var(--clr-primary));
  border-color: var(--c, var(--clr-primary));
  color: #fff !important;
  transform: translateY(-2px);
}

/* ── 22. CASE STUDY SPECIFIC ─────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
}

.metric-item {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-top: 0.25rem;
}

/* ── 23. SEARCH / HTMX ───────────────────────────────────────────────────── */
.search-bar {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.search-bar input {
  padding-left: 3rem !important;
  border-radius: var(--radius-full) !important;
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-dim);
  pointer-events: none;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

/* ── 24. BOOKING FORM ────────────────────────────────────────────────────── */
.booking-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-border);
  transition: background var(--t-base), width var(--t-base);
}

.step-dot.active {
  background: var(--clr-primary);
  width: 24px;
  border-radius: 4px;
}

/* ── 25. DETAIL PAGES ────────────────────────────────────────────────────── */
.detail-hero {
  padding: 8rem 0 4rem;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.detail-breadcrumb {
  font-size: 0.82rem;
  color: var(--clr-text-dim);
  margin-bottom: 1rem;
}

.detail-breadcrumb a {
  color: var(--clr-text-dim);
}

.detail-breadcrumb a:hover {
  color: var(--clr-primary-2);
}

.detail-breadcrumb span {
  margin: 0 0.5rem;
}

.detail-content {
  padding: 4rem 0;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--clr-text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  color: var(--clr-text-muted);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--clr-primary-2);
}

.prose code {
  background: rgba(99, 102, 241, 0.12);
  color: var(--clr-primary-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.87em;
}

/* Screenshot gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.screenshot-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.screenshot-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

/* ── 26. RESUME PAGE ─────────────────────────────────────────────────────── */
.resume-section-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--clr-primary);
  display: inline-block;
}

.cert-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--clr-border);
  transition: border-color var(--t-fast);
}

.cert-card:hover {
  border-color: var(--clr-primary);
}

.cert-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── 27. TOAST / ALERTS ──────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-md) !important;
  border: none !important;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #86efac !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fca5a5 !important;
}

.alert-info {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #67e8f9 !important;
}

/* ── 28. PAGINATION ──────────────────────────────────────────────────────── */
.pagination {
  gap: 0.35rem;
}

.page-link {
  background: var(--clr-bg-card) !important;
  border-color: var(--clr-border) !important;
  color: var(--clr-text-muted) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.88rem !important;
  transition: all var(--t-fast) !important;
}

.page-link:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  color: var(--clr-primary-2) !important;
  border-color: var(--clr-primary) !important;
}

.page-item.active .page-link {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.page-item.disabled .page-link {
  opacity: 0.3 !important;
}

/* ── 29. UTILITIES ───────────────────────────────────────────────────────── */
.container-xl {
  max-width: 1280px;
}

.bg-dark-card {
  background: var(--clr-bg-card) !important;
}

.border-subtle {
  border-color: var(--clr-border) !important;
}

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

.rounded-lg-custom {
  border-radius: var(--radius-lg) !important;
}

.hover-lift {
  transition: transform var(--t-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* ── 30. RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--clr-bg-2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid var(--clr-border);
  }

  .hero-img-wrap {
    max-width: 320px;
    margin: 3rem auto 0;
  }

  section {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .booking-card {
    padding: 1.5rem;
  }

  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }

  .scroll-top {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (max-width: 575px) {
  .filter-tabs {
    gap: 0.35rem;
  }

  .filter-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* ── 31. AOS OVERRIDES ───────────────────────────────────────────────────── */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ── 32. SCROLLBAR ───────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* ── 33. PRINT ───────────────────────────────────────────────────────────── */
@media print {

  #mainNav,
  .floating-actions,
  .scroll-top,
  .site-footer,
  #preloader {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass-card,
  .portfolio-card,
  .blog-card {
    border: 1px solid #ddd !important;
    background: #fff !important;
  }
}