/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b6b;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --background-dark: #0a0a0a;
    --background-card: #1a1a1a;
    --background-light: #f8f9fa;
    --text-dark: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #4ecdc4);
    --gradient-bg: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #0d1421, #1a2332);
}

[data-theme="light"] {
    /* Enhanced Primary Colors */
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #e74c3c;

    /* Better Text Colors */
    --text-color: #2c3e50;
    --text-secondary: #5a6c7d;

    /* Improved Background Colors */
    --background-dark: #ffffff;
    --background-card: #f8f9fb;

    /* Enhanced Border and Shadow */
    --border-color: rgba(44, 62, 80, 0.12);
    --shadow-color: rgba(44, 62, 80, 0.08);

    /* Better Gradients */
    --gradient-primary: linear-gradient(135deg, #0066cc, #004499);
    --gradient-accent: linear-gradient(135deg, #e74c3c, #c0392b);
    --gradient-bg: linear-gradient(-45deg, #ffffff, #f8f9fb, #f1f3f6, #e8eaf0);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Light Theme Specific Enhancements */
[data-theme="light"] .hero-background .grid-overlay {
    background-image:
            linear-gradient(rgba(0, 102, 204, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 102, 204, 0.08) 1px, transparent 1px);
    opacity: 0.6;
}

[data-theme="light"] .gradient-orb.orb-1 {
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .gradient-orb.orb-2 {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .gradient-orb.orb-3 {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.12) 0%, transparent 70%);
}

/* Enhanced Card Styles for Light Theme */
[data-theme="light"] .card,
[data-theme="light"] .skill-card,
[data-theme="light"] .certificate-card,
[data-theme="light"] .project-card,
[data-theme="light"] .experience-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .stat-item,
[data-theme="light"] .contact-item {
    background: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .skill-card:hover,
[data-theme="light"] .certificate-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .experience-card:hover,
[data-theme="light"] .stat-item:hover,
[data-theme="light"] .contact-item:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
}

/* Enhanced Header for Light Theme */
[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .logo {
    color: var(--text-color);
}

[data-theme="light"] .nav-links a {
    color: var(--text-color);
}

[data-theme="light"] .nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="light"] .theme-toggle {
    background: rgba(44, 62, 80, 0.08);
    color: var(--text-color);
}

[data-theme="light"] .theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

/* Enhanced Form Styles for Light Theme */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #ffffff;
    border: 2px solid rgba(44, 62, 80, 0.12);
    color: var(--text-color);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

[data-theme="light"] .form-group label {
    background: #ffffff;
    color: var(--text-secondary);
}

/* Enhanced Timeline for Light Theme */
[data-theme="light"] .timeline::before {
    background: var(--gradient-primary);
}

[data-theme="light"] .timeline-dot {
    border-color: var(--background-dark);
}

/* Enhanced Code Snippet for Light Theme */
[data-theme="light"] .code-snippet {
    background: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
}

[data-theme="light"] .code-header {
    background: rgba(44, 62, 80, 0.03);
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

[data-theme="light"] .code-content {
    color: var(--text-color);
}

[data-theme="light"] .code-keyword { color: #8e44ad; }
[data-theme="light"] .code-class { color: #2980b9; }
[data-theme="light"] .code-property { color: #27ae60; }
[data-theme="light"] .code-string { color: #e67e22; }
[data-theme="light"] .code-punctuation { color: var(--text-color); }
[data-theme="light"] .code-boolean { color: #9b59b6; }

/* Enhanced Project Items for Light Theme */
[data-theme="light"] .project-item {
    background: rgba(0, 102, 204, 0.03);
    border-left-color: var(--primary-color);
}

/* Enhanced Tech Tags for Light Theme */
[data-theme="light"] .tech-tag {
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.2);
    color: var(--primary-color);
}

[data-theme="light"] .tech-tag:hover {
    background: rgba(0, 102, 204, 0.15);
}

[data-theme="light"] .cert-date {
    background: rgba(0, 102, 204, 0.08);
}

/* Enhanced Particles for Light Theme */
[data-theme="light"] .particle {
    background: var(--primary-color);
    opacity: 0.3;
}

[data-theme="light"] .floating-element {
    background: radial-gradient(circle, rgba(0, 102, 204, 0.06) 0%, transparent 70%);
}

/* Footer Enhancement for Light Theme */
[data-theme="light"] footer {
    background: #ffffff;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

/* Mobile Menu Enhancement for Light Theme */
[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

[data-theme="light"] .menu-toggle span {
    background: var(--text-color);
}

/* Status Indicator Enhancement */
[data-theme="light"] .status-indicator {
    color: var(--text-secondary);
}

/* Social Links Enhancement */
[data-theme="light"] .social-link:hover,
[data-theme="light"] .project-link:hover,
[data-theme="light"] .cert-link:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

/* Button Enhancements */
[data-theme="light"] .cta-button:hover {
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

/* Common animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}