/* ==================== DARK THEME (DEFAULT) ==================== */
:root {
    /* Pure Black Dark Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #242424;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #a3a3a3;

    /* Accent Colors - Blue Scheme */
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #1d4ed8;

    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* ==================== LIGHT THEME ==================== */
[data-theme="light"] {
    /* Light Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;

    /* Light Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #374151;
    --text-muted: #6b7280;

    /* Light Accent Colors */
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #1d4ed8;

    /* Light Borders */
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.05);

    /* Light Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2);
}

/* ==================== GLOBAL THEME STYLES ==================== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    background: var(--bg-secondary);
}

/* Override all backgrounds */
nav {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom-color: var(--border-primary) !important;
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.card {
    background: var(--bg-card) !important;
    border-color: var(--border-primary) !important;
    box-shadow: var(--shadow-md) !important;
}

.card:hover {
    background: var(--bg-card-hover) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Text Color Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary) !important;
}

p,
.hero-description,
.testimonial-text {
    color: var(--text-muted) !important;
}

/* Section Backgrounds */
.testimonials-section,
.cta-section-enhanced {
    background: var(--bg-secondary);
}

[data-theme="light"] .testimonials-section,
[data-theme="light"] .cta-section-enhanced {
    background: var(--bg-tertiary);
}

/* ==================== THEME TOGGLE BUTTON ==================== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99999;
    box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* Hide/show icons based on theme */
.theme-toggle .fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: block;
}

/* ==================== GRADIENT TEXT FIXES FOR LIGHT MODE ==================== */
[data-theme="light"] h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .logo {
    color: #2563eb !important;
}

[data-theme="light"] .nav-links a {
    color: #374151 !important;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: #2563eb !important;
}

/* ==================== BUTTON THEME FIXES ==================== */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
}

[data-theme="light"] .btn-outline {
    border-color: #2563eb;
    color: #2563eb;
}

[data-theme="light"] .btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ==================== ICON COLOR FIXES ==================== */
[data-theme="light"] .social-link i {
    color: #374151 !important;
}

[data-theme="light"] .social-link:hover i {
    color: #2563eb !important;
}

[data-theme="light"] .skill-badge-large {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563eb;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .theme-toggle i {
        font-size: 1.2rem;
    }
}