/* Theme Switcher Styles */
:root {
  /* Default Dark Theme Variables */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --glass-bg: rgba(248, 250, 252, 0.95);
  --glass-border: rgba(100, 116, 139, 0.2);
  --shadow-color: rgba(15, 23, 42, 0.08);
}

/* Bright Theme */
[data-theme="bright"] {
  --bg-primary: #fffbeb;
  --bg-secondary: #fef3c7;
  --bg-tertiary: #fde68a;
  --text-primary: #713f12;
  --text-secondary: #92400e;
  --primary-color: #ea580c;
  --secondary-color: #f97316;
  --accent-color: #dc2626;
  --glass-bg: rgba(254, 252, 232, 0.95);
  --glass-border: rgba(217, 119, 6, 0.2);
  --shadow-color: rgba(113, 63, 18, 0.1);
}

/* Dark Theme (default) */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Apply theme colors to body */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Switcher Button Styles */
.theme-switcher {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.5rem;
  box-shadow: 0 8px 32px var(--shadow-color);
  display: flex;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.theme-switcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.theme-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.theme-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.theme-btn:hover::before {
  width: 100%;
  height: 100%;
}

.theme-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

/* Dark theme button */
.theme-btn.dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border: 2px solid #6366f1;
}

/* Light theme button */
.theme-btn.light {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border: 2px solid #cbd5e1;
}

/* Bright theme button */
.theme-btn.bright {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border: 2px solid #f59e0b;
}

.theme-btn:hover {
  transform: scale(1.05);
}

.theme-btn.active:hover {
  transform: scale(1.12);
}

/* Tooltip - Fixed visibility */
.theme-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--shadow-color);
  z-index: 10000;
  border: 1px solid var(--glass-border);
}

/* Tooltip arrow */
.theme-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--bg-secondary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.theme-btn:hover .theme-tooltip {
  opacity: 1;
  visibility: visible;
  right: calc(100% + 15px);
}

