/* =========================================================
   PORTFOLIO STYLES
   Organized by: Tokens → Base → Layout → Components → Sections → Responsive
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --bg: #0B0B0D;
  --bg-panel: #15151A;
  --bg-panel-raised: #1A1A1F;
  --hairline: #262629;
  --hairline-strong: #34343A;
  --text: #EDEDEF;
  --text-muted: #96969E;
  --text-faint: #5E5E66;
  --accent: #5DD8C0;
  --accent-soft: rgba(93, 216, 192, 0.10);
  --accent-border: rgba(93, 216, 192, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1080px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 14px 36px -16px rgba(0, 0, 0, 0.6);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed-fast: 160ms;
  --speed-med: 280ms;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 16px 0;
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--speed-fast) var(--ease),
              background var(--speed-fast) var(--ease),
              border-color var(--speed-fast) var(--ease),
              color var(--speed-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0B0B0D;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #6fe2cd;
}

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

.btn-secondary:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 28px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--speed-fast) var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width var(--speed-med) var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--speed-fast) var(--ease), opacity var(--speed-fast) var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-border);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(93, 216, 192, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(93, 216, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 216, 192, 0); }
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  transition: color var(--speed-fast) var(--ease),
              border-color var(--speed-fast) var(--ease),
              transform var(--speed-fast) var(--ease);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

/* ---------- About ---------- */
.about {
  padding: 90px 0;
  border-top: 1px solid var(--hairline);
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.about-content p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 68ch;
}

/* ---------- Highlights ---------- */
.highlights {
  padding: 90px 0;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012), transparent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--speed-med) var(--ease),
              border-color var(--speed-med) var(--ease),
              box-shadow var(--speed-med) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.card-meta li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- Contact / Footer ---------- */
.contact {
  padding: 100px 0 50px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .eyebrow,
.contact .section-title {
  text-align: center;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 50ch;
}

#email-btn {
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.social-row-footer {
  margin-bottom: 56px;
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 13, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--speed-med) var(--ease);
  }

  .nav.is-open {
    max-height: 240px;
  }

  .nav-link {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-link::after { display: none; }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 90px 20px 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .social-row {
    flex-wrap: wrap;
  }
}
