/* ============================================================
   IT WEBSITE - Main Stylesheet
   Theme: Modern IT Services & Solutions
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --secondary: #f43f5e;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 24px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 30px -5px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 30px 60px -15px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-medium);
}

body {
  font-family: var(--font-main);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-title {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  margin-bottom: 56px;
  font-size: 1.125rem;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #dc2649 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
  color: #fff;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown > a i {
  font-size: 0.65rem;
  transition: transform var(--transition);
  opacity: 0.6;
}

.nav-dropdown:hover > a i {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-white);
  min-width: 260px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  z-index: 1001;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-dropdown:hover ul {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .nav-dropdown ul {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    opacity: 1;
    visibility: visible;
    background: transparent;
  }

  .nav-dropdown.open ul {
    display: block;
  }
}

.nav-dropdown ul li a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--radius-xs);
  border: none;
}

.nav-dropdown ul li a:hover {
  background: var(--bg-light);
  color: var(--accent);
  padding-left: 18px;
}

.nav-dropdown ul li a::after {
  display: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  margin-top: 76px;
  padding: 120px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-services {
  background: linear-gradient(135deg, #d4ff00 0%, #9acd32 50%, #6b8e23 100%);
}

.hero-services .hero-overlay {
  background: linear-gradient(135deg, rgba(107, 142, 35, 0.55) 0%, rgba(154, 205, 50, 0.45) 100%);
}

.hero-services .hero-text h1,
.hero-services .hero-text p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-blog {
  background: linear-gradient(135deg, #d4ff00 0%, #9acd32 50%, #6b8e23 100%);
}

.hero-blog .hero-overlay {
  background: linear-gradient(135deg, rgba(107, 142, 35, 0.55) 0%, rgba(154, 205, 50, 0.45) 100%);
}

.hero-blog .hero-text h1,
.hero-blog .hero-text p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-contact {
  background: linear-gradient(135deg, #d4ff00 0%, #9acd32 50%, #6b8e23 100%);
}

.hero-contact .hero-overlay {
  background: linear-gradient(135deg, rgba(107, 142, 35, 0.55) 0%, rgba(154, 205, 50, 0.45) 100%);
}

.hero-contact .hero-text h1,
.hero-contact .hero-text p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-solutions {
  background: linear-gradient(135deg, #d4ff00 0%, #9acd32 50%, #6b8e23 100%);
}

.hero-solutions .hero-overlay {
  background: linear-gradient(135deg, rgba(107, 142, 35, 0.55) 0%, rgba(154, 205, 50, 0.45) 100%);
}

.hero-solutions .hero-text h1,
.hero-solutions .hero-text p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-about {
  background: linear-gradient(135deg, #d4ff00 0%, #9acd32 50%, #6b8e23 100%);
}

.hero-about .hero-overlay {
  background: linear-gradient(135deg, rgba(107, 142, 35, 0.55) 0%, rgba(154, 205, 50, 0.45) 100%);
}

.hero-about .hero-text h1,
.hero-about .hero-text p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-slideshow {
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.68) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-detail-section {
  padding: 80px 0;
}

.service-detail-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.service-detail-icon {
  font-size: 5rem;
  margin-bottom: 24px;
  display: inline-block;
}

.service-detail-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 800;
}

.service-detail-description {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  font-size: 4rem;
  color: var(--accent);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.mission-slideshow {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.mission-slideshow .mission-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: var(--radius);
}

.mission-slideshow .mission-slide.active {
  opacity: 1;
  position: relative;
}

.vision-slideshow {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.vision-slideshow .vision-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: var(--radius);
}

.vision-slideshow .vision-slide.active {
  opacity: 1;
  position: relative;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-medium);
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.about-feature .check {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--primary);
  padding: 48px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-grid .stat-number {
  font-size: 2.8rem;
}

.stats-grid .stat-label {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  background: var(--bg-light);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: var(--bg-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-meta span:first-child {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 20px;
}

.blog-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* --- Related Posts --- */
.related-posts {
  margin-top: 48px;
}

.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.related-post-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.related-post-card-image {
  height: 140px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.related-post-card-body {
  padding: 20px;
}

.related-post-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.related-post-card .post-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
}