/* Light theme tooltips - better contrast */
[data-theme="light"] .theme-tooltip {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .theme-tooltip::after {
  border-left-color: #1e293b;
}

/* Bright theme tooltips - better contrast */
[data-theme="bright"] .theme-tooltip {
  background: #78350f;
  color: #fffbeb;
  border-color: #92400e;
  box-shadow: 0 4px 20px rgba(113, 63, 18, 0.4);
}

[data-theme="bright"] .theme-tooltip::after {
  border-left-color: #78350f;
}

/* Auto-mode indicator */
.theme-auto-indicator {
  position: fixed;
  top: 155px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: pulse 2s ease-in-out infinite;
}

.theme-auto-indicator i {
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .theme-switcher {
    top: 80px;
    right: 10px;
    padding: 0.4rem;
    gap: 0.4rem;
  }
  
  .theme-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .theme-tooltip {
    display: none;
  }
  
  .theme-auto-indicator {
    top: 135px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Update glass card for different themes */
.glass,
.glass-card,
.service-card-3d,
.ai-card,
.workflow-card,
.contact-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
}

.service-card-3d .service-card-content,
.ai-card .service-card-content {
  color: var(--text-primary) !important;
}

/* Update text colors - ALL text elements */
.section-title,
.hero-title,
.service-title,
h1, h2, h3, h4, h5, h6,
.heading,
.ftco-heading-2,
.section-header h2,
.section-header h1,
.hero-content h1,
.service-card-3d h3,
.ai-card h3,
.workflow-card h3,
.contact-card h3,
.glass-card h3,
.glass-card h4 {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

/* Stronger heading visibility in light themes */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .hero-title,
[data-theme="light"] .section-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="bright"] h1,
[data-theme="bright"] h2,
[data-theme="bright"] h3,
[data-theme="bright"] .hero-title,
[data-theme="bright"] .section-title {
  color: #713f12 !important;
  font-weight: 800 !important;
}

.section-description,
.service-description,
.hero-subtitle,
p,
.text-secondary,
.service-features li {
  color: var(--text-secondary) !important;
}

/* Featured overlays - ensure text is always visible */
.featured-overlay h3,
.featured-overlay p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Service features list */
.service-features {
  color: var(--text-secondary) !important;
}

.service-features li {
  color: var(--text-secondary) !important;
}

/* Navigation theme adjustment */
.modern-nav {
  background: var(--glass-bg) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.modern-nav.scrolled {
  background: var(--bg-secondary) !important;
  backdrop-filter: blur(10px) !important;
}

/* Light and Bright mode - stronger nav background for visibility */
[data-theme="light"] .modern-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="bright"] .modern-nav {
  background: rgba(255, 251, 235, 0.95) !important;
  box-shadow: 0 2px 10px rgba(113, 63, 18, 0.1) !important;
}

[data-theme="dark"] .modern-nav {
  background: rgba(30, 41, 59, 0.8) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-brand,
.nav-logo,
.nav-logo span {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.navbar-brand h6 {
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

/* Nav container */
.nav-container {
  background: transparent !important;
}

/* Mobile menu visibility */
.mobile-menu-toggle {
  color: var(--text-primary) !important;
}

.mobile-menu-toggle i {
  color: var(--text-primary) !important;
}

/* Make sure nav menu is visible */
.nav-menu {
  background: transparent !important;
}

/* Mobile menu dropdown in light/bright themes */
[data-theme="light"] .nav-menu.active {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="bright"] .nav-menu.active {
  background: rgba(255, 251, 235, 0.98) !important;
  box-shadow: 0 4px 20px rgba(113, 63, 18, 0.15) !important;
}

[data-theme="dark"] .nav-menu.active {
  background: rgba(30, 41, 59, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Footer theme adjustment */
.footer-3d {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

.footer-3d .footer-content {
  color: var(--text-primary) !important;
}

.footer-logo {
  color: var(--text-primary) !important;
}

.footer-links a {
  color: var(--text-secondary) !important;
}

.footer-links a:hover {
  color: var(--primary-color) !important;
}

.footer-bottom,
.footer-bottom p {
  color: var(--text-secondary) !important;
}

/* Stats and counters */
.stat-number {
  color: var(--primary-color) !important;
}

.stat-label {
  color: var(--text-secondary) !important;
}

.stat-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
}

/* Section labels and tags */
.section-label,
.subheading {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/* Stronger section labels in light themes */
[data-theme="light"] .section-label,
[data-theme="light"] .subheading {
  color: #4f46e5 !important;
}

[data-theme="bright"] .section-label,
[data-theme="bright"] .subheading {
  color: #ea580c !important;
}

.tag {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Section headers overall visibility */
.section-header {
  color: var(--text-primary) !important;
}

.section-header * {
  color: inherit;
}

[data-theme="light"] .section-header h1,
[data-theme="light"] .section-header h2,
[data-theme="light"] .section-header h3 {
  color: #0f172a !important;
}

[data-theme="bright"] .section-header h1,
[data-theme="bright"] .section-header h2,
[data-theme="bright"] .section-header h3 {
  color: #713f12 !important;
}

/* Breadcrumbs */
.breadcrumbs,
.breadcrumbs span,
.breadcrumbs a {
  color: var(--text-secondary) !important;
}

/* FAQ Section */
.faq-section h3,
.faq-section h5 {
  color: var(--text-primary) !important;
}

.faq-section p {
  color: var(--text-secondary) !important;
}

/* Workflow section */
.workflow-number {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
}

.workflow-card h3 {
  color: var(--text-primary) !important;
}

.workflow-card p {
  color: var(--text-secondary) !important;
}

/* Contact section */
.contact-section h3,
.contact-card h3 {
  color: var(--text-primary) !important;
}

.contact-section p,
.contact-card p {
  color: var(--text-secondary) !important;
}

.contact-card a[href^="mailto"] {
  color: var(--primary-color) !important;
}

/* Three.js canvas adjustments for light themes */
[data-theme="light"] #canvas-3d,
[data-theme="bright"] #canvas-3d {
  opacity: 0.2;
}

[data-theme="dark"] #canvas-3d {
  opacity: 1;
}

/* Image visibility adjustments per theme */
[data-theme="light"] img,
[data-theme="bright"] img {
  opacity: 1;
  filter: none;
}

[data-theme="dark"] img {
  opacity: 1;
  filter: none;
}

/* Ensure images in featured sections remain visible */
.featured-item img {
  opacity: 1 !important;
}

/* Button visibility in ALL themes - CRITICAL FIX */
.btn-3d,
.btn-primary-3d,
.btn-secondary-3d,
.btn,
.btn-primary,
.btn-outline-primary,
button[type="submit"],
a.btn,
.hero-cta a {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
  border: 2px solid transparent !important;
  font-weight: 600 !important;
  padding: 0.8rem 2rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

/* Specific button styles for each theme */
[data-theme="dark"] .btn-3d,
[data-theme="dark"] .btn-primary-3d,
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4) !important;
}

[data-theme="light"] .btn-3d,
[data-theme="light"] .btn-primary-3d,
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.5) !important;
}

[data-theme="bright"] .btn-3d,
[data-theme="bright"] .btn-primary-3d,
[data-theme="bright"] .btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.5) !important;
}

/* Secondary buttons */
.btn-secondary-3d,
.btn-outline-primary {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: none !important;
}

[data-theme="light"] .btn-secondary-3d,
[data-theme="light"] .btn-outline-primary {
  background: transparent !important;
  color: #4f46e5 !important;
  border: 2px solid #4f46e5 !important;
}

[data-theme="bright"] .btn-secondary-3d,
[data-theme="bright"] .btn-outline-primary {
  background: transparent !important;
  color: #ea580c !important;
  border: 2px solid #ea580c !important;
}

/* Button hover states */
.btn-3d:hover,
.btn-primary-3d:hover,
.btn-secondary-3d:hover,
.btn:hover,
.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6) !important;
}

