
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  
  :root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --border: #334155;
    --radius: 12px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
  a:hover { opacity: 0.8; }

  .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

  /* Nav */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  nav .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  nav .logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
  nav ul { display: flex; gap: 32px; list-style: none; }
  nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
  nav a:hover { color: var(--text); opacity: 1; }

  /* Hero */
  .hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 64px;
  }
  .hero-inner { display: flex; align-items: center; gap: 64px; width: 100%; }
  .hero-text { flex: 1; }
  .hero-text .label {
    display: inline-block; background: rgba(99,102,241,0.15); color: var(--primary);
    padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 20px;
  }
  .hero-text h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
  .hero-text h1 span { color: var(--primary); }
  .hero-text p { font-size: 1.15rem; color: var(--text-muted); max-width: 520px; margin-bottom: 32px; }
  .hero-avatar {
    width: 280px; height: 280px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; flex-shrink: 0;
    box-shadow: 0 0 60px rgba(99,102,241,0.3);
  }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px; font-weight: 600;
    font-size: 0.95rem; transition: all 0.2s; cursor: pointer; border: none;
  }
  .btn-primary { background: var(--primary); color: #fff; }
  .btn-primary:hover { background: var(--primary-dark); opacity: 1; }
  .btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-outline:hover { border-color: var(--text-muted); opacity: 1; }
  .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

  /* Sections */
  section { padding: 100px 0; }
  section h2 {
    font-size: 2rem; font-weight: 700; margin-bottom: 12px;
    text-align: center;
  }
  section .subtitle {
    text-align: center; color: var(--text-muted); margin-bottom: 48px;
    font-size: 1.05rem;
  }

  /* Skills */
  .skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  .skill-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; text-align: center;
    transition: border-color 0.2s, transform 0.2s;
  }
  .skill-card:hover { border-color: var(--primary); transform: translateY(-2px); }
  .skill-card .icon { font-size: 2rem; margin-bottom: 8px; }
  .skill-card .name { font-weight: 600; font-size: 0.9rem; }

  /* Projects */
  .projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
  .project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
  }
  .project-card:hover { border-color: var(--primary); transform: translateY(-2px); }
  .project-thumb {
    height: 180px; display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
  }
  .project-thumb.t1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
  .project-thumb.t2 { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
  .project-thumb.t3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
  .project-body { padding: 20px; }
  .project-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
  .project-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
  .tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .tag {
    background: rgba(99,102,241,0.12); color: var(--primary);
    padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
  }

  /* Experience */
  .timeline { max-width: 700px; margin: 0 auto; }
  .timeline-item {
    position: relative; padding-left: 32px; padding-bottom: 40px;
    border-left: 2px solid var(--border);
  }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item::before {
    content: ''; position: absolute; left: -7px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--bg);
  }
  .timeline-item .date { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
  .timeline-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
  .timeline-item .company { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
  .timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

  /* Contact */
  .contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; max-width: 700px; margin: 0 auto;
  }
  .contact-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; text-align: center;
    transition: border-color 0.2s;
  }
  .contact-card:hover { border-color: var(--primary); }
  .contact-card .icon { font-size: 1.5rem; margin-bottom: 8px; }
  .contact-card .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
  .contact-card .value { font-weight: 600; font-size: 0.95rem; }

  /* Footer */
  footer {
    border-top: 1px solid var(--border);
    padding: 32px 0; text-align: center;
    color: var(--text-muted); font-size: 0.85rem;
  }

  @media (max-width: 768px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 32px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .btn-group { justify-content: center; }
    .hero-avatar { width: 200px; height: 200px; font-size: 3.5rem; }
    nav ul { gap: 20px; }
    .projects-grid { grid-template-columns: 1fr; }
  }
