@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;800&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --bg-color: #f0f4f8;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #2563eb;
    --accent: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-height: 70px;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #60a5fa;
    --accent: #22d3ee;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #1e293b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: 3rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--text-main), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 2rem; margin: 2.5rem 0 1rem; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin-top: 0.5rem; border-radius: 2px; }
a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Layout & Glass Header */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem; }

header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--nav-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
}

.logo { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.logo span { color: var(--primary); }

nav ul { display: flex; gap: 2rem; list-style: none; }
nav a { color: var(--text-main); font-size: 0.95rem; position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background: var(--primary); transition: width 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; }

/* Cards & Glassmorphism */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 2rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: var(--primary); }

/* Buttons & Tags */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; background: var(--primary); color: white;
    border-radius: 8px; transition: transform 0.2s; font-weight: 600;
}
.btn:hover { transform: translateY(-2px); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.tag {
    display: inline-block; padding: 0.25rem 0.75rem; background: var(--bg-color);
    border: 1px solid var(--glass-border); border-radius: 20px;
    font-size: 0.8rem; color: var(--text-muted); margin: 0 0.5rem 0.5rem 0;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.text-sm { font-size: 0.875rem; color: var(--text-muted); }
.theme-toggle { background: none; border: none; cursor: pointer; color: var(--text-main); font-size: 1.2rem; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .cv-grid { grid-template-columns: 2fr 1fr; display: grid; gap: 2rem; }
}
@media (max-width: 768px) {
    nav { display: none; } /* Simplified for code brevity */
    h1 { font-size: 2.2rem; }
}