/* Light Theme (Default) */
:root,
[data-theme="light"] {
    /* Primary Ocean Colors */
    --primary-color: #0077BE;
    --secondary-color: #4A90E2;
    --accent-color: #20B2AA;
    --accent-secondary: #00CED1;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FEFF;
    --card-background: rgba(255, 255, 255, 0.8);
    --nav-background: rgba(255, 255, 255, 0.9);
    
    /* Text Colors */
    --text-color: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    /* Border and Shadow */
    --border-color: rgba(32, 178, 170, 0.2);
    --shadow-color: rgba(0, 119, 190, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0077BE 0%, #20B2AA 100%);
    --gradient-secondary: linear-gradient(135deg, #4A90E2 0%, #00CED1 100%);
    --gradient-accent: linear-gradient(135deg, #20B2AA 0%, #00CED1 100%);
    
    /* Animation Colors */
    --bubble-color-1: rgba(32, 178, 170, 0.3);
    --bubble-color-2: rgba(0, 119, 190, 0.25);
    --bubble-color-3: rgba(74, 144, 226, 0.2);
    --wave-color-1: rgba(0, 206, 209, 0.4);
    --wave-color-2: rgba(32, 178, 170, 0.3);
    --orb-gradient-1: radial-gradient(circle, rgba(32, 178, 170, 0.4) 0%, rgba(0, 119, 190, 0.2) 70%, transparent 100%);
    --orb-gradient-2: radial-gradient(circle, rgba(0, 206, 209, 0.3) 0%, rgba(74, 144, 226, 0.15) 70%, transparent 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    /* Primary Ocean Colors - Deeper/Darker */
    --primary-color: #00A8E8;
    --secondary-color: #0077BE;
    --accent-color: #00CED1;
    --accent-secondary: #40E0D0;
    
    /* Background Colors */
    --bg-primary: #0A0A0A;
    --bg-secondary: #001F3F;
    --card-background: rgba(0, 31, 63, 0.6);
    --nav-background: rgba(10, 10, 10, 0.9);
    
    /* Text Colors */
    --text-color: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    
    /* Border and Shadow */
    --border-color: rgba(0, 206, 209, 0.3);
    --shadow-color: rgba(0, 168, 232, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00A8E8 0%, #00CED1 100%);
    --gradient-secondary: linear-gradient(135deg, #0077BE 0%, #40E0D0 100%);
    --gradient-accent: linear-gradient(135deg, #00CED1 0%, #40E0D0 100%);
    
    /* Animation Colors - More Vibrant for Dark Mode */
    --bubble-color-1: rgba(0, 206, 209, 0.4);
    --bubble-color-2: rgba(0, 168, 232, 0.35);
    --bubble-color-3: rgba(64, 224, 208, 0.3);
    --wave-color-1: rgba(0, 206, 209, 0.5);
    --wave-color-2: rgba(64, 224, 208, 0.4);
    --orb-gradient-1: radial-gradient(circle, rgba(0, 206, 209, 0.5) 0%, rgba(0, 168, 232, 0.3) 70%, transparent 100%);
    --orb-gradient-2: radial-gradient(circle, rgba(64, 224, 208, 0.4) 0%, rgba(0, 119, 190, 0.2) 70%, transparent 100%);
}

/* Apply theme colors to body */
body {
    background: var(--bg-primary);
    color: var(--text-color);
}

/* Theme-specific background patterns */
[data-theme="light"] body {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FEFF 100%);
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0A0A0A 0%, #001F3F 100%);
}

/* Theme transition animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Theme toggle button states */
[data-theme="light"] .theme-toggle .dark-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="light"] .theme-toggle .light-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle .light-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .dark-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Navbar theme-specific styling */
.navbar {
    background: var(--nav-background);
}

/* Enhanced gradients for dark mode */
[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #00CED1 0%, #40E0D0 50%, #00A8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button theme adjustments */
[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 206, 209, 0.5);
}

/* Feature cards theme adjustments */
[data-theme="dark"] .feature-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 206, 209, 0.2);
}

[data-theme="dark"] .feature-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 168, 232, 0.3);
}

/* Scrollbar theming */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selection colors */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}