/* ──────────────────────────────────────────
   PORTFOLIO — style.css
   Aesthetic: Dark editorial, monospace meets serif
   ────────────────────────────────────────── */

/* ── TOKENS ── */
:root {
  --bg: #0c0c0e;
  --bg-card: #141418;
  --bg-raised: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(240, 165, 0, 0.4);

  --text: #e8e6e0;
  --text-muted: #7a7870;
  --text-dim: #4a4844;

  --accent: #f0a500;
  --accent-dim: rgba(240, 165, 0, 0.12);
  --accent-glow: rgba(240, 165, 0, 0.25);

  --font-mono: "DM Mono", "Fira Code", monospace;
  --font-serif: "Fraunces", Georgia, serif;

  --radius: 4px;
  --radius-lg: 12px;
  --max-w: 1100px;
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── SECTION ── */
.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  opacity: 0.8;
  padding-top: 0.2em;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────
   NAV
   ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-bottom 0.3s ease;
}

.nav.scrolled {
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  transition: opacity 0.2s ease;
}

.nav-logo img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.nav-logo .blink {
  display: inline-block;
  animation: blink 1.2s step-end infinite;
}

.blink {
  animation: blink 1.2s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent-dim);
  border: 1px solid rgba(240, 165, 0, 0.3);
  color: var(--accent) !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition:
    background 0.2s,
    box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--accent-dim) !important;
  box-shadow: 0 0 16px var(--accent-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s;
}

/* ────────────────────────────────────
   HERO
   ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(240, 165, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 165, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    black 0%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    black 0%,
    transparent 100%
  );
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition-delay: 0.1s;
}
.hero-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero-name .line {
  display: block;
}
.hero-name .accent-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  transition-delay: 0.25s;
}
.hero-tagline em {
  font-style: italic;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  transition-delay: 0.35s;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: horizontal-tb;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: slide-line 2s ease-in-out infinite;
}
@keyframes slide-line {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* ────────────────────────────────────
   ABOUT
   ──────────────────────────────────── */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  background: var(--bg-raised);
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.about-photo:hover {
  filter: grayscale(0%);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tag {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
}

.about-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.about-text strong {
  color: var(--text);
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.skill-group h4 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-group li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.skill-group li:hover {
  color: var(--text);
  border-color: var(--border);
}

/* ────────────────────────────────────
   ENTERPRISE EXPERIENCE
   ──────────────────────────────────── */

.enterprise {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.enterprise .projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.enterprise .project-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ────────────────────────────────────
   PROJECT IMPACT
   ──────────────────────────────────── */

.project-impact {
  margin-top: 0.9rem;
  margin-bottom: 1.1rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-impact li {
  position: relative;
  padding-left: 1rem;

  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);

  transition:
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

/* enterprise-style vertical marker */
.project-impact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;

  width: 6px;
  height: 1px;

  background: rgba(240, 165, 0, 0.55);
  border-radius: 999px;

  transition:
    width 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.project-impact li:hover {
  color: var(--text);
  transform: translateX(2px);
}

.project-impact li:hover::before {
  width: 10px;
  background: var(--accent);
}

/* spacing refinement */
.project-desc {
  margin-bottom: 0.85rem;
}

/* ────────────────────────────────────
   PROJECTS
   ──────────────────────────────────── */
.projects {
  background: var(--bg);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

.project-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: attr(data-index);
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  font-size: 5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.15;
  transition: opacity 0.25s;
  pointer-events: none;
  line-height: 1;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent-dim);
}
.project-card:hover::before {
  opacity: 0.3;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.project-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 165, 0, 0.15);
}

.project-year {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tech span {
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 110px;
  align-items: flex-end;
  z-index: 1;
}

.project-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.project-link:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
.project-link-live {
  color: var(--accent);
  border-color: rgba(240, 165, 0, 0.25);
}
.project-link-live:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* ────────────────────────────────────
   CONTACT
   ──────────────────────────────────── */
.contact {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.15rem;
  transition: color 0.2s;
}
.contact-email:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.contact-socials a {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.contact-socials a:hover {
  color: var(--accent);
}

.resume-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.resume-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.resume-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.resume-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.resume-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ────────────────────────────────────
   FOOTER
   ──────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.footer-sub {
  margin-top: 0.35rem;
  font-size: 0.7rem !important;
  opacity: 0.6;
}

/* ────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo-wrap {
    position: static;
    max-width: 260px;
  }
  .project-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .project-card::before {
    display: none;
  }
  .project-links {
    flex-direction: row;
    align-items: flex-start;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    gap: 1.25rem;
    z-index: 99;
  }
  .hamburger {
    display: flex;
  }

  .hero-name {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
