/* ===============================
   Variables
================================ */
:root {
  --navy: #0b1f3a;
  --navy-dark: #071426;
  --navy-soft: #102b4d;
  --gold: #c89b3c;
  --gold-bright: #e7bc64;
  --off-white: #f8f9fb;
  --black: #0a0a0a;
  --gray: #6b7280;
  --muted: #aab3c2;
  --line: rgba(248, 249, 251, 0.13);
  --card: rgba(16, 43, 77, 0.72);
  --card-strong: rgba(11, 31, 58, 0.94);
  --green: #59d9a6;
  --coral: #ff7a63;
  --sky: #6fb7ff;

  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

/* ===============================
   Reset / Base
================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--off-white);
  background:
    radial-gradient(
      circle at top left,
      rgba(200, 155, 60, 0.13),
      transparent 36rem
    ),
    radial-gradient(
      circle at bottom right,
      rgba(89, 217, 166, 0.1),
      transparent 34rem
    ),
    var(--navy-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ===============================
   Background Effects
================================ */
.site-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.8;
}

.site-glow-one {
  top: 12%;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  background: rgba(200, 155, 60, 0.16);
  border-radius: 50%;
}

.site-glow-two {
  right: -12rem;
  bottom: 10%;
  width: 26rem;
  height: 26rem;
  background: rgba(111, 183, 255, 0.12);
  border-radius: 50%;
}

