@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');


/* ================= VARIABLES ================= */

:root {
  --bg: #090a0d;
  --surface: #101217;
  --surface-2: #151820;

  --text: #f4f5f7;
  --muted: #9a9da7;

  --line: #252934;

  --accent: #8b5cf6;
  --accent-light: #a78bfa;

  --max-width: 1120px;
}


/* ================= RESET ================= */

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


html {
  scroll-behavior: smooth;
}


body {
  background: var(--bg);
  color: var(--text);

  font-family: "DM Sans", sans-serif;

  line-height: 1.6;
}


a {
  color: inherit;
  text-decoration: none;
}


/* ================= HEADER ================= */

.header {

  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  height: 76px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;

  z-index: 10;
}


.logo {

  font-family: "Space Grotesk", sans-serif;

  font-size: 1.45rem;

  font-weight: 700;
}


.logo span {
  color: var(--accent-light);
}


.nav {

  display: flex;

  gap: 30px;
}


.nav a {

  color: var(--muted);

  font-size: 0.92rem;

  transition: 0.2s ease;
}


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


/* ================= MOBILE MENU ================= */

.menu-btn {

  display: none;

  background: none;

  border: none;

  cursor: pointer;
}


.menu-btn span {

  display: block;

  width: 25px;

  height: 2px;

  background: var(--text);

  margin: 5px;
}


/* ================= GENERAL ================= */

.section {

  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  margin: auto;

  padding: 110px 0;
}


.eyebrow {

  color: var(--accent-light);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.18em;

  margin-bottom: 16px;
}


h1,
h2,
h3 {

  font-family: "Space Grotesk", sans-serif;

  line-height: 1.1;
}


/* ================= HERO ================= */

.hero {

  min-height: calc(100vh - 76px);

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 70px;

  align-items: center;

  padding-top: 70px;
}


h1 {

  max-width: 720px;

  font-size: clamp(
    3.2rem,
    7vw,
    5.8rem
  );

  letter-spacing: -0.06em;
}


h1 span {
  color: var(--accent-light);
}


.hero-text {

  max-width: 650px;

  margin-top: 26px;

  color: var(--muted);

  font-size: 1.08rem;
}


/* ================= BUTTONS ================= */

.hero-buttons {

  display: flex;

  gap: 12px;

  margin-top: 32px;
}


.btn {

  padding: 12px 19px;

  border: 1px solid var(--line);

  border-radius: 8px;

  font-weight: 600;

  font-size: 0.9rem;

  transition: 0.2s ease;
}


.btn:hover {

  transform: translateY(-2px);

  border-color: var(--accent-light);
}


.btn.primary {

  background: var(--text);

  color: var(--bg);
}


.btn.secondary {

  background: transparent;
}


/* ================= SOCIALS ================= */

.socials {

  display: flex;

  gap: 22px;

  margin-top: 28px;

  color: var(--muted);

  font-size: 0.88rem;
}


.socials a:hover {

  color: var(--accent-light);
}


/* ================= CODE CARD ================= */

.hero-card {

  display: flex;

  justify-content: flex-end;
}


.code-window {

  width: 100%;

  max-width: 470px;

  border: 1px solid var(--line);

  border-radius: 14px;

  overflow: hidden;

  background: var(--surface);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.35);
}


.window-top {

  display: flex;

  gap: 7px;

  padding: 15px;

  border-bottom: 1px solid var(--line);
}


.window-top span {

  width: 9px;

  height: 9px;

  border-radius: 50%;

  background: #454954;
}


pre {

  padding: 28px;

  overflow-x: auto;

  color: #d6d8df;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: 0.85rem;

  line-height: 1.8;
}


.keyword {
  color: #c084fc;
}


.string {
  color: #86efac;
}


/* ================= SECTION HEADING ================= */

.section-heading {

  margin-bottom: 45px;
}


.section-heading h2 {

  font-size: clamp(
    2.2rem,
    5vw,
    3.8rem
  );

  letter-spacing: -0.045em;
}


/* ================= ABOUT ================= */

.about-grid {

  display: grid;

  grid-template-columns: 1.3fr 0.7fr;

  gap: 80px;

  align-items: center;
}


.about-grid p {

  max-width: 680px;

  color: var(--muted);

  font-size: 1.05rem;

  margin-bottom: 18px;
}


