  :root {
    --bg: #080b0f;
    --bg2: #0d1117;
    --bg3: #111820;
    --border: #1e2d3d;
    --border2: #243447;
    --accent: #00d9ff;
    --accent2: #0099cc;
    --accent-dim: rgba(0, 217, 255, 0.08);
    --accent-glow: rgba(0, 217, 255, 0.15);
    --green: #39d353;
    --green-dim: rgba(57, 211, 83, 0.1);
    --orange: #f78166;
    --text: #cdd9e5;
    --text2: #8b949e;
    --text3: #4d5f6e;
    --white: #e6edf3;
    --font-mono: 'JetBrains Mono', monospace;

    --font-display:  'Space Grotesk', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

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

  /* GRID BACKGROUND */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  
  /* SCANLINE */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 0;
  }

  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(8, 11, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
  }

  .nav-logo span { color: var(--text3); }

  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); }

  /* HERO */
  .hero {
      min-height: 73vh;
    display: flex;
    align-items: center;
    padding: 77px 0 80px;
  }

  .hero-inner {
    width: 100%;
  }

  .terminal-line {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
  }

  .terminal-line::before {
    content: '>';
    color: var(--green);
  }

  .hero-name {
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.1s forwards;
    letter-spacing: -0.02em;
  }

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

  .hero-title {
    font-family: var(--font-mono);
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text2);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
    font-weight: 300;
  }

  .hero-title .highlight {
    color: var(--accent);
    font-weight: 500;
  }

  .hero-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text2);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
  }

  .hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.4s forwards;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

  .btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--border2);
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  }

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

  /* STATUS BADGE */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--green-dim);
    border: 1px solid rgba(57, 211, 83, 0.25);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.05s forwards;
  }

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

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

  /* SECTION */
  section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
  }

  .section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .section-label::before {
    content: '//';
    color: var(--text3);
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 48px;
    letter-spacing: -0.02em;
  }

  /* STACK GRID */
  .stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 48px;
  }

  .stack-item {
    padding: 10px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }

  .stack-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
  }

  .stack-item .dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* EXPERTISE CARDS */
  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 16px;
  }

  .expertise-card {
    background: var(--bg2);
    padding: 28px;
    transition: background 0.2s;
  }

  .expertise-card:hover { background: var(--bg3); }

  .expertise-icon {
    font-size: 22px;
    margin-bottom: 16px;
    display: block;
  }

  .expertise-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
  }

  .expertise-desc {
    font-size: 12px;
    color: var(--text2);
    line-height: 1.7;
  }

  /* DEEPLOG CARD */
  .project-card {
    background: var(--bg2);
    border: 1px solid var(--border2);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
  }

  .project-card:hover { border-color: var(--accent); }

  .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }

  .project-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,217,255,0.05) 0%, transparent 70%);
    pointer-events: none;
  }

  .project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 217, 255, 0.2);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .project-name {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }

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

  .project-tagline {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.7;
  }

  .project-arch {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
  }

  .arch-item {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 14px 16px;
  }

  .arch-item-label {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .arch-item-name {
    font-size: 12px;
    color: var(--white);
    font-weight: 500;
  }

  .arch-item-desc {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
  }

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

  .tag {
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.05em;
  }

  /* TIMELINE */
  .timeline {
    position: relative;
    padding-left: 24px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
  }

  .timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 24px;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 7px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
  }

  .timeline-item:last-child { margin-bottom: 0; }

  .timeline-period {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .timeline-role {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
  }

  .timeline-company {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 10px;
  }

  .timeline-desc {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.7;
    max-width: 580px;
  }

  /* CONTACT */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .contact-item {
    background: var(--bg2);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
    text-decoration: none;
  }

  .contact-item:hover { background: var(--bg3); }

  .contact-label {
    font-size: 10px;
    color: var(--text3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .contact-value {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
  }

  .contact-sub {
    font-size: 11px;
    color: var(--text3);
  }

  /* FOOTER */
  footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
  }

  footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-copy {
    font-size: 11px;
    color: var(--text3);
  }

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

  .footer-links {
    display: flex;
    gap: 20px;
  }

  .footer-links a {
    font-size: 11px;
    color: var(--text3);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--accent); }

  /* DIVIDER */
  .divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 0;
    opacity: 0.3;
  }

  /* 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: translateY(0);
  }

  /* RESPONSIVE */
  @media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-secondary { justify-content: center; }
    nav .nav-links { display: none; }
    .project-arch { grid-template-columns: 1fr; }
  }

  /* CURSOR */
  .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
  }

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

  /* HIGHLIGHT ROW */
  .highlight-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
  }

  .highlight-item { flex: 1; min-width: 140px; }

  .highlight-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
  }

  .highlight-num span { color: var(--accent); }

  .highlight-label {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }


  /* NAV BASE */
.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LINKS desktop */
.nav-links{
  display:flex;
  gap:20px;
  list-style:none;
}

/* toggle button hidden on desktop */
.nav-toggle{
  display:none;
  font-size:28px;
  background:none;
  border:none;
  color:inherit;
  cursor:pointer;
}

/* MOBILE */
@media (max-width: 768px){

  .nav-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:70px;
    left:0;
    right:0;
    background:#0b0b0f;
    flex-direction:column;
    gap:15px;
    padding:20px;
    display:none;
    border-bottom:1px solid #222;
  }

  .nav-links.active{
    display:flex;
  }
}

.hero-name{
  display:flex;
  align-items:center;
  gap:16px;
  font-size: clamp(32px, 5vw, 64px);
  line-height:1.1;
}

/* avatar */
.hero-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
  border:2px solid var(--accent, #00ff99);
  box-shadow: 0 0 20px rgba(0,255,153,0.2);
}

.hero-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* text */
.hero-text{
  display:inline-block;
}

/* MOBILE */
@media (max-width: 768px){
  .hero-name{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .hero-avatar{
    width:52px;
    height:52px;
  }
}