:root {
  --bg-dark: #070d19;
  --bg-card-dark: #0f182d;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  
  --primary-navy: #092148;
  --primary-blue: #0066ff;
  --accent-cyan: #00f0ff;
  --accent-teal: #06b6d4;
  --accent-purple: #6366f1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-dim: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(9, 33, 72, 0.08);
  --shadow-lg: 0 16px 40px rgba(9, 33, 72, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

body {
  background-color: var(--bg-light);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.d-none {
  display: none !important;
}

/* Responsive Display Utilities */
@media (min-width: 769px) {
  .md-d-none {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sm-d-none {
    display: none !important;
  }
}

.no-overflow {
  overflow: hidden;
}

/* Base Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 32px;
}

.logo-dark {
  display: none !important;
}

.logo {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-menu > a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-menu > a .number {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-blue);
  opacity: 0.8;
}

.header-menu > a:hover {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.header-menu > a:hover .number {
  color: var(--accent-cyan);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-blue), #0044cc);
  color: white !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* Mobile Menu */
#button-menu-mobile {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: #f1f5f9;
}

#menu-mobile {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 25, 0.96);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
}

#menu-mobile.visible {
  transform: translateX(0);
}

#menu-mobile > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

#button-close-menu-mobile {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

#menu-mobile a {
  font-family: 'Outfit', sans-serif;
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 320px;
  justify-content: center;
  transition: var(--transition-fast);
}

#menu-mobile a .number {
  color: var(--accent-cyan);
  font-size: 14px;
}

