@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0f0f13;
  --bg-alt: #16161d;
  --card-bg: #1c1c27;
  --primary: #667eea;
  --primary-light: #7c94f4;
  --accent: #f093fb;
  --text: #e4e4ec;
  --text-muted: #8888a0;
  --border: #2a2a3a;
  --font: 'Inter', sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(15,15,19,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 18px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 800; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 200; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all 0.3s; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.hero { padding: 120px 0 80px; background: radial-gradient(circle at 30% 50%, rgba(102,126,234,0.08), transparent 60%); }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; margin-bottom: 20px; background: linear-gradient(135deg, var(--text), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 550px; margin-bottom: 30px; }
.badge { display: inline-block; background: rgba(102,126,234,0.1); border: 1px solid rgba(102,126,234,0.2); padding: 6px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; color: var(--primary); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; font-family: var(--font); font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 50px; text-align: center; }
.bg-alt { background: var(--bg-alt); }

.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.stat-row { display: flex; gap: 30px; margin-top: 30px; }
.stat { text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Skills */
.skills-grid { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.skill-item { }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }
.skill-bar { height: 10px; background: var(--border); border-radius: 100px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 100px; width: 0; transition: width 1.2s ease; }

/* Project Cards */
.project-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: border-color 0.3s, transform 0.3s; }
.project-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.project-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; }
.project-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.project-card p { color: var(--text-muted); margin-bottom: 16px; }
.link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.link:hover { text-decoration: underline; }

.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-btn { padding: 12px 24px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; transition: all 0.3s; }
.contact-btn:hover { border-color: var(--primary); color: var(--primary); }

.footer { padding: 50px 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg); flex-direction: column; padding: 100px 40px 40px; gap: 20px; transition: right 0.4s; box-shadow: -5px 0 30px rgba(0,0,0,0.3); z-index: 150; }
  .nav-links.active { right: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .stat-row { flex-wrap: wrap; }
  .hero-btns { flex-direction: column; }
}
