/* ============================================
   Component Stylesheet: Reusable UI Elements
   ============================================ */

/* Removed redundant import */

/* ========== Glassmorphic Card ========== */
.glass-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.glass-card:focus-within {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Variant: Dark Glass (Darker Background) */
.glass-card-dark {
  position: relative;
  background: #f8f9fa;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Hard Override for Dark Mode (Premium Glassmorphic) */
[data-theme="dark"] .glass-card,
.dark .glass-card,
[data-theme="dark"] .glass-card-dark,
.dark .glass-card-dark,
[data-theme="dark"] .work-card,
.dark .work-card,
[data-theme="dark"] .project-card,
.dark .project-card,
[data-theme="dark"] .testimonial-card,
.dark .testimonial-card,
[data-theme="dark"] .capabilities-card,
.dark .capabilities-card,
[data-theme="dark"] .education-item,
.dark .education-item,
[data-theme="dark"] .language-card,
.dark .language-card,
[data-theme="dark"] .executive-summary-card,
.dark .executive-summary-card,
[data-theme="dark"] .blog-card,
.dark .blog-card,
[data-theme="dark"] .related-article-card,
.dark .related-article-card {
  /* Premium Frosted Glass Base */
  background: rgba(20, 24, 36, 0.55);
  /* Layered blur + saturation recovery for depth */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  /* Subtle gradient overlay for sophistication */
  background-image: linear-gradient(135deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(0, 229, 255, 0.02) 50%,
      rgba(124, 58, 237, 0.01) 100%);
  /* Refined border with dual-tone glow */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    /* Top highlight for 3D lift */
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    /* Inner depth shadow */
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    /* Outer glow - subtle cyan */
    0 0 20px rgba(0, 229, 255, 0.08),
    /* Depth shadow */
    0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Enhanced Hover State for Glass Cards */
[data-theme="dark"] .glass-card:hover,
.dark .glass-card:hover,
[data-theme="dark"] .glass-card-dark:hover,
.dark .glass-card-dark:hover,
[data-theme="dark"] .work-card:hover,
.dark .work-card:hover,
[data-theme="dark"] .project-card:hover,
.dark .project-card:hover,
[data-theme="dark"] .testimonial-card:hover,
.dark .testimonial-card:hover,
[data-theme="dark"] .capabilities-card:hover,
.dark .capabilities-card:hover,
[data-theme="dark"] .education-item:hover,
.dark .education-item:hover,
[data-theme="dark"] .language-card:hover,
.dark .language-card:hover,
[data-theme="dark"] .executive-summary-card:hover,
.dark .executive-summary-card:hover,
[data-theme="dark"] .blog-card:hover,
.dark .blog-card:hover,
[data-theme="dark"] .related-article-card:hover,
.dark .related-article-card:hover {
  background: rgba(25, 30, 45, 0.65);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 0 32px rgba(0, 229, 255, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Premium Micro-texture (subtle grain, not visible noise) */
[data-theme="dark"] .glass-card::after,
.dark .glass-card::after,
[data-theme="dark"] .glass-card-dark::after,
.dark .glass-card-dark::after,
[data-theme="dark"] .work-card::after,
.dark .work-card::after,
[data-theme="dark"] .project-card::after,
.dark .project-card::after,
[data-theme="dark"] .testimonial-card::after,
.dark .testimonial-card::after,
[data-theme="dark"] .capabilities-card::after,
.dark .capabilities-card::after,
[data-theme="dark"] .education-item::after,
.dark .education-item::after,
[data-theme="dark"] .language-card::after,
.dark .language-card::after,
[data-theme="dark"] .executive-summary-card::after,
.dark .executive-summary-card::after,
[data-theme="dark"] .blog-card::after,
.dark .blog-card::after,
[data-theme="dark"] .related-article-card::after,
.dark .related-article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Ultra-subtle fine grain for texture without ugliness */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}



/* Fix for Education Timeline Items becoming "Boxes" in Dark Mode */
[data-theme="dark"] .education-item {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  /* Adjust dot position since we added padding */
}

/* Ensure the dot stays correctly positioned relative to the new box */
[data-theme="dark"] .education-item::before {
  left: calc(-1 * var(--space-md) - 25px);
  /* Adjusted for card padding + timeline gap */
  top: 24px;
  /* Align with first line of text inside the padded box */
}

/* Dark Mode Fixes for Executive Summary */
[data-theme="dark"] .executive-summary-section {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .badge-blue {
  background: rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.12);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .badge-blue:hover {
  background: rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 229, 255, 0.35);
  color: #93c5fd;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

[data-theme="dark"] .badge-blue:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .badge,
.dark .badge {
  background: rgba(51, 65, 85, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .badge i,
.dark .badge i {
  color: rgba(0, 229, 255, 0.7);
  opacity: 0.85;
}

[data-theme="dark"] .badge:hover,
.dark .badge:hover {
  background: rgba(71, 85, 105, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

[data-theme="dark"] .badge:hover i,
.dark .badge:hover i {
  opacity: 1;
  color: rgba(0, 229, 255, 0.9);
  transform: scale(1.1);
}

[data-theme="dark"] .badge:active,
.dark .badge:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .badge-light-blue,
.dark .badge-light-blue {
  background: rgba(2, 132, 199, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #06b6d4;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.12);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .badge-light-blue:hover,
.dark .badge-light-blue:hover {
  background: rgba(2, 132, 199, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 229, 255, 0.4);
  color: #22d3ee;
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.18);
  transform: translateY(-2px);
}

[data-theme="dark"] .badge-light-blue:active,
.dark .badge-light-blue:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.1);
}

[data-theme="dark"] .badge-secondary,
.dark .badge-secondary {
  background: rgba(0, 153, 204, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #06b6d4;
  box-shadow: 0 0 16px rgba(0, 153, 204, 0.12);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .badge-secondary:hover,
.dark .badge-secondary:hover {
  background: rgba(0, 153, 204, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 153, 204, 0.18);
  transform: translateY(-2px);
}

[data-theme="dark"] .badge-secondary:active,
.dark .badge-secondary:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(0, 153, 204, 0.1);
}

[data-theme="dark"] .badge-popular,
.dark .badge-popular {
  background: rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #06b6d4;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .badge-popular:hover,
.dark .badge-popular:hover {
  background: rgba(0, 229, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

[data-theme="dark"] .badge-popular:active,
.dark .badge-popular:active {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

[data-theme="dark"] .badge-limited,
.dark .badge-limited {
  background: rgba(239, 68, 68, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.12);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] .badge-limited:hover,
.dark .badge-limited:hover {
  background: rgba(239, 68, 68, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.18);
  transform: translateY(-2px);
}

[data-theme="dark"] .badge-limited:active,
.dark .badge-limited:active {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.1);
}

/* Spotlight Effect Container (Premium Interactive Glow) */
.glass-card::before,
.glass-card-dark::before,
.work-card::before,
.project-card::before,
.testimonial-card::before,
.capabilities-card::before,
.blog-card::before,
.language-card::before,
.executive-summary-card::before,
.related-article-card::before,
.education-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  /* Multi-color spotlight: Cyan + Purple gradient */
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 229, 255, 0.25),
      rgba(124, 58, 237, 0.15) 35%,
      transparent 60%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

/* Light Mode: Blue spotlight effect */
[data-theme="light"] .glass-card::before,
[data-theme="light"] .glass-card-dark::before,
[data-theme="light"] .work-card::before,
[data-theme="light"] .project-card::before,
[data-theme="light"] .testimonial-card::before,
[data-theme="light"] .capabilities-card::before,
[data-theme="light"] .blog-card::before,
[data-theme="light"] .language-card::before,
[data-theme="light"] .executive-summary-card::before,
[data-theme="light"] .related-article-card::before,
[data-theme="light"] .education-item::before {
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(91, 156, 245, 0.25),
      rgba(0, 85, 204, 0.15) 35%,
      transparent 60%);
}

.glass-card:hover::before,
.glass-card-dark:hover::before,
.work-card:hover::before,
.project-card:hover::before,
.testimonial-card:hover::before,
.capabilities-card:hover::before,
.blog-card:hover::before,
.language-card:hover::before,
.executive-summary-card:hover::before,
.related-article-card:hover::before,
.education-item:hover::before {
  opacity: 1;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  user-select: none;
  gap: var(--space-sm);
}

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

/* Premium Button Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease-squish);
  border-radius: 50%;
  pointer-events: none;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.btn:active {
  transform: scale(0.96) !important;
}

/* Button: Primary (Cyan Accent) */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Button: Secondary (Glass + Border) */
.btn-secondary {
  background: var(--bg-primary);
  border: 2px solid #00d4ff;
  color: var(--accent-primary);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

/* Button: Ghost (Text Only) */
.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.05);
  border-bottom-color: var(--accent-primary);
  color: var(--accent-secondary);
}

/* Button: Large */
.btn-lg {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
}

/* Button: Small */
.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
}

/* ============================================
   Navigation: The Floating Command Hub
   ============================================ */

.nav-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 95%;
  display: flex;
  flex-direction: column;
}

.nav-container.scrolled {
  top: 12px;
}

.nav-hub {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 10, 15, 0.7);
  /* Deep dark glass default */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-container.scrolled .nav-hub {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4px 6px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Light Mode Overrides for Menu */
[data-theme="light"] .nav-hub {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
}

[data-theme="light"] .nav-container.scrolled .nav-hub {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.nav-logo-area {
  display: flex;
  align-items: center;
  padding-left: 12px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  margin-right: 4px;
  font-weight: bold!important;  
}

[data-theme="light"] .nav-logo-area {
  border-right-color: rgba(0, 0, 0, 0.06);
}

.nav-logo {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-primary);
}

[data-theme="light"] .nav-link:hover {
  color: var(--accent-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom-color: var(--accent-primary);
}

[data-theme="light"] .nav-link.active {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  margin-left: 4px;
}

[data-theme="light"] .nav-actions {
  border-left-color: rgba(0, 0, 0, 0.06);
}

.theme-btn-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-btn-mini:hover,
.theme-btn-mini:active,
.theme-btn-mini:focus {
  outline: none;
  box-shadow: none;
}

/* Light Mode */
[data-theme="light"] .theme-btn-mini {
  color: #5b9cf5 !important;
  filter: drop-shadow(0 0 8px rgba(91, 156, 245, 0.6));
}

[data-theme="light"] .theme-btn-mini svg {
  stroke: #5b9cf5 !important;
  color: #5b9cf5 !important;
}

[data-theme="light"] .theme-btn-mini svg path,
[data-theme="light"] .theme-btn-mini svg circle,
[data-theme="light"] .theme-btn-mini svg line {
  stroke: #5b9cf5 !important;
}

[data-theme="light"] .theme-btn-mini .moon-icon {
  stroke: #5b9cf5 !important;
  color: #5b9cf5 !important;
}

[data-theme="light"] .theme-btn-mini .moon-icon path,
[data-theme="light"] .theme-btn-mini .moon-icon circle,
[data-theme="light"] .theme-btn-mini .moon-icon line {
  stroke: #5b9cf5 !important;
}

[data-theme="light"] .theme-btn-mini:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0055cc !important;
  filter: drop-shadow(0 0 15px rgba(0, 85, 204, 0.8));
}

[data-theme="light"] .theme-btn-mini:hover svg {
  stroke: #0055cc !important;
  color: #0055cc !important;
}

[data-theme="light"] .theme-btn-mini:hover svg path,
[data-theme="light"] .theme-btn-mini:hover svg circle,
[data-theme="light"] .theme-btn-mini:hover svg line {
  stroke: #0055cc !important;
}

[data-theme="light"] .theme-btn-mini:hover .moon-icon {
  stroke: #0055cc !important;
  color: #0055cc !important;
}

[data-theme="light"] .theme-btn-mini:hover .moon-icon path,
[data-theme="light"] .theme-btn-mini:hover .moon-icon circle,
[data-theme="light"] .theme-btn-mini:hover .moon-icon line {
  stroke: #0055cc !important;
}

/* Dark Mode */
[data-theme="dark"] .theme-btn-mini {
  color: #ff8c00 !important;
  filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.5));
}

[data-theme="dark"] .theme-btn-mini svg,
[data-theme="dark"] .theme-btn-mini svg * {
  stroke: #ff8c00 !important;
  color: #ff8c00 !important;
}

[data-theme="dark"] .theme-btn-mini:hover {
  color: #ffaa33 !important;
  filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.8));
  background: rgba(255, 165, 0, 0.1);
}

[data-theme="dark"] .theme-btn-mini:hover svg,
[data-theme="dark"] .theme-btn-mini:hover svg * {
  stroke: #ffaa33 !important;
  color: #ffaa33 !important;
}

.btn-spotlight {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 20px;
  background: var(--accent-primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-spotlight:hover {
  transform: translateY(-1px);
  background: rgba(0, 212, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  border-color: rgba(0, 212, 255, 0.4);
}

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

/* Mobile Adjustments */
.mobile-only {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-only {
  display: flex;
}

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

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: flex !important;
  }

  .nav-links {
    display: flex !important;
  }

  .nav-links li:not(.mobile-item) {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none !important;
  }

  .nav-links li:not(.mobile-item) {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
  }

  .nav-hub {
    padding: 6px 12px;
  }

  /* Dropdown Styles */
  .mobile-menu-dropdown {
    position: fixed;
    top: calc(24px + 48px + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    margin-top: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .mobile-menu-dropdown.active {
    display: flex;
  }

  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-nav-links li {
    margin: 0;
  }

  .mobile-nav-links .nav-link {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-links .nav-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
  }

  .mobile-nav-links li[style*="border-top"] {
    margin: 8px 0;
    padding-top: 0;
    border: none !important;
    height: 1px;
    background: rgba(0, 212, 255, 0.1);
  }

  .mobile-action-item .nav-link {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
  }

  .mobile-action-item .nav-link:hover {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent-primary);
  }

  .mobile-nav-links .btn-spotlight {
    margin-top: 4px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
  }

  .mobile-nav-links .btn-spotlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
  }
}

.nav-branding {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-actions {
  display: flex;
  gap: var(--space-sm);
  margin-left: auto;
  align-items: center;
}

.nav-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.2;
  transition: color var(--transition-base);
}

.nav-name:hover {
  color: var(--accent-primary);
}

.nav-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.2;
}

.nav-contact-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--accent-primary);
  background: transparent;
  text-decoration: none;
  transition: all var(--transition-base);
}

.nav-contact-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: var(--text-xl);
  padding: var(--space-sm);
  transition: color var(--transition-base);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
}

.nav-toggle:hover {
  color: var(--accent-secondary);
}

.nav-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: var(--z-dropdown);
}

.nav-menu.active {
  display: flex;
}

.nav-item {
  padding: 0;
}

.nav-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
  transition: all var(--transition-base);
}

