/* Executive Monochrome Design System for Bootstrap 5 */

/* ===================================
   1. CSS Variables & Root Configuration
   =================================== */
:root {
  /* Deep Ocean Blue Colors */
  --executive-dark: #0f172a;     /* Slate blue dark */
  --executive-medium: #1e293b;   /* Navy slate */
  --executive-light: #334155;    /* Slate gray */
  --executive-accent: #06b6d4;   /* Cyan blue */
  --executive-accent-hover: #0891b2;  /* Darker cyan */
  --executive-accent-light: #67e8f9;  /* Light cyan */
  
  /* Text Colors */
  --text-on-dark: #ffffff;
  --text-on-dark-secondary: #e2e8f0;
  --text-on-dark-muted: #94a3b8;
  --text-on-light: #0f172a;      /* Dark blue for light mode text */
  --text-on-light-secondary: #475569;
  
  /* Backgrounds - Subtle blue tint for light mode */
  --bg-primary: #f8fbff;         /* White with subtle blue tint */
  --bg-secondary: #f1f7ff;       /* Slightly deeper blue tint */
  --bg-tertiary: #e8f2ff;        /* Light blue background */
  
  /* Borders & Shadows */
  --border-color: #cbd5e1;       /* Blue-gray border */
  --border-light: #e2e8f0;       /* Light blue-gray border */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-bounce: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================================
   2. Base Styles & Typography
   =================================== */
body {
  font-family: var(--font-primary);
  color: var(--text-on-light);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--executive-dark);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

a {
  color: var(--executive-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--executive-accent-hover);
}

/* ===================================
   3. Utility Classes
   =================================== */
.text-accent { color: var(--executive-dark) !important; }
.text-accent-hover:hover { color: var(--executive-medium) !important; }
.text-gold { color: var(--executive-dark) !important; } /* Backward compatibility */
.text-gold-hover:hover { color: var(--executive-medium) !important; }

/* Dark mode text utilities */
[data-bs-theme="dark"] .text-accent { color: var(--executive-accent) !important; }
[data-bs-theme="dark"] .text-accent-hover:hover { color: var(--executive-accent-hover) !important; }
[data-bs-theme="dark"] .text-gold { color: var(--executive-accent) !important; }
[data-bs-theme="dark"] .text-gold-hover:hover { color: var(--executive-accent-hover) !important; }
.bg-executive-dark { background-color: var(--executive-dark) !important; }
.bg-executive-medium { background-color: var(--executive-medium) !important; }
.bg-executive-light { background-color: var(--executive-light) !important; }

/* ===================================
   4. Navigation Styles
   =================================== */
.navbar-executive {
  background: rgba(248, 251, 255, 0.95);  /* Subtle blue-tinted white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
  padding: 1rem 0;
}

.navbar-executive.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar-executive .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--executive-dark) !important;  /* Dark blue in light mode */
}

.navbar-executive .nav-link {
  color: var(--text-on-light-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
}

.navbar-executive .nav-link:hover,
.navbar-executive .nav-link.active {
  color: var(--executive-accent);
}

.navbar-executive .nav-link .mdi {
  transition: transform var(--transition-fast);
}

.navbar-executive .nav-link:hover .mdi {
  transform: translateY(-1px);
}

/* ===================================
   5. Button Styles
   =================================== */
.btn-executive-primary {
  background: var(--executive-dark);  /* Dark blue for light mode */
  color: white;
  border: none;
  padding: var(--space-3);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all var(--transition-base);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-executive-primary:hover {
  background: var(--executive-medium);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Dark mode button overrides */
[data-bs-theme="dark"] .btn-executive-primary {
  background: var(--executive-accent);
  color: var(--executive-dark);
}

[data-bs-theme="dark"] .btn-executive-primary:hover {
  background: var(--executive-accent-hover);
  color: var(--executive-dark);
}

/* Ensure icons in primary buttons are dark in dark mode */
[data-bs-theme="dark"] .btn-executive-primary .mdi {
  color: var(--executive-dark) !important;
}

.btn-executive-secondary {
  background: transparent;
  color: var(--executive-dark);  /* Dark blue for light mode */
  border: 1px solid var(--executive-dark);
  padding: var(--space-3);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all var(--transition-base);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-executive-secondary:hover {
  background: var(--executive-dark);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ensure icons in secondary buttons are white on hover */
.btn-executive-secondary:hover .mdi {
  color: white !important;
}

/* Dark mode secondary button overrides */
[data-bs-theme="dark"] .btn-executive-secondary {
  color: var(--executive-accent);
  border-color: var(--executive-accent);
}

[data-bs-theme="dark"] .btn-executive-secondary:hover {
  background: var(--executive-accent);
  color: var(--executive-dark);
  border-color: var(--executive-accent);
}

/* Small icon buttons - only for icon-only buttons */
.btn-executive-primary.btn-sm:not(:has(span + *)),
.btn-executive-secondary.btn-sm:not(:has(span + *)) {
  width: 36px;
  height: 36px;
  padding: var(--space-2);
}

/* Project card buttons with text */
.card-executive .btn-executive-secondary.btn-sm,
.card-executive .btn-outline-secondary.btn-sm {
  width: auto !important;
  height: auto !important;
  border-radius: var(--radius) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Override the circular shape for buttons with text content */
.btn-executive-secondary.btn-sm:has(.mdi + text),
.btn-executive-secondary.btn-sm:has(span.mdi:not(:only-child)) {
  width: auto !important;
  height: auto !important;
  border-radius: var(--radius) !important;
  padding: 0.375rem 0.75rem !important;
}

/* Ensure proper colors for project card buttons in dark mode */
[data-bs-theme="dark"] .card-executive .btn-executive-secondary {
  color: var(--text-on-dark) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-bs-theme="dark"] .card-executive .btn-executive-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix btn-outline-secondary for project cards */
.card-executive .btn-outline-secondary {
  color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  background-color: transparent;
}

.card-executive .btn-outline-secondary:hover {
  color: white;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

[data-bs-theme="dark"] .card-executive .btn-outline-secondary {
  color: var(--text-on-dark-secondary) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background-color: transparent !important;
}

[data-bs-theme="dark"] .card-executive .btn-outline-secondary:hover {
  color: var(--executive-dark) !important;
  background-color: var(--text-on-dark) !important;
  border-color: var(--text-on-dark) !important;
}

.btn-executive-primary.btn-sm .mdi,
.btn-executive-secondary.btn-sm .mdi {
  font-size: 20px;
}

/* Featured badge - ensure dark text on yellow background in all modes */
.badge.bg-warning,
[data-bs-theme="dark"] .badge.bg-warning {
  color: var(--executive-dark) !important;
  background-color: #ffc107 !important;
}

/* Loading Animation */
.mdi-spin {
  animation: spin 1s linear infinite;
}

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

/* ===================================
   6. Card Styles
   =================================== */
.card-executive {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-8);
  transition: all var(--transition-base);
  height: 100%;
}

.card-executive:hover {
  border-color: var(--executive-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  background: var(--bg-secondary);
}

/* Dark mode card overrides */
[data-bs-theme="dark"] .card-executive:hover {
  border-color: var(--executive-accent);
  background: var(--bg-secondary);
}

.project-card {
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
}

.project-card .project-image {
  height: 200px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

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

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

/* ===================================
   7. Section Styles
   =================================== */
.section-executive {
  padding: var(--space-20) 0;
}

.section-executive-dark {
  background: var(--executive-dark);
  color: var(--text-on-dark);
}

.section-executive-dark h1,
.section-executive-dark h2,
.section-executive-dark h3 {
  color: var(--text-on-dark);
}

.section-executive-dark .text-muted {
  color: var(--text-on-dark-secondary) !important;
}

/* ===================================
   8. Hero Section
   =================================== */
.hero-executive {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--executive-dark);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.hero-executive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--executive-dark) 0%, var(--executive-medium) 50%, var(--executive-light) 100%);
  z-index: 0;
}

/* Ensure hero text is always visible */
.hero-executive .hero-title,
.hero-executive .hero-subtitle {
  color: var(--text-on-dark) !important;
}

/* Ensure hero buttons have proper contrast on dark background */
.hero-executive .btn-executive-secondary {
  background: transparent;
  color: var(--text-on-dark) !important;
  border-color: var(--text-on-dark);
}

.hero-executive .btn-executive-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--executive-dark) !important;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Ensure icons in hero secondary buttons are dark on hover */
.hero-executive .btn-executive-secondary:hover .mdi {
  color: var(--executive-dark) !important;
}

.hero-executive .btn-executive-secondary:focus {
  background: transparent;
  color: var(--text-on-dark) !important;
  border-color: var(--text-on-dark);
  box-shadow: none;
}

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

.hero-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--executive-accent);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  object-position: center top;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.typewriter {
  color: var(--executive-accent);
  font-weight: 600;
}

/* Ensure typewriter text is always visible on dark hero background */
.hero-executive .typewriter {
  color: var(--executive-accent) !important;
}

/* ===================================
   9. Skills Section
   =================================== */
.skills-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: var(--space-2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--space-2);
  color: var(--executive-dark);
}

.filter-btn:hover {
  border-color: var(--executive-dark);
  color: var(--executive-dark);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--executive-dark);
  color: white;
  border-color: var(--executive-dark);
}

/* Dark mode filter button overrides */
[data-bs-theme="dark"] .filter-btn {
  color: var(--text-on-dark-secondary);
}

[data-bs-theme="dark"] .filter-btn:hover {
  border-color: var(--executive-accent);
  color: var(--executive-accent);
}

[data-bs-theme="dark"] .filter-btn.active {
  background: var(--executive-accent);
  color: var(--executive-dark);
  border-color: var(--executive-accent);
}

.skill-item {
  text-align: center;
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.skill-icon {
  font-size: 3rem;
  color: var(--executive-accent);
  margin-bottom: var(--space-3);
}

.skill-level {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin-top: var(--space-3);
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--executive-accent) 0%, var(--executive-accent-hover) 100%);
  width: 0;
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===================================
   10. Contact Form
   =================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--executive-dark);
}

