:root {
      --bg: #080c10;
      --surface: #0d1117;
      --card: #111820;
      --border: rgba(255, 255, 255, 0.07);
      --border-h: rgba(255, 255, 255, 0.15);
      --accent: #4f9cf9;
      --green: #3dd68c;
      --text: #e2e8f0;
      --muted: #64748b;
      --dim: #334155;
      --sans: 'Outfit', sans-serif;
      --code: 'Fira Code', monospace;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-size: 15px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
      background-size: 28px 28px;
      pointer-events: none;
      z-index: 0;
    }

    section,
    nav,
    footer {
      position: relative;
      z-index: 1;
    }

    /* SCROLL PROGRESS */
    #scroll-progress {
      position: fixed;
      top: 0; left: 0;
      height: 2px;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--green));
      z-index: 200;
      transition: width 0.1s linear;
    }

    /* NAV */
    nav {
      position: fixed; top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 2rem;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(8,12,16,0.9);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      transition: background 0.3s, box-shadow 0.3s;
    }

    nav.scrolled {
      background: rgba(8,12,16,0.97);
      box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .nav-logo:hover { opacity: 0.85; }

    .nav-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top center;
      border: 2px solid rgba(79,156,249,0.5);
      flex-shrink: 0;
      transition: border-color 0.2s;
    }

    .nav-logo:hover .nav-avatar { border-color: var(--accent); }

    .nav-avatar { cursor: pointer; }

    .nav-name {
      font-family: var(--sans);
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
      letter-spacing: -0.01em;
    }

    /* LIGHTBOX */
    #lightbox {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 999;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
      animation: lbFadeIn 0.25s ease;
    }

    #lightbox.open { display: flex; }

    @keyframes lbFadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    #lightbox img {
      max-width: min(480px, 90vw);
      max-height: 90vh;
      border-radius: 20px;
      object-fit: cover;
      object-position: top center;
      box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
      border: 2px solid rgba(79, 156, 249, 0.4);
      animation: lbZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      cursor: default;
    }

    @keyframes lbZoomIn {
      from { transform: scale(0.7); opacity: 0; }
      to   { transform: scale(1);   opacity: 1; }
    }

    #lightbox-close {
      position: absolute;
      top: 1.25rem;
      right: 1.5rem;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    #lightbox-close:hover { background: rgba(255,255,255,0.2); }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--text);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: var(--muted);
      border-radius: 2px;
    }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 60px;
      left: 0;
      right: 0;
      background: rgba(8, 12, 16, 0.98);
      border-bottom: 1px solid var(--border);
      padding: 1.5rem 2rem;
      z-index: 99;
      flex-direction: column;
      gap: 1.2rem;
    }

    .mobile-menu.open {
      display: flex;
    }

    .mobile-menu a {
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
    }

    .mobile-menu a:hover {
      color: var(--text);
    }

    /* LAYOUT */
    .container {
      max-width: 960px;
      margin: 0 auto;
      padding: 5rem 2rem;
    }

    .section-label {
      font-family: var(--code);
      font-size: 11px;
      color: var(--accent);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 0.4rem;
    }

    .section-title {
      font-size: clamp(1.8rem, 4vw, 2.4rem);
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 2.5rem;
    }

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* HERO */
    #hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 6rem 2rem 4rem;
      max-width: 960px;
      margin: 0 auto;
    }

    .hero-inner { width: 100%; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--code);
      font-size: 11px;
      color: var(--green);
      letter-spacing: 0.1em;
      border: 1px solid rgba(61, 214, 140, 0.2);
      background: rgba(61, 214, 140, 0.06);
      padding: 5px 14px;
      border-radius: 100px;
      margin-bottom: 2rem;
      animation: up 0.5s ease both;
    }

    .live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
      animation: blink 2s ease-in-out infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1 }
      50% { opacity: 0.3 }
    }

    .hero-name {
      font-size: clamp(2.8rem, 9vw, 5.5rem);
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 1.05;
      color: var(--text);
      margin-bottom: 1rem;
      animation: up 0.5s 0.08s ease both;
    }

    .hero-name span {
      color: var(--accent);
    }

    .hero-tagline {
      font-size: clamp(1rem, 2.5vw, 1.2rem);
      font-weight: 400;
      color: var(--muted);
      margin-bottom: 1.5rem;
      animation: up 0.5s 0.16s ease both;
      min-height: 1.8em;
      display: block;
      white-space: nowrap;
      overflow: hidden;
    }

    .hero-desc {
      max-width: 500px;
      font-size: 15px;
      color: var(--muted);
      line-height: 1.85;
      margin-bottom: 2.5rem;
      animation: up 0.5s 0.24s ease both;
    }

    .hero-cta {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      animation: up 0.5s 0.32s ease both;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 22px;
      font-family: var(--sans);
      font-size: 13px;
      font-weight: 600;
      border-radius: 8px;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      border: 1px solid transparent;
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .btn-primary:hover {
      background: #6aaff9;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(79, 156, 249, 0.25);
    }

    .btn-ghost {
      background: transparent;
      color: var(--text);
      border-color: var(--border-h);
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-2px);
    }

    .hero-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 3.5rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      animation: up 0.5s 0.4s ease both;
    }

    .pill {
      font-family: var(--code);
      font-size: 11px;
      color: var(--muted);
      background: var(--card);
      border: 1px solid var(--border);
      padding: 4px 12px;
      border-radius: 6px;
    }

    @keyframes up {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ABOUT */
    #about {
      background: var(--surface);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 3fr 2fr;
      gap: 4rem;
      align-items: start;
    }

    .about-text p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.85;
      margin-bottom: 1rem;
    }

    .about-meta {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .meta-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 13px 15px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      transition: border-color 0.2s;
    }

    .meta-row:hover {
      border-color: var(--border-h);
    }

    .meta-icon {
      font-size: 15px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .meta-label {
      font-family: var(--code);
      font-size: 10px;
      color: var(--dim);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    .meta-val {
      font-size: 13px;
      color: var(--text);
      margin-top: 2px;
    }

    /* SKILLS */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 14px;
    }

    .skill-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.3rem;
      transition: border-color 0.2s, transform 0.2s;
    }

    .skill-card:hover {
      border-color: var(--border-h);
      transform: translateY(-3px);
    }

    .skill-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 1rem;
    }

    .skill-icon {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .ic-blue   { background: rgba(79, 156, 249, 0.1); }
    .ic-red    { background: rgba(239, 68, 68, 0.1); }
    .ic-green  { background: rgba(61, 214, 140, 0.1); }
    .ic-purple { background: rgba(167, 139, 250, 0.1); }
    .ic-orange { background: rgba(251, 146, 60, 0.1); }

    .skill-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }

    .tag-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .tag {
      font-family: var(--code);
      font-size: 11px;
      padding: 3px 9px;
      border-radius: 5px;
      border: 1px solid var(--border);
      color: var(--muted);
      background: var(--card);
    }

    /* PROJECTS */
    #projects {
      background: var(--surface);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 18px;
    }

    .project-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.75rem;
      transition: border-color 0.2s, transform 0.2s;
      display: flex;
      flex-direction: column;
    }

    .project-card:hover {
      border-color: var(--border-h);
      transform: translateY(-4px);
    }

    .project-badge {
      display: inline-block;
      font-family: var(--code);
      font-size: 10px;
      color: var(--accent);
      background: rgba(79, 156, 249, 0.08);
      border: 1px solid rgba(79, 156, 249, 0.2);
      padding: 3px 10px;
      border-radius: 5px;
      margin-bottom: 1rem;
      letter-spacing: 0.04em;
    }

    .project-badge.green {
      color: var(--green);
      background: rgba(61, 214, 140, 0.08);
      border-color: rgba(61, 214, 140, 0.2);
    }

    .project-badge.orange {
      color: #fb923c;
      background: rgba(251, 146, 60, 0.08);
      border-color: rgba(251, 146, 60, 0.2);
    }

    .project-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.75rem;
      line-height: 1.35;
      letter-spacing: -0.01em;
    }

    .project-desc {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 1.25rem;
      flex: 1;
    }

    .project-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    /* CERTIFICATIONS */
    #certifications {
      background: var(--bg);
    }

    .cert-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .cert-card {
      display: flex;
      align-items: flex-start;
      gap: 1.25rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.4rem;
      transition: border-color 0.2s, transform 0.2s;
    }

    .cert-card:hover {
      border-color: var(--border-h);
      transform: translateX(4px);
    }

    .cert-icon-box {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      flex-shrink: 0;
      background: rgba(79, 156, 249, 0.08);
      border: 1px solid rgba(79, 156, 249, 0.15);
    }

    .cert-title {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }

    .cert-org {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .cert-date {
      display: inline-block;
      font-family: var(--code);
      font-size: 10px;
      color: var(--accent);
      background: rgba(79, 156, 249, 0.08);
      border: 1px solid rgba(79, 156, 249, 0.15);
      padding: 2px 9px;
      border-radius: 5px;
    }

    /* EDUCATION */
    .edu-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .edu-card {
      display: flex;
      align-items: flex-start;
      gap: 1.25rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.4rem;
      transition: border-color 0.2s;
    }

    .edu-card:hover {
      border-color: var(--border-h);
    }

    .edu-year-box {
      font-family: var(--code);
      font-size: 11px;
      color: var(--accent);
      background: rgba(79, 156, 249, 0.08);
      border: 1px solid rgba(79, 156, 249, 0.2);
      padding: 4px 10px;
      border-radius: 6px;
      white-space: nowrap;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .edu-degree {
      font-size: 15px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }

    .edu-inst {
      font-size: 13px;
      color: var(--muted);
    }

    .edu-score {
      display: inline-block;
      margin-top: 8px;
      font-family: var(--code);
      font-size: 11px;
      color: var(--green);
      background: rgba(61, 214, 140, 0.07);
      border: 1px solid rgba(61, 214, 140, 0.2);
      padding: 2px 9px;
      border-radius: 5px;
    }

    /* CONTACT */
    #contact {
      background: var(--surface);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: start;
    }

    .contact-intro {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.85;
      margin-bottom: 2rem;
    }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .contact-link {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 13px 16px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      text-decoration: none;
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      transition: border-color 0.2s, color 0.2s, transform 0.2s;
    }

    .contact-link:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateX(4px);
    }

    .cl-icon {
      font-size: 17px;
      flex-shrink: 0;
    }

    .cl-sub {
      font-size: 10px;
      color: var(--dim);
      font-family: var(--code);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 2px;
    }

    .contact-cta-box {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 2rem;
    }

    .contact-cta-box h3 {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.75rem;
      letter-spacing: -0.02em;
    }

    .contact-cta-box p {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

    /* FOOTER */
    footer {
      text-align: center;
      padding: 2rem;
      border-top: 1px solid var(--border);
      font-family: var(--code);
      font-size: 12px;
      color: var(--dim);
    }

    footer span {
      color: var(--accent);
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      nav { padding: 0 1.25rem; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      #hero { padding: 5rem 1.25rem 3rem; }
      .about-grid { grid-template-columns: 1fr; gap: 2rem; }
      .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
      .container { padding: 3.5rem 1.25rem; }
      .projects-grid { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 480px) {
      .hero-name { font-size: 2.6rem; }
      .hero-cta { flex-direction: column; }
      .btn { justify-content: center; }
      .skills-grid { grid-template-columns: 1fr; }
      .edu-card { flex-direction: column; gap: 0.5rem; }
      .cert-card { flex-direction: column; gap: 0.75rem; }
    }