.nav-link:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-primary);
  border-bottom-color: rgba(0, 212, 255, 0.2);
}

.nav-link:focus {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
}

.nav-item:last-child .nav-link {
  border-bottom: none;
}

/* Light Mode Nav Menu */
[data-theme="light"] .nav-menu,
.light .nav-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

[data-theme="light"] .nav-link,
.light .nav-link {
  color: #0f172a;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

[data-theme="light"] .nav-link:hover,
.light .nav-link:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #2563eb;
}

/* Dark Mode Nav Menu */
[data-theme="dark"] .nav-menu,
.dark .nav-menu {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link,
.dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

[data-theme="dark"] .nav-link:hover,
.dark .nav-link:hover {
  background: rgba(0, 212, 255, 0.1);
  color: rgba(0, 229, 255, 0.9);
  border-bottom-color: rgba(0, 229, 255, 0.3);
}

/* Desktop: Show menu inline, hide toggle */
@media (min-width: var(--bp-md)) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    gap: var(--space-md);
    margin-left: var(--space-lg);
    padding: 0;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: row;
  }

  .nav-item {
    padding: 0;
  }

  .nav-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.15) 0%, transparent 100%);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
  }

  .nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(0, 212, 255, 0.08);
  }

  .nav-item.mobile-item {
    display: none !important;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .nav-container {
    padding: 0 var(--space-sm);
  }

  .nav-name {
    font-size: var(--text-base);
  }

  .nav-subtitle {
    font-size: 0.625rem;
  }

  .nav-contact-btn {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
  }
}