/* ================= STATS ================= */

.about-stats {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  border: 1px solid var(--line);

  background: var(--line);
}


.stat {

  padding: 25px;

  background: var(--surface);
}


.stat strong {

  display: block;

  font-family: "Space Grotesk", sans-serif;

  color: var(--accent-light);

  font-size: 1.3rem;

  margin-bottom: 8px;
}


.stat span {

  color: var(--muted);
}


/* ================= SKILLS ================= */

.skills-grid {

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 14px;
}


.skill-card {

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 26px;

  transition: 0.25s ease;
}


.skill-card:hover {

  transform: translateY(-5px);

  border-color: #3b3f4c;
}


.skill-number {

  color: var(--accent-light);

  font-size: 0.75rem;

  font-weight: 700;
}


.skill-card h3 {

  margin: 30px 0 10px;

  font-size: 1.25rem;
}


.skill-card p {

  color: var(--muted);

  font-size: 0.9rem;
}


/* ================= PROJECTS ================= */

.projects-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 14px;
}


.project-card {

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 26px;

  transition: 0.25s ease;
}


.project-card:hover {

  transform: translateY(-5px);

  border-color: #3b3f4c;
}


.project-top {

  display: flex;

  align-items: center;

  justify-content: space-between;
}


.project-icon {

  color: var(--accent-light);

  font-size: 0.75rem;

  font-weight: 700;
}


.tag {

  color: var(--muted);

  font-size: 0.7rem;
}


.project-card h3 {

  margin: 30px 0 10px;

  font-size: 1.25rem;
}


.project-card p {

  color: var(--muted);

  font-size: 0.9rem;
}


.project-card a {

  display: inline-block;

  margin-top: 25px;

  color: var(--accent-light);

  font-size: 0.86rem;

  font-weight: 600;
}


/* ================= CONTACT ================= */

.contact-section {

  padding-bottom: 90px;
}


.contact-box {

  padding: 65px;

  border: 1px solid var(--line);

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      var(--surface),
      #0d0e12
    );
}


.contact-box h2 {

  font-size: clamp(
    2.5rem,
    5vw,
    4.3rem
  );

  letter-spacing: -0.05em;
}


.contact-box > p:not(.eyebrow) {

  max-width: 550px;

  color: var(--muted);

  margin: 18px 0 25px;
}


.email-link {

  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(
    1.2rem,
    3vw,
    2rem
  );

  font-weight: 600;
}


.email-link:hover {

  color: var(--accent-light);
}


.contact-links {

  display: flex;

  gap: 22px;

  margin-top: 28px;

  color: var(--muted);

  font-size: 0.9rem;
}


/* ================= FOOTER ================= */

.footer {

  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  margin: auto;

  padding: 25px 0 35px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 0.8rem;
}


/* ================= TABLET ================= */

@media (max-width: 850px) {

  .hero,
  .about-grid {

    grid-template-columns: 1fr;
  }


  .hero {

    gap: 50px;
  }


  .hero-card {

    justify-content: flex-start;
  }


  .skills-grid {

    grid-template-columns: 1fr 1fr;
  }


  .projects-grid {

    grid-template-columns: 1fr;
  }


  .menu-btn {

    display: block;
  }


  .nav {

    display: none;

    position: absolute;

    top: 68px;

    right: 0;

    flex-direction: column;

    width: 210px;

    background: var(--surface);

    border: 1px solid var(--line);

    border-radius: 10px;

    overflow: hidden;
  }


  .nav.open {

    display: flex;
  }


  .nav a {

    padding: 13px 16px;

    border-bottom: 1px solid var(--line);
  }

}


/* ================= MOBILE ================= */

@media (max-width: 520px) {

  .section {

    padding: 80px 0;
  }


  .header,
  .section,
  .footer {

    width: min(
      calc(100% - 28px),
      var(--max-width)
    );
  }


  h1 {

    font-size: 3rem;
  }


  .hero-buttons {

    flex-direction: column;

    align-items: stretch;
  }


  .skills-grid {

    grid-template-columns: 1fr;
  }


  .contact-box {

    padding: 35px 24px;
  }


  pre {

    padding: 20px;

    font-size: 0.72rem;
  }

}