/* ============================================================
   Agency - Main Stylesheet
   Version: 3.0.0
   Description: Complete styles for premium international digital agency
   Palette: #0F172A, #2563EB, #10B981, #F8FAFC, #1E293B
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary: #0F172A;
  --primary-rgb: 15, 23, 42;
  --secondary: #2563EB;
  --secondary-rgb: 37, 99, 235;
  --accent: #10B981;
  --accent-rgb: 16, 185, 129;
  --accent-dark: #059669;
  --accent-light: #34D399;
  --bg: #F8FAFC;
  --bg-rgb: 248, 250, 252;
  --text: #1E293B;
  --text-rgb: 30, 41, 59;
  --white: #FFFFFF;
  --white-rgb: 255, 255, 255;
  --black: #000000;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --body-bg: var(--bg);
  --body-color: var(--text);
  --heading-color: var(--primary);
  --border-color: var(--gray-200);
  --section-bg: var(--white);
  --section-alt-bg: var(--gray-100);
  --card-bg: var(--white);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-hover-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --nav-bg: rgba(15, 23, 42, 0.85);
  --nav-shadow: 0 4px 30px rgba(0,0,0,0.1);
  --footer-bg: #0B1120;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  --gradient-primary: linear-gradient(135deg, var(--secondary), var(--accent));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), #1D4ED8);
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, var(--primary), #1E293B);
  --gradient-hero: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,23,42,0.75));
  --gradient-text: linear-gradient(135deg, var(--secondary), var(--accent));
  --gradient-glow: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(16,185,129,0.1));
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.25);
  --shadow-glow-accent: 0 0 20px rgba(16,185,129,0.25);
  --shadow-glow-lg: 0 0 40px rgba(37,99,235,0.15);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.04);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-2xl: 32px;
  --border-radius-full: 50%;
  --border-radius-pill: 9999px;

  --nav-height: 72px;
  --container-max: 1200px;
  --container-narrow: 900px;
  --container-wide: 1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-color);
  background-color: var(--body-bg);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(16,185,129,0.04) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-color);
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-500);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

::selection {
  background: var(--secondary);
  color: var(--white);
}

::-moz-selection {
  background: var(--secondary);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

.display-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; }
.display-2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; }
.display-3 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; line-height: 1.2; }

.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 400; color: var(--gray-500); line-height: 1.8; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: clamp(1.05rem, 1.5vw, 1.15rem); }
.text-muted { color: var(--gray-400); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: var(--white); }
.text-dark { color: var(--text); }
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.lh-1 { line-height: 1; }
.lh-sm { line-height: 1.25; }
.lh-base { line-height: 1.5; }
.lh-lg { line-height: 1.8; }

/* ============================================================
   4. GLASSMORPHISM
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-light {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow), height var(--transition-base);
  background: transparent;
}
.navbar.navbar-shrink {
  height: 60px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--nav-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  z-index: 1001;
  transition: color var(--transition-base);
}
.navbar-brand:hover {
  color: var(--secondary);
}
.navbar-brand img {
  height: 36px;
  width: auto;
  transition: height var(--transition-base);
}
.navbar-shrink .navbar-brand img {
  height: 30px;
}
.navbar-brand .brand-text {
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}
.navbar-brand .brand-dot {
  color: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition-base);
  border-radius: 2px;
}
.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  color: var(--white);
}
.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--secondary);
}
.nav-dropdown .chevron {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7rem;
  transition: transform var(--transition-base);
}
.nav-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  margin-left: 8px;
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  padding: 0 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}
.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }
.hero-content > *:nth-child(5) { animation-delay: 0.9s; }

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--border-radius-pill);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-title .highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  border-radius: var(--border-radius-full);
  opacity: 0.08;
}
.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 50%;
  left: 10%;
  animation: float 6s ease-in-out infinite 2s;
}

.hero-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: float 2s ease-in-out infinite;
}
.hero-indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
}
.hero-indicator a:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.hero-slider .swiper-slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.hero-slider .swiper-pagination-bullet-active {
  background: var(--secondary);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--border-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}
.btn:hover::before {
  transform: translateX(0);
}
.btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-outline-primary:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--border-radius-pill);
  background: var(--gradient-glow);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(10px);
}
.btn-glow:hover::after {
  opacity: 1;
}

.btn-3d {
  transform: perspective(600px) rotateX(0deg) translateY(0);
}
.btn-3d:hover {
  transform: perspective(600px) rotateX(-4deg) translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 18px 44px;
  font-size: 1rem;
}
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--border-radius-full);
}
.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
}
.btn-icon.btn-lg {
  width: 52px;
  height: 52px;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-link {
  color: var(--secondary);
  font-weight: 600;
  padding: 0;
  border: none;
  background: transparent;
  gap: 6px;
}
.btn-link:hover {
  color: var(--accent);
  gap: 10px;
}

/* ============================================================
   8. CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

/* Service Cards */
.service-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-hover-shadow);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card-img {
  margin: -36px -28px 20px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-img img {
  transform: scale(1.08);
}
.service-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg);
  background: rgba(37, 99, 235, 0.1);
  color: var(--secondary);
  font-size: 1.8rem;
  transition: all var(--transition-base);
}
.service-card:hover .icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1) rotate(4deg);
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service Detail Content */
.service-content {
  line-height: 1.8;
  color: var(--text);
}
.service-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(37,99,235,0.15);
}
.service-section-title:first-child {
  margin-top: 0;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.service-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--gray-100);
}
.service-list li:last-child {
  border-bottom: none;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
}
.service-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Portfolio View Button */
.btn-portfolio-view {
  background: var(--secondary);
  color: var(--white);
  border-radius: 8px;
  border: none;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
  text-decoration: none;
}
.btn-portfolio-view:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-portfolio-all {
  border: 1px solid rgba(37,99,235,0.4);
  color: var(--secondary);
  border-radius: 12px;
  background: transparent;
  padding: 16px 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  text-decoration: none;
}
.btn-portfolio-all:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.25);
}