/* ========== Hero Section ========== */
.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  /* Larger, bolder */
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
  /* subtle glow */
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ========== Form Elements ========== */
.form-group {
  margin-bottom: var(--space-lg);
}

/* Mobile Contact Options */
.mobile-contact-options {
  display: none;
  gap: 1rem;
  margin-top: var(--space-lg);
  justify-content: center;
}

.mobile-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mobile-contact-btn.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1fa855 100%);
  color: white;
}

.mobile-contact-btn.whatsapp:hover {
  background: linear-gradient(135deg, #1fa855 0%, #188c4a 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.mobile-contact-btn.whatsapp:active {
  transform: translateY(-1px);
}

.mobile-contact-btn.phone {
  background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
  color: white;
}

.mobile-contact-btn.phone:hover {
  background: linear-gradient(135deg, #0051d5 0%, #003a9f 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.5);
}

.mobile-contact-btn.phone:active {
  transform: translateY(-1px);
}

/* Show on Mobile Only */
@media (max-width: 768px) {
  .mobile-contact-options {
    display: flex;
  }
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--input-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: rgba(30, 35, 50, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    0 0 16px rgba(0, 229, 255, 0.05);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  background: rgba(35, 42, 62, 0.7);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    0 0 0 4px rgba(0, 229, 255, 0.15),
    0 0 24px rgba(0, 229, 255, 0.12);
}

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

/* Select dropdown option styling */
select option {
  background: #ffffff;
  color: #1f2937;
  padding: 8px 12px;
}

[data-theme="dark"] select option {
  background: rgba(30, 35, 50, 0.95);
  color: #ffffff;
  padding: 8px 12px;
}

[data-theme="dark"] select option:hover,
[data-theme="dark"] select option:focus {
  background: rgba(0, 229, 255, 0.15);
  color: #ffffff;
}

/* ========== Badge ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.6), rgba(203, 213, 225, 0.4));
  color: #475569;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge i {
  font-size: 0.95rem;
  opacity: 0.85;
  transition: all var(--transition-base);
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.badge:hover {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.8), rgba(226, 232, 240, 0.6));
  border-color: rgba(100, 116, 139, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.badge:hover i {
  opacity: 1;
  transform: scale(1.1);
}

.badge:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.badge-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.05));
  border-color: rgba(37, 99, 235, 0.25);
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge-blue:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.08));
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.badge-blue:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.badge-light-blue {
  background: linear-gradient(135deg, rgba(0, 145, 217, 0.1), rgba(0, 119, 182, 0.06));
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge-light-blue:hover {
  background: linear-gradient(135deg, rgba(0, 145, 217, 0.15), rgba(0, 119, 182, 0.1));
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
  transform: translateY(-1px);
}

.badge-light-blue:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
}

.badge-secondary {
  background: linear-gradient(135deg, rgba(0, 153, 204, 0.12), rgba(0, 119, 182, 0.08));
  border-color: rgba(0, 153, 204, 0.3);
  color: #0891b2;
  box-shadow: 0 2px 8px rgba(0, 153, 204, 0.12);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge-secondary:hover {
  background: linear-gradient(135deg, rgba(0, 153, 204, 0.18), rgba(0, 119, 182, 0.12));
  border-color: rgba(0, 153, 204, 0.45);
  box-shadow: 0 4px 12px rgba(0, 153, 204, 0.18);
  transform: translateY(-1px);
}

.badge-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 153, 204, 0.12);
}

/* Popular / Urgency Badges */
.badge-popular {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 180, 220, 0.15));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #06b6d4;
  border-radius: calc(var(--radius-md) / 1.5);
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);
  position: absolute;
  top: -10px;
  right: 16px;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge-popular:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(0, 180, 220, 0.22));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.badge-popular:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 229, 255, 0.15);
}

