/* ======================================================
   SMITLABS — PORTFOLIO v2
   ====================================================== */

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

:root {
  --bg:        #0a0a18;
  --bg-alt:    #100f22;
  --glass:     rgba(255,255,255,0.045);
  --glass-hi:  rgba(255,255,255,0.09);
  --border:    rgba(255,255,255,0.09);
  --border-hi: rgba(255,255,255,0.18);

  --text:      #f4f2ff;
  --text-dim:  #a8a3cc;
  --text-faint:#615c8a;

  --pink:   #ff3d8a;
  --cyan:   #3ddbff;
  --gold:   #ffd23d;
  --violet: #8b5cf6;

  --grad-primary: linear-gradient(115deg, var(--cyan), var(--violet) 55%, var(--pink));
  --grad-warm:    linear-gradient(115deg, var(--gold), var(--pink));

  --display: 'Black Ops One', 'Inter', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-video {
  position: fixed;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,10,24,0) 0%, var(--bg) 78%),
    linear-gradient(180deg, rgba(10,10,24,0.2), rgba(10,10,24,0.55) 40%, var(--bg) 100%);
}

main, .navbar, .progress, footer { position: relative; z-index: 2; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }

p { color: var(--text-dim); max-width: 60ch; margin: 0 0 1.1em; }

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }

::selection { background: var(--pink); color: #0a0a18; }

/* ======================================================
   NAV — floating glass pill
   ====================================================== */

.navbar {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  background: rgba(16,15,34,0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,0.6);
  max-width: calc(100vw - 1.5rem);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.6rem 0.7rem;
}
.navbar::-webkit-scrollbar { display: none; }

.navbar__mark {
  margin-top: 0.2rem;
  width: 50px; height: 50px;
  object-fit: contain;
  margin-right: 0.3rem;
  flex-shrink: 0;
}

.navlink {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-dim);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.navlink:hover { color: var(--text); text-decoration: none; background: var(--glass); }
.navlink.active { color: var(--bg); background: var(--text); }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 51;
  transition: width 0.08s linear;
}

/* ======================================================
   LAYOUT / REVEALS
   ====================================================== */

main { padding-top: 1px; }

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}
.section--tight { padding-top: 3rem; padding-bottom: 3rem; }
.hero { padding-top: 9.5rem; padding-bottom: 6rem; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].is-visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

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

.hero__title {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  margin: 0 0 0.35em;
}
.hero__logo {
  width: clamp(50px, 8vw, 90px);
  height: clamp(50px, 8vw, 90px);
  object-fit: contain;
  flex-shrink: 0;
}
.hero__title-text {
  display: flex;
  flex-direction: column;
}
.hero__title .caret {
  display: inline-block;
  color: var(--cyan);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__title .caret { animation: none; } }

.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 48ch; margin-bottom: 2.2rem; }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scrollcue {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero__scrollcue .line { width: 1px; height: 30px; background: linear-gradient(var(--text-faint), transparent); animation: scrolldrop 1.8s ease-in-out infinite; }
@keyframes scrolldrop { 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; } }
@media (prefers-reduced-motion: reduce) { .hero__scrollcue .line { animation: none; } }

@media (max-width: 500px) {
  .hero__title { gap: 0.9rem; }
}
.me {
  width: 50%;
  max-width: 200px;
  margin-left: 25px;
  margin-bottom: 0;
  display: block;
  border-radius: 16px;
  animation: float 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .me { animation: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.me {
  margin-top: 6.5rem; /* clears the fixed navbar, since photo is now the first element */
}

.about-hero {
  padding-top: 1rem; /* image already provides top spacing — hero doesn't need its own */
}
/* ======================================================
   BUTTONS
   ====================================================== */

.btn {
  --mx: 50%; --my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.btn.primary {
  color: #0a0a18;
  background: var(--grad-primary);
}
.btn.ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--border-hi);
}
.btn.ghost:hover { background: var(--glass-hi); text-decoration: none; }
.btn.primary:hover { text-decoration: none; }
.glass-card .btn {
  margin-top: 0.6rem;
}
.glass-card p {
  margin-bottom: 0.8rem;
}
.glass-card .tags {
  margin-bottom: 0;
}
/* ======================================================
   STAT STRIP
   ====================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.6rem 0;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-family: var(--mono); font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }

/* ======================================================
   GLASS CARDS
   ====================================================== */

.grid { display: grid; gap: 1.3rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.9rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.glass-card:hover { transform: translateY(-6px); border-color: var(--border-hi); background: var(--glass-hi); }

.glass-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.glass-card__title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  color: var(--cyan);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill.warm { color: var(--gold); }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.tag { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 0.25rem 0.6rem; border-radius: 6px; }

/* ======================================================
   SKILL BARS
   ====================================================== */

.skillrow { margin-bottom: 1.5rem; }
.skillrow__top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.5rem; }
.skillrow__top span:last-child { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); }
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; border: 1px solid var(--border); }
.meter__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-primary);
  width: 0%;
  transition: width 1.1s var(--ease);
}
.skillgroup__label {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.4rem;
}

/* ======================================================
   FORM
   ====================================================== */

.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 0.5rem; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }

.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.contact-links a { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 0.6rem; }
.contact-links a span.k { font-family: var(--mono); font-size: 0.76rem; color: var(--text-faint); min-width: 9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-links a:hover { color: var(--cyan); }

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 1.5rem 3rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 640px) {
  .section { padding: 4.5rem 1.25rem; }
  .hero { padding-top: 8rem; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}