/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #111629;
    --tertiary-dark: #1a1f3a;
    --accent-red: #ff006e;
    --accent-blue: #00d9ff;
    --accent-blue-dark: #0099cc;
    --accent-purple: #8338ec;
    --text-light: #f8f9fa;
    --text-muted: #a0a9b8;
    --border-color: #1e2742;
}

:root.light-mode {
    --primary-dark: #fafbfc;
    --secondary-dark: #f0f4f8;
    --tertiary-dark: #e1e8f0;
    --accent-red: #e31c79;
    --accent-blue: #1e8fd6;
    --accent-purple: #8b5cf6;
    --text-light: #1a202c;
    --text-muted: #4a5568;
    --border-color: #cbd5e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== Light Mode Enhancements ===== */
:root.light-mode .hero {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 50%, #e1e8f0 100%);
}

:root.light-mode .hero::before {
    background: radial-gradient(circle, rgba(30, 143, 214, 0.12) 0%, transparent 70%);
}

:root.light-mode .hero::after {
    background: radial-gradient(circle, rgba(227, 28, 121, 0.12) 0%, transparent 70%);
}

:root.light-mode .navbar {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
    border-bottom: 1px solid rgba(30, 143, 214, 0.15);
    box-shadow: 0 2px 20px rgba(30, 143, 214, 0.08);
}

:root.light-mode .navbar::after {
    background: linear-gradient(90deg, transparent, rgba(30, 143, 214, 0.3), transparent);
}

:root.light-mode .profile-image {
    background: linear-gradient(45deg, #1e8fd6, #e31c79, #1e8fd6);
}

:root.light-mode .profile-image img {
    box-shadow: 0 8px 30px rgba(30, 143, 214, 0.25), inset 0 0 20px rgba(30, 143, 214, 0.05);
    background: rgba(240, 244, 248, 0.5);
}

:root.light-mode .profile-image:hover img {
    box-shadow: 0 12px 40px rgba(227, 28, 121, 0.3), inset 0 0 30px rgba(30, 143, 214, 0.1);
}

:root.light-mode .social-icon {
    background: rgba(30, 143, 214, 0.08);
    border-color: rgba(30, 143, 214, 0.25);
}

:root.light-mode .social-icon:hover {
    box-shadow: 0 8px 25px rgba(30, 143, 214, 0.3);
}

:root.light-mode .project-card,
:root.light-mode .spec-item,
:root.light-mode .about-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 244, 248, 0.9) 100%);
    border-color: rgba(30, 143, 214, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

:root.light-mode .project-card:hover,
:root.light-mode .spec-item:hover {
    border-color: rgba(30, 143, 214, 0.4);
    box-shadow: 0 12px 35px rgba(30, 143, 214, 0.15);
}

:root.light-mode .project-card::before {
    background: linear-gradient(135deg, rgba(30, 143, 214, 0.08), rgba(139, 92, 246, 0.08));
}

:root.light-mode .theme-toggle {
    background: rgba(30, 143, 214, 0.08);
    border-color: rgba(30, 143, 214, 0.25);
}

:root.light-mode .theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(30, 143, 214, 0.25);
}

:root.light-mode .nav-links a::before {
    background: linear-gradient(135deg, rgba(30, 143, 214, 0.08), rgba(139, 92, 246, 0.08));
}