.badge-limited {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ef4444;
  border-radius: calc(var(--radius-md) / 1.5);
  font-size: var(--text-xs);
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge-limited:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.16));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

.badge-limited:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.12);
}

/* ========== Testimonial Cards ========== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-card blockquote {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.testimonial-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-meta .meta-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}


/* ========== Loading Spinner ========== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========== Tooltip ========== */
.tooltip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--accent-primary);
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: var(--z-tooltip);
}

.tooltip:hover::after {
  opacity: 1;
}

/* ========== Divider ========== */
.divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--glass-border) 50%,
      transparent);
  margin: var(--space-lg) 0;
}

/* ========== Code Highlight Block ========== */
/* Unified .code-block rules consolidated later in the file to avoid duplication and conflicts. */

.code-block code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* ========== Success/Error States ========== */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--space-lg);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

.alert-success {
  background: #e0f7ff;
  border-color: #00d4ff;
  color: #0099cc;
}

.alert-error {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.1);
}

.alert-warning {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.1);
}

/* ========== GEO Targeting ========== */
.geo-target {
  color: var(--accent-primary);
  font-weight: 600;
  transition: all var(--transition-base);
  display: inline;
}

.geo-target:hover {
  color: var(--accent-secondary);
}

@keyframes geo-fade-in {
  from {
    opacity: 0.5;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.geo-target.updating {
  animation: geo-fade-in 0.3s ease-in-out forwards;
}

/* ========== Code Snippet Styling ========== */

/* Code Block Container */
.code-block {
  position: relative;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: var(--text-xs);
  line-height: 1.6;
  transition: all var(--transition-base);
}

.code-block:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.15);
}