[data-theme="light"] .btn-3d:hover,
[data-theme="light"] .btn-primary-3d:hover,
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.6) !important;
}

[data-theme="bright"] .btn-3d:hover,
[data-theme="bright"] .btn-primary-3d:hover,
[data-theme="bright"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(234, 88, 12, 0.6) !important;
}

/* Contact form buttons */
.contact-form button,
.contact-form .btn,
form button[type="submit"] {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
}

/* Floating CTA button visibility */
.floating-cta a,
a.glass[style*="position: fixed"],
.glass[href^="mailto"] {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 600 !important;
}

[data-theme="light"] .floating-cta a,
[data-theme="light"] a.glass[style*="position: fixed"] {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.4) !important;
}

[data-theme="bright"] .floating-cta a,
[data-theme="bright"] a.glass[style*="position: fixed"] {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
  box-shadow: 0 10px 40px rgba(234, 88, 12, 0.4) !important;
}

/* Link colors for visibility */
a {
  color: var(--primary-color) !important;
}

a:hover {
  color: var(--secondary-color) !important;
}

/* Ensure gradient text is visible in all themes */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900 !important;
}

/* Enhanced gradient text for light themes */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="bright"] .gradient-text {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero section specific adjustments */
.hero-3d {
  background: var(--bg-primary) !important;
}

.hero-3d .hero-title {
  color: var(--text-primary) !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

.hero-3d .hero-subtitle {
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

/* Specific overrides for light/bright mode hero */
[data-theme="light"] .hero-3d .hero-title {
  color: #0f172a !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="bright"] .hero-3d .hero-title {
  color: #713f12 !important;
  text-shadow: 0 2px 4px rgba(113, 63, 18, 0.1) !important;
}

[data-theme="light"] .hero-3d .hero-subtitle {
  color: #334155 !important;
}

[data-theme="bright"] .hero-3d .hero-subtitle {
  color: #78350f !important;
}

/* Service icons - keep gradients visible */
.service-icon {
  /* Gradients are inline, keep them as is */
  color: #ffffff !important;
}

.service-icon i {
  color: #ffffff !important;
}

/* Floating CTA button */
.floating-cta .glass,
a.glass[style*="position: fixed"] {
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
}

/* Sections with specific backgrounds */
.services-3d,
.ai-section,
.workflow-section,
.featured-modern {
  background: var(--bg-primary) !important;
}

.ftco-section {
  background: var(--bg-primary) !important;
}

.ftco-bg-light,
.bg-light {
  background: var(--bg-secondary) !important;
}

/* Ensure all sections have proper text color */
section {
  color: var(--text-primary) !important;
}

section * {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Smooth theme transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Override any inline styles that might conflict */
[data-theme="light"] .text-white,
[data-theme="bright"] .text-white {
  color: var(--text-primary) !important;
}

/* Email and contact links visibility */
[href^="mailto"] {
  color: var(--primary-color) !important;
  text-decoration: underline;
}

[href^="mailto"]:hover {
  color: var(--accent-color) !important;
}

/* Theme indicator label */
.theme-label {
  position: fixed;
  top: 155px;
  right: 20px;
  z-index: 999;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theme-label.show {
  opacity: 1;
}

@media (max-width: 768px) {
  .theme-label {
    top: 135px;
    right: 10px;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}


/* ADDITIONAL HEADER VISIBILITY FIXES */

/* Ensure ALL headings are highly visible in light/bright modes */
[data-theme="light"] *[class*="title"],
[data-theme="light"] *[class*="heading"] {
  color: #0f172a !important;
}

[data-theme="bright"] *[class*="title"],
[data-theme="bright"] *[class*="heading"] {
  color: #713f12 !important;
}

/* Service section header */
#services .section-title,
#ai .section-title,
#workflows .section-title,
#portfolio .section-title {
  color: var(--text-primary) !important;
  font-weight: 800 !important;
}

/* AI section headings */
.ai-section h2,
.ai-section h3 {
  color: var(--text-primary) !important;
}

/* Workflow section headings */
.workflow-section h2,
.workflow-section h3 {
  color: var(--text-primary) !important;
}

/* Contact section headings */
.contact-section h2,
.contact-section h3 {
  color: var(--text-primary) !important;
}

/* Ensure inline style colors don't override theme in light/bright */
[data-theme="light"] *[style*="color: white"],
[data-theme="light"] *[style*="color: var(--text-primary)"] {
  color: #0f172a !important;
}

[data-theme="bright"] *[style*="color: white"],
[data-theme="bright"] *[style*="color: var(--text-primary)"] {
  color: #713f12 !important;
}

/* Exception: Keep featured overlay text white */
[data-theme="light"] .featured-overlay *,
[data-theme="bright"] .featured-overlay * {
  color: #ffffff !important;
}

/* Ensure workflow card titles are visible */
.workflow-card .service-title {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

/* Portfolio section */
#portfolio h3,
#portfolio h4 {
  color: var(--text-primary) !important;
}

/* Stats section visibility */
.stats-section {
  background: var(--bg-secondary) !important;
}

/* Make all section backgrounds visible */
section[id] {
  background: var(--bg-primary) !important;
}

section[class*="section"] {
  background: var(--bg-primary) !important;
}

/* Override any remaining inline styles */
[data-theme="light"] section,
[data-theme="bright"] section {
  color: inherit !important;
}

/* ========================================== */
/* COMPREHENSIVE BUTTON VISIBILITY FIXES     */
/* ========================================== */

/* ALL button selectors - catch everything */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-3d,
.btn-primary-3d,
.btn-secondary-3d,
a.btn,
a.btn-primary,
a.btn-3d,
a.btn-primary-3d,
a[class*="btn-"],
.hero-cta a,
.contact-card a,
[role="button"] {
  /* Force white text on all buttons */
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Primary buttons - solid gradient background */
.btn-primary,
.btn-3d,
.btn-primary-3d,
.hero-cta .btn-primary-3d,
a.btn-primary-3d,
a.btn-3d {
  /* DARK THEME - Indigo/Purple */
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5) !important;
}

/* LIGHT THEME - Darker purple for better contrast */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-3d,
[data-theme="light"] .btn-primary-3d,
[data-theme="light"] .hero-cta .btn-primary-3d,
[data-theme="light"] a.btn-primary-3d,
[data-theme="light"] a.btn-3d {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
  box-shadow: 0 5px 25px rgba(67, 56, 202, 0.6) !important;
}

/* BRIGHT THEME - Orange/Red gradient */
[data-theme="bright"] .btn-primary,
[data-theme="bright"] .btn-3d,
[data-theme="bright"] .btn-primary-3d,
[data-theme="bright"] .hero-cta .btn-primary-3d,
[data-theme="bright"] a.btn-primary-3d,
[data-theme="bright"] a.btn-3d {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
  box-shadow: 0 5px 25px rgba(234, 88, 12, 0.6) !important;
}

/* Secondary/Outline buttons - ALWAYS VISIBLE TEXT */
.btn-secondary-3d,
.btn-outline-primary,
.hero-cta .btn-secondary-3d,
a.btn-secondary-3d {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid var(--primary-color) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .btn-secondary-3d,
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .hero-cta .btn-secondary-3d,
[data-theme="dark"] a.btn-secondary-3d {
  color: #ffffff !important;
  border-color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3) !important;
}

[data-theme="light"] .btn-secondary-3d,
[data-theme="light"] .btn-outline-primary,
[data-theme="light"] .hero-cta .btn-secondary-3d,
[data-theme="light"] a.btn-secondary-3d {
  color: #4338ca !important;
  border-color: #4338ca !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 10px rgba(67, 56, 202, 0.2) !important;
}

[data-theme="bright"] .btn-secondary-3d,
[data-theme="bright"] .btn-outline-primary,
[data-theme="bright"] .hero-cta .btn-secondary-3d,
[data-theme="bright"] a.btn-secondary-3d {
  color: #c2410c !important;
  border-color: #ea580c !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.2) !important;
}

/* Button text must always be visible */
.btn *,
.btn-3d *,
.btn-primary-3d *,
button * {
  color: inherit !important;
}

/* Icon inside buttons */
.btn i,
.btn-3d i,
.btn-primary-3d i {
  color: #ffffff !important;
}

[data-theme="light"] .btn-secondary-3d i,
[data-theme="light"] .btn-outline-primary i {
  color: #4338ca !important;
}

[data-theme="bright"] .btn-secondary-3d i,
[data-theme="bright"] .btn-outline-primary i {
  color: #c2410c !important;
}

/* Ensure buttons in navigation are visible */
.nav-menu .btn-3d,
.nav-menu .btn-primary-3d {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
}

/* Contact section buttons */
.contact-card .btn-3d,
.contact-card .btn-primary-3d,
.contact-card .btn-secondary-3d {
  width: auto !important;
  min-width: 150px !important;
}

/* Email buttons in contact cards */
.contact-card a.btn-3d {
  text-align: center !important;
  display: inline-block !important;
}

/* Block-level buttons */
.btn-block {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* Ensure hover states are visible */
.btn:hover,
.btn-3d:hover,
.btn-primary-3d:hover,
.btn-primary:hover,
a.btn:hover,
a.btn-3d:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Secondary button hovers */
[data-theme="light"] .btn-secondary-3d:hover,
[data-theme="light"] .btn-outline-primary:hover {
  background: rgba(67, 56, 202, 0.15) !important;
  color: #4338ca !important;
}

[data-theme="bright"] .btn-secondary-3d:hover,
[data-theme="bright"] .btn-outline-primary:hover {
  background: rgba(234, 88, 12, 0.15) !important;
  color: #c2410c !important;
}

/* Get Started button in nav */
.nav-menu .btn-3d[style*="padding"] {
  padding: 0.7rem 1.5rem !important;
  font-size: 0.9rem !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
}

/* CRITICAL FIX: Secondary button text visibility */
/* Force text to be visible BEFORE hover */

/* Dark theme - white text on secondary buttons */
[data-theme="dark"] .btn-secondary-3d,
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] a[href*="#services"].btn-secondary-3d {
  color: #ffffff !important;
  background: rgba(139, 92, 246, 0.25) !important;
  border: 2px solid #8b5cf6 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Light theme - dark text with white background */
[data-theme="light"] .btn-secondary-3d,
[data-theme="light"] .btn-outline-primary,
[data-theme="light"] a[href*="#services"].btn-secondary-3d {
  color: #3730a3 !important;
  background: #ffffff !important;
  border: 2px solid #4338ca !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Bright theme - dark text with white background */
[data-theme="bright"] .btn-secondary-3d,
[data-theme="bright"] .btn-outline-primary,
[data-theme="bright"] a[href*="#services"].btn-secondary-3d {
  color: #9a3412 !important;
  background: #ffffff !important;
  border: 2px solid #ea580c !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Hover states for secondary buttons */
.btn-secondary-3d:hover,
.btn-outline-primary:hover {
  transform: translateY(-3px) !important;
}

[data-theme="dark"] .btn-secondary-3d:hover,
[data-theme="dark"] .btn-outline-primary:hover {
  background: rgba(139, 92, 246, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
}

[data-theme="light"] .btn-secondary-3d:hover,
[data-theme="light"] .btn-outline-primary:hover {
  background: #4338ca !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(67, 56, 202, 0.5) !important;
}

[data-theme="bright"] .btn-secondary-3d:hover,
[data-theme="bright"] .btn-outline-primary:hover {
  background: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.5) !important;
}

/* Ensure "Explore Services" button specifically is visible */
a[href="#services"],
a[href*="services"].btn-secondary-3d,
.hero-cta a[href="#services"] {
  font-weight: 700 !important;
}

[data-theme="dark"] a[href="#services"],
[data-theme="dark"] .hero-cta a[href="#services"] {
  color: #ffffff !important;
  background: rgba(139, 92, 246, 0.25) !important;
  border: 2px solid #a78bfa !important;
}

[data-theme="light"] a[href="#services"],
[data-theme="light"] .hero-cta a[href="#services"] {
  color: #3730a3 !important;
  background: #ffffff !important;
  border: 2px solid #4338ca !important;
}

[data-theme="bright"] a[href="#services"],
[data-theme="bright"] .hero-cta a[href="#services"] {
  color: #9a3412 !important;
  background: #ffffff !important;
  border: 2px solid #ea580c !important;
}

/* ========================================== */
/* RESTORE & ENHANCE 3D EFFECTS              */
/* ========================================== */

/* Stronger glassmorphism on all cards */
.glass,
.glass-card,
.service-card-3d,
.ai-card,
.workflow-card,
.contact-card,
.stat-card {
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
  transform-style: preserve-3d !important;
}

/* Enhanced 3D hover effects */
.service-card-3d:hover,
.ai-card:hover,
.workflow-card:hover,
.glass-card:hover {
  transform: translateY(-10px) rotateX(5deg) scale(1.02) !important;
  box-shadow: 
    0 20px 60px 0 rgba(99, 102, 241, 0.5),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Floating shapes in hero - make more prominent */
.floating-shapes .shape {
  animation: float 6s ease-in-out infinite !important;
  filter: blur(80px) !important;
  opacity: 0.6 !important;
}

.shape-1 {
  width: 300px !important;
  height: 300px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.shape-2 {
  width: 250px !important;
  height: 250px !important;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.shape-3 {
  width: 350px !important;
  height: 350px !important;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

/* Enhanced 3D particle visibility */
[data-theme="dark"] #canvas-3d {
  opacity: 1 !important;
  mix-blend-mode: screen !important;
}

[data-theme="light"] #canvas-3d {
  opacity: 0.4 !important;
  mix-blend-mode: multiply !important;
}

[data-theme="bright"] #canvas-3d {
  opacity: 0.3 !important;
  mix-blend-mode: multiply !important;
}

/* Add depth to images */
.featured-item,
.featured-item img {
  transform-style: preserve-3d !important;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.featured-item:hover {
  transform: translateY(-15px) rotateY(5deg) scale(1.05) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
}

.featured-item img {
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* 3D service icons with enhanced depth */
.service-icon {
  transform-style: preserve-3d !important;
  transition: transform 0.4s ease !important;
  box-shadow: 
    0 10px 30px rgba(99, 102, 241, 0.3),
    inset 0 -5px 10px rgba(0, 0, 0, 0.1) !important;
}

.service-card-3d:hover .service-icon,
.ai-card:hover .service-icon {
  transform: translateZ(30px) rotateY(10deg) scale(1.1) !important;
  box-shadow: 
    0 20px 50px rgba(99, 102, 241, 0.6),
    inset 0 -10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Workflow number badges - 3D effect */
.workflow-number {
  transform-style: preserve-3d !important;
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
  transition: all 0.3s ease !important;
}

.workflow-card:hover .workflow-number {
  transform: translateZ(20px) scale(1.15) !important;
  box-shadow: 
    0 15px 40px rgba(99, 102, 241, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.4) !important;
}

/* Enhanced button 3D effects */
.btn-3d,
.btn-primary-3d {
  transform-style: preserve-3d !important;
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.btn-3d:hover,
.btn-primary-3d:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 
    0 15px 40px rgba(99, 102, 241, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

/* 3D perspective on sections */
.services-3d,
.ai-section,
.workflow-section {
  perspective: 1000px !important;
}

.services-grid,
.ai-grid,
.workflow-grid {
  transform-style: preserve-3d !important;
}

/* Parallax effect on scroll */
.hero-3d {
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
}

/* Add 3D glow to primary buttons */
[data-theme="dark"] .btn-3d,
[data-theme="dark"] .btn-primary-3d {
  box-shadow: 
    0 0 20px rgba(99, 102, 241, 0.5),
    0 8px 30px rgba(99, 102, 241, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .btn-3d,
[data-theme="light"] .btn-primary-3d {
  box-shadow: 
    0 0 20px rgba(67, 56, 202, 0.4),
    0 8px 30px rgba(67, 56, 202, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="bright"] .btn-3d,
[data-theme="bright"] .btn-primary-3d {
  box-shadow: 
    0 0 20px rgba(234, 88, 12, 0.4),
    0 8px 30px rgba(234, 88, 12, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* ========================================== */
/* EYE-CATCHING IMAGE ENHANCEMENTS           */
/* ========================================== */

/* Hero background with parallax */
.hero-3d {
  position: relative !important;
  background-attachment: fixed !important;
  overflow: hidden !important;
}

[data-theme="light"] .hero-3d {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.88) 100%), 
              url('/images/bg_2.jpg') center/cover !important;
  background-attachment: fixed !important;
}

[data-theme="bright"] .hero-3d {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92) 0%, rgba(254, 243, 199, 0.88) 100%), 
              url('/images/bg_2.jpg') center/cover !important;
  background-attachment: fixed !important;
}

/* Featured images with 3D depth */
.featured-item {
  perspective: 1000px !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.featured-item::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%) !important;
  z-index: 1 !important;
  transition: opacity 0.3s ease !important;
}

.featured-item:hover::before {
  opacity: 0 !important;
}

.featured-item img {
  transform: scale(1) !important;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border-radius: 24px !important;
}

.featured-item:hover img {
  transform: scale(1.1) rotateZ(2deg) !important;
}

/* Add decorative images to sections */
.services-3d::before {
  content: '' !important;
  position: absolute !important;
  top: -100px !important;
  right: -100px !important;
  width: 400px !important;
  height: 400px !important;
  background: url('/images/dashboard_full_1.jpg') center/cover !important;
  opacity: 0.03 !important;
  border-radius: 50% !important;
  filter: blur(40px) !important;
  pointer-events: none !important;
}

.ai-section::after {
  content: '' !important;
  position: absolute !important;
  bottom: -100px !important;
  left: -100px !important;
  width: 500px !important;
  height: 500px !important;
  background: url('/images/dashboard_full_2.jpg') center/cover !important;
  opacity: 0.03 !important;
  border-radius: 50% !important;
  filter: blur(40px) !important;
  pointer-events: none !important;
}

/* Service cards - stronger glass effect */
.service-card-3d,
.ai-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 24px !important;
  position: relative !important;
  overflow: hidden !important;
}

.service-card-3d::before,
.ai-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(236, 72, 153, 0.05) 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}

.service-card-3d:hover::before,
.ai-card:hover::before {
  opacity: 1 !important;
}

/* Light theme glass cards */
[data-theme="light"] .service-card-3d,
[data-theme="light"] .ai-card,
[data-theme="light"] .glass-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 100%) !important;
  border: 1px solid rgba(100, 116, 139, 0.2) !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08) !important;
}

/* Bright theme glass cards */
[data-theme="bright"] .service-card-3d,
[data-theme="bright"] .ai-card,
[data-theme="bright"] .glass-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(254, 252, 232, 0.9) 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.2) !important;
  box-shadow: 0 8px 32px rgba(113, 63, 18, 0.1) !important;
}

/* Add shimmer effect to cards */
.service-card-3d::after,
.ai-card::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  ) !important;
  transform: rotate(45deg) !important;
  animation: shimmer 3s infinite !important;
  pointer-events: none !important;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Portfolio gradient boxes - add images */
.glass-card[style*="background: linear-gradient"] {
  position: relative !important;
  overflow: hidden !important;
}

/* Stats section - add background pattern */
.stats-section {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.1) 0%, 
    rgba(236, 72, 153, 0.1) 100%),
    url('/images/bg_1.jpg') center/cover !important;
  background-attachment: fixed !important;
  position: relative !important;
}

.stats-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: var(--bg-primary) !important;
  opacity: 0.85 !important;
}

.stat-card {
  position: relative !important;
  z-index: 2 !important;
  transform-style: preserve-3d !important;
}

.stat-card:hover {
  transform: translateY(-10px) rotateX(5deg) !important;
}

/* Enhanced featured modern section */
.featured-modern {
  padding: 4rem 0 !important;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(99, 102, 241, 0.05) 50%, 
    transparent 100%) !important;
}

/* Add glow effects */
.service-card-3d,
.ai-card {
  position: relative !important;
}

.service-card-3d:hover,
.ai-card:hover {
  box-shadow: 
    0 0 40px rgba(99, 102, 241, 0.3),
    0 20px 60px rgba(99, 102, 241, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .service-card-3d:hover,
[data-theme="light"] .ai-card:hover {
  box-shadow: 
    0 0 40px rgba(67, 56, 202, 0.2),
    0 20px 60px rgba(67, 56, 202, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="bright"] .service-card-3d:hover,
[data-theme="bright"] .ai-card:hover {
  box-shadow: 
    0 0 40px rgba(234, 88, 12, 0.2),
    0 20px 60px rgba(234, 88, 12, 0.3),
    inset 0 1px 3px rgba(255, 255, 255, 0.2) !important;
}

/* Showcase section with 3D image cards */
.showcase-card {
  position: relative !important;
  cursor: pointer !important;
}

.showcase-card:hover {
  transform: translateY(-15px) rotateY(5deg) scale(1.03) !important;
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.5) !important;
}

.showcase-card img {
  transition: transform 0.6s ease !important;
}

.showcase-card:hover img {
  transform: scale(1.05) !important;
}

/* Reveal animation enhancements */
.reveal {
  opacity: 0 !important;
  transform: translateY(50px) !important;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Add floating animation to service icons */
.service-icon {
  animation: iconFloat 3s ease-in-out infinite !important;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.service-card-3d:hover .service-icon {
  animation: iconFloat 1.5s ease-in-out infinite, iconSpin 2s ease-in-out !important;
}

@keyframes iconSpin {
  0% { transform: translateY(0) rotateY(0deg); }
  100% { transform: translateY(-10px) rotateY(360deg); }
}

/* Enhanced navigation 3D effect */
.modern-nav {
  transform-style: preserve-3d !important;
  transition: all 0.3s ease !important;
}

.modern-nav.scrolled {
  transform: translateZ(10px) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Theme switcher buttons - 3D effect */
.theme-btn {
  transform-style: preserve-3d !important;
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

.theme-btn:hover {
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 
    0 8px 25px rgba(99, 102, 241, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
}

.theme-btn.active {
  transform: scale(1.15) !important;
  box-shadow: 
    0 0 30px rgba(99, 102, 241, 0.8),
    0 8px 25px rgba(99, 102, 241, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
  animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 1); }
}