.form-control,
.form-select {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  transition: all var(--transition-base);
  color: var(--text-on-light);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--bg-primary);
  border-color: var(--executive-dark);
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.25);
  color: var(--text-on-light);
}

/* Dark mode form overrides */
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: var(--executive-accent);
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.25);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: var(--space-1);
  display: none;
}

.form-group.error .form-control {
  border-color: #dc3545;
}

.form-group.error .error-message {
  display: block;
}

/* ===================================
   11. Footer
   =================================== */
.footer-executive {
  background: var(--executive-dark);
  color: var(--text-on-dark);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

/* Ensure footer maintains dark background in both modes */
[data-bs-theme="light"] .footer-executive {
  background: var(--executive-dark);
  color: var(--text-on-dark);
}

.footer-executive h5,
.footer-executive h6 {
  color: var(--text-on-dark) !important;
}

.footer-executive p {
  color: var(--text-on-dark-secondary) !important;
}

.footer-executive a {
  color: var(--text-on-dark-secondary);
  transition: color var(--transition-fast);
}

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

.social-links a {
  display: inline-block;
  transition: all var(--transition-base);
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--executive-accent);
}

/* Force footer text colors in both themes */
.footer-executive * {
  color: var(--text-on-dark-secondary) !important;
}

.footer-executive h5,
.footer-executive h6,
.footer-executive .text-gold {
  color: var(--text-on-dark) !important;
}

