/* filepath: c:\Users\ETM\Desktop\Vigthoria Ecosystem\Vigthoria Landing Page\dist\css\theme.css */
/**
 * Theme Toggle and Advanced Animation Styles
 * For Vigthoria Landing Page
 */

/* Theme Variables */
:root {
    /* Dark Theme (Default) */
    --primary-color: #6c63ff;
    --secondary-color: #00bfa6;
    --text-color: #e4e6eb;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.6);
    --header-bg: rgba(15, 23, 42, 0.9); /* Increased opacity for better readability */
    --border-color: rgba(108, 99, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    --glow-color: rgba(108, 99, 255, 0.6);
    --hover-color: #5a52d5;
    --muted-text: #94a3b8;
    --footer-bg: #0f172a;
    --solar-bg: #0d1321;
    --stats-bg: rgba(15, 23, 42, 0.8);
    --cube-border: rgba(108, 99, 255, 0.5);
    --cube-bg: rgba(30, 41, 59, 0.9);
    --tooltip-bg: rgba(15, 23, 42, 0.9);
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --contrast-text: #ffffff; /* High contrast text for buttons and important elements */
}

/* Light Theme Variables */
[data-theme="light"] {
    --primary-color: #6366f1;
    --secondary-color: #0ea5e9;
    --text-color: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95); /* Increased opacity for better readability */
    --border-color: rgba(99, 102, 241, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --glow-color: rgba(99, 102, 241, 0.4);
    --hover-color: #4f46e5;
    --muted-text: #64748b;
    --footer-bg: #f1f5f9;
    --solar-bg: #f8fafc;
    --stats-bg: rgba(255, 255, 255, 0.8);
    --cube-border: rgba(99, 102, 241, 0.5);
    --cube-bg: rgba(248, 250, 252, 0.9);
    --tooltip-bg: rgba(255, 255, 255, 0.95);
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --contrast-text: #ffffff; /* High contrast text for buttons and important elements */
}

/* Styles from style.css */

/* ========== Base Styles & Variables ========== */
:root {
  /* Light Theme Colors */
  --primary-light: #6b46c1;
  --primary-light-hover: #5a3ba3;
  --secondary-light: #38b2ac;
  --secondary-light-hover: #2c9a94;
  --text-light: #1a202c;
  --text-light-muted: #4a5568;
  --bg-light: #ffffff;
  --bg-light-alt: #f7fafc;
  --border-light: #e2e8f0;
  --shadow-light: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  /* Dark Theme Colors */
  --primary-dark: #9f7aea;
  --primary-dark-hover: #8c69d8;
  --secondary-dark: #4fd1c5;
  --secondary-dark-hover: #40b8ad;
  --text-dark: #f7fafc;
  --text-dark-muted: #cbd5e0;
  --bg-dark: #121212;
  --bg-dark-alt: #1f1f1f;
  --border-dark: #2d3748;
  --shadow-dark: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
  
  /* Enhanced Gradients */
  --gradient-purple: linear-gradient(135deg, #6b46c1 0%, #9f7aea 100%);
  --gradient-blue-green: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
  --gradient-futuristic: linear-gradient(135deg, #6b46c1 0%, #4299e1 50%, #38b2ac 100%);
  --gradient-vigthoria: linear-gradient(135deg, #7349c9 0%, #38a6d6 50%, #38b2ac 100%);
  --gradient-operator: linear-gradient(135deg, #7349c9 0%, #604af0 100%);
  --gradient-coder: linear-gradient(135deg, #38b2ac 0%, #22d3ee 100%);
  --gradient-llm: linear-gradient(135deg, #4299e1 0%, #2563eb 100%);
  --gradient-app: linear-gradient(135deg, #e879f9 0%, #9f7aea 100%);
  
  /* Animation Speeds */
  --transition-slow: 0.5s;
  --transition-normal: 0.3s;
  --transition-fast: 0.15s;
  
  /* Sizing */
  --container-width: 1200px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

/* Default to Light Theme */
:root {
  --primary: var(--primary-light);
  --primary-hover: var(--primary-light-hover);
  --secondary: var(--secondary-light);
  --secondary-hover: var(--secondary-light-hover);
  --text: var(--text-light);
  --text-muted: var(--text-light-muted);
  --bg: var(--bg-light);
  --bg-alt: var(--bg-light-alt);
  --border: var(--border-light);
  --shadow: var(--shadow-light);
}

/* Dark Theme */
[data-theme="dark"] {
  --primary: var(--primary-dark);
  --primary-hover: var(--primary-dark-hover);
  --secondary: var(--secondary-dark);
  --secondary-hover: var(--secondary-dark-hover);
  --text: var(--text-dark);
  --text-muted: var(--text-dark-muted);
  --bg: var(--bg-dark);
  --bg-alt: var(--bg-dark-alt);
  --border: var(--border-dark);
  --shadow: var(--shadow-dark);
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  background-color: var(--bg-alt);
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.theme-toggle:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 4px;
  left: 4px;
  background-color: var(--primary);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .theme-toggle:before {
  transform: translateX(28px);
}

.theme-toggle i {
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
}

[data-theme="light"] .theme-toggle .fa-sun {
  color: white;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  color: white;
}

/**
 * Modern Theme Toggle with Elegant Design
 * Complete redesign for Vigthoria Landing Page
 */

/* Toggle container */
.theme-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(25, 34, 49, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(108, 99, 255, 0.3);
    cursor: pointer;
    /* Removing white toggle point */
    appearance: none;
    -webkit-appearance: none;
}

/* Light theme version of toggle container */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(108, 99, 255, 0.2);
    /* Removing white toggle point */
    appearance: none;
    -webkit-appearance: none;
}

/* Button styling */
.theme-toggle button {
    width: 100%;
    height: 100%;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

/* Button focus state */
.theme-toggle button:focus {
    outline: none;
}

/* Mode icons - shared styles */
.theme-toggle .mode-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sun icon (light mode) */
.theme-toggle .light-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    color: #ff9500;
}

/* Moon icon (dark mode) */
.theme-toggle .dark-icon {
    opacity: 1;
    transform: scale(1) rotate(0);
    color: #6c63ff;
}

/* Icon state in light mode */
[data-theme="light"] .theme-toggle .light-icon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

[data-theme="light"] .theme-toggle .dark-icon {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

/* Visual decorative elements */
.theme-toggle .toggle-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Stars - visible in dark mode */
.theme-toggle .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.theme-toggle .star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

.theme-toggle .star:nth-child(1) {
    width: 2px;
    height: 2px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.theme-toggle .star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 70%;
    animation-delay: 0.5s;
}

.theme-toggle .star:nth-child(3) {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 30%;
    animation-delay: 1s;
}

.theme-toggle .star:nth-child(4) {
    width: 1px;
    height: 1px;
    top: 60%;
    left: 60%;
    animation-delay: 1.5s;
}

[data-theme="light"] .theme-toggle .stars {
    opacity: 0;
}

/* Clouds - visible in light mode */
.theme-toggle .clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.theme-toggle .cloud {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
}

.theme-toggle .cloud:nth-child(1) {
    width: 12px;
    height: 6px;
    top: 20%;
    left: 25%;
    border-radius: 6px;
}

.theme-toggle .cloud:nth-child(2) {
    width: 16px;
    height: 8px;
    top: 60%;
    left: 55%;
    border-radius: 8px;
}

[data-theme="light"] .theme-toggle .clouds {
    opacity: 1;
}

/* Glow effect */
.theme-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3) 0%, rgba(108, 99, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    transition: all 0.4s ease;
}

[data-theme="light"] .theme-toggle::after {
    background: radial-gradient(circle, rgba(255, 149, 0, 0.3) 0%, rgba(255, 149, 0, 0) 70%);
}

/* Hover effects */
.theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover::after {
    opacity: 1;
}

/* Active/press effect */
.theme-toggle:active {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

/* Twinkle animation for stars */
@keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Tooltip styling */
.theme-toggle .tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: rgba(25, 34, 49, 0.9);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

[data-theme="light"] .theme-toggle .tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Theme-specific styling for page elements */

/* Body background */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transition: background 0.3s ease;
}

[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Product cards */
.product-card {
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .product-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Text colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p, span {
    color: var(--text-secondary);
}

.nav-link {
    color: var(--text-primary) !important; /* Ensure nav links are always readable */
}

/* Hero section text */
.hero-title {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    color: var(--text-secondary);
}

/* Product card content */
.product-card .product-title {
    color: var(--text-primary);
}

.product-card .product-description {
    color: var(--text-secondary);
}

.product-card .product-url {
    color: var(--primary-color);
}

/* Feature list items */
.feature-list li {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .feature-list li {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .feature-list li {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.feature-list li span {
    color: var(--text-secondary);
}

/* Buttons with better contrast */
.btn-primary {
    background: var(--gradient-main);
    color: var(--contrast-text) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-primary) !important;
    font-weight: 600;
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Cube styling adjustments for both modes */
.cube-face {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .cube-face {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(108, 99, 255, 0.7);
    color: var(--text-primary);
}

[data-theme="light"] .cube-face {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.7);
    color: var(--text-primary);
}

[data-theme="dark"] .cube-face i {
    color: var(--primary-color);
}

[data-theme="light"] .cube-face i {
    color: var(--primary-color);
}

.cube-content span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Header and footer with proper contrast */
.header, header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-title {
    color: var(--text-primary);
}

.footer-section p, .footer-section a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Ecosystem section improvements */
.section-header h2 {
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
}

/* Ecosystem node colors */
.ecosystem-node {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .ecosystem-node {
    background-color: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .ecosystem-node {
    background-color: #1e293b;
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.ecosystem-node .node-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pricing section improvements */
.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card .card-header {
    border-bottom: 1px solid var(--border-color);
}

.pricing-card .price {
    color: var(--primary-color);
}

.pricing-card .price-period {
    color: var(--muted-text);
}

.pricing-card .feature-item {
    color: var(--text-secondary);
}

.pricing-card .feature-item i {
    color: var(--primary-color);
}

/* Theme toggle tooltip */
.theme-toggle .tooltip {
    z-index: 9999;
    width: auto;
    white-space: nowrap;
}

[data-theme="dark"] .theme-toggle .tooltip {
    background: rgba(25, 34, 49, 0.9);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle .tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
.nav-links {
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .nav-links {
    background-color: rgba(10, 10, 10, 0.95);
}

[data-theme="light"] .nav-links {
    background-color: rgba(247, 250, 252, 0.95);
}

/* Action buttons */
.action-btn {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .action-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Ensure form inputs are readable */
input, textarea, select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

[data-theme="dark"] input, 
[data-theme="dark"] textarea, 
[data-theme="dark"] select {
    background-color: rgba(30, 41, 59, 0.8);
}

[data-theme="light"] input, 
[data-theme="light"] textarea, 
[data-theme="light"] select {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Table styles */
table {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

table td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Links with better hover states */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

/* Tooltip text color */
[data-theme="light"] .tooltip-inner {
    color: var(--text-primary);
}

[data-theme="dark"] .tooltip-inner {
    color: var(--text-primary);
}

/* Override important text for article content */
article p, 
article li, 
article blockquote, 
.content-section p, 
.content-section li {
    color: var(--text-secondary) !important;
}

/* Fix for dark mode code snippets */
[data-theme="dark"] pre, 
[data-theme="dark"] code {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

[data-theme="light"] pre, 
[data-theme="light"] code {
    background: rgba(240, 245, 250, 0.8);
    color: #334155;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Styles from style-fixes.css */

:root {
    --primary-color: #6c63ff;
    --secondary-color: #00bfa6;
    --accent-color: #ff5e84;
    --dark-bg: #12151f;
    --light-text: #f8f9fa;
    --light-bg: #f7fafc;
    --dark-text: #1a202c;
    --gradient-main: linear-gradient(135deg, #6c63ff 0%, #00bfa6 100%);
    --gradient-accent: linear-gradient(135deg, #ff5e84 0%, #ff9e7d 100%);
    --shadow-soft: 0 10px 30px rgba(108, 99, 255, 0.1);
    --shadow-strong: 0 15px 35px rgba(18, 21, 31, 0.1), 0 5px 15px rgba(18, 21, 31, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --fallback-vh: 100vh;
    --header-height: 70px; /* Defined header height variable for consistency */
}

/* Theme toggle improvements */
.theme-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--card-bg) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-toggle button {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
}

.theme-toggle:hover {
    transform: scale(1.1) !important;
}

/* Fix for theme indicators */
.theme-indicator {
    position: fixed;
    bottom: 90px; /* Position below theme toggle */
    left: 30px;
    padding: 8px 16px;
    background-color: var(--card-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    border: 1px solid var(--primary-color, #6c63ff);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.theme-toggle:hover + .theme-indicator,
.theme-indicator:hover {
    opacity: 1;
}

/* Show/hide appropriate icon based on theme */
[data-theme="dark"] .theme-toggle .light-icon {
    display: inline-block;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .light-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .dark-icon {
    display: inline-block;
}

/* Theme visual indicators */
[data-theme="dark"] {
    --theme-indicator: "Dark Mode";
}

[data-theme="light"] {
    --theme-indicator: "Light Mode";
}

.theme-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 6px 12px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.theme-indicator:hover {
    opacity: 1;
}

.theme-indicator::after {
    content: var(--theme-indicator);
}

/* Make gradient text more visible in light mode */
[data-theme="light"] .gradient-text {
    background: linear-gradient(45deg, #4f46e5, #00bfa6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
}

/* Improved theme toggle with better differentiation */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--theme-toggle-bg, rgba(255, 255, 255, 0.1));
}

.theme-toggle:hover {
    background: var(--theme-toggle-hover-bg, rgba(255, 255, 255, 0.2));
    transform: scale(1.1);
}

html[data-theme="light"] .theme-toggle {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .theme-toggle {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Hide/show appropriate icons */
.theme-toggle .fa-sun {
    display: none;
    color: #f7d046;
    font-size: 18px;
}

.theme-toggle .fa-moon {
    display: block;
    color: #cbd5e1;
    font-size: 16px;
}

html[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

/* Enhanced section backgrounds for better theme differentiation */
html[data-theme="light"] section {
    color: #334155;
}

html[data-theme="dark"] section {
    color: #e2e8f0;
}

/* Light mode specific adjustments */
html[data-theme="light"] {
    --primary: #5a52e3;
    --primary-hover: #4b44c4;
    --secondary: #00a593;
    --secondary-hover: #008a7a;
    --text: #334155;
    --text-light: #64748b;
    --heading: #1e293b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --theme-toggle-bg: rgba(0, 0, 0, 0.05);
    --theme-toggle-hover-bg: rgba(0, 0, 0, 0.1);
    
    background-color: #f8fafc;
    color: #334155;
}

/* Dark mode specific adjustments */
html[data-theme="dark"] {
    --primary: #6c63ff;
    --primary-hover: #7a72ff;
    --secondary: #00bfa6;
    --secondary-hover: #00d4b8;
    --text: #e2e8f0;
    --text-light: #cbd5e1;
    --heading: #f1f5f9;
    --background: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --theme-toggle-bg: rgba(255, 255, 255, 0.1);
    --theme-toggle-hover-bg: rgba(255, 255, 255, 0.2);
    
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Fix header appearance in light mode */
html[data-theme="light"] .main-header {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

html[data-theme="dark"] .main-header {
    background-color: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

/* This fixes dark mode text against light backgrounds */
html[data-theme="light"] .gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Safari */
    color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}

html[data-theme="dark"] .gradient-text {
    background: linear-gradient(90deg, var(--primary-hover), var(--secondary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Safari */
    color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
}