#menu-mobile a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, #092148, #070d19);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  color: white;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 102, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-title {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero-title highlight {
  background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-blue), #004ecc);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.5);
  background: linear-gradient(135deg, #1a75ff, var(--primary-blue));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* CLIENTS & TRUST SECTION */
.clients-section {
  padding: 40px 0 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.clients-title {
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 32px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.client-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.3);
}

.client-logo-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-logo-badge span {
  color: var(--primary-blue);
}

.client-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.client-tag {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  color: var(--primary-blue);
  text-transform: uppercase;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.section-main-heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub-heading {
  font-size: 18px;
  color: var(--text-secondary);
}

/* SERVICES SECTION */
.services-section {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

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

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--primary-blue);
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.service-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-features-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features-list li::before {
  content: '✓';
  color: var(--primary-blue);
  font-weight: 700;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.tech-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--text-muted);
}

/* METHODOLOGY SECTION */
.methodology-section {
  padding: 100px 0;
  background: linear-gradient(145deg, #092148 0%, #061126 100%);
  color: white;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.methodology-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.methodology-section .section-label {
  color: var(--accent-cyan);
}

.methodology-section .section-main-heading {
  color: white;
}

.methodology-section .section-sub-heading {
  color: #94a3b8;
}

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: rgba(15, 24, 45, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0.8;
  transition: var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.3);
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(15, 24, 45, 0.9);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.15);
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.step-text {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* WHY US SECTION */
.why-us-section {
  padding: 100px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.2);
}

.why-icon {
  font-size: 32px;
  margin-bottom: 18px;
  display: inline-block;
}

.why-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

/* FOOTER & CONTACT SECTION */
.footer-section {
  background: var(--bg-dark);
  color: white;
  padding: 100px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto 80px auto;
  background: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h2 {
  font-size: 32px;
  color: white;
  margin-bottom: 12px;
}

.contact-header p {
  color: var(--text-dim);
  font-size: 16px;
}

/* Topic Chips */
.topic-selector {
  margin-bottom: 32px;
}

.topic-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-align: center;
}

.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip-btn {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.chip-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: white;
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #64748b;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.form-input.error, .form-textarea.error {
  border-color: #ef4444;
}

.input-error {
  color: #f87171;
  font-size: 12px;
  margin-top: 6px;
}

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

.form-submit-btn {
  grid-column: span 2;
  margin-top: 12px;
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
}

/* Success State */
.contact-success-msg {
  text-align: center;
  padding: 40px 20px;
}

.contact-success-msg h3 {
  font-size: 28px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.contact-success-msg p {
  color: var(--text-dim);
  font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 20px;
}

.footer-info-block {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-contact-item img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .methodology-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #button-menu-mobile {
    display: block;
  }

  .nav-container {
    height: 70px;
  }
  
  .hero-card {
    padding: 40px 24px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .section-main-heading {
    font-size: 28px;
  }
  
  .methodology-steps {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    padding: 32px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .form-submit-btn {
    grid-column: span 1;
  }
  
  .footer-info-block {
    justify-content: center;
  }
}

/* Navbar Actions & Theme Toggle Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

/* ==========================================================================
   DARK MODE THEME
   ========================================================================== */
body.dark-theme, html.dark-theme body {
  --bg-light: #070d19;
  --bg-white: #0f182d;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  background-color: #070d19;
  color: #cbd5e1;
}

body.dark-theme .theme-toggle-btn {
  background: #0f182d;
  border-color: rgba(255, 255, 255, 0.2);
  color: #00f0ff;
}

body.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
}

body.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

body.dark-theme .header-wrapper {
  background: rgba(7, 13, 25, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .header-menu {
  background: rgba(15, 24, 45, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .header-menu > a {
  color: #f8fafc;
}

body.dark-theme .header-menu > a .number {
  color: var(--accent-cyan);
}

body.dark-theme .header-menu > a:hover,
body.dark-theme .header-menu > a.active {
  background-color: var(--primary-blue);
  color: #ffffff;
}

body.dark-theme .client-card,
body.dark-theme .service-card,
body.dark-theme .step-card,
body.dark-theme .why-card,
body.dark-theme .blog-card,
body.dark-theme .featured-post-card,
body.dark-theme .blog-search-input,
body.dark-theme .blog-category-chip,
body.dark-theme .post-body-content table td {
  background: #0f182d;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

body.dark-theme .service-title,
body.dark-theme .step-title,
body.dark-theme .why-title,
body.dark-theme .client-logo-badge,
body.dark-theme .featured-title a,
body.dark-theme .blog-card-title a,
body.dark-theme .blog-hero-title,
body.dark-theme .post-main-title,
body.dark-theme .post-body-content h2,
body.dark-theme .post-body-content h3,
body.dark-theme .author-info strong,
body.dark-theme .blog-section-header h2,
body.dark-theme .contact-header h2 {
  color: #f8fafc;
}

body.dark-theme .blog-search-input {
  color: #f8fafc;
}

body.dark-theme .blog-category-chip {
  color: #cbd5e1;
}

body.dark-theme .blog-category-chip.active {
  background: var(--primary-blue);
  color: #ffffff;
}

body.dark-theme .blog-hero-section {
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.08) 0%, rgba(7, 13, 25, 1) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .logo-light {
  display: none !important;
}

body.dark-theme .logo-dark {
  display: block !important;
  height: 38px;
  width: auto;
}

body.dark-theme .tech-tags {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .tech-tag {
  background: rgba(0, 102, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

body.dark-theme .service-description,
body.dark-theme .service-features-list li {
  color: #cbd5e1;
}

body.dark-theme .section-main-heading {
  color: #f8fafc;
}

body.dark-theme .post-body-content {
  color: #cbd5e1;
}

body.dark-theme .post-body-content blockquote {
  background: rgba(0, 102, 255, 0.12);
  color: #f8fafc;
  border-left-color: var(--accent-cyan);
}

body.dark-theme .kw-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

body.dark-theme #button-menu-mobile {
  background: #0f182d;
  filter: invert(1);
}

/* ==========================================================================
   BLOG STYLES (blog.html & post.html)
   ========================================================================== */
.header-menu > a.active {
  background-color: var(--primary-navy);
  color: var(--text-light);
}

.header-menu > a.active .number {
  color: var(--accent-cyan);
}

/* Blog Hero */
.blog-hero-section {
  padding: 60px 0 40px 0;
  background: linear-gradient(180deg, rgba(9, 33, 72, 0.03) 0%, rgba(248, 250, 252, 1) 100%);
  border-bottom: 1px solid var(--border-light);
}

.blog-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 12px 0 16px 0;
  line-height: 1.2;
}

.blog-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Buscador */
.blog-search-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto 24px auto;
}

.blog-search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.blog-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: white;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition-fast);
}

.blog-search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* Category Chips */
.blog-categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.blog-category-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.blog-category-chip:hover,
.blog-category-chip.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

/* Blog Grid Section */
.blog-grid-section {
  padding: 60px 0;
}

.blog-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 24px;
}

/* Featured Post Card */
.featured-post-wrapper {
  margin-bottom: 50px;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-post-card:hover .featured-image-wrapper img {
  transform: scale(1.04);
}

.featured-content {
  padding: 40px 32px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-tag {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.blog-read-time {
  font-size: 13px;
  color: var(--text-muted);
}

.featured-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-title a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition-fast);
}

.featured-title a:hover {
  color: var(--primary-blue);
}

.featured-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.featured-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.btn-read-more {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-read-more:hover {
  gap: 10px;
}

/* Blog Cards Grid */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 255, 0.3);
}

.blog-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-tag-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 33, 72, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--primary-blue);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.blog-link-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.blog-link-arrow:hover {
  gap: 10px;
}

.no-posts-found {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
  grid-column: 1 / -1;
}

/* ==========================================================================
   ARTICLE DETAIL PAGE (post.html)
   ========================================================================== */
.post-detail-main {
  padding: 40px 0 80px 0;
}

.post-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.post-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.post-breadcrumbs a {
  color: var(--primary-blue);
  text-decoration: none;
}

.post-header {
  margin-bottom: 30px;
}

.post-main-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-navy);
  margin: 16px 0;
}

.post-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  font-size: 14px;
  color: var(--primary-navy);
}

.author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.post-featured-hero-image {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
}

.post-featured-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post Typography Body */
.post-body-content {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
}

.post-body-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 36px 0 16px 0;
}

