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

:root {
  --bg:      #0c0c0c;
  --text:    #ffffff;
  --muted:   #888;
  --faint:   #c8c5bf;
  --rule:    #1b1b1b;
  --sans:    'DM Sans', sans-serif;
  --serif:   'DM Serif Display', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav-head{
  position: sticky;
  top: 0px;
  z-index: 0px;
  background-color: var(--bg);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  border-bottom: 1px solid var(--rule);
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
}

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

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

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

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .15s;
  transition: all ease-in-out 0.3s;
}

.nav-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0px 1px 10px rgba(255, 255, 255, 0.404);
}

/* ── HERO ── */

.hero-all{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  padding: 100px 60px 90px;
  max-width: 820px;
}

.hero-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -.5px;
  margin-bottom: 30px;
  color: var(--text);
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.link-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  border-radius: 4px;
  padding: 9px 20px;
  transition: opacity .15s;
  transition: all ease-in-out 0.3s;
}

.link-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0px 1px 10px rgba(255, 255, 255, 0.404);
}

.link-secondary {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.link-secondary:hover {
  color: var(--text);
}

/* ── HERO SOCIALS ── */

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.hero-socials a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}

.hero-socials a:hover {
  color: var(--text);
  border-color: var(--text);
}

.profile-image{
  padding: 60px;
}

.pfp-img{
  border-radius: 50%;
}

/* ── SECTION WRAPPER ── */

.section {
  padding: 72px 60px;
  border-top: 1px solid var(--rule);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 40px;
}

/* ── SERVICES ── */

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.service-item:nth-child(odd) {
  padding-right: 48px;
  border-right: 1px solid var(--rule);
}

.service-item:nth-child(even) {
  padding-left: 48px;
}

.service-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.service-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── EXPERIENCE ── */

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 40px;
}

.exp-meta {
  padding-top: 2px;
}

.exp-date {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 4px;
}

.exp-type {
  font-size: 12px;
  color: var(--muted);
}

.exp-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

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

.exp-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 14px;
}

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

.exp-tag {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 3px 9px;
  background: var(--bg);
}

/* ── EDUCATION ── */

.edu-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 40px;
}

.edu-meta {
  padding-top: 2px;
}

.edu-date {
  font-size: 12px;
  color: var(--faint);
}

.edu-school {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

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

.edu-gpa {
  font-size: 13px;
  color: var(--text);
}

.edu-gpa span {
  color: var(--muted);
}

/* ── PROJECTS ── */

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.project-item:last-child {
  border-bottom: none;
}

.project-left {
  flex: 1;
}

.project-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 12px;
}

.project-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color .15s, border-color .15s;
}

.project-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ── SKILLS ── */

.skills-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.skills-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.skills-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-group li {
  font-size: 13px;
  color: var(--muted);
}

/* ── ABOUT ── */

.about-body {
  max-width: 560px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.about-body p + p {
  margin-top: 16px;
}

/* ── FOOTER ── */

footer {
  padding: 32px 60px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 13px;
  color: var(--muted);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

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

/* ── RESPONSIVE ── */

@media (max-width: 800px) {
  .profile-image{
    display: none;
  }

  nav {
    padding: 22px 28px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 64px 28px 56px;
  }

  .section {
    padding: 56px 28px;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .service-item:nth-child(even) {
    padding-left: 0;
  }

  .service-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--rule);
  }

  .service-item:last-child {
    border-bottom: none;
  }

  .exp-item,
  .edu-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .skills-groups {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  footer {
    padding: 28px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .skills-groups {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: 48px;
  }
}
