/* Add this to your animated-hero.css file or styles.css */

/* Enhanced Dark Theme Support for Animated Hero */

/* Dark theme background with better detection */
[data-theme="dark"] .animated-hero-container,
.dark .animated-hero-container,
html.dark .animated-hero-container,
body.dark .animated-hero-container {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

/* Dark theme shapes */
[data-theme="dark"] .shape,
.dark .shape,
html.dark .shape,
body.dark .shape {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.25));
}

/* Dark theme ribbons */
[data-theme="dark"] .ribbon-1 .ribbon-path,
.dark .ribbon-1 .ribbon-path,
html.dark .ribbon-1 .ribbon-path,
body.dark .ribbon-1 .ribbon-path {
  fill: rgba(245, 158, 11, 0.08);
}

[data-theme="dark"] .ribbon-2 .ribbon-path,
.dark .ribbon-2 .ribbon-path,
html.dark .ribbon-2 .ribbon-path,
body.dark .ribbon-2 .ribbon-path {
  fill: rgba(251, 191, 36, 0.06);
}

[data-theme="dark"] .ribbon-3 .ribbon-path,
.dark .ribbon-3 .ribbon-path,
html.dark .ribbon-3 .ribbon-path,
body.dark .ribbon-3 .ribbon-path {
  fill: rgba(255, 204, 2, 0.04);
}

/* Dark theme orbs */
[data-theme="dark"] .orb-1,
.dark .orb-1,
html.dark .orb-1,
body.dark .orb-1 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(251, 191, 36, 0.2) 50%, transparent 100%);
}

[data-theme="dark"] .orb-2,
.dark .orb-2,
html.dark .orb-2,
body.dark .orb-2 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(255, 204, 2, 0.15) 50%, transparent 100%);
}

[data-theme="dark"] .orb-3,
.dark .orb-3,
html.dark .orb-3,
body.dark .orb-3 {
  background: radial-gradient(circle, rgba(255, 204, 2, 0.3) 0%, rgba(255, 167, 38, 0.1) 50%, transparent 100%);
}

[data-theme="dark"] .orb-4,
.dark .orb-4,
html.dark .orb-4,
body.dark .orb-4 {
  background: radial-gradient(circle, rgba(255, 167, 38, 0.25) 0%, rgba(245, 158, 11, 0.1) 50%, transparent 100%);
}

[data-theme="dark"] .orb-5,
.dark .orb-5,
html.dark .orb-5,
body.dark .orb-5 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
}

/* Dark theme particles */
[data-theme="dark"] .particle,
.dark .particle,
html.dark .particle,
body.dark .particle {
  background: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Dark theme text elements */
[data-theme="dark"] .hero-main-title,
.dark .hero-main-title,
html.dark .hero-main-title,
body.dark .hero-main-title {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .typing-text,
.dark .typing-text,
html.dark .typing-text,
body.dark .typing-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .cursor,
.dark .cursor,
html.dark .cursor,
body.dark .cursor {
  color: #fbbf24;
}

[data-theme="dark"] .highlight-text,
.dark .highlight-text,
html.dark .highlight-text,
body.dark .highlight-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-secondary-title,
.dark .hero-secondary-title,
html.dark .hero-secondary-title,
body.dark .hero-secondary-title {
  color: #ffffff;
}

[data-theme="dark"] .typing-text-secondary,
.dark .typing-text-secondary,
html.dark .typing-text-secondary,
body.dark .typing-text-secondary {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-description,
.dark .hero-description,
html.dark .hero-description,
body.dark .hero-description {
  color: #d1d5db;
}

[data-theme="dark"] .cta-button-animated,
.dark .cta-button-animated,
html.dark .cta-button-animated,
body.dark .cta-button-animated {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .cta-button-animated:hover,
.dark .cta-button-animated:hover,
html.dark .cta-button-animated:hover,
body.dark .cta-button-animated:hover {
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

/* Enhanced dark mode toggle button styles */
.dark-mode-toggle {
  position: fixed;
  top: 100px;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .dark-mode-toggle,
.dark .dark-mode-toggle,
html.dark .dark-mode-toggle,
body.dark .dark-mode-toggle {
  background: var(--gradient-accent);
  color: #1f2937;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* Ensure transitions work smoothly */
.animated-hero-container,
.shape,
.orb,
.particle,
.hero-main-title,
.typing-text,
.highlight-text,
.hero-secondary-title,
.typing-text-secondary,
.hero-description,
.cta-button-animated {
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Force immediate theme application */
.animated-hero-container * {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Mobile responsive for dark toggle */
@media (max-width: 768px) {
  .dark-mode-toggle {
    top: 80px;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}