/* ===================================
   12. Animations
   =================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-bounce);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  transition-delay: calc(var(--stagger-index) * 0.1s);
}

/* ===================================
   13. Responsive Design
   =================================== */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.125rem; }
  
  .section-executive {
    padding: var(--space-12) 0;
  }
  
  .navbar-executive {
    padding: 0.75rem 0;
  }
}

/* ===================================
   14. Loading States
   =================================== */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--executive-dark);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

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

/* ===================================
   15. Dark Mode Overrides
   =================================== */
[data-bs-theme="dark"] {
  /* Update CSS variables for dark mode */
  --executive-dark: #0f172a;
  --executive-medium: #1e293b;
  --executive-light: #334155;
  --executive-accent: #22d3ee;  /* Brighter cyan for dark mode */
  --executive-accent-hover: #06b6d4;
  --executive-accent-light: #67e8f9;
  
  --text-on-dark: #f1f5f9;
  --text-on-dark-secondary: #cbd5e1;
  --text-on-dark-muted: #94a3b8;
  --text-on-light: #f1f5f9;
  --text-on-light-secondary: #cbd5e1;
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  
  --border-color: #334155;
  --border-light: #475569;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] .navbar-executive {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(34, 211, 238, 0.2);
}

/* Fix text colors in dark mode */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: var(--text-on-dark) !important;
}

