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

  :root {
    --bg: #0d0d0d;
    --bg2: #141414;
    --surface: #1a1a1a;
    --border: rgba(255,255,255,0.08);
    --text: #f0ede8;
    --muted: #888580;
    --accent: #c8f080;
    --accent2: #80d4f0;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  html { scroll-behavior: smooth; }

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

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 3rem;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
  }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text); }

  nav a{
    display: block;
    text-decoration: none;
    color: inherit;
  }
  /* HERO */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(200,240,128,0.3);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    width: fit-content;
  }
  .hero-name {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    max-width: 800px;
  }
  .hero-name span { color: var(--accent); }
  .hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
  }
  .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
  }
  .btn-primary { background: var(--accent); color: #0d0d0d; }
  .btn-primary:hover { background: #d4f590; transform: translateY(-1px); }
  .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
  .btn-outline:hover { border-color: rgba(255,255,255,0.25); background: var(--surface); }

  .hero-scroll {
    position: absolute; bottom: 2.5rem; left: 3rem;
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
  }
  .scroll-line { width: 40px; height: 1px; background: var(--muted); }

  /* SECTIONS */
  section { padding: 6rem 3rem; }
  .section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 3rem;
    max-width: 500px;
  }

  /* ABOUT */
  #about { background: var(--bg2); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 900px;
  }
  .about-text { color: #aaa; font-weight: 300; line-height: 1.8; }
  .about-text p + p { margin-top: 1rem; }
  .skills-list {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 2rem;
  }
  .skill-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 400;
  }
  .about-stats { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 0.5rem; }
  .stat { border-left: 2px solid var(--accent); padding-left: 1.25rem; }
  .stat-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
  }
  .stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

  /* PROJECTS */
  #projects { background: var(--bg); }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
  }
  .project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.75rem;
    border: 2px solid #d4f590;
    border-radius: 25px;
  }

  .project-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-3px); }
  .project-num {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  .project-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
  }
  .project-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; font-weight: 300; }
  .project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
  .project-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    background: rgba(200,240,128,0.08);
    color: var(--accent);
    border: 1px solid rgba(200,240,128,0.15);
  }

  /* CONTACT */
  #contact { background: var(--bg2); }
  .contact-inner { max-width: 560px; }
  .contact-email {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .contact-email:hover { opacity: 0.75; }
  .phone-num {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .phone-num:hover { opacity: 0.75; }
  .social-links { display: flex; gap: 1.5rem; }
  .social-link {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }
  .social-link:hover { color: var(--text); border-color: var(--text); }

  /* FOOTER */
  footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
  }

  .footer-disclaimer {
    color: var(--muted);
    font-size: 0.75rem;
  }

  /* DECORATION */
  .hero-glow {
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,240,128,0.06) 0%, transparent 65%);
    pointer-events: none;
  }

  @media (max-width: 640px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.25rem; }
    section, #hero { padding-left: 1.5rem; padding-right: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; }
    .hero-scroll { display: none; }
  }

  /* project_1 */
  #project-1 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 10px;
  
}

#project-1 p {
  margin-bottom: 1.5rem;
}

/* Headings */
#project-1 h2 {
  margin-bottom: 0.5rem;
}

#project-1 h3 {
  margin-bottom: 1rem;
}

/* List */
#project-1 ul {
  margin-bottom: 1.5rem;
}

/* Space between list items */
#project-1 li {
  margin-bottom: 0.5rem;
}
 
/* Text column — left side */
#project-1 > div:first-child {
  flex: 1 1 55%;
  text-align: left;
  
}
 
/* Image column — right side */
#project-1 > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
 
#project-1 > div:last-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
 
/* ── Responsive: stack on small screens ── */
@media (max-width: 768px) {
  #project-1 {
    flex-direction: column;
  }
 
  #project-1 > div:last-child {
    align-items: center;
  }
}


/* project_2 */
#project-2 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 10px;
}

#project-2 p {
  margin-bottom: 1.5rem;
}

#project-2 h2 {
  margin-bottom: 0.5rem;
}