/* --- Author Bio --- */
.author-bio {
  display: flex;
  gap: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
  border: 1px solid var(--border);
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.author-bio-content h3 {
  margin-bottom: 4px;
}

.author-bio-content .role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-bio-content p {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
}

.author-bio-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* --- Skill Bars --- */
.skill-bar {
  margin-bottom: 16px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-bar-track {
  height: 8px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  width: 0;
  transition: width 0.8s ease;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  padding: 7px 0;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding: 28px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-cta .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    min-height: 500px;
    padding: 80px 0 60px;
  }

  .hero-slideshow {
    inset: 12%;
  }

  .hero-slide:nth-child(n+6) {
    display: none;
  }

  .hero-content {
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 24px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
    padding: 60px 0 40px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-detail-title {
    font-size: 1.75rem;
  }

  .solution-detail-icon {
    font-size: 3.5rem;
  }

  .solution-detail-description {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto 8px;
  }

  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-dropdown ul {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }

  .header-inner {
    height: 60px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .service-card,
  .blog-card,
  .solution-card {
    padding: 20px;
  }
}

/* --- Animation --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Values Section --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.values-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.values-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 0 0 4px 4px;
  transition: all var(--transition);
}

.values-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.values-card:hover::before {
  width: 60px;
}

.values-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  transition: transform var(--transition);
}

.values-card:hover .values-icon {
  transform: scale(1.1);
}

.values-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.values-card p {
  color: var(--text-medium);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Solutions / Partners Section --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-icon {
  font-size: 2.5rem;
  transition: transform var(--transition);
}

.solution-card:hover .solution-icon {
  transform: scale(1.15);
}

.solution-card h3 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.solution-detail-section {
  padding: 80px 0;
}

.solution-detail-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.solution-detail-icon {
  font-size: 5rem;
  margin-bottom: 24px;
  display: inline-block;
}

.solution-detail-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 800;
}

.solution-detail-description {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wp-content {
  max-width: 800px;
  margin: 0 auto;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4 {
  margin: 24px 0 12px;
}

.wp-content p {
  margin-bottom: 16px;
}

.wp-content ul,
.wp-content ol {
  margin: 0 0 16px 24px;
}

.wp-content li {
  margin-bottom: 8px;
}

.wp-content img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* ============================================================
   Dark Mode
   ============================================================ */
[data-theme="dark"] {
  --bg-light: #0f172a;
  --bg-white: #1e293b;
  --text-dark: #e2e8f0;
  --text-medium: #94a3b8;
  --text-light: #64748b;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #334155;
}

[data-theme="dark"] .nav-links a {
  color: #e2e8f0;
}

[data-theme="dark"] .nav-dropdown ul {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .nav-dropdown ul li a {
  color: #e2e8f0;
}

[data-theme="dark"] .nav-dropdown ul li a:hover {
  background: #0f172a;
  color: var(--accent);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .values-card,
[data-theme="dark"] .solution-card,
[data-theme="dark"] .contact-form {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .stats-bar {
  background: #0f172a;
}

[data-theme="dark"] .footer {
  background: #0f172a;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
  border-color: var(--accent);
}

[data-theme="dark"] .search-overlay {
  background: rgba(15, 23, 42, 0.95);
}
[data-theme="dark"] .search-box {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .search-box input {
  background: #334155;
  color: #e2e8f0;
  border-color: #475569;
}
[data-theme="dark"] .search-result-item {
  border-bottom-color: #334155;
}

[data-theme="dark"] .chat-window {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .chat-header {
  background: #0f172a;
  border-bottom-color: #334155;
}
[data-theme="dark"] .chat-messages {
  background: #0f172a;
}
[data-theme="dark"] .chat-msg {
  background: #334155;
}
[data-theme="dark"] .chat-input-area input {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}
[data-theme="dark"] .chat-toggle {
  background: var(--bg-white);
  border-color: #334155;
}

[data-theme="dark"] .testimonial-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .testimonials-track {
  background: #0f172a;
}
[data-theme="dark"] .carousel-btn {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .faq-item {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .faq-question {
  background: #0f172a;
  color: #e2e8f0;
}

[data-theme="dark"] .newsletter {
  background: #0f172a;
}
[data-theme="dark"] .newsletter-form input {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

[data-theme="dark"] .cookie-banner {
  background: #1e293b;
  border-top-color: #334155;
}
[data-theme="dark"] .cookie-banner a {
  color: var(--accent);
}

[data-theme="dark"] .client-carousel-track {
  /* no bg needed */
}
[data-theme="dark"] .client-logo-text {
  color: #94a3b8;
}
[data-theme="dark"] .certificate-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .certificate-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .service-area-map {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .service-region {
  background: #0f172a;
  border-color: #334155;
}
[data-theme="dark"] .service-region:hover {
  /* accent bg handled by parent */
}
[data-theme="dark"] .perf-monitor {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .related-post-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .related-post-card-image {
  background: #0f172a;
}
[data-theme="dark"] .author-bio {
  background: #0f172a;
  border-color: #334155;
}
[data-theme="dark"] .skill-bar-track {
  background: #334155;
}

/* ============================================================
   Theme Toggle Button
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 998;
  transition: all var(--transition);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: block;
}

:not([data-theme="dark"]) .theme-toggle .icon-sun {
  display: none;
}

/* ============================================================
   Live Chat Widget
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 999;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
  transition: all var(--transition);
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 180, 216, 0.5);
}

.chat-toggle .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  height: 450px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease;
}

.chat-window.active {
  display: flex;
}

.chat-header {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h4 {
  color: #fff;
  font-size: 0.95rem;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-light);
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--bg-white);
  border: 1px solid var(--border);
  align-self: flex-start;
  color: var(--text-dark);
}

.chat-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--text-dark);
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-area button {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition);
}

.chat-input-area button:hover {
  background: var(--accent-dark);
}

/* ============================================================
   Testimonial Section
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.testimonial-author h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-weight: 700;
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .arrow {
  transition: transform var(--transition);
  font-size: 0.8rem;
  color: var(--text-light);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   Newsletter Section
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  color: #fff;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 8px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.95);
}

.newsletter-form input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #c73650;
}

.newsletter-msg {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 20px;
}

/* ============================================================
   Loading Animation
   ============================================================ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-medium);
  max-width: 600px;
}

.cookie-banner a {
  color: var(--accent);
  font-weight: 600;
}

.cookie-banner .cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: var(--accent-dark);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-medium);
  border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
  background: var(--bg-light);
}

/* ============================================================
   Search Overlay
   ============================================================ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

.search-box input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--text-dark);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.search-result-item:hover {
  background: var(--bg-light);
}

.search-result-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.search-result-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.search-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* ============================================================
   Client Logo Carousel
   ============================================================ */
.client-carousel {
  display: flex;
  gap: 32px;
  overflow: hidden;
  padding: 20px 0;
}

.client-carousel-track {
  display: flex;
  gap: 32px;
  animation: scroll-left 30s linear infinite;
}

.client-carousel:hover .client-carousel-track {
  animation-play-state: paused;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 140px;
  opacity: 0.5;
  transition: all var(--transition);
  filter: grayscale(100%);
  padding: 0 16px;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.08);
}

.client-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-medium);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   Certificate Showcase
   ============================================================ */
.certificate-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.certificate-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.certificate-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.certificate-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.certificate-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.certificate-year {
  font-size: 0.75rem;
  background: var(--bg-light);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ============================================================
   Service Area Map
   ============================================================ */
.service-area-map {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.service-area-map h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.service-grid-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.service-region {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}

.service-region:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.service-region .region-name {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.service-region .region-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.status-limited {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.status-remote {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* ============================================================
   Performance Monitor
   ============================================================ */
.perf-monitor {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  z-index: 997;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.perf-monitor:hover {
  transform: scale(1.05);
}

.perf-score {
  font-weight: 700;
  font-size: 1.2rem;
}

.perf-score.excellent { color: #22c55e; }
.perf-score.good { color: #fbbf24; }
.perf-score.warning { color: #ef4444; }

.perf-details {
  display: none;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.perf-monitor:hover .perf-details {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Responsive Adjustments for New Features
   ============================================================ */
@media (max-width: 768px) {
  .chat-window {
    width: 280px;
    height: 400px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Breadcrumb Navigation
   ============================================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-medium);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--text-dark);
  font-weight: 600;
}

/* ============================================================
   Portfolio / Case Studies Section
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  position: relative;
}

.portfolio-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-card-body {
  padding: 20px;
}

.portfolio-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.portfolio-card-body p {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.portfolio-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================================
   Pricing Plans Section
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Animated Stats Counter
   ============================================================ */
.stats-bar.animated .stat-number {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Service Request Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
  position: relative;
}

.modal h3 {
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-close:hover {
  color: var(--text-dark);
}

/* ============================================================
   Social Share Buttons
   ============================================================ */
.social-share {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.social-share h4 {
  font-size: 0.9rem;
  margin-right: 8px;
  align-self: center;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-dark);
}

.share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   Responsive Adjustments for New Features
   ============================================================ */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.75rem;
  }

  .modal {
    padding: 24px;
  }
}

/* ============================================================
   Google Maps Container
   ============================================================ */
.map-container {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-height: 350px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 350px;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 1.2rem;
  gap: 12px;
}

.map-placeholder .map-icon {
  font-size: 3rem;
}

/* ============================================================
   Team Members Section
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #fff;
}

.team-card-body {
  padding: 20px;
}

.team-card-body h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.team-card-body .role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card-body p {
  color: var(--text-medium);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-medium);
  transition: all var(--transition);
  text-decoration: none;
}

.team-social a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Scroll Progress Indicator
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============================================================
   Enhanced 404 Page
   ============================================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.error-page h2 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-medium);
  margin-bottom: 24px;
  max-width: 500px;
}

/* ============================================================
   Blog Detail / Single Post Styles
   ============================================================ */
.blog-single {
  max-width: 800px;
  margin: 0 auto;
}

.blog-single .post-header {
  margin-bottom: 32px;
}

.blog-single .post-header h1 {
  margin-bottom: 12px;
}

.blog-single .post-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.blog-single .post-image {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #fff;
  margin-bottom: 24px;
}

.blog-single .post-content {
  line-height: 1.8;
}

.blog-single .post-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.blog-single .post-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.blog-single .post-content p {
  margin-bottom: 16px;
}

.blog-single .post-content ul,
.blog-single .post-content ol {
  margin: 0 0 16px 24px;
}

.blog-single .post-content li {
  margin-bottom: 8px;
}

.blog-single .post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.blog-single .post-tags span {
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-medium);
}

/* ============================================================
   Image Lazy Loading
   ============================================================ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ============================================================
   Responsive Adjustments for New Features
   ============================================================ */
@media (max-width: 768px) {
  .error-page h1 {
    font-size: 5rem;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Toast Notification System
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 10003;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: #10b981;
  color: #fff;
}

.toast-error {
  background: #ef4444;
  color: #fff;
}

.toast-info {
  background: var(--accent);
  color: #fff;
}

.toast-warning {
  background: #f59e0b;
  color: #fff;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  font-family: var(--font-main);
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--accent);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  display: none;
  z-index: 100;
}

.lang-dropdown.active {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--transition);
}

.lang-dropdown a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .header,
  .footer,
  .chat-widget,
  .theme-toggle,
  .search-overlay,
  .cookie-banner,
  .scroll-progress,
  .toast-container,
  .modal-overlay,
  .lang-switcher,
  .social-share,
  .btn,
  .mobile-toggle,
  #back-to-top,
  .loader {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.6;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
  }

  .service-card,
  .testimonial-card,
  .pricing-card,
  .team-card,
  .portfolio-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ============================================================
   Reading Time Indicator
   ============================================================ */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}

.reading-time::before {
  content: "📖";
}

/* ============================================================
   Table of Contents
   ============================================================ */
.table-of-contents {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}

.table-of-contents h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 20px;
}

.table-of-contents li {
  margin-bottom: 6px;
}

.table-of-contents a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.table-of-contents a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ============================================================
   Filterable Portfolio
   ============================================================ */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.portfolio-grid.filtered .portfolio-card {
  display: none;
}

.portfolio-grid.filtered .portfolio-card.visible {
  display: block;
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Testimonials Carousel
   ============================================================ */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonials-track .testimonial-card {
  min-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-dark);
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
}

/* ============================================================
   Typing Effect
   ============================================================ */
.typing-effect {
  display: inline-block;
  white-space: nowrap;
}

/* ============================================================
   Lightbox Gallery
   ============================================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10004;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10005;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 16px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10005;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================================
   Sticky Header
   ============================================================ */
.header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header.sticky .logo,
.header.sticky .nav-links a {
  color: var(--text-dark);
}

.header.sticky .nav-links a:hover {
  color: var(--accent);
}

/* ============================================================
   Accessibility Skip Link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 10006;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

/* ============================================================
   Cookie Preferences (Granular Consent)
   ============================================================ */
.cookie-preferences {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.cookie-prefs-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-main);
  transition: all var(--transition);
  color: var(--text-dark);
}

.cookie-prefs-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cookie-prefs-btn.accept-all {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cookie-prefs-btn.accept-all:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* ============================================================
   Multi-step Form
   ============================================================ */
.form-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.form-step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all var(--transition);
}

.form-step-indicator.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.form-step-indicator.completed {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.form-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  align-self: center;
}

.form-step-line.completed {
  background: var(--secondary);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.form-nav .btn {
  min-width: 120px;
}

.form-progress {
  height: 4px;
  background: var(--bg-light);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.form-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ============================================================
   Responsive Tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
}

tr:hover td {
  background: var(--bg-light);
}

/* ============================================================
   Tooltip Component
   ============================================================ */
[data-tooltip] {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--text-medium);
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 4px);
}

/* ============================================================
   Open Graph & Social Meta
   ============================================================ */
.og-image {
  width: 1200px;
  height: 630px;
  object-fit: cover;
}

/* ============================================================
   Responsive Embed (iframes/videos)
   ============================================================ */
.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 16px 0;
}

.responsive-embed iframe,
.responsive-embed video,
.responsive-embed embed,
.responsive-embed object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   PWA Install Prompt
   ============================================================ */
.install-prompt {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10002;
  animation: slideUp 0.3s ease;
  max-width: 90vw;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.install-prompt .install-icon {
  font-size: 2rem;
}

.install-prompt .install-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.install-prompt .install-actions {
  display: flex;
  gap: 8px;
}

.install-prompt .install-btn {
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-main);
}

.install-prompt .install-btn.primary {
  background: var(--accent);
  color: #fff;
}

.install-prompt .install-btn.dismiss {
  background: transparent;
  color: var(--text-medium);
  border: 1px solid var(--border);
}

/* ============================================================
   Skeleton Loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--border) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-card {
  height: 250px;
  border-radius: var(--radius);
}

.skeleton-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* ============================================================
   Progress Ring
   ============================================================ */
.progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.progress-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ============================================================
   Particle Background
   ============================================================ */
.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================================
   Dark Mode System Preference
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --text-dark: #f1f5f9;
    --text-medium: #cbd5e1;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 24px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 10px 30px -5px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    --accent-glow: rgba(59, 130, 246, 0.25);
  }
}

/* ============================================================
   Vibration API (Haptic Feedback)
   ============================================================ */
.vibrate {
  animation: vibrate 0.1s linear;
}

@keyframes vibrate {
  0% { transform: translate(0); }
  25% { transform: translate(-2px, 2px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-2px, -2px); }
  100% { transform: translate(0); }
}

/* ============================================================
   QR Code Generator
   ============================================================ */
.qr-generator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  margin: 16px 0;
}

.qr-generator input {
  width: 100%;
  max-width: 300px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-main);
  background: var(--bg-white);
  color: var(--text-dark);
}

.qr-generator canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: #fff;
}

.qr-generator .qr-actions {
  display: flex;
  gap: 8px;
}

/* ============================================================
   Masonry Grid
   ============================================================ */
.masonry-grid {
  columns: 3;
  column-gap: 24px;
}

.masonry-grid .portfolio-card {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* ============================================================
   Infinite Scroll Load More
   ============================================================ */
.infinite-scroll-trigger {
  text-align: center;
  padding: 40px 0;
}

.infinite-scroll-trigger .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   System Preference Dark Mode Toggle
   ============================================================ */
.theme-auto {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-auto .toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.theme-auto .toggle-track.active {
  background: var(--accent);
}

.theme-auto .toggle-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
}

.theme-auto .toggle-track.active .toggle-thumb {
  transform: translateX(20px);
}

/* ============================================================
   Video Background Hero
   ============================================================ */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
}

.hero.has-video .hero-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Parallax Scrolling
   ============================================================ */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* ============================================================
   Countdown Timer
   ============================================================ */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.countdown-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  min-width: 100px;
  box-shadow: var(--shadow);
}

.countdown-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .countdown-container {
    gap: 12px;
  }
  .countdown-item {
    min-width: 70px;
    padding: 16px;
  }
  .countdown-value {
    font-size: 1.8rem;
  }
}

[data-theme="dark"] .countdown-item {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .parallax-section {
  position: relative;
}

[data-theme="dark"] .parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1;
}

[data-theme="dark"] .parallax-section > .container {
  position: relative;
  z-index: 2;
}

