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

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

html {
  scroll-behavior: smooth;
}

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

  background: #0a0a0b;
  color: #f4f4f5;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

::selection {
  background: #ffffff;
  color: #09090b;
}

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

:root {
  --bg: #0a0a0b;
  --bg-soft: #101012;
  --card: #111113;
  --card-hover: #161618;

  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --text-muted: #71717a;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);

  --white: #ffffff;

  --container: 1120px;

  --radius: 18px;
  --radius-small: 12px;

  --transition: 220ms ease;
}

/* =========================================================
       BACKGROUND
    ========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 255, 255, 0.07),
      transparent 35%
    ),
    radial-gradient(
      circle at 100% 50%,
      rgba(255, 255, 255, 0.025),
      transparent 30%
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.025;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);

  background-size: 60px 60px;

  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

/* =========================================================
       GLOBAL
    ========================================================= */

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

section {
  padding: 110px 0;
}

.section-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 700px;
}

.section-description {
  color: var(--text-soft);
  max-width: 600px;
  margin-top: 18px;
  font-size: 16px;
}

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

header {
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background var(--transition),
    border-color var(--transition),
    backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border-strong);
  border-radius: 9px;

  background: #151517;

  font-size: 13px;
}

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

.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color var(--transition);
}

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

.nav-button {
  display: inline-flex;
  align-items: center;

  padding: 9px 15px;

  border: 1px solid var(--border-strong);
  border-radius: 10px;

  background: #151517;

  font-size: 13px;
  font-weight: 600;

  transition:
    background var(--transition),
    transform var(--transition);
}

.nav-button:hover {
  background: #1d1d20;
  transform: translateY(-1px);
}

.menu-button {
  display: none;

  width: 40px;
  height: 40px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: transparent;
  color: var(--text);

  cursor: pointer;
}

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

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding-top: 100px;
  padding-bottom: 70px;
}

.hero-content {
  max-width: 850px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 7px 11px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--text-soft);
  font-size: 13px;

  margin-bottom: 26px;
}

.status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #d4d4d8;

  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.hero h1 {
  font-size: clamp(52px, 8vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 750;
  max-width: 900px;
}

.hero h1 span {
  color: var(--text-muted);
}

.hero-description {
  margin-top: 28px;

  color: var(--text-soft);

  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;

  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 46px;
  padding: 0 18px;

  border-radius: 11px;

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

  cursor: pointer;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

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

.button-primary {
  background: var(--white);
  color: #09090b;
}

.button-primary:hover {
  background: #e4e4e7;
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;

  margin-top: 55px;

  color: var(--text-muted);
  font-size: 13px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "•";
  color: #a1a1aa;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;

  margin-top: 55px;
}

.about-intro {
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.about-intro strong {
  color: var(--white);
}

.about-text {
  color: var(--text-soft);
  margin-top: 20px;
}

.about-right {
  display: grid;
  gap: 18px;
}

.info-card {
  padding: 24px;

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

  background: rgba(255, 255, 255, 0.02);

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.info-card:hover {
  background: var(--card);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.info-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.info-card p {
  color: var(--text-soft);
  font-size: 14px;
}

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

.skills-grid {
  margin-top: 55px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.skill-card {
  min-height: 180px;

  padding: 24px;

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

  background: var(--card);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition:
    transform var(--transition),
    border-color var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.skill-number {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 12px;
}

.skill-card h3 {
  margin-top: 35px;
  font-size: 19px;
}

.skill-card p {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 5px;
}

.learning {
  border-style: dashed;
  background: transparent;
}

.learning h3 {
  color: #d4d4d8;
}

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

.projects {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.projects-grid {
  margin-top: 55px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;

  min-height: 320px;

  padding: 27px;

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

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.015)
  );

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition:
    transform var(--transition),
    border-color var(--transition);
}

.project-card::before {
  content: "";

  position: absolute;
  width: 220px;
  height: 220px;

  right: -100px;
  top: -100px;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-type {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-arrow {
  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  color: var(--text-soft);

  transition: transform var(--transition);
}

.project-card:hover .project-arrow {
  transform: translate(2px, -2px);
}

.project-card h3 {
  font-size: 27px;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}

.project-card p {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 450px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 24px;
}

.tag {
  padding: 5px 9px;

  border: 1px solid var(--border);
  border-radius: 7px;

  color: var(--text-muted);
  font-size: 11px;
}

.project-note {
  margin-top: 30px;

  padding: 17px 20px;

  border-left: 2px solid #71717a;

  color: var(--text-muted);

  font-size: 13px;
}

/* =========================================================
       JOURNEY
    ========================================================= */

.journey-list {
  margin-top: 55px;

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

.journey-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 25px;

  padding: 25px 0;

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

.journey-number {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 13px;
}

.journey-item h3 {
  font-size: 18px;
}

.journey-item p {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 3px;
}

.journey-status {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.journey-status.current {
  color: var(--text);
}

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

.contact {
  text-align: center;
}

.contact .section-title {
  margin-left: auto;
  margin-right: auto;
}

.contact .section-description {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 30px;
}

.email-display {
  margin-top: 28px;

  color: var(--text-muted);
  font-size: 13px;
}

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

footer {
  padding: 28px 0;

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

  color: var(--text-muted);
  font-size: 12px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

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

/* =========================================================
       SCROLL REVEAL
    ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  section {
    padding: 80px 0;
  }

  .nav-links {
    position: absolute;

    top: 72px;
    left: 14px;
    right: 14px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(16, 16, 18, 0.96);
    backdrop-filter: blur(20px);
  }

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

  .nav-links a {
    padding: 11px;
  }

  .nav-button {
    justify-content: center;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: 90vh;
    padding-top: 110px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-meta {
    margin-top: 40px;
    gap: 10px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 40px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .skill-card {
    min-height: 150px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .project-card {
    min-height: 290px;
  }

  .journey-item {
    grid-template-columns: 55px 1fr;
    gap: 15px;
  }

  .journey-status {
    grid-column: 2;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
       REDUCED MOTION
    ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