/* Code Block Header (Language Label) */
.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e0f7ff;
  border-bottom: 1px solid #e5e7eb;
  padding: var(--space-sm) var(--space-md);
}

.code-language {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Code Content */
.code-block pre {
  margin: 0;
  padding: var(--space-md);
  overflow-x: auto;
  color: var(--text-primary);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.code-block pre::-webkit-scrollbar {
  height: 6px;
}

.code-block pre::-webkit-scrollbar-track {
  background: transparent;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

.code-block pre::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

.code-block code {
  font-family: inherit;
  font-size: inherit;
}

/* Syntax Highlighting Tokens */
.token-keyword {
  color: #ff79c6;
  /* Pink */
  font-weight: 600;
}

.token-string {
  color: #f1fa8c;
  /* Yellow */
}

.token-comment {
  color: #6272a4;
  /* Gray */
  font-style: italic;
}

.token-function {
  color: #50fa7b;
  /* Green */
}

.token-operator {
  color: #ff79c6;
  /* Pink */
}

.token-number {
  color: #bd93f9;
  /* Purple */
}

.token-attr-name {
  color: #50fa7b;
  /* Green */
}

.token-attr-value {
  color: #f1fa8c;
  /* Yellow */
}

.token-tag {
  color: #ff79c6;
  /* Pink */
}

/* Copy Code Button */
.code-block-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-block-copy:hover {
  background: rgba(0, 212, 255, 0.3);
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.code-block-copy:active {
  transform: scale(0.95);
}

.code-block-copy.copied {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
  color: #00ff88;
}

/* Line Numbers (Optional) */
.code-block.with-line-numbers {
  padding: 0;
}

.code-block.with-line-numbers pre {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
}

.code-line-numbers {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--glass-border);
  padding: var(--space-md);
  text-align: right;
  user-select: none;
  color: var(--text-secondary);
}

.code-line-numbers>span {
  display: block;
  line-height: 1.6;
}

/* Light theme - no backdrop-filter needed */
/* Removed redundant overrides */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  background: var(--input-bg);
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.btn-secondary {
  background: #ffffff;
  border: 2px solid #00d4ff;
  color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== HERO SECTION (INDUSTRIAL DASHBOARD) ========== */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* 3D Context for Grid */
  perspective: 1000px;
  background: var(--bg-primary);
  /* Ensure explicit background for light mode */
}

/* 3D Grid Background */
.hero-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Default (Light Mode) Grid - Blue/Grey subtelty */
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(60deg) scale(2);
  transform-origin: top center;
  opacity: 1;
  /* Higher opacity for light mode */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  animation: gridMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Dark Mode Grid Override */
[data-theme="dark"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  opacity: 0.2;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 50px;
  }
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  z-index: 1;
}

/* 1. Status Bar (Top) */
.hero-status-bar {
  margin-bottom: auto;
  /* Push to top */
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  /* Light mode default */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-status-bar {
  background: rgba(15, 15, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.status-text {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* 2. Center Stage (Massive Typography) */
.hero-center-stage {
  text-align: center;
  margin: var(--space-2xl) 0;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text-primary);
  text-transform: uppercase;
}

.hero-title .text-stroke {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.1);
  /* Light mode stroke */
  opacity: 1;
}

/* Dark mode override for text stroke */
[data-theme="dark"] .hero-title .text-stroke {
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
  opacity: 0.3;
}

.hero-subtitle {
  margin-top: var(--space-lg);
  font-family: 'Fira Code', monospace;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  color: var(--accent-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* 3. Control Deck (Bottom) */
.hero-control-deck {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 255, 255, 0.7);
  /* Light mode: Frosted Glass */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  margin-top: auto;
  /* Push to bottom */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Mobile Stacking for Control Deck */
@media (max-width: 640px) {
  .hero-control-deck {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
    width: 90%;
    margin-bottom: var(--space-md);
  }

  .deck-divider {
    display: none;
  }
}

[data-theme="dark"] .hero-control-deck {
  background: rgba(10, 10, 15, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.deck-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.deck-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.deck-value {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.deck-divider {
  width: 1px;
  height: 2rem;
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .deck-divider {
  background: rgba(255, 255, 255, 0.1);
}

.deck-actions {
  display: flex;
  gap: var(--space-md);
}

.btn-glass {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--accent-primary);
}

[data-theme="dark"] .btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-control-deck {
    flex-direction: column;
    gap: var(--space-md);
    width: 90%;
    padding: var(--space-lg);
  }

  .deck-divider {
    width: 100%;
    height: 1px;
  }

  .deck-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Section Title (Legacy - use .section-header for new sections) ========== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: left;
  color: var(--text-primary);
}

/* ========== Section Header Component ========== */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-category {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section-main-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 640px) {
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-subtitle {
    white-space: normal;
  }
}

/* ========== Work Experience ========== */
#experience {
  padding: var(--space-2xl) 0;
}

.work-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.work-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.15);
}

.work-highlight {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: #dcfce7;
  color: #16a34a;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: normal;
  max-width: 100%;
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.work-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.work-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.work-period {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--space-xs) 0;
}

.work-role {
  font-size: var(--text-sm);
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.work-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.work-description strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 700;
}

.work-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ========== Executive Summary Card ========== */
.executive-summary-card {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .executive-summary-card {
    padding: 3rem;
  }
}

.executive-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .executive-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.executive-summary-section {
  padding-top: 1rem;
  border-top: 1px solid #f8fafc;
}

/* ========== Skills Section ========== */
#skills {
  padding: var(--space-2xl) 0;
}

.capabilities-card {
  position: relative;
  background: #f8fafc;
  border-radius: 40px;
  padding: 2rem;
}

@media (min-width: 768px) {
  .capabilities-card {
    padding: 3rem;
  }
}

.capabilities-card .skill-category {
  margin-bottom: 2.5rem;
}

.capabilities-card .skill-category:last-child {
  margin-bottom: 0;
}

.capabilities-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.capabilities-card .skill-category:hover .skill-icon {
  opacity: 1;
  transform: scale(1.1) translateY(-2px);
}

[data-theme="dark"] .skill-icon {
  color: rgba(0, 229, 255, 0.8);
}

.capabilities-card .skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

/* Tablet: 2 columns (~768px) */
@media (min-width: var(--bp-md)) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 4 columns (~1024px) */
@media (min-width: var(--bp-lg)) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .work-card {
    padding: var(--space-lg);
  }

  .work-highlight {
    position: static;
    display: inline-block;
    margin-bottom: var(--space-sm);
  }
}

.skill-category {
  padding: 0;
}

/* ========== Services Grid ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.15);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.service-features li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.service-link {
  display: inline-block;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
  align-self: flex-start;
}

.service-link:hover {
  transform: translateX(4px);
}

/* Dark Mode Service Cards */
[data-theme="dark"] .service-card,
.dark .service-card {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

[data-theme="dark"] .service-card:hover,
.dark .service-card:hover {
  box-shadow: 0 12px 36px rgba(0, 229, 255, 0.1);
}

[data-theme="dark"] .service-icon,
.dark .service-icon {
  background: rgba(0, 212, 255, 0.08);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: var(--space-lg);
  }
}

.skill-category {
  padding: 0;
}

.skill-category h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ========== Projects Section ========== */
#case-studies {
  padding: var(--space-2xl) 0;
}

#case-studies .grid {
  gap: var(--space-lg);
}

#case-studies .glass-card-dark {
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

#case-studies .glass-card-dark:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.15);
  transform: translateY(-2px);
}

