@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --card-bg: #1e293b;
    --border: #334155;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent);
}

    a:hover {
        color: var(--accent-hover);
    }

.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: background 0.4s, border-color 0.4s;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
}

    .nav-link:hover, .nav-link.active {
        color: var(--accent) !important;
    }

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(59,130,246,0.04) 100%);
    padding: 10rem 0 6rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.section {
    padding: 8rem 0;
}

.section-title {
    position: relative;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    text-align: center;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 4px;
        background: var(--accent);
        border-radius: 2px;
    }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
    }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

    .btn-primary:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
    }

footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

/* Theme Toggle Button */
#theme-toggle {
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.theme-icon {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    .theme-icon.sun {
        opacity: 1;
    }

    .theme-icon.moon {
        opacity: 0;
        position: absolute;
    }

[data-theme="dark"] .theme-icon.sun {
    opacity: 0;
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
}

/* Skill bars */
.skill-bar {
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
}

[data-theme="dark"] .skill-bar {
    background: rgba(255,255,255,0.12);
}

.skill-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}
