
/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --secondary-color: #94a3b8;
    --accent-color: #22d3ee;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-strong: rgba(0, 0, 0, 0.6);
    
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #1e293b;
}

/* Theme transition for smooth switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .profile-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .image-bg-shapes::before {
    opacity: 0.15;
}

[data-theme="dark"] .skill-tag {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .tech-tag {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .project-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .social-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .contact-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .education-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .skill-category {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .navbar {
    background: var(--navbar-bg);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .language-toggle {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .language-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .footer {
    background: var(--bg-tertiary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .social-links a {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

/* Theme toggle button animation */
.theme-toggle i {
    transition: transform 0.3s ease;
}

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

/* Dark theme specific shadows and glows */
[data-theme="dark"] .hero-buttons .btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-buttons .btn:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .contact-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .skill-category:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Bootstrap component dark theme overrides */
[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--bg-primary);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Accessibility improvements for dark theme */
[data-theme="dark"] *:focus {
    outline-color: var(--primary-color);
}

/* Smooth theme transition for images */
[data-theme="dark"] img {
    transition: filter 0.3s ease;
}

[data-theme="dark"] .profile-image {
    filter: brightness(0.9);
}

/* Custom scrollbar for dark theme */
[data-theme="dark"]::-webkit-scrollbar {
    width: 8px;
}

[data-theme="dark"]::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
