*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
  --bg-base:      #f8fafc;        /* page background */
  --bg-surface:   #ffffff;        /* navbar / main surface */
  --bg-card:      #ffffff;        /* cards */
  --bg-card-hover:#f1f5f9;        /* card hover */

  --border:       #e2e8f0;        /* normal border */
  --border-hover: rgba(37,99,235,0.35);

  --blue:         #2563eb;        /* main blue */
  --blue-light:   #3b82f6;        /* lighter blue */
  --blue-dim:     rgba(37,99,235,0.08);
  --blue-glow:    rgba(37,99,235,0.18);

  --text-1:       #0f172a;        /* main heading text */
  --text-2:       #475569;        /* paragraph text */
  --text-3:       #64748b;        /* muted text */

  --green:        #22c55e;
  --focus:        #1d4ed8;

  --radius:       14px;
  --radius-lg:    20px;

  --shadow:       0 10px 30px rgba(15,23,42,0.08);
  --shadow-blue:  0 12px 35px rgba(37,99,235,0.12);
}

  html { scroll-behavior: smooth; }

  body {
  font-family: 'Sora', Arial, sans-serif;
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 35%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

  button,
  a {
    font: inherit;
  }

  a:focus-visible,
  button:focus-visible,
  .btn-disabled:focus-visible {
    outline: 3px solid rgba(37,99,235,0.45);
    outline-offset: 4px;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* ─── NOISE TEXTURE OVERLAY ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  /* ─── AMBIENT GLOW ─── */
  .ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
  }
  .ambient-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    top: -200px; right: -200px;
  }
  .ambient-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
    bottom: 20%; left: -150px;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 5%;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(11,15,26,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #bfdbfe;
    letter-spacing: 0.05em;
  }
  .nav-logo span { color: var(--text-3); }

  .nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(226,232,240,0.35);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s, border-color 0.2s;
  }

  .nav-toggle:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(226,232,240,0.55);
  }

  .nav-toggle-line {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: flex; gap: 32px; list-style: none;
  }
  .nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: #e2e8f0;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a.nav-active {
    color: #93c5fd;
  }

  /* ─── CONTAINER ─── */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
  }

  /* ─── SECTION BASE ─── */
  section { padding: 100px 0; }

  .section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--blue-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .section-label::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--blue);
  }

  .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 48px;
    letter-spacing: -0.02em;
  }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 64px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    width: 100%;
  }

  .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--blue-dim);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--blue-light);
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease both;
  }
  .badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
  }

  .hero-name {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    animation: fadeUp 0.6s 0.1s ease both;
  }
  .hero-name .accent { color: var(--blue-light); }

  .hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--blue-light);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    animation: fadeUp 0.6s 0.2s ease both;
  }

  .hero-desc {
    font-size: 0.97rem;
    color: var(--text-2);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 36px;
    animation: fadeUp 0.6s 0.3s ease both;
  }

  .hero-btns {
    display: flex; flex-wrap: wrap; gap: 12px;
    animation: fadeUp 0.6s 0.4s ease both;
  }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.22s ease;
  }

  .btn-disabled {
    cursor: not-allowed;
    opacity: 0.68;
  }

  .btn-disabled:hover {
    color: var(--text-2);
    border-color: var(--border);
    background: transparent;
    transform: none;
  }
  .btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
  }
  .btn-primary:hover {
    background: var(--blue-light);
    box-shadow: 0 4px 28px rgba(59,130,246,0.5);
    transform: translateY(-2px);
  }
  .btn-secondary {
    background: var(--bg-card);
    color: var(--text-1);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
  }
  .btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover {
    color: var(--blue-light);
    border-color: var(--border-hover);
  }

  /* ─── PROFILE CARD ─── */
  .profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow), var(--shadow-blue);
    animation: fadeUp 0.6s 0.5s ease both;
    position: relative;
    overflow: hidden;
  }
  .profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
  }

  .profile-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  }

  .profile-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .profile-card .profile-uni {
    font-size: 0.8rem;
    color: var(--blue-light);
    font-weight: 500;
    margin-bottom: 24px;
  }

  .profile-row {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
  }
  .profile-row-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--blue-dim);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
  }
  .profile-row-content strong {
    display: block;
    font-size: 0.72rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }
  .profile-row-content span {
    color: var(--text-2);
    line-height: 1.45;
  }

  /* ─── DIVIDER ─── */
  .divider {
    height: 1px;
    background: var(--border);
    margin: 0;
  }

  /* ─── ABOUT ─── */
  #about { padding-top: 80px; }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .about-text {
    font-size: 0.97rem;
    color: var(--text-2);
    line-height: 1.85;
  }
  .about-text p + p { margin-top: 16px; }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
  }
  .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-light);
    line-height: 1;
    margin-bottom: 4px;
  }
  .stat-label {
    font-size: 0.78rem;
    color: var(--text-3);
  }

  /* ─── SKILLS ─── */
  #skills { background: var(--bg-surface); }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-dim), transparent);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 30px var(--blue-glow);
  }
  .skill-card:hover::after { opacity: 1; }

  .skill-icon {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: block;
  }
  .skill-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 10px;
    position: relative; z-index: 1;
  }
  .skill-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    position: relative; z-index: 1;
  }
  .tag {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--blue-dim);
    border: 1px solid rgba(37,99,235,0.16);
    color: var(--text-2);
    padding: 3px 9px;
    border-radius: 6px;
    transition: all 0.2s;
  }
  .skill-card:hover .tag {
    background: var(--blue-dim);
    border-color: rgba(59,130,246,0.3);
    color: var(--blue-light);
  }

  /* ─── PROJECTS ─── */
  
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
  }
  .project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow), 0 0 40px var(--blue-glow);
  }
  .project-card:hover::before { opacity: 1; }

  .project-header {
    display: flex; align-items: center; gap: 12px;
  }
  .project-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--blue-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .project-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
  }

  .project-desc {
    font-size: 0.87rem;
    color: var(--text-2);
    line-height: 1.7;
  }

  .project-details {
    display: grid;
    gap: 10px;
    padding: 14px 0 2px;
    border-top: 1px solid var(--border);
  }

  .project-details div {
    display: grid;
    gap: 4px;
  }

  .project-details dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .project-details dd {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.55;
  }

  .project-tech {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: auto;
  }
  .tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: var(--blue-dim);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--blue-light);
    padding: 3px 9px;
    border-radius: 6px;
  }

  .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
  }

  .project-link-placeholder {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px dashed rgba(37,99,235,0.35);
    background: rgba(37,99,235,0.06);
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
  }

  /* ─── EDUCATION ─── */
  #education { background: var(--bg-surface); }

  .edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 680px;
    transition: all 0.25s;
  }
  .edu-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow), var(--shadow-blue);
  }

  .edu-logo {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3a5f, #1e4080);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
  .edu-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .edu-degree {
    font-size: 0.88rem;
    color: var(--blue-light);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .edu-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
  }
  .edu-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.76rem;
    color: var(--text-2);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
  }

  /* ─── CONTACT ─── */
  
  .contact-intro {
    font-size: 0.97rem;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.75;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
  }
  .contact-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 30px var(--blue-glow);
  }
  .contact-card:focus-visible {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow), 0 0 0 4px rgba(37,99,235,0.14);
  }
  .contact-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--blue-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .contact-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-1);
    font-weight: 600;
    margin-bottom: 2px;
  }
  .contact-info span {
    font-size: 0.78rem;
    color: var(--text-3);
  }

  /* ─── FOOTER ─── */
  footer {
    padding: 32px 5%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-3);
    position: relative;
    z-index: 1;
  }
  footer span { font-family: 'JetBrains Mono', monospace; }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg-base); }
  ::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--blue); }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    nav { padding: 0 5%; }
    .nav-toggle { display: inline-flex; }
    .nav-links {
      position: absolute;
      top: calc(100% + 10px);
      left: 5%;
      right: 5%;
      display: grid;
      gap: 4px;
      padding: 12px;
      border: 1px solid rgba(226,232,240,0.32);
      border-radius: 14px;
      background: rgba(15,23,42,0.97);
      box-shadow: 0 18px 45px rgba(15,23,42,0.25);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-8px);
      transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .nav-links.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }
    .nav-links a {
      display: block;
      padding: 12px 14px;
      border-radius: 10px;
      color: #f8fafc;
    }
    .nav-links a:hover,
    .nav-links a:focus-visible,
    .nav-links a.nav-active {
      background: rgba(59,130,246,0.16);
      color: #bfdbfe;
    }
    #hero {
      min-height: auto;
      padding-top: 96px;
    }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .edu-card { flex-direction: column; text-align: center; }
  }
  @media (max-width: 560px) {
    .skills-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    section { padding: 64px 0; }
    #hero {
      padding-top: 80px;
      padding-bottom: 48px;
    }
    .hero-grid { gap: 24px; }
    .badge { margin-bottom: 22px; }
    .hero-name {
      font-size: 2.2rem;
      margin-bottom: 10px;
    }
    .hero-subtitle {
      font-size: 0.76rem;
      line-height: 1.55;
      margin-bottom: 16px;
    }
    .hero-desc {
      font-size: 0.92rem;
      line-height: 1.58;
      margin-bottom: 24px;
    }
    .btn { padding: 10px 16px; }
    .profile-card { padding: 22px 20px; }
    .profile-avatar {
      width: 58px;
      height: 58px;
      font-size: 1.15rem;
      margin-bottom: 14px;
    }
    .profile-card .profile-uni { margin-bottom: 18px; }
    .profile-row { margin-bottom: 12px; }
    .profile-row-icon {
      width: 24px;
      height: 24px;
      font-size: 0.78rem;
    }
    .profile-row-content strong { font-size: 0.68rem; }
    .profile-row-content span { font-size: 0.8rem; }
    .project-card { padding: 24px; }
  }
