@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --panel: rgba(15, 23, 42, .78);
  --panel-strong: #111a2d;
  --border: rgba(148, 163, 184, .16);
  --text: #f8fafc;
  --muted: #9aa9bd;
  --accent: #61dafb;
  --accent-2: #8b5cf6;
  --success: #6ee7b7;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(97, 218, 251, .13), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, .12), transparent 30rem),
    linear-gradient(180deg, #070b14 0%, #09101c 48%, #070b14 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a { color: inherit; }
img { max-width: 100%; }
.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  min-height: 0;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-top: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.16);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111b; box-shadow: 0 0 30px rgba(97, 218, 251, .18);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: .98rem; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav > a, .nav-menu > button {
  border: 0; background: transparent; color: #cbd5e1; font: inherit; font-size: .9rem;
  padding: 10px 13px; border-radius: 10px; text-decoration: none; cursor: pointer;
  transition: .18s ease;
}
.main-nav > a:hover, .main-nav > a.active, .nav-menu > button:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav .nav-cta { border: 1px solid rgba(97, 218, 251, .3); color: #dff8ff; background: rgba(97, 218, 251, .07); }
.nav-menu { position: relative }
.nav-menu > button span { color: var(--muted); }
.nav-dropdown {
  position: absolute; right: -100px; top: calc(100% + 3px); width: 200px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
  border: 1px solid var(--border); border-radius: 14px; background: #0b1220; box-shadow: var(--shadow);
}
.nav-menu:hover .nav-dropdown, .nav-menu:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: grid; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.nav-dropdown a:hover { background: rgba(255,255,255,.05); }
.nav-dropdown strong { font-size: .88rem; }
.nav-dropdown small { margin-top: 2px; color: var(--muted); font-size: .72rem; }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  align-items: center;
  gap: 72px;
  padding: 20px 20px 0px;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), #c5b7ff);
  background-clip: text;
  -webkit-background-clip: text;

  padding-right: .08em;
}
.eyebrow, .kicker { color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(110, 231, 183, .09), 0 0 18px rgba(110, 231, 183, .5); }
.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.hero h1 span { color: transparent; background: linear-gradient(90deg, var(--accent), #c5b7ff); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 690px; margin: 28px 0 0; color: #b8c4d4; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 17px; border-radius: 11px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #06111a; background: linear-gradient(135deg, var(--accent), #91e7ff); box-shadow: 0 10px 35px rgba(97, 218, 251, .16); }
.button.secondary { color: #eef6ff; border: 1px solid var(--border); background: rgba(255,255,255,.035); }
.skill-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.skill-strip span { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: #9fb0c4; background: rgba(255,255,255,.025); font-size: .75rem; }

.terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(97, 218, 251, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 26, 45, .97), rgba(7, 11, 20, .94));
  box-shadow: var(--shadow), 0 0 70px rgba(97, 218, 251, .06);
  transform: rotate(1.2deg);
}
.terminal-card::after { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,.03) 35%, transparent 62%); }
.terminal-top { height: 47px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--border); }
.terminal-top span { width: 9px; height: 9px; border-radius: 50%; background: #435066; }
.terminal-top small { margin-left: auto; color: #718198; font-family: "JetBrains Mono", monospace; font-size: .67rem; }
.terminal-body { padding: 28px; min-height: 335px; font-family: "JetBrains Mono", monospace; font-size: .79rem; }
.terminal-body p { margin: 0 0 10px; color: #d7e3f3; }
.terminal-body b { color: var(--accent); }
.terminal-body .terminal-result { margin: -3px 0 22px 19px; color: #8e9fb4; }
.terminal-body .success { color: var(--success); }

.section { padding: 90px 20px 0px 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; line-height: 1.05; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .9rem; }
.feature-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card, .project-card, .content-card, .contact-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 26, 45, .7), rgba(10, 16, 28, .7));
}
.feature-card { min-height: 250px; padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(97, 218, 251, .28); }
.card-number { color: #59697f; font-family: "JetBrains Mono", monospace; font-size: .72rem; }
.feature-card h3 { margin: 0px 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.projects-section { padding-top: 90px !important; }
.projects-section60 { margin-top: 60px !important; }
.projects-section30 { margin-top: 30px !important; }
.project-card { position: relative; min-height: 220px; display: flex; align-items: flex-start; gap: 18px; padding: 25px; color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .38); background: linear-gradient(145deg, rgba(24, 33, 56, .9), rgba(12, 18, 31, .9)); }
.project-card.featured { border-color: rgba(97, 218, 251, .22); }
.project-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: rgba(97,218,251,.08); border: 1px solid rgba(97,218,251,.14); font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: .75rem; }
.project-type { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .11em; }
.project-card h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.project-arrow { color: #667890; }

.recruiter-cta { margin: 90px 20px 90px 20px; padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 36px; border: 1px solid rgba(97,218,251,.2); border-radius: 24px; background: radial-gradient(circle at 0% 0%, rgba(97,218,251,.11), transparent 36%), linear-gradient(145deg, rgba(17,26,45,.88), rgba(9,15,27,.88)); box-shadow: var(--shadow); }
.recruiter-cta h2 { max-width: 750px; margin: 8px 0 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.04em; }
.recruiter-cta p { margin: 0; color: var(--muted); }
.recruiter-cta .button { flex: 0 0 auto; }

.page-hero { padding: 20px 20px 0px; }
.page-hero.compact { max-width: 900px; }
.page-hero h1 { margin-top: 12px; font-size: clamp(2.8rem, 6vw, 5.3rem); }
.page-hero p { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.04rem; }
.content-card, .contact-card { margin: 0 20px 50px; padding: 36px; }
.prose { max-width: 900px; }
.prose h2 { margin-top: 0; }
.prose p { color: #adbbcd; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-email { font-size: clamp(1.35rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.contact-email:hover { color: var(--accent); }
.contact-card p { margin: 10px 0 0; color: var(--muted); }

/* Compatibility styling for the existing archive/gallery pages */
#content, gallery { display: block; width: 100%; }
#content { padding: 0px 20px 90px; }
#box { width: 100%; overflow-x: auto; }
#dlwrap { width: min(900px, 100%); margin: 0 auto; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: rgba(15,23,42,.68); }
#dlwrap th, #dlwrap td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
#dlwrap th { color: #dce8f7; background: rgba(255,255,255,.035); }
#dlwrap p { margin: 0; }
#dlwrap td { color: var(--muted); font-size: .88rem; }
#dlwrap a { color: var(--accent); text-decoration: none; }
.responsive { width: 25%; float: left; padding: 7px; }
.gallery { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: rgba(15,23,42,.65); transition: transform .2s ease, border-color .2s ease; }
.gallery:hover { transform: translateY(-3px); border-color: rgba(97,218,251,.25); }
.gallery img { display: block; width: 100%; height: 220px; object-fit: cover; }
.desc { padding: 12px; color: #c9d6e6; font-size: .8rem; }
.desc2 { min-height: 45px; }
.clearfix::after { content: ""; display: table; clear: both; }
.music-card {
  position: relative;
  overflow: hidden;
}

.music-card .music-watermark {
  position: absolute;
  right: -25px;
  bottom: -25px;

  width: 130px;
  height: 130px;
  max-width: none;

  object-fit: contain;
  opacity: 0.3;

  pointer-events: none;
  z-index: 0;
}

.music-card > *:not(.music-watermark) {
  position: relative;
  z-index: 1;
}
.site-footer { margin: 0 20px; padding: 28px 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); color: #66768a; font-size: .75rem;
  margin-top: auto;
  flex-shrink: 0;
}
.site-footer div { display: grid; }
.site-footer strong { color: #9eacbd; font-size: .8rem; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 48px; padding: 20px 20px 0px; }
  .terminal-card { max-width: 620px; transform: none; }
  .feature-grid, .project-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .section-heading { align-items: start; flex-direction: column; }
  .recruiter-cta, .contact-card { align-items: flex-start; flex-direction: column; }
  .responsive { width: 50%; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 22px, 1180px); }
  .site-header { top: 8px; padding: 10px; }
  .brand-text { display: none; }
  .main-nav { gap: 0; }
  .main-nav > a, .nav-menu > button { padding: 9px 8px; font-size: .78rem; }
  .main-nav .nav-cta { border: 0; background: transparent; }
  .nav-dropdown { right: -36px; width: 270px; }
  .hero { padding: 20px 20px 0px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-lead { font-size: .96rem; }
  .terminal-body { padding: 22px 18px; font-size: .72rem; }
  .section { padding: 0px 20px 80px 20px; }
  .recruiter-cta { margin: 0px 20px 80px 20px; padding: 26px; }
  .page-hero { padding: 20px 20px 0px; }
  .content-card, .contact-card { margin-left: 8px; margin-right: 8px; padding: 26px; }
  #content { padding-left: 8px; padding-right: 8px; }
  .responsive { width: 100%; }
  .site-footer { margin-left: 8px; margin-right: 8px; flex-direction: column; align-items: flex-start; }
}

/* In-page gallery lightbox */
.gallery > a {
  display: block;
  cursor: zoom-in;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 84px;
  background: rgba(2, 6, 15, .92);
  backdrop-filter: blur(12px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-content {
  width: min(1100px, 100%);
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.gallery-lightbox-caption {
  max-width: 900px;
  color: #dbe7f5;
  font-size: .88rem;
  text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(15, 23, 42, .82);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(30, 41, 59, .98);
  border-color: rgba(97, 218, 251, .42);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 3px solid rgba(97, 218, 251, .55);
  outline-offset: 3px;
}

.gallery-lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 54px;
  height: 72px;
  border-radius: 14px;
  transform: translateY(-50%);
  font-size: 2rem;
}

.gallery-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-prev { left: 22px; }
.gallery-lightbox-next { right: 22px; }

@media (max-width: 680px) {
  .gallery-lightbox {
    padding: 72px 12px 84px;
  }

  .gallery-lightbox-content {
    max-height: none;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 180px);
  }

  .gallery-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 16px;
    width: 58px;
    height: 48px;
    transform: none;
  }

  .gallery-lightbox-nav:hover {
    transform: none;
  }

  .gallery-lightbox-prev { left: calc(50% - 66px); }
  .gallery-lightbox-next { right: calc(50% - 66px); }
}