[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div,
[data-bs-theme="dark"] label {
  color: var(--text-on-dark-secondary) !important;
}

/* Fix all dark text appearing on dark backgrounds */
[data-bs-theme="dark"] .text-muted {
  color: var(--text-on-dark-muted) !important;
}

/* Fix any sections with dark text on dark backgrounds */
[data-bs-theme="dark"] .section-executive {
  color: var(--text-on-dark-secondary) !important;
}

/* Ensure all paragraphs and text elements are visible in dark mode */
[data-bs-theme="dark"] .section-executive p {
  color: var(--text-on-dark-secondary) !important;
}

[data-bs-theme="dark"] .lead {
  color: var(--text-on-dark-secondary) !important;
}

/* Ensure all Bootstrap text utilities work in dark mode */
[data-bs-theme="dark"] .text-secondary {
  color: var(--text-on-dark-secondary) !important;
}

[data-bs-theme="dark"] .text-body {
  color: var(--text-on-dark-secondary) !important;
}

[data-bs-theme="dark"] .text-body-secondary {
  color: var(--text-on-dark-muted) !important;
}

[data-bs-theme="dark"] .hero-title,
[data-bs-theme="dark"] .hero-subtitle {
  color: var(--text-on-dark) !important;
}

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

[data-bs-theme="dark"] .skill-category-btn {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-on-dark-secondary);
}

[data-bs-theme="dark"] .skill-category-btn:hover {
  border-color: var(--executive-accent);
  color: var(--executive-accent);
}

[data-bs-theme="dark"] .skill-category-btn.active {
  background: var(--executive-accent) !important;
  color: var(--executive-dark) !important;
  border-color: var(--executive-accent) !important;
}

[data-bs-theme="dark"] .skill-category-btn.active span {
  color: var(--executive-dark) !important;
}

[data-bs-theme="dark"] .skills-window {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-bs-theme="dark"] .skill-item-interactive {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
}

[data-bs-theme="dark"] .skill-item-interactive:hover {
  background: rgba(34, 211, 238, 0.2);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-on-dark);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: var(--bg-secondary);
  border-color: var(--executive-accent);
  color: var(--text-on-dark);
}

[data-bs-theme="dark"] .bg-light {
  background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .text-muted {
  color: var(--text-on-dark-muted) !important;
}

[data-bs-theme="dark"] #theme-toggle {
  color: var(--executive-accent);
}

/* Fix any remaining text color issues */
[data-bs-theme="dark"] .section-executive:not(.section-executive-dark) {
  color: var(--text-on-dark);
}

[data-bs-theme="dark"] .skill-item-interactive span:last-child {
  color: var(--text-on-dark) !important;
}

[data-bs-theme="dark"] .navbar-brand {
  color: var(--executive-accent) !important;
}

[data-bs-theme="dark"] .footer-executive {
  background: var(--executive-dark);
  color: var(--text-on-dark);
}

/* ===================================
   16. Tooltip Fixes
   =================================== */
/* Ensure tooltips are always readable in dark mode */
[data-bs-theme="dark"] .tooltip-inner {
  background-color: #000 !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #000 !important;
}

[data-bs-theme="dark"] .tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #000 !important;
}

[data-bs-theme="dark"] .tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #000 !important;
}

[data-bs-theme="dark"] .tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #000 !important;
}

/* ===================================
   17. Interactive Skills Showcase
   =================================== */
