 :root {
      --bg: #f5f7fa;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
      --accent: #2563eb;
    }

    body.dark {
      --bg: #0f172a;
      --card: #1e293b;
      --text: #e5e7eb;
      --muted: #9ca3af;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', system-ui, sans-serif;
    }

    body {
      background: var(--bg);
      color: var(--text);
      transition: background 0.3s, color 0.3s;
    }

    /* ---------- NAVBAR ---------- */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--card);
      padding: 16px 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    .profile {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .profile img {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      object-fit: cover;
    }

    .profile strong {
      font-size: 15px;
      font-weight: 600;
    }

    .profile span {
      font-size: 13px;
      color: var(--muted);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    .nav-links button {
      background: none;
      border: none;
      font-weight: 600;
      cursor: pointer;
      color: var(--text);
    }

    .resume-btn {
      padding: 8px 16px;
      border-radius: 20px;
      background: var(--accent);
      color: white;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .toggle {
      cursor: pointer;
      font-size: 18px;
    }

    .hamburger {
      display: none;
      font-size: 22px;
      cursor: pointer;
    }

    /* ---------- CONTENT ---------- */
    .content {
      max-width: 1100px;
      margin: 0 auto;
      padding: 70px 20px;
    }

    .tab {
      scroll-margin-top: 120px;
      margin-bottom: 120px;
    }

    h1 {
      font-size: 42px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 24px;
    }

    h2 {
      font-size: 26px;
      text-align: center;
      margin: 50px 0 20px;
    }

    p {
      max-width: 720px;
      margin: 0 auto 20px;
      font-size: 18px;
      line-height: 1.8;
      text-align: center;
      color: var(--muted);
    }

    /* ---------- STATS ---------- */
    .stats-section {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 30px;
      max-width: 900px;
      margin: 60px auto;
    }

    .stat-card {
      background: var(--card);
      border-radius: 18px;
      padding: 35px 20px;
      text-align: center;
      box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

    .stat-number {
      font-size: 42px;
      font-weight: 700;
      color: var(--accent);
    }

    .stat-label {
      margin-top: 10px;
      font-size: 15px;
      font-weight: 600;
      color: var(--muted);
    }

    /* ---------- PROJECTS ---------- */
    .projects-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 28px;
      margin-top: 40px;
    }

    .project-card {
      height: 190px;
      background: var(--card);
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

    /* ---------- SCROLL REVEAL ---------- */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.show {
      opacity: 1;
      transform: translateY(0);
    }

    .delay-1 { transition-delay: 0.1s; }
    .delay-2 { transition-delay: 0.2s; }
    .delay-3 { transition-delay: 0.3s; }
    .delay-4 { transition-delay: 0.4s; }

    /* =======================
       📱 MOBILE OPTIMIZATION
       ======================= */
    @media (max-width: 768px) {
      h1 { font-size: 32px; }
      h2 { font-size: 22px; }
      p  { font-size: 16px; }

      .navbar {
        padding: 14px 20px;
      }

      .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--card);
        flex-direction: column;
        padding: 20px;
        border-radius: 16px;
        gap: 16px;
        display: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
      }

      .nav-links.show {
        display: flex;
      }

      .hamburger {
        display: block;
      }

      .projects-container {
        grid-template-columns: 1fr;
      }

      .project-card {
        height: auto;
        padding: 28px;
      }

      .stats-section {
        grid-template-columns: 1fr;
      }
    }


:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
}

body.dark {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
}