#project-2 h3 {
  margin-bottom: 1rem;
}

#project-2 ul,
#project-2 ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

#project-2 li {
  margin-bottom: 0.5rem;
}

#project-2 > div:first-child {
  flex: 1 1 55%;
  text-align: left;
}

#project-2 > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

#project-2 > div:last-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  #project-2 {
    flex-direction: column;
  }

  #project-2 > div:last-child {
    align-items: center;
  }
}

/* Project disclaimer */
.project-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Findings table */
.findings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.85rem;
}

.findings-table th,
.findings-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.findings-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.findings-table td:last-child {
  font-weight: 600;
  color: #ff6b6b;
}

.findings-table tr:last-child td {
  border-bottom: none;
}

.findings-table tr:hover td {
  background: var(--surface);
}

/* Command blocks */
.cmd-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Inline code */
.inline-code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  color: var(--accent2);
}

/* Sidebar cards — shared with project 3 */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}
.sidebar-card-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.scope-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.scope-row:last-child { border-bottom: none; }
.scope-key { color: var(--muted); font-weight: 300; }
.scope-val {
  color: var(--text);
  font-weight: 500;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sidebar-finding-text {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 300;
  line-height: 1.7;
}

/* project_3 */
#project-3 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 10px;
}

#project-3 p {
  margin-bottom: 1.5rem;
}

#project-3 h2 {
  margin-bottom: 0.5rem;
}

#project-3 h3 {
  margin-bottom: 1rem;
}

#project-3 ul,
#project-3 ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

#project-3 li {
  margin-bottom: 0.5rem;
}

#project-3 > div:first-child {
  flex: 1 1 55%;
  text-align: left;
}

#project-3 > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

#project-3 > div:last-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 70px;
}

@media (max-width: 768px) {
  #project-3 {
    flex-direction: column;
  }

  #project-3 > div:last-child {
    align-items: center;
  }
}

/* project_wireshark */
#project-wireshark {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 10px;
}

#project-wireshark p {
  margin-bottom: 1.5rem;
}

#project-wireshark h2 {
  margin-bottom: 0.5rem;
}

#project-wireshark h3 {
  margin-bottom: 1rem;
}

#project-wireshark ul,
#project-wireshark ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

#project-wireshark li {
  margin-bottom: 0.5rem;
}

#project-wireshark > div:first-child {
  flex: 1 1 55%;
  text-align: left;
}

#project-wireshark > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

#project-wireshark > div:last-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 70px;
}

@media (max-width: 768px) {
  #project-wireshark {
    flex-direction: column;
  }

  #project-wireshark > div:last-child {
    align-items: center;
  }
}

/* wireshark2 */
#wireshark2 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 10px;
}

#wireshark2 p {
  margin-bottom: 1.5rem;
}

#wireshark2 h2 {
  margin-bottom: 0.5rem;
}

#wireshark2 h3 {
  margin-bottom: 1rem;
}

#wireshark2 ul,
#wireshark2 ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

#wireshark2 li {
  margin-bottom: 0.5rem;
}

#wireshark2 > div:first-child {
  flex: 1 1 55%;
  text-align: left;
}

#wireshark2 > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

#wireshark2 > div:last-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: 70px;
}

@media (max-width: 768px) {
  #wireshark2 {
    flex-direction: column;
  }

  #wireshark2 > div:last-child {
    align-items: center;
  }
}

/* project-5 */
#project-5 {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 10px;
}

#project-5 p {
  margin-bottom: 1.5rem;
}

#project-5 h2 {
  margin-bottom: 0.5rem;
}

#project-5 h3 {
  margin-bottom: 1rem;
}

#project-5 ul,
#project-5 ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

#project-5 li {
  margin-bottom: 0.5rem;
}

#project-5 > div:first-child {
  flex: 1 1 55%;
  text-align: left;
}

#project-5 > div:last-child {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

#project-5 > div:last-child img {
  width: 85%;
  max-width: 85%;
  height: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  #project-5 {
    flex-direction: column;
  }

  #project-5 > div:last-child {
    align-items: center;
  }
}