.skills-showcase {
  max-width: 1000px;
  margin: 0 auto;
}

/* Category Buttons */
.skills-categories {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.skill-category-btn {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  padding: var(--space-3) var(--space-6);
  border-radius: 100px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
  cursor: pointer;
  color: var(--executive-dark);
}

.skill-category-btn:hover {
  border-color: var(--executive-dark);
  color: var(--executive-dark);
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-category-btn.active {
  background: var(--executive-dark);
  color: white !important;
  border-color: var(--executive-dark);
  box-shadow: var(--shadow-lg);
}

.skill-category-btn .mdi {
  font-size: 1.25rem;
}

/* Skills Window */
.skills-window {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: var(--space-12);
  margin-top: var(--space-8);
  min-height: 400px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

/* Animated Background */
.skills-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.gradient-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.15) 40%, rgba(6, 182, 212, 0.05) 70%, transparent 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 8s ease-in-out infinite;
}

/* Dark mode gradient orb - much lighter */
[data-bs-theme="dark"] .gradient-orb {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, rgba(34, 211, 238, 0.04) 40%, rgba(34, 211, 238, 0.02) 70%, transparent 100%);
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(-20%, -30%) scale(1.1) rotate(120deg);
  }
  66% {
    transform: translate(-80%, -70%) scale(0.9) rotate(240deg);
  }
}

/* Skills Content */
.skills-content {
  position: relative;
  z-index: 1;
}

.skill-category-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  pointer-events: none;
}

.skill-category-content.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
  pointer-events: auto;
}

.skills-content {
  position: relative;
  z-index: 1;
  min-height: 300px;
}

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

.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.skill-item-interactive {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: var(--space-4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateX(-30px);
}

.skill-category-content.active .skill-item-interactive {
  animation: skillItemEntry 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skill-category-content.active .skill-item-interactive:nth-child(1) { animation-delay: 0.1s; }
.skill-category-content.active .skill-item-interactive:nth-child(2) { animation-delay: 0.15s; }
.skill-category-content.active .skill-item-interactive:nth-child(3) { animation-delay: 0.2s; }
.skill-category-content.active .skill-item-interactive:nth-child(4) { animation-delay: 0.25s; }
.skill-category-content.active .skill-item-interactive:nth-child(5) { animation-delay: 0.3s; }
.skill-category-content.active .skill-item-interactive:nth-child(6) { animation-delay: 0.35s; }

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

.skill-item-interactive:hover {
  background: var(--bg-tertiary);
  border-color: var(--executive-dark);
  transform: translateX(5px);
}

.skill-item-interactive .mdi {
  font-size: 1.5rem;
  color: var(--executive-dark);
}

.skill-item-interactive span:last-child {
  font-weight: 500;
  color: var(--text-on-light);
}

/* Skills window text color should adapt to theme */
.skills-window .skill-item-interactive span:last-child {
  color: var(--text-on-light);
}

/* In dark mode, skills window needs light text */
[data-bs-theme="dark"] .skills-window .skill-item-interactive span:last-child {
  color: var(--text-on-dark);
}

/* Dark mode skill item overrides */
[data-bs-theme="dark"] .skill-item-interactive .mdi {
  color: var(--executive-accent);
}

/* Responsive Skills Showcase */
@media (max-width: 768px) {
  .skills-categories {
    gap: var(--space-2);
  }
  
  .skill-category-btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
  }
  
  .skills-window {
    padding: var(--space-6);
  }
  
  .skill-items {
    grid-template-columns: 1fr;
  }
  
  .gradient-orb {
    width: 300px;
    height: 300px;
  }
}

/* X Logo Styling for Dark/Light Themes */
.x-logo-icon {
    filter: invert(1); /* White in dark mode by default */
    transition: filter 0.3s ease;
}

[data-bs-theme="light"] .x-logo-icon {
    filter: invert(0); /* Black in light mode */
}

/* For areas that are always dark (like the share section) */
.bg-dark .x-logo-icon,
.card.bg-dark .x-logo-icon {
    filter: invert(1) \!important; /* Always white on dark backgrounds */
}
