:root {
    --primary-hue: 250;
    --secondary-hue: 320;
    --accent-hue: 190;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: hsl(var(--primary-hue), 80%, 60%);
    --secondary: hsl(var(--secondary-hue), 80%, 60%);
    --accent: hsl(var(--accent-hue), 80%, 60%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --radius-lg: 1rem;
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

body.light-mode {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; color: #fff; }
body.light-mode h1, body.light-mode h2, body.light-mode h3 { color: #0f172a; background: none; -webkit-text-fill-color: initial; text-shadow: none; }

h1 { font-size: 3.5rem; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

header { background: var(--glass-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; }
nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
body.light-mode .logo { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: white; }
body.light-mode .nav-links a:hover, body.light-mode .nav-links a.active { color: var(--primary); }

.btn-icon { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: 0.3s; }
.btn-icon:hover { background: rgba(255, 255, 255, 0.1); }

.hero { text-align: center; padding: 6rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }

.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 2rem; transition: 0.3s; backdrop-filter: blur(10px); text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow-glow); }

.btn-primary { background: var(--gradient-main); color: white; padding: 0.8rem 2rem; border-radius: 2rem; text-decoration: none; font-weight: 600; display: inline-block; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); padding: 0.6rem 1.5rem; border-radius: 2rem; text-decoration: none; display: inline-block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease forwards; }

footer { padding: 3rem 0; text-align: center; color: var(--text-muted); border-top: 1px solid var(--glass-border); }