/* Portfolio Cards */
.portfolio-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}
.portfolio-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.portfolio-card:hover img {
  transform: scale(1.08);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay .category {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.portfolio-overlay h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Team Cards */
.team-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}
.team-card .image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.team-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.team-card:hover .image-wrapper img {
  transform: scale(1.08);
}
.team-card .social-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}
.team-card:hover .social-overlay {
  opacity: 1;
}
.team-card .social-overlay a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition-base);
  transform: translateY(20px);
  opacity: 0;
}
.team-card:hover .social-overlay a {
  transform: translateY(0);
  opacity: 1;
}
.team-card:hover .social-overlay a:nth-child(1) { transition-delay: 0.05s; }
.team-card:hover .social-overlay a:nth-child(2) { transition-delay: 0.1s; }
.team-card:hover .social-overlay a:nth-child(3) { transition-delay: 0.15s; }
.team-card:hover .social-overlay a:nth-child(4) { transition-delay: 0.2s; }
.team-card .social-overlay a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}
.team-card .card-body {
  padding: 24px 16px;
}
.team-card .card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.team-card .card-body .role {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Blog Cards */
.blog-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}
.blog-card .image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.blog-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.blog-card:hover .image-wrapper img {
  transform: scale(1.06);
}
.blog-card .image-wrapper .category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card .card-body {
  padding: 24px 20px;
}
.blog-card .meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.blog-card .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card h3 a {
  color: var(--heading-color);
  transition: color var(--transition-base);
}
.blog-card h3 a:hover {
  color: var(--secondary);
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all var(--transition-base);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.12;
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
}
.testimonial-card .stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #F59E0B;
  font-size: 0.95rem;
}
.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card .author img {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
}
.testimonial-card .author .info .name {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.95rem;
}
.testimonial-card .author .info .role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================================
   9. SECTIONS
   ============================================================ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-sm {
  padding: 60px 0;
}
.section-lg {
  padding: clamp(100px, 15vw, 160px) 0;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--white);
}
.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-alt {
  background: var(--section-alt-bg);
}

.section-gradient {
  background: var(--gradient-dark);
  color: var(--white);
}
.section-gradient h1,
.section-gradient h2,
.section-gradient h3,
.section-gradient h4,
.section-gradient h5,
.section-gradient h6 {
  color: var(--white);
}
.section-gradient p {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}
.section-header .subtitle-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 12px;
  padding: 6px 18px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.7;
}
.section-dark .section-header p,
.section-gradient .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   10. PAGE HEADER / BANNER
   ============================================================ */
.page-header {
  position: relative;
  padding: clamp(100px, 15vh, 160px) 0 clamp(60px, 8vh, 100px);
  background: var(--primary);
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.page-header .bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 25% 25%, var(--secondary) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--accent) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 550px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  justify-content: center;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}
.breadcrumb-item a:hover {
  color: var(--secondary);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(255, 255, 255, 0.25);
}
.breadcrumb-item.active {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   11. PRICING TABLES
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  position: relative;
  text-align: center;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
}
.pricing-card.featured {
  border-color: var(--secondary);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.12), var(--card-shadow);
  transform: scale(1.03);
  z-index: 2;
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}
.pricing-card .popular-badge,
.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 6px 20px;
  border-radius: var(--border-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 3;
}
.pricing-card .price {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1;
  margin: 20px 0 4px;
}
.pricing-card .price .currency {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 600;
}
.pricing-card .price .period {
  font-size: 0.35em;
  font-weight: 400;
  color: var(--gray-400);
}
.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-card .description {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin: 16px 0;
}
.pricing-card ul {
  text-align: left;
  margin: 24px 0;
  padding: 0;
}
.pricing-card ul li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card ul li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}
.pricing-card ul li.disabled {
  color: var(--gray-300);
}
.pricing-card ul li.disabled::before {
  content: '\2717';
  color: var(--gray-300);
}
.pricing-card .btn {
  width: 100%;
  margin-top: 20px;
}

/* Enhanced pricing card styles */
.pricing-card .save-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pricing-card .pkg-specs {
  flex-wrap: wrap;
}

.pricing-card .spec-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--border-radius-pill);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.pricing-card.featured .spec-badge {
  background: rgba(37, 99, 235, 0.08);
  color: var(--gray-700);
}

.pricing-card .features-wrap {
  background: var(--gray-50);
  border-radius: var(--border-radius-md);
  padding: 16px 18px;
  margin: 0 0 16px;
  text-align: left;
  border: 1px solid var(--gray-100);
}
.pricing-card.featured .features-wrap {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.1);
}

.pricing-card .features-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card .features-wrap .features-list {
  margin: 0;
  padding: 0;
}
.pricing-card .features-wrap .features-list li {
  padding: 4px 0;
  font-size: 0.82rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
  border-bottom: none;
}
.pricing-card .features-wrap .features-list li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card .features-wrap .features-list li.disabled {
  color: var(--gray-300);
}
.pricing-card .features-wrap .features-list li.disabled::before {
  content: '\2717';
  color: var(--gray-300);
}