#case-studies .glass-card-dark h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  transition: color var(--transition-base);
}

#case-studies .glass-card-dark:hover h3 {
  color: var(--accent-primary);
}

/* Project Cards */
.project-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  background: white;
  border-color: #e5e7eb;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
  margin: 0;
}

.project-card:hover h3 {
  color: var(--accent-primary);
}

/* Project Impact Badge */
.project-impact-badge {
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 120px;
  text-align: right;
  flex-shrink: 0;
}

/* ========== Education Timeline ========== */
#education {
  padding: var(--space-2xl) 0;
}

.education-timeline {
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.education-item {
  position: relative;
  padding-left: var(--space-lg);
}

.education-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 9px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-primary);
  z-index: 1;
}

.education-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.education-item .education-degree {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.education-item .education-period {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.education-item .education-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

/* ========== Languages Section ========== */
#languages {
  padding: var(--space-2xl) 0;
}

.languages-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 500px;
}

.language-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all var(--transition-base);
}

.language-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-flag {
  display: inline-block;
  width: 28px;
  height: 21px;
  border-radius: 3px;
  flex-shrink: 0;
  opacity: 0.9;
  transition: all var(--transition-base);
}

.language-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.language-card:hover .language-flag {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.language-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.language-level {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f8fafc;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
}

/* ========== Contact Form (Light Theme) ========== */
#contact {
  padding: var(--space-2xl) 0;
}