.post-body-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 28px 0 12px 0;
}

.post-body-content p {
  margin-bottom: 20px;
}

.post-body-content ul, 
.post-body-content ol {
  margin: 0 0 24px 24px;
}

.post-body-content li {
  margin-bottom: 10px;
}

.post-body-content blockquote {
  border-left: 4px solid var(--primary-blue);
  background: #f0f7ff;
  padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--primary-navy);
}

.post-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.post-body-content table th,
.post-body-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
  font-size: 15px;
}

.post-body-content table th {
  background: var(--primary-navy);
  color: white;
}

.post-body-content table tr:nth-child(even) {
  background: #f8fafc;
}

/* Article Footer Actions */
.post-footer-actions {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.kw-tag {
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.post-share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.post-share-bar a {
  color: var(--primary-blue);
  text-decoration: none;
}

/* Sidebar Styles */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, #092148 0%, #0d2a5c 100%);
  color: white;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-cta-card h3 {
  color: white !important;
  font-size: 20px;
  margin-bottom: 12px;
}

.sidebar-cta-card p {
  font-size: 14px;
  color: #94a3b8 !important;
  margin-bottom: 20px;
  line-height: 1.5;
}

body.dark-theme .sidebar-cta-card {
  background: linear-gradient(135deg, #0f182d 0%, #070d19 100%);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-theme .sidebar-cta-card h3 {
  color: #ffffff !important;
}

body.dark-theme .sidebar-cta-card p {
  color: #cbd5e1 !important;
}

.sidebar-related-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 8px;
}

body.dark-theme .sidebar-related-block h3 {
  color: #f8fafc;
  border-bottom-color: var(--accent-cyan);
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Responsive Blog Adjustments */
@media (max-width: 992px) {
  .post-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  
  .featured-content {
    padding: 24px;
  }

  .blog-hero-title {
    font-size: 30px;
  }

  .post-main-title {
    font-size: 26px;
  }
}