.pricing-card .pricing-card-footer {
  margin-top: auto;
  padding: 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-card .pricing-card-footer .btn {
  margin-top: 0;
}

/* ============================================================
   12. PORTFOLIO GALLERY
   ============================================================ */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.portfolio-filters .filter-btn {
  padding: 8px 22px;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  background: transparent;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition-base);
}
.portfolio-filters .filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}
.portfolio-filters .filter-btn.active {
  background: var(--secondary);
  color: var(--white);
  border-color: transparent;
}

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

.portfolio-card .lightbox-trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: var(--border-radius-full);
  color: var(--white);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 2;
}
.portfolio-card:hover .lightbox-trigger {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-card .lightbox-trigger:hover {
  background: var(--secondary);
}

/* ============================================================
   13. TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

/* ============================================================
   14. TESTIMONIALS SLIDER
   ============================================================ */
.testimonial-swiper .swiper-slide {
  opacity: 0.5;
  transition: opacity var(--transition-base);
  transform: scale(0.95);
}
.testimonial-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   15. FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--body-color);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.form-glass::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-glass:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-floating {
  position: relative;
}
.form-floating .form-input,
.form-floating .form-textarea {
  padding-top: 24px;
  padding-bottom: 10px;
}
.form-floating .form-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--gray-400);
  pointer-events: none;
  transition: all var(--transition-base);
  margin: 0;
  background: transparent;
}
.form-floating .form-input:focus ~ .form-label,
.form-floating .form-input:not(:placeholder-shown) ~ .form-label,
.form-floating .form-textarea:focus ~ .form-label,
.form-floating .form-textarea:not(:placeholder-shown) ~ .form-label {
  top: 12px;
  font-size: 0.7rem;
  color: var(--secondary);
}
.form-floating .form-textarea ~ .form-label {
  top: 18px;
  transform: none;
}

.form-input.is-valid,
.form-textarea.is-valid {
  border-color: var(--accent);
}
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #EF4444;
}
.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 4px;
}
.form-success {
  font-size: 0.9rem;
  color: var(--accent);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(16, 185, 129, 0.1);
}

textarea.form-textarea {
  min-height: 120px;
  resize: vertical;
}

select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.contact-form-wrapper {
  padding: 40px;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

/* ============================================================
   16. BLOG LAYOUT
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.blog-post.featured .image-wrapper {
  height: 380px;
}
.blog-post.featured h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.blog-sidebar .widget {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.blog-sidebar .widget h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary);
}
.blog-sidebar .widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.blog-sidebar .widget ul li:last-child {
  border-bottom: none;
}
.blog-sidebar .widget ul li a {
  color: var(--gray-500);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  transition: color var(--transition-base);
}
.blog-sidebar .widget ul li a:hover {
  color: var(--secondary);
}
.blog-sidebar .widget ul li a span {
  color: var(--gray-400);
  font-size: 0.8rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.08);
  color: var(--secondary);
  transition: all var(--transition-base);
}
.tag-cloud a:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ============================================================
   17. FREELANCE MARKETPLACE
   ============================================================ */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.project-card .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.project-card .card-header h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.project-card .card-header .budget {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.project-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}
.project-card .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.project-card .skills .skill-tag {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: var(--border-radius-pill);
  background: rgba(37, 99, 235, 0.08);
  color: var(--secondary);
}
.project-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-400);
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.bid-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}
.bid-card:hover {
  box-shadow: var(--card-shadow);
}
.bid-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.bid-card .info {
  flex: 1;
}
.bid-card .info .name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading-color);
}
.bid-card .info .detail {
  font-size: 0.82rem;
  color: var(--gray-400);
}
.bid-card .amount {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.profile-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.profile-card .cover {
  height: 100px;
  background: var(--gradient-dark);
}
.profile-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-full);
  border: 4px solid var(--white);
  margin: -40px auto 12px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.profile-card .body {
  padding: 16px 20px 24px;
}
.profile-card .body .name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
}
.profile-card .body .role {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.profile-card .body .rating {
  color: #F59E0B;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.profile-card .body .rate {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(60px, 8vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-brand .brand-dot {
  color: var(--accent);
}

.footer h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer ul li {
  margin-bottom: 10px;
}
.footer ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all var(--transition-base);
}
.footer-social a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.footer .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer .footer-contact li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-newsletter p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.footer-newsletter form {
  display: flex;
  gap: 8px;
}
.footer-newsletter .form-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
}
.footer-newsletter .form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.footer-newsletter .form-input:focus {
  border-color: var(--secondary);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* ============================================================
   19. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-4px);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.whatsapp-float ~ .back-to-top {
  bottom: 92px;
}

/* ============================================================
   20. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}
.float-anim {
  animation: float 3s ease-in-out infinite;
}
.pulse-anim {
  animation: pulse 2s ease-in-out infinite;
}
.shimmer-anim {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}
.slide-down {
  animation: slideDown 0.3s ease forwards;
}

/* ============================================================
   21. TEXT OVERFLOW & WORD BREAK
   ============================================================ */