/* ===============================
   Shared Layout
================================ */
.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.content-section {
  position: relative;
  padding: 120px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.contact-shell h2 {
  margin: 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow),
.contact-shell p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading-wide {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
}

.section-heading-wide p:not(.eyebrow) {
  margin: 0;
}

/* ===============================
   Buttons
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    color 0.24s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 14px 30px rgba(200, 155, 60, 0.25);
}

.btn-primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 20px 38px rgba(200, 155, 60, 0.34);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--off-white);
  background: rgba(248, 249, 251, 0.04);
}

.btn-outline:hover {
  border-color: rgba(200, 155, 60, 0.75);
  color: var(--gold-bright);
  background: rgba(200, 155, 60, 0.08);
}

/* ===============================
   Header / Navigation
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 70px);
  background: rgba(7, 20, 38, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 20, 38, 0.9);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--off-white);
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(89, 217, 166, 0.8);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.75);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-bright);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 249, 251, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--off-white);
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===============================
   Hero
================================ */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 20px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.hero-content h1 span {
  display: block;
  color: var(--gold-bright);
}

.hero-title {
  margin: 28px 0 4px;
  color: var(--off-white);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 660px;
  gap: 12px;
}

.hero-mini-stats div {
  padding: 16px;
  background: rgba(248, 249, 251, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-mini-stats strong,
.hero-mini-stats span {
  display: block;
}

.hero-mini-stats strong {
  color: var(--off-white);
  font-family: var(--display);
  font-size: 1rem;
}

.hero-mini-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ===============================
   Hero Visual / Profile Card
================================ */
.hero-visual {
  position: relative;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(248, 249, 251, 0.09),
      rgba(248, 249, 251, 0.03)
    ),
    rgba(11, 31, 58, 0.68);
  box-shadow: var(--shadow);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(200, 155, 60, 0.23),
      transparent 22rem
    ),
    radial-gradient(
      circle at 100% 40%,
      rgba(89, 217, 166, 0.1),
      transparent 24rem
    );
}

.profile-card-top,
.journey-window-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(7, 20, 38, 0.74);
  border-bottom: 1px solid var(--line);
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.window-dot.red {
  background: #ff6259;
}

.window-dot.yellow {
  background: #ffc24b;
}

.window-dot.green {
  background: #59d9a6;
}

.window-title {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.profile-photo-wrap {
  position: relative;
  z-index: 2;
  padding: 22px 22px 0;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.55;
  object-fit: cover;
  border: 1px solid rgba(248, 249, 251, 0.14);
  border-radius: 22px;
  filter: saturate(1.05) contrast(1.04);
}

.floating-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(248, 249, 251, 0.16);
  border-radius: 999px;
  background: rgba(7, 20, 38, 0.84);
  color: var(--off-white);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: floatBadge 4.5s ease-in-out infinite;
}

.badge-one {
  top: 40px;
  left: 6px;
  color: var(--gold-bright);
}

.badge-two {
  top: 43%;
  right: 2px;
  color: var(--green);
  animation-delay: 0.8s;
}

.badge-three {
  left: 48px;
  bottom: 86px;
  color: var(--sky);
  animation-delay: 1.5s;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ===============================
   Terminal
================================ */
.terminal-card {
  position: relative;
  z-index: 2;
  min-height: 148px;
  margin: 22px;
  padding: 18px;
  border: 1px solid rgba(89, 217, 166, 0.18);
  border-radius: 18px;
  background: rgba(5, 13, 24, 0.82);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.terminal-output {
  display: inline;
  white-space: pre-wrap;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 3px;
  background: var(--gold);
  vertical-align: -3px;
  animation: blinkCursor 0.9s steps(1) infinite;
}

@keyframes blinkCursor {
  50% {
    opacity: 0;
  }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ===============================
   About
================================ */
.about-section {
  background:
    linear-gradient(180deg, rgba(16, 43, 77, 0.28), rgba(7, 20, 38, 0.7)),
    var(--navy-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.about-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 249, 251, 0.045);
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
}

.about-copy p:last-of-type {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--off-white);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(200, 155, 60, 0.2);
  border-radius: 999px;
  background: rgba(200, 155, 60, 0.08);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===============================
   Journey
================================ */
.journey-section {
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(89, 217, 166, 0.11),
      transparent 24rem
    ),
    #081c22;
}

.journey-window {
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(89, 217, 166, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(5, 18, 22, 0.88);
  box-shadow: var(--shadow);
}

.timeline {
  padding: 34px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10px;
  bottom: -18px;
  width: 2px;
  background: rgba(89, 217, 166, 0.22);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border: 4px solid rgba(89, 217, 166, 0.2);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 28px rgba(89, 217, 166, 0.35);
}

.timeline-item.active .timeline-marker {
  background: var(--gold);
  border-color: rgba(200, 155, 60, 0.25);
  box-shadow: 0 0 28px rgba(200, 155, 60, 0.4);
}

.timeline-meta {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.28rem;
}

.timeline-item p:not(.timeline-meta) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

/* ===============================
   Projects
================================ */
.projects-section {
  background: linear-gradient(180deg, var(--navy-dark), #06111f);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(248, 249, 251, 0.07),
      rgba(248, 249, 251, 0.025)
    ),
    rgba(11, 31, 58, 0.74);
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 220px;
  height: 220px;
  background: rgba(200, 155, 60, 0.12);
  border-radius: 50%;
  filter: blur(6px);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 155, 60, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.project-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status.live {
  border: 1px solid rgba(89, 217, 166, 0.36);
  background: rgba(89, 217, 166, 0.1);
  color: var(--green);
}

.project-status.build {
  border: 1px solid rgba(200, 155, 60, 0.36);
  background: rgba(200, 155, 60, 0.1);
  color: var(--gold-bright);
}

.project-number {
  color: rgba(248, 249, 251, 0.18);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.project-card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.08;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 22px;
  padding-top: 28px;
}

.project-tags span {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(248, 249, 251, 0.07);
  color: rgba(248, 249, 251, 0.86);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.project-link {
  width: fit-content;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link.muted {
  color: var(--muted);
  cursor: default;
}

.project-link.muted:hover {
  text-decoration: none;
}

/* ===============================
   Skills
================================ */
.skills-section {
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(200, 155, 60, 0.12),
      transparent 24rem
    ),
    #140f07;
}

.skills-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: start;
}

.skills-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(8, 6, 3, 0.74);
  box-shadow: var(--shadow);
}

.skills-panel pre {
  margin: 0;
  padding: 34px;
  overflow-x: auto;
}

.skills-panel code {
  color: var(--off-white);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.85;
}

.copy-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid rgba(200, 155, 60, 0.32);
  border-radius: 9px;
  background: rgba(200, 155, 60, 0.1);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.copy-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.practice-card {
  padding: 28px;
  border: 1px solid rgba(200, 155, 60, 0.17);
  border-radius: var(--radius-lg);
  background: rgba(248, 249, 251, 0.045);
}

.practice-card h3 {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1.25rem;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
}

/* ===============================
   Education
================================ */
.education-section {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(200, 155, 60, 0.1),
      transparent 24rem
    ),
    linear-gradient(180deg, #06111f, var(--navy-dark));
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.education-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(248, 249, 251, 0.07),
      rgba(248, 249, 251, 0.025)
    ),
    rgba(11, 31, 58, 0.74);
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.education-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: rgba(200, 155, 60, 0.12);
  border-radius: 50%;
  filter: blur(8px);
}

.education-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 155, 60, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.education-years {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 14px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.education-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.24rem;
  line-height: 1.1;
}

.education-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===============================
   Hobbies
================================ */
.hobbies-section {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 122, 99, 0.12),
      transparent 24rem
    ),
    radial-gradient(
      circle at 10% 70%,
      rgba(89, 217, 166, 0.1),
      transparent 24rem
    ),
    #090f1b;
}

.origin-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      135deg,
      rgba(200, 155, 60, 0.12),
      rgba(248, 249, 251, 0.035)
    ),
    rgba(7, 20, 38, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.origin-label {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.origin-strip strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 1rem;
}

.origin-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.hobby-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 220px;
  gap: 18px;
  margin-top: 34px;
}