#contact .glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#contact .form-group {
  margin-bottom: var(--space-lg);
}

#contact label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

#contact input[type="text"],
#contact input[type="email"],
#contact select,
#contact textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#contact textarea {
  min-height: 120px;
  resize: vertical;
}

#contact small {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

#contact .btn-primary {
  width: 100%;
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
}

/* ========== Contact Form (Dark Mode) ========== */
[data-theme="dark"] #contact .glass-card,
.dark #contact .glass-card {
  /* Premium Frosted Glass Base */
  background: rgba(20, 24, 36, 0.55);
  /* Layered blur + saturation recovery for depth */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  /* Subtle gradient overlay for sophistication */
  background-image: linear-gradient(135deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(0, 229, 255, 0.02) 50%,
      rgba(124, 58, 237, 0.01) 100%);
  /* Refined border with dual-tone glow */
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    /* Top highlight for 3D lift */
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    /* Inner depth shadow */
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    /* Outer glow - subtle cyan */
    0 0 20px rgba(0, 229, 255, 0.08),
    /* Depth shadow */
    0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] #contact .glass-card:hover,
.dark #contact .glass-card:hover {
  background: rgba(25, 30, 45, 0.65);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 0 32px rgba(0, 229, 255, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

[data-theme="dark"] #contact label,
.dark #contact label {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] #contact input[type="text"],
[data-theme="dark"] #contact input[type="email"],
[data-theme="dark"] #contact select,
[data-theme="dark"] #contact textarea,
.dark #contact input[type="text"],
.dark #contact input[type="email"],
.dark #contact select,
.dark #contact textarea {
  background: rgba(30, 35, 50, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

[data-theme="dark"] #contact input[type="text"]::placeholder,
[data-theme="dark"] #contact input[type="email"]::placeholder,
[data-theme="dark"] #contact select,
[data-theme="dark"] #contact textarea::placeholder,
.dark #contact input[type="text"]::placeholder,
.dark #contact input[type="email"]::placeholder,
.dark #contact select,
.dark #contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] #contact input:focus,
[data-theme="dark"] #contact select:focus,
[data-theme="dark"] #contact textarea:focus,
.dark #contact input:focus,
.dark #contact select:focus,
.dark #contact textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(35, 42, 60, 0.7);
  box-shadow: 
    0 0 0 3px rgba(0, 229, 255, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #contact small,
.dark #contact small {
  color: rgba(255, 255, 255, 0.6);
}
/* ========== Mobile Responsive Adjustments ========== */
@media (max-width: 768px) {

  /* Projects: Stack impact badges */
  .project-impact-badge {
    position: static;
    display: inline-block;
    margin-bottom: var(--space-sm);
  }

  #case-studies .glass-card-dark {
    padding: var(--space-lg);
  }

  /* Education: Adjust timeline spacing */
  .education-timeline {
    padding-left: var(--space-sm);
  }

  .education-item {
    padding-left: var(--space-md);
  }

  .education-item::before {
    left: calc(-1 * var(--space-sm) - 9px);
  }

  /* Languages: Full width */
  .languages-list {
    max-width: 100%;
  }

  /* Contact: Adjust padding */
  #contact .glass-card {
    padding: var(--space-lg);
  }
}