p, h1, h2, h3, h4, h5, h6, span, a, li, td, th, .card, .service-card p,
.blog-card p, .testimonial-card p, .pricing-card .description {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ============================================================
   22. MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 575.98px) {
  .container {
    padding: 0 16px;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 1000;
  }
  .nav-list.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  .nav-list a {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 300px;
  }
  .nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 90vh;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-post.featured .image-wrapper {
    height: 220px;
  }

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }
  .section-sm {
    padding: 40px 0;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

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

  .section-header .subtitle-badge {
    font-size: 0.7rem;
  }

  .back-to-top,
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .whatsapp-float ~ .back-to-top {
    bottom: 72px;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .page-header {
    padding: 100px 0 50px;
  }

  .accordion-button {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  .accordion-body {
    padding: 0 18px 16px;
  }

  .dashboard-sidebar {
    width: 64px;
    padding: 16px 8px;
  }
  .dashboard-sidebar .logo span,
  .dashboard-sidebar .nav-item span:not(.icon) {
    display: none;
  }
  .dashboard-sidebar .nav-item {
    justify-content: center;
    padding: 12px;
  }
  .dashboard-main {
    padding: 20px 16px;
  }

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

  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .glass-card {
    padding: 20px;
  }

  .pricing-card {
    padding: 28px 16px;
  }
  .pricing-card .features-wrap {
    padding: 12px 14px;
  }
  .pricing-card .features-wrap .features-list li {
    font-size: 0.78rem;
    padding: 3px 0;
  }
  .pricing-card .description {
    font-size: 0.82rem;
  }
  .pricing-card .spec-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .pricing-card .price {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .pricing-card .plan-name {
    font-size: 0.95rem;
  }
  .pricing-card.featured {
    transform: scale(1);
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .service-card-img {
    height: 160px;
  }

  .portfolio-card,
  .portfolio-page-card {
    height: 220px !important;
  }
  .portfolio-card img,
  .portfolio-page-card img {
    height: 220px !important;
  }

  .hero h1.display-3 {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  .hero .lead {
    font-size: 0.95rem;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }
  .section-alt {
    padding: 50px 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding: 0 20px;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 1000;
  }
  .nav-list.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  .nav-list a {
    font-size: 1.15rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 300px;
  }
  .nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

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

  .blog-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .client-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-card {
    padding: 32px 20px;
  }
  .pricing-card .features-wrap {
    padding: 14px 16px;
  }
  .pricing-card.featured {
    transform: scale(1);
  }
  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    padding: 0 32px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .client-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-cta .btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    padding: 0 32px;
  }

  .hero-content {
    max-width: 800px;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-layout {
    grid-template-columns: 1fr 300px;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-wide);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .navbar,
  .whatsapp-float,
  .back-to-top,
  .preloader,
  .hero-indicator {
    display: none !important;
  }
  .section {
    padding: 40px 0;
  }
  body {
    color: #000;
    background: #fff;
  }
  .page-header h1 {
    color: #000;
  }
}

/* ============================================================
   22. DARK MODE
   ============================================================ */
[data-bs-theme="dark"] {
  --body-bg: var(--primary);
  --body-color: rgba(255, 255, 255, 0.85);
  --heading-color: var(--white);
  --border-color: rgba(255, 255, 255, 0.08);
  --section-bg: var(--primary);
  --section-alt-bg: #1A2332;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] body {
  background: var(--primary);
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(37,99,235,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(16,185,129,0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: rgba(255, 255, 255, 0.85);
}

[data-bs-theme="dark"] p {
  color: rgba(255, 255, 255, 0.65);
}

[data-bs-theme="dark"] .navbar.navbar-shrink {
  background: rgba(15, 23, 42, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .pricing-card,
[data-sb-theme="dark"] .team-card,
[data-bs-theme="dark"] .blog-card,
[data-bs-theme="dark"] .testimonial-card {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .pricing-card.featured {
  border-color: var(--secondary);
}

[data-bs-theme="dark"] .pricing-card .features-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .pricing-card.featured .features-wrap {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
}
[data-bs-theme="dark"] .pricing-card .features-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .pricing-card .spec-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-300);
}
[data-bs-theme="dark"] .pricing-card.featured .spec-badge {
  background: rgba(37, 99, 235, 0.15);
  color: var(--gray-200);
}
[data-bs-theme="dark"] .pricing-card .features-wrap .features-list li {
  color: var(--gray-400);
}

[data-bs-theme="dark"] input,
[data-bs-theme="dark"] textarea,
[data-bs-theme="dark"] select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

[data-bs-theme="dark"] .section-alt {
  background: var(--section-alt-bg);
}

[data-bs-theme="dark"] .glass-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] footer {
  background: #080E18;
}

[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .accordion-item {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .accordion-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.site-footer h5,
.site-footer h6 {
  color: #fff;
}

[data-bs-theme="dark"] .form-input,
[data-bs-theme="dark"] .form-textarea,
[data-bs-theme="dark"] .form-select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

[data-bs-theme="dark"] .blog-sidebar .widget {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .project-card,
[data-bs-theme="dark"] .bid-card,
[data-bs-theme="dark"] .profile-card {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .skill-tag {
  background: rgba(37, 99, 235, 0.12);
  color: var(--secondary);
}

[data-bs-theme="dark"] .tag-cloud a {
  background: rgba(37, 99, 235, 0.12);
  color: var(--secondary);
}

[data-bs-theme="dark"] .portfolio-filters .filter-btn {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}
[data-bs-theme="dark"] .portfolio-filters .filter-btn:hover {
  border-color: var(--secondary);
}
[data-bs-theme="dark"] .portfolio-filters .filter-btn.active {
  background: var(--secondary);
  border-color: transparent;
}

/* Light mode navbar fixes */
[data-bs-theme="light"] .navbar:not(.navbar-shrink) .nav-list a {
  color: rgba(255, 255, 255, 0.75);
}
[data-bs-theme="light"] .navbar.navbar-shrink .nav-list a {
  color: var(--gray-600);
}
[data-bs-theme="light"] .navbar.navbar-shrink .nav-list a:hover,
[data-bs-theme="light"] .navbar.navbar-shrink .nav-list a.active {
  color: var(--secondary);
}
[data-bs-theme="light"] .navbar.navbar-shrink {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
[data-bs-theme="light"] .navbar-shrink .navbar-brand {
  color: var(--primary);
}
[data-bs-theme="light"] .navbar-shrink .nav-toggle span {
  background: var(--primary);
}
[data-bs-theme="light"] .navbar-shrink .nav-cta .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}
[data-bs-theme="light"] .navbar-shrink .nav-cta .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   23. ADMIN DASHBOARD
   ============================================================ */
.dashboard {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 16px;
  flex-shrink: 0;
  overflow-y: auto;
}
.dashboard-sidebar .logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dashboard-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-base);
  margin-bottom: 2px;
}
.dashboard-sidebar .nav-item:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--white);
}
.dashboard-sidebar .nav-item.active {
  background: rgba(37, 99, 235, 0.18);
  color: var(--secondary);
}
.dashboard-sidebar .nav-item .icon {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.dashboard-main {
  flex: 1;
  padding: 32px;
  background: var(--section-alt-bg);
  overflow-y: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 24px;
  transition: all var(--transition-base);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}
.stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-card .stat-header .stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  font-size: 1.2rem;
  color: var(--white);
}
.stat-card .stat-header .stat-icon.blue { background: var(--secondary); }
.stat-card .stat-header .stat-icon.green { background: var(--accent); }
.stat-card .stat-header .stat-icon.orange { background: #F59E0B; }
.stat-card .stat-header .stat-icon.purple { background: #8B5CF6; }
.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}
.stat-card .stat-change {
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 8px;
}
.stat-card .stat-change.up { color: var(--accent); }
.stat-card .stat-change.down { color: #EF4444; }

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dashboard-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dashboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--gray-600);
}
.dashboard-table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

.glass-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-panel .panel-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* ============================================================
   24. WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-full);
  background: #25D366;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: pulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-float .tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.whatsapp-float .tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--primary);
}
.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* ============================================================
   25. PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader .spinner {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  border: 3px solid rgba(37, 99, 235, 0.15);
  border-top-color: var(--secondary);
  animation: spin 0.8s linear infinite;
}

.preloader .spinner-label {
  position: absolute;
  margin-top: 80px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================================
   26. UTILITY CLASSES
   ============================================================ */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-md { border-radius: var(--border-radius-md); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }
.rounded-2xl { border-radius: var(--border-radius-2xl); }
.rounded-full { border-radius: var(--border-radius-full); }
.rounded-pill { border-radius: var(--border-radius-pill); }

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 60px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 60px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.me-3 { margin-right: 16px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.ms-3 { margin-left: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 40px; }
.p-6 { padding: 60px; }
.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pt-5 { padding-top: 40px; }
.pb-0 { padding-bottom: 0; }
.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }
.pb-5 { padding-bottom: 40px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.justify-content-around { justify-content: space-around; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.gap-5 { gap: 40px; }
.gap-6 { gap: 60px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-n1 { z-index: -1; }

/* ============================================================
   27. AOS CUSTOM
   ============================================================ */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

[data-aos-duration="400"] { transition-duration: 0.4s; }
[data-aos-duration="600"] { transition-duration: 0.6s; }
[data-aos-duration="800"] { transition-duration: 0.8s; }
[data-aos-duration="1000"] { transition-duration: 1s; }
[data-aos-duration="1200"] { transition-duration: 1.2s; }

/* ============================================================
   28. SWIPER CUSTOM
   ============================================================ */
.swiper {
  padding-bottom: 50px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gray-400);
  opacity: 0.6;
  transition: all var(--transition-base);
}
.swiper-pagination-bullet-active {
  background: var(--secondary);
  opacity: 1;
  width: 28px;
  border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  color: var(--primary);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 700;
}
.swiper-button-disabled {
  opacity: 0.3 !important;
  pointer-events: none;
}

.client-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}
.client-swiper .swiper-slide:hover {
  opacity: 1;
}
.client-swiper .swiper-slide img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}
.client-swiper .swiper-slide:hover img {
  filter: grayscale(0%);
}

/* ============================================================
   29. FAQ ACCORDION
   ============================================================ */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
}
.accordion-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.accordion-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-base);
  gap: 16px;
}
.accordion-button:hover {
  color: var(--secondary);
}
.accordion-button .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: rgba(37, 99, 235, 0.1);
  color: var(--secondary);
  transition: all var(--transition-base);
  font-size: 0.8rem;
}
.accordion-button[aria-expanded="true"] .icon {
  background: var(--secondary);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion-collapse.show {
  max-height: 500px;
}

.accordion-body {
  padding: 0 24px 20px;
  color: var(--gray-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   30. GALLERY / LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay .lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}
.lightbox-overlay .lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
}

.lightbox-overlay .lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-overlay .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-overlay .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-overlay .lightbox-nav:hover {
  background: var(--secondary);
}
.lightbox-overlay .lightbox-nav.prev {
  left: 24px;
}
.lightbox-overlay .lightbox-nav.next {
  right: 24px;
}

.lightbox-overlay .lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
}

.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================================
   SECTION 33: FREELANCE MEGA MENU
   ============================================================ */
.freelance-megamenu {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100% !important;
  min-width: 620px !important;
  padding: 0 !important;
  margin-top: 4px !important;
  border: none !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  overflow: visible !important;
}
[data-bs-theme="dark"] .freelance-megamenu {
  background: rgba(30, 30, 45, 0.97) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
}
.freelance-megamenu .megamenu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 12px;
}
.freelance-megamenu .megamenu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}
.freelance-megamenu .megamenu-card:hover {
  background: rgba(0, 184, 148, 0.08);
  transform: translateY(-2px);
}
[data-bs-theme="dark"] .freelance-megamenu .megamenu-card:hover {
  background: rgba(0, 184, 148, 0.15);
}
.freelance-megamenu .megamenu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 8px;
  transition: all 0.25s ease;
}
.freelance-megamenu .megamenu-card:hover .megamenu-icon {
  transform: scale(1.1) rotate(-3deg);
}
.freelance-megamenu .megamenu-icon.icon-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; }
.freelance-megamenu .megamenu-icon.icon-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; }
.freelance-megamenu .megamenu-icon.icon-green { background: linear-gradient(135deg, #059669, #34d399); color: #fff; }
.freelance-megamenu .megamenu-icon.icon-orange { background: linear-gradient(135deg, #ea580c, #fb923c); color: #fff; }
.freelance-megamenu .megamenu-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}
[data-bs-theme="dark"] .freelance-megamenu .megamenu-title {
  color: #e2e8f0;
}
.freelance-megamenu .megamenu-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
}
[data-bs-theme="dark"] .freelance-megamenu .megamenu-desc {
  color: #94a3b8;
}
.freelance-megamenu .megamenu-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}
.freelance-megamenu .megamenu-footer {
  padding: 8px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.02);
}
[data-bs-theme="dark"] .freelance-megamenu .megamenu-footer {
  border-top-color: rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.freelance-megamenu .megamenu-footer a {
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.freelance-megamenu .megamenu-footer a:hover { color: #00b894; }
[data-bs-theme="dark"] .freelance-megamenu .megamenu-footer a { color: #94a3b8; }
[data-bs-theme="dark"] .freelance-megamenu .megamenu-footer a:hover { color: #00b894; }
@media (max-width: 991.98px) {
  .freelance-megamenu { position: static !important; transform: none !important; min-width: auto !important; border-radius: 12px !important; margin-top: 4px !important; }
  .freelance-megamenu .megamenu-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .freelance-megamenu .megamenu-card { padding: 16px 12px; }
}
@media (max-width: 575.98px) {
  .freelance-megamenu .megamenu-grid { grid-template-columns: 1fr 1fr; padding: 8px; gap: 4px; }
  .freelance-megamenu .megamenu-card { padding: 12px 8px; }
  .freelance-megamenu .megamenu-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .freelance-megamenu .megamenu-title { font-size: 0.82rem; }
  .freelance-megamenu .megamenu-desc { display: none; }
}

/* ============================================================
   SECTION 34: FREELANCE DASHBOARD WIDGETS
   ============================================================ */
.freelance-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat-widget {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.stat-widget:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
[data-bs-theme="dark"] .stat-widget {
  background: rgba(30,30,45,0.9);
  border-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .stat-widget:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.stat-widget .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.stat-widget .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}
[data-bs-theme="dark"] .stat-widget .stat-value { color: #e2e8f0; }
.stat-widget .stat-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}
[data-bs-theme="dark"] .stat-widget .stat-label { color: #94a3b8; }
.stat-widget .stat-trend {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.stat-border-purple::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.stat-border-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.stat-border-green::before { background: linear-gradient(90deg, #059669, #34d399); }
.stat-border-orange::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.stat-border-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-border-cyan::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.stat-border-pink::before { background: linear-gradient(90deg, #db2777, #f472b6); }

/* ============================================================
   SECTION 35: FREELANCE PROJECT CARDS (ENHANCED)
   ============================================================ */
.project-card-modern {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card-modern:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
[data-bs-theme="dark"] .project-card-modern {
  background: rgba(30,30,45,0.92);
  border-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .project-card-modern:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.project-card-modern .card-top {
  padding: 20px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-card-modern .card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.project-card-modern .badge-featured {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.project-card-modern .badge-urgent {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.project-card-modern .badge-type {
  background: rgba(0,184,148,0.12);
  color: #00b894;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.project-card-modern .save-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-card-modern .save-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.project-card-modern .save-btn.saved { background: rgba(239,68,68,0.12); color: #ef4444; }
[data-bs-theme="dark"] .project-card-modern .save-btn { background: rgba(255,255,255,0.06); color: #64748b; }
[data-bs-theme="dark"] .project-card-modern .save-btn:hover { background: rgba(239,68,68,0.2); color: #ef4444; }
.project-card-modern .card-body {
  padding: 0 20px;
  flex: 1;
}
.project-card-modern .project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-modern .project-title a { color: inherit; text-decoration: none; }
.project-card-modern .project-title a:hover { color: #00b894; }
[data-bs-theme="dark"] .project-card-modern .project-title { color: #e2e8f0; }
.project-card-modern .project-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
[data-bs-theme="dark"] .project-card-modern .project-desc { color: #94a3b8; }
.project-card-modern .skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.project-card-modern .skill-pill {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0,184,148,0.08);
  color: #00b894;
  font-weight: 500;
}
[data-bs-theme="dark"] .project-card-modern .skill-pill { background: rgba(0,184,148,0.15); }
.project-card-modern .card-meta {
  padding: 12px 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
[data-bs-theme="dark"] .project-card-modern .card-meta { border-top-color: rgba(255,255,255,0.05); }
.project-card-modern .client-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-card-modern .client-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.project-card-modern .client-name {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
}
[data-bs-theme="dark"] .project-card-modern .client-name { color: #94a3b8; }
.project-card-modern .budget-info {
  text-align: right;
}
.project-card-modern .budget-amount {
  font-size: 1rem;
  font-weight: 800;
  color: #059669;
}
[data-bs-theme="dark"] .project-card-modern .budget-amount { color: #34d399; }
.project-card-modern .budget-label {
  font-size: 0.68rem;
  color: #94a3b8;
}
.project-card-modern .deadline {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.freelance-filter-bar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}
[data-bs-theme="dark"] .freelance-filter-bar {
  background: rgba(30,30,45,0.85);
  border-color: rgba(255,255,255,0.06);
}
.freelance-filter-bar .form-control,
.freelance-filter-bar .form-select {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  padding: 8px 14px;
}
[data-bs-theme="dark"] .freelance-filter-bar .form-control,
[data-bs-theme="dark"] .freelance-filter-bar .form-select {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}
.freelance-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.freelance-section-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
[data-bs-theme="dark"] .freelance-section-header h3 { color: #e2e8f0; }
.freelance-section-header .view-all {
  font-size: 0.85rem;
  color: #00b894;
  text-decoration: none;
  font-weight: 600;
}
.freelance-section-header .view-all:hover { text-decoration: underline; }

/* ============================================================
   SECTION 36: MULTI-STEP FORM
   ============================================================ */
.multi-step-form .step-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
}
.multi-step-form .step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(0,0,0,0.08);
  z-index: 0;
}
[data-bs-theme="dark"] .multi-step-form .step-indicator::before { background: rgba(255,255,255,0.08); }
.multi-step-form .step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.multi-step-form .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.05);
  color: #94a3b8;
  transition: all 0.3s ease;
}
[data-bs-theme="dark"] .multi-step-form .step-number { background: rgba(255,255,255,0.05); color: #64748b; }
.multi-step-form .step-dot.active .step-number {
  background: linear-gradient(135deg, #00b894, #34d399);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,184,148,0.3);
}
.multi-step-form .step-dot.completed .step-number {
  background: linear-gradient(135deg, #059669, #34d399);
  color: #fff;
}
.multi-step-form .step-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
}
.multi-step-form .step-dot.active .step-label { color: #00b894; font-weight: 700; }
.multi-step-form .step-dot.completed .step-label { color: #059669; }
.multi-step-form .form-step { display: none; }
.multi-step-form .form-step.active { display: block; animation: fadeInStep 0.4s ease; }
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION 37: BID/PROJECT DASHBOARD TABS
   ============================================================ */
.dashboard-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.dashboard-tab {
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dashboard-tab:hover { background: rgba(0,184,148,0.06); color: #00b894; }
.dashboard-tab.active {
  background: rgba(0,184,148,0.1);
  color: #00b894;
}
[data-bs-theme="dark"] .dashboard-tab { color: #94a3b8; }
[data-bs-theme="dark"] .dashboard-tab:hover { background: rgba(0,184,148,0.12); color: #00b894; }
[data-bs-theme="dark"] .dashboard-tab.active { background: rgba(0,184,148,0.18); color: #00b894; }
.dashboard-tab .tab-count {
  background: rgba(0,0,0,0.06);
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}
[data-bs-theme="dark"] .dashboard-tab .tab-count { background: rgba(255,255,255,0.08); }
.dashboard-tab.active .tab-count { background: rgba(0,184,148,0.2); color: #00b894; }

/* ============================================================
   SECTION 38: PROGRESS BARS & MILESTONES
   ============================================================ */
.progress-glass {
  height: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
[data-bs-theme="dark"] .progress-glass { background: rgba(255,255,255,0.06); }
.progress-glass .progress-bar-custom {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #00b894, #34d399);
  transition: width 0.8s ease;
  position: relative;
}
.milestone-item {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.milestone-item:hover { transform: translateX(4px); }
[data-bs-theme="dark"] .milestone-item {
  background: rgba(30,30,45,0.85);
  border-color: rgba(255,255,255,0.05);
}
.milestone-item .milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.milestone-item .milestone-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}
[data-bs-theme="dark"] .milestone-item .milestone-title { color: #e2e8f0; }
.milestone-item .milestone-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.milestone-status.pending { background: rgba(148,163,184,0.15); color: #64748b; }
.milestone-status.in_progress { background: rgba(37,99,235,0.12); color: #2563eb; }
.milestone-status.completed { background: rgba(5,150,105,0.12); color: #059669; }
.milestone-status.approved { background: rgba(0,184,148,0.12); color: #00b894; }
.milestone-item .milestone-amount {
  font-weight: 700;
  color: #059669;
  font-size: 0.9rem;
}

/* ============================================================
   SECTION 39: FREELANCE MESSAGING WIDGET
   ============================================================ */
.msg-list { max-height: 400px; overflow-y: auto; }
.msg-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.msg-item:hover { background: rgba(0,184,148,0.05); }
.msg-item.unread { background: rgba(0,184,148,0.06); border-left: 3px solid #00b894; }
.msg-item .msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.msg-item .msg-content { flex: 1; min-width: 0; }
.msg-item .msg-sender { font-weight: 600; font-size: 0.85rem; color: #1e293b; }
[data-bs-theme="dark"] .msg-item .msg-sender { color: #e2e8f0; }
.msg-item .msg-preview { font-size: 0.78rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item .msg-time { font-size: 0.7rem; color: #94a3b8; white-space: nowrap; }

/* ============================================================
   SECTION 40: NOTIFICATION CENTER & BADGE
   ============================================================ */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(239,68,68,0.4);
  border: 2px solid #fff;
  line-height: 1;
}
[data-bs-theme="dark"] .notification-badge {
  border-color: #1a1a2e;
}
.notification-list { max-height: 70vh; overflow-y: auto; }
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: rgba(0,184,148,0.03); }
.notification-item.unread {
  background: rgba(0,184,148,0.04);
  border-left: 3px solid #00b894;
}
[data-bs-theme="dark"] .notification-item.unread {
  background: rgba(0,184,148,0.08);
}
.notification-item .notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
[data-bs-theme="dark"] .notification-item .notification-icon {
  background: rgba(255,255,255,0.05);
}
.notification-item .notification-title { font-size: 0.85rem; color: #1e293b; }
[data-bs-theme="dark"] .notification-item .notification-title { color: #e2e8f0; }
.notification-item .notification-message {
  font-size: 0.78rem;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
[data-bs-theme="dark"] .notification-item .notification-message { color: #94a3b8; }
.notification-filter-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.notification-filter-btn:hover { background: rgba(0,184,148,0.06); color: #00b894; }
.notification-filter-btn.active { background: rgba(0,184,148,0.1); color: #00b894; font-weight: 600; }
[data-bs-theme="dark"] .notification-filter-btn { color: #94a3b8; }
[data-bs-theme="dark"] .notification-filter-btn:hover { background: rgba(0,184,148,0.1); }
[data-bs-theme="dark"] .notification-filter-btn.active { background: rgba(0,184,148,0.15); }

/* ============================================================
   SECTION 41: BID HISTORY TIMELINE
   ============================================================ */
.bid-history-timeline { position: relative; padding-left: 24px; }
.bid-history-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(0,184,148,0.2);
  border-radius: 2px;
}
.bid-history-item {
  position: relative;
  padding-bottom: 16px;
  padding-left: 20px;
}
.bid-history-item:last-child { padding-bottom: 0; }
.bid-history-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00b894;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(0,184,148,0.2);
}
[data-bs-theme="dark"] .bid-history-item::before { border-color: #1a1a2e; }
.bid-history-item .history-status { font-size: 0.82rem; font-weight: 600; color: #1e293b; text-transform: capitalize; }
[data-bs-theme="dark"] .bid-history-item .history-status { color: #e2e8f0; }
.bid-history-item .history-date { font-size: 0.7rem; color: #94a3b8; }
.bid-history-item .history-notes { font-size: 0.78rem; color: #64748b; margin-top: 2px; }
[data-bs-theme="dark"] .bid-history-item .history-notes { color: #94a3b8; }

/* ============================================================
   TEXT COLOR FIX - Override white/gray text to black (light mode only)
   ============================================================ */

[data-bs-theme="light"] {
  --body-color: #000;
  --heading-color: #000;
}

[data-bs-theme="light"] .text-muted,
[data-bs-theme="light"] .text-white,
[data-bs-theme="light"] .text-light,
[data-bs-theme="light"] .lead {
  color: #000;
}

[data-bs-theme="light"] p,
[data-bs-theme="light"] .service-card p,
[data-bs-theme="light"] .blog-card .meta,
[data-bs-theme="light"] .blog-card p,
[data-bs-theme="light"] .pricing-card .description,
[data-bs-theme="light"] .pricing-card ul li,
[data-bs-theme="light"] .pricing-card ul li.disabled,
[data-bs-theme="light"] .pricing-card .price .period,
[data-bs-theme="light"] .pricing-card .spec-badge,
[data-bs-theme="light"] .pricing-card.featured .spec-badge,
[data-bs-theme="light"] .pricing-card .features-wrap .features-list li,
[data-bs-theme="light"] .pricing-card .features-wrap .features-list li.disabled,
[data-bs-theme="light"] .portfolio-filters .filter-btn,
[data-bs-theme="light"] .testimonial-card .role,
[data-bs-theme="light"] .team-card .card-body .role,
[data-bs-theme="light"] .blog-card .card-footer a,
[data-bs-theme="light"] .service-card .card-footer a,
[data-bs-theme="light"] .accordion-body,
[data-bs-theme="light"] .accordion-button,
[data-bs-theme="light"] .accordion-button span,
[data-bs-theme="light"] .dashboard-table th,
[data-bs-theme="light"] .dashboard-table td,
[data-bs-theme="light"] .stat-card .stat-label,
[data-bs-theme="light"] .msg-item .msg-time,
[data-bs-theme="light"] .bid-history-item .history-date {
  color: #000;
}

/* Keep white text on colored/dark backgrounds */
[data-bs-theme="light"] .pricing-card .popular-badge,
[data-bs-theme="light"] .pricing-card .badge,
[data-bs-theme="light"] .pricing-card .save-badge,
[data-bs-theme="light"] .portfolio-filters .filter-btn.active,
[data-bs-theme="light"] .btn-primary,
[data-bs-theme="light"] .btn-accent,
[data-bs-theme="light"] .btn-outline:hover,
[data-bs-theme="light"] .tag-cloud a:hover,
[data-bs-theme="light"] .back-to-top,
[data-bs-theme="light"] .whatsapp-float,
[data-bs-theme="light"] .whatsapp-float .tooltip,
[data-bs-theme="light"] .btn-portfolio-view,
[data-bs-theme="light"] .btn-portfolio-view:hover,
[data-bs-theme="light"] .btn-portfolio-all:hover,
[data-bs-theme="light"] .swiper-button-next:hover,
[data-bs-theme="light"] .swiper-button-prev:hover,
[data-bs-theme="light"] .accordion-button[aria-expanded="true"] .icon {
  color: #fff;
}

[data-bs-theme="light"] .site-footer h5,
[data-bs-theme="light"] .site-footer h6 {
  color: #fff;
}

[data-bs-theme="light"] .btn-outline {
  color: #000;
  border-color: #000;
}

[data-bs-theme="light"] .btn-outline:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}



.end-of-stylesheet-marker {}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
