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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: #0b0b0d;
  color: #f5f5f5;

  line-height: 1.6;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

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

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;

  height: 72px;

  background: rgba(11, 11, 13, 0.88);

  backdrop-filter: blur(14px);

  border-bottom: 1px solid #202024;
}

.nav-inner {
  height: 100%;

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

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.logo span {
  display: inline-flex;

  width: 30px;
  height: 30px;

  align-items: center;
  justify-content: center;

  margin-right: 6px;

  background: #fff;
  color: #0b0b0d;

  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #8f8f98;
  font-size: 14px;

  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn,
.menu-btn {
  width: 38px;
  height: 38px;

  border: 1px solid #29292e;
  background: #111114;
  color: #fff;

  border-radius: 8px;

  cursor: pointer;
}

.menu-btn {
  display: none;
}


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

.hero {
  min-height: calc(100vh - 72px);

  display: flex;
  align-items: center;

  border-bottom: 1px solid #202024;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 80px;

  align-items: center;

  padding: 100px 0;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 30px;

  padding: 7px 11px;

  border: 1px solid #27272c;
  border-radius: 50px;

  color: #aaaab2;

  font-size: 12px;
}

.availability span {
  width: 7px;
  height: 7px;

  background: #6ee7a0;

  border-radius: 50%;
}

.eyebrow {
  color: #777780;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 2px;

  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(60px, 8vw, 105px);

  line-height: 0.95;

  letter-spacing: -6px;

  margin-bottom: 25px;
}

.hero h1 span {
  color: #85858d;
}

.hero h2 {
  max-width: 650px;

  font-size: clamp(24px, 3vw, 38px);

  line-height: 1.2;

  letter-spacing: -1.5px;
}

.typing {
  color: #888;
}

.hero-description {
  max-width: 580px;

  margin-top: 25px;

  color: #92929a;

  font-size: 16px;
}

.hero-buttons {
  display: flex;
  gap: 12px;

  margin-top: 35px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 46px;

  padding: 0 20px;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: #0b0b0d;
}

.btn-primary:hover {
  background: #dedee2;
}

.btn-secondary {
  border: 1px solid #303036;
  background: #111114;
}

.btn-secondary:hover {
  background: #19191d;
}

.social-links {
  display: flex;
  gap: 22px;

  margin-top: 35px;
}

.social-links a {
  color: #777780;

  font-size: 13px;

  border-bottom: 1px solid transparent;
}

.social-links a:hover {
  color: #fff;
  border-color: #fff;
}


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

.hero-card {
  display: flex;
  justify-content: center;
}

.code-window {
  width: 100%;
  max-width: 470px;

  overflow: hidden;

  background: #101013;

  border: 1px solid #29292e;

  border-radius: 12px;

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

.window-bar {
  height: 46px;

  display: flex;
  align-items: center;

  padding: 0 15px;

  border-bottom: 1px solid #25252a;

  color: #66666f;

  font-size: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;

  margin-right: auto;
}

.window-dots i {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #36363c;
}

.code-content {
  padding: 30px;

  color: #777780;

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

  font-size: 13px;

  line-height: 2;
}

.indent {
  padding-left: 25px;
}

.code-purple {
  color: #c792ea;
}

.code-blue {
  color: #82aaff;
}

.code-orange {
  color: #ecc48d;
}

.cursor {
  display: inline-block;

  width: 7px;
  height: 15px;

  margin-left: 3px;

  background: #aaa;

  vertical-align: middle;

  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


/* =========================
   SECTIONS
========================= */

.section {
  padding: 120px 0;

  border-bottom: 1px solid #202024;
}

.section-heading {
  margin-bottom: 55px;
}

.section-heading p {
  margin-bottom: 8px;

  color: #777780;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 2px;
}

.section-heading h2 {
  font-size: clamp(32px, 5vw, 50px);

  line-height: 1.05;

  letter-spacing: -2px;
}


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

.about-grid {
  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: 100px;
}

.about-text {
  max-width: 700px;
}

.about-text p {
  color: #9999a2;

  font-size: 18px;

  margin-bottom: 20px;
}

.about-text strong {
  color: #fff;
}

.about-stats {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  background: #29292e;

  border: 1px solid #29292e;
}

.stat {
  min-height: 140px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 25px;

  background: #0b0b0d;
}

.stat strong {
  font-size: 38px;

  letter-spacing: -2px;
}

.stat span {
  color: #777780;

  font-size: 12px;
}


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

.projects-grid {
  display: grid;

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

  gap: 16px;
}

.project-card {
  position: relative;

  min-height: 390px;

  padding: 28px;

  background: #101013;

  border: 1px solid #29292e;

  border-radius: 10px;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);

  border-color: #4b4b52;
}

.project-top {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.project-icon {
  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid #303036;

  border-radius: 8px;

  color: #ddd;

  font-size: 20px;
}

.project-link {
  color: #777780;

  font-size: 22px;
}

.project-link:hover {
  color: #fff;
}

.project-number {
  display: block;

  margin-top: 55px;

  color: #55555c;

  font-size: 11px;
  font-weight: 700;
}

.project-card h3 {
  margin-top: 8px;

  font-size: 24px;

  letter-spacing: -0.8px;
}

.project-card p {
  margin-top: 12px;

  color: #81818a;

  font-size: 14px;
}

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 28px;
}

.tags span {
  padding: 5px 8px;

  border: 1px solid #29292e;

  border-radius: 5px;

  color: #85858d;

  font-size: 10px;
}


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

.skills-grid {
  display: grid;

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

  gap: 10px;
}

.skill {
  display: flex;

  align-items: center;

  gap: 13px;

  padding: 18px;

  border: 1px solid #25252a;

  background: #0e0e11;

  border-radius: 8px;
}

.skill-icon {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid #303036;

  border-radius: 7px;

  color: #ddd;

  font-size: 11px;
  font-weight: 800;
}

.skill strong {
  display: block;

  font-size: 13px;
}

.skill small {
  color: #66666f;

  font-size: 10px;
}


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

.contact-section {
  border-bottom: none;
}

.contact-box {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;

  padding: 60px;

  border: 1px solid #29292e;

  background: #101013;

  border-radius: 12px;
}

.contact-box h2 {
  font-size: clamp(38px, 5vw, 62px);

  line-height: 1;

  letter-spacing: -3px;
}

.contact-box p:last-child {
  max-width: 500px;

  margin-top: 20px;

  color: #7f7f87;
}


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

footer {
  border-top: 1px solid #202024;

  padding: 25px 0;

  color: #5f5f67;

  font-size: 11px;
}

.footer-inner {
  display: flex;

  justify-content: space-between;

  gap: 20px;
}


/* =========================
   LIGHT MODE
========================= */

body.light {
  background: #f7f7f8;
  color: #111114;
}

body.light .navbar {
  background: rgba(247, 247, 248, 0.9);
  border-color: #dddde2;
}

body.light .logo span {
  background: #111114;
  color: #fff;
}

body.light .nav-links a {
  color: #777780;
}

body.light .nav-links a:hover,
body.light .nav-links a.active {
  color: #111114;
}

body.light .theme-btn,
body.light .menu-btn,
body.light .btn-secondary {
  background: #fff;
  color: #111114;
  border-color: #dddde2;
}

body.light .hero,
body.light .section,
body.light .navbar,
body.light footer {
  border-color: #dddde2;
}

body.light .hero h1 span {
  color: #777780;
}

body.light .hero-description,
body.light .about-text p,
body.light .project-card p {
  color: #66666f;
}

body.light .code-window,
body.light .project-card,
body.light .skill,
body.light .contact-box,
body.light .stat {
  background: #fff;
  border-color: #dddde2;
}

body.light .code-window {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

body.light .code-content {
  color: #66666f;
}

body.light .project-card:hover {
  border-color: #aaaab2;
}

body.light .project-icon,
body.light .tags span,
body.light .skill-icon {
  border-color: #dddde2;
}

body.light .contact-box p:last-child {
  color: #66666f;
}

body.light .btn-primary {
  background: #111114;
  color: #fff;
}


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

@media (max-width: 850px) {

  .nav-links {
    position: absolute;

    top: 72px;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    gap: 0;

    padding: 10px 20px 20px;

    background: #0b0b0d;

    border-bottom: 1px solid #29292e;
  }

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

  .nav-links a {
    padding: 13px 0;
  }

  .menu-btn {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;

    gap: 50px;

    padding: 80px 0;
  }

  .hero h1 {
    letter-spacing: -4px;
  }

  .hero-card {
    justify-content: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-box {
    flex-direction: column;

    align-items: flex-start;

    padding: 35px;
  }

  body.light .nav-links {
    background: #f7f7f8;
    border-color: #dddde2;
  }
}


@media (max-width: 500px) {

  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .section {
    padding: 80px 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
