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

  :root {
    --bg:        #0c0c0f;
    --surface:   #13131a;
    --surface2:  #1c1c28;
    --border:    rgba(255,255,255,0.07);
    --accent:    #7fffb2;
    --accent2:   #5b8fff;
    --text:      #e8e8f0;
    --muted:     #7a7a95;
    --card-bg:   #16161f;
    --radius:    14px;
    --nav-h:     64px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Mono', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  a{
    text-decoration: none;
    color: var(--text);
  }
  a:active{
    color: var(--accent);
  }

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

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1rem, 5vw, 3rem);
    background: rgba(12,12,15,0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .nav-logo span { color: var(--accent); }

  .nav-links {
    display: flex; gap: clamp(0.75rem, 3vw, 2rem);
    list-style: none;
  }
  .nav-links a {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
    cursor: pointer;
  }
  .nav-links a:hover { color: var(--accent); }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 8vw, 6rem) 4rem;
    position: relative;
  }

  .hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.6rem;
  }
  .hero-tag::before {
    content: '';
    display: inline-block;
    width: 24px; height: 1px;
    background: var(--accent);
  }

  .hero-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.5rem;
  }
  .hero-name em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  }

  .hero-desc {
    max-width: 520px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2.5rem;
  }

  .hero-ctas {
    display: flex; gap: 1rem; flex-wrap: wrap;
  }

  .btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
  }
  .btn-primary {
    background: var(--accent);
    color: #0c0c0f;
    font-weight: 500;
  }
  .btn-primary:hover { background: #a0ffcc; transform: translateY(-1px); }
  .btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

  /* Floating badge */
  .hero-badge {
    position: absolute;
    right: clamp(1.5rem, 8vw, 6rem);
    bottom: 3rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.5s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
  }

  /* ─── SECTIONS ─── */
  section {
    padding: 6rem clamp(1.5rem, 8vw, 6rem);
    position: relative;
  }

  .section-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.6rem;
  }
  .section-label::before {
    content: '';
    display: inline-block;
    width: 18px; height: 1px;
    background: var(--accent);
  }

  .section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    line-height: 1.1;
  }

  /* ─── DIVIDER ─── */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 clamp(1.5rem, 8vw, 6rem);
  }

  /* ─── ABOUT ─── */
  #about .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  @media (max-width: 700px) {
    #about .about-grid { grid-template-columns: 1fr; }
  }

  .about-text {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--muted);
  }
  .about-text a { color: var(--accent); text-decoration: none; }
  .about-text u { text-decoration: none; color: var(--text); font-weight: 500; }
  .about-text br { display: block; content: ''; margin-top: 0.3em; }

  .skills-block {
    display: flex; flex-direction: column; gap: 1.25rem;
  }
  .skill-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
  }
  .skill-row-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .skill-pills {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
  }
  .pill {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text);
  }

  /* ─── PROJECTS ─── */
  #projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 1.5rem;
  }

  .project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    display: flex; flex-direction: column;
  }
  .project-card:hover {
    border-color: rgba(127, 255, 178, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  }

  .card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface2);
    position: relative;
  }
  .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: brightness(0.85) saturate(0.9);
  }
  .project-card:hover .card-image img {
    transform: scale(1.04);
    filter: brightness(0.95) saturate(1);
  }

  .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex; flex-direction: column; gap: 0.75rem;
  }

  .card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
  }

  .card-desc {
    font-size: 0.8rem;
    line-height: 1.75;
    color: var(--muted);
    flex: 1;
  }
  .card-desc i { color: var(--accent2); font-style: italic; }
  .card-desc a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
  }
  .card-desc a:hover { text-decoration: underline; }

  .card-footer {
    padding: 0 1.5rem 1.25rem;
    display: flex; justify-content: flex-end;
  }
  .card-link {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    display: flex; align-items: center; gap: 0.35rem;
    transition: gap 0.2s;
  }
  .card-link:hover { gap: 0.6rem; }
  .card-link::after { content: '→'; }

  /* ─── CONTACT ─── */
  #contact .contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3.5rem);
    max-width: 640px;
    position: relative;
    overflow: hidden;
  }
  #contact .contact-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127,255,178,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .contact-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: padding-left 0.2s;
    position: relative;
  }
  .contact-row:last-child { border-bottom: none; }
  .contact-row:hover { padding-left: 0.5rem; }

  .contact-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .contact-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.1rem;
  }
  .contact-value {
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
  }
  .contact-value:hover { color: var(--accent); }

  .copy-hint {
    margin-left: auto;
    font-size: 0.68rem;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
  }
  .contact-row:hover .copy-hint { opacity: 1; }

  /* ─── TOAST ─── */
  .toast {
    position: fixed;
    bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(1rem);
    background: var(--accent);
    color: #0c0c0f;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999;
    white-space: nowrap;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .toast.error { background: #ff7f7f; }

  /* ─── FOOTER ─── */
  footer {
    padding: 2.5rem clamp(1.5rem, 8vw, 6rem);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
  }
  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--accent); }

  /* ─── ANIMATIONS ─── */
  .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
  @keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
    }
  @keyframes blinkTextCursor {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .cursor {
        display: inline-block;
        animation: blinkTextCursor 1000ms infinite normal;
    }

  /* ─── MOBILE NAV HAMBURGER ─── */
  .hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px;
    background: none; border: none;
  }
  .hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
  }

  @media (max-width: 560px) {
    .hamburger { display: flex; }
    .nav-links {
      position: fixed;
      top: var(--nav-h); left: 0; right: 0;
      background: rgba(12,12,15,0.97);
      backdrop-filter: blur(18px);
      flex-direction: column;
      padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
      gap: 1.5rem;
      border-bottom: 1px solid var(--border);
      transform: translateY(-110%);
      transition: transform 0.35s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { font-size: 0.95rem; }
  }