.hobby-photo {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 249, 251, 0.045);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.hobby-photo-large {
  grid-row: span 2;
}

.hobby-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.hobby-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 13, 24, 0.9)),
    radial-gradient(circle at 20% 10%, rgba(200, 155, 60, 0.14), transparent 18rem);
  pointer-events: none;
}

.hobby-photo:hover img {
  transform: scale(1.06);
  filter: saturate(1.14) contrast(1.08);
}

.hobby-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--off-white);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.hobby-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      145deg,
      rgba(248, 249, 251, 0.075),
      rgba(248, 249, 251, 0.025)
    ),
    rgba(11, 31, 58, 0.7);
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.hobby-card::before {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  background: rgba(200, 155, 60, 0.12);
  border-radius: 50%;
  filter: blur(8px);
}

.hobby-card:hover {
  transform: translateY(-8px) rotate(-0.35deg);
  border-color: rgba(200, 155, 60, 0.42);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.hobby-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(248, 249, 251, 0.14);
  border-radius: 18px;
  background: rgba(248, 249, 251, 0.06);
  font-size: 1.55rem;
}

.hobby-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.08;
}

.hobby-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hobby-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.hobby-link:hover {
  text-decoration: underline;
}

/* ===============================
   Contact
================================ */
.contact-section {
  background:
    radial-gradient(circle at top, rgba(200, 155, 60, 0.14), transparent 28rem),
    var(--navy-dark);
  text-align: center;
}

.contact-shell {
  max-width: 860px;
}

.contact-shell .eyebrow {
  text-align: center;
}

.contact-shell h2 {
  margin: 0 auto;
}

.contact-shell p {
  margin: 22px auto 0;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 42px auto 30px;
  text-align: left;
}

.contact-card div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(248, 249, 251, 0.05);
}

.contact-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--off-white);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--gold-bright);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===============================
   Footer
================================ */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 26px 20px;
  border-top: 1px solid var(--line);
  background: var(--navy-dark);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* ===============================
   Reveal Animation
================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Projects Grid Balance Fix
================================ */
@media (min-width: 1051px) {
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .project-card {
    grid-column: span 2;
  }

  .project-card:nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .project-card:last-child {
    grid-column: 4 / span 2;
  }
}

/* ===============================
   Responsive Styles
================================ */
@media (max-width: 1050px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .section-heading-wide {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hobby-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .hobby-photo-large {
    grid-row: span 1;
  }

  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    max-width: 560px;
  }

  .section-heading-wide {
    gap: 16px;
  }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-column: auto;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    bottom: auto;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7, 20, 38, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(248, 249, 251, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-section {
    padding-top: 120px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-content h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .hero-mini-stats,
  .contact-card,
  .practice-grid,
  .projects-grid,
  .education-grid,
  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  .hobby-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 270px;
  }

  .content-section {
    padding: 90px 0;
  }

  .about-copy,
  .timeline,
  .skills-panel pre {
    padding: 24px;
  }

  .project-card,
  .education-card,
  .hobby-card {
    min-height: 0;
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand-mark {
    font-size: 0.86rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-mini-stats div {
    padding: 14px;
  }

  .floating-badge {
    display: none;
  }

  .profile-photo-wrap {
    padding: 16px 16px 0;
  }

  .terminal-card {
    margin: 16px;
  }

  .contact-card div,
  .education-card,
  .hobby-card {
    padding: 24px;
  }

  .origin-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hobby-gallery {
    grid-auto-rows: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}