/* ========== Footer ========== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-xl) 0;
  margin-top: var(--space-3xl);
  text-align: left;
}

footer .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

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

footer p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

footer p a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

footer p a:hover {
  color: var(--accent-primary);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 165, 0, 0.5);
  color: #ff8c00;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.4), inset 0 0 10px rgba(255, 165, 0, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), inset 0 0 10px rgba(255, 165, 0, 0.2);
}

/* Icon Switching Logic */
.theme-toggle svg {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.5s ease;
}

/* Light Mode: Show Moon, Hide Sun */
[data-theme="light"] .moon-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
  display: block !important;
  stroke: #5b9cf5 !important;
  color: #5b9cf5 !important;
  filter: drop-shadow(0 0 8px rgba(91, 156, 245, 0.6));
}

[data-theme="light"] .sun-icon {
  transform: rotate(90deg) scale(0);
  opacity: 0;
  display: none !important;
}

/* Dark Mode: Show Sun, Hide Moon */
[data-theme="dark"] .sun-icon {
  transform: rotate(0) scale(1);
  opacity: 1;
  display: block !important;
  stroke: #ff8c00 !important;
  color: #ff8c00 !important;
  filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.6));
}

[data-theme="dark"] .moon-icon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
  display: none !important;
}

/* ========== 3D Tilt Effect ========== */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.tilt-content {
  transition: transform 0.1s ease-out;
  /* Super fast for real-time feel */
  will-change: transform;
}

/* ========== Industrial Footer ========== */
.footer-industrial {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 1rem 0 0.5rem;
  font-family: var(--font-primary);
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .footer-industrial {
    padding: 4rem 0 2rem;
  }
}

[data-theme="dark"] .footer-industrial {
  background: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
}

/* Mobile: Hide non-essential columns */
@media (max-width: 639px) {
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    display: none;
  }
}

/* Brand Column */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .footer-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

.footer-desc {
  font-size: 0.7rem;
  line-height: 1.3;
  max-width: 300px;
  margin-bottom: 0.3rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
}

.social-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  padding: 4px 8px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 4px;
}

@media (min-width: 768px) {
  .footer-desc {
    margin-bottom: 1.5rem;
  }

  .social-links {
    margin-bottom: 0.5rem;
    gap: 1rem;
  }

  .social-link {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
  }
}

.social-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.05);
}

/* Headings */
.footer-heading {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-heading {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 0.75rem;
  }
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
  position: relative;
  display: inline-block;
}

@media (min-width: 768px) {
  .footer-links a {
    font-size: 0.9rem;
  }
}

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

/* Status Widget */
.status-widget {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 0.75rem;
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .status-widget {
    padding: 1.5rem;
  }
}

[data-theme="dark"] .status-widget {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.status-note {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .status-row {
    margin-bottom: 0.75rem;
    gap: 0.75rem;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }

  .status-label {
    font-size: 0.8rem;
  }

  .status-note {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
}

.status-widget .btn {
  width: 100%;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

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

@media (min-width: 640px) {
  .footer-bottom {
    padding-top: 1rem;
    gap: 0.75rem;
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding-top: 2rem;
    font-size: 0.8rem;
    gap: 1rem;
  }
}

.footer-legal {
  font-size: 0.65rem;
}

@media (min-width: 768px) {
  .footer-legal {
    font-size: 0.8rem;
  }
}

.footer-meta {
  display: flex;
  gap: 0.3rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-meta {
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
}

.separator {
  color: var(--border-light);
}