/* Tirth Patel — portfolio (freelance-focused) */

:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --surface: #161a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --muted: #9aa3b8;
  --muted-soft: #b4bdcc;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.15);
  --accent-strong: #2dd4bf;
  --warm: #fbbf24;
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-dot {
  color: var(--accent-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.nav-cta:hover {
  background: rgba(94, 234, 212, 0.22);
  color: var(--text) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  min-height: min(88vh, 900px);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 1.1rem;
}

.hero-head {
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.hero-greet {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.3;
}

.hero-name {
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 0 80px rgba(45, 212, 191, 0.12);
}

.hero-tagline {
  margin-top: 0.65rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--muted-soft);
  max-width: 22em;
}

.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #14b8a6);
  color: #041016 !important;
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #041016 !important;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text) !important;
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 212, 0.4);
  color: var(--accent) !important;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta li {
  padding-left: 1rem;
  position: relative;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 12px var(--accent-strong);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: #14b8a6;
  top: -20px;
  right: 10%;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: #6366f1;
  bottom: 10%;
  left: 5%;
  opacity: 0.35;
}

.stack-card {
  position: relative;
  margin-left: auto;
  max-width: min(100%, 340px);
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--surface) 0%, rgba(22, 26, 36, 0.92) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stack-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stack-hint {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0.95;
}

.stack-hint a {
  color: var(--accent-strong);
  font-weight: 600;
}

.stack-hint a:hover {
  color: var(--accent);
}

.stack-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-chip {
  display: inline-block;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.tech-chip:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .tech-chip:hover,
  .skill-pill:hover,
  .work-card:hover,
  .service-card:hover {
    transform: none;
  }
}

.tech-chip-more {
  background: transparent;
  border-style: dashed;
  border-color: rgba(94, 234, 212, 0.35);
}

.tech-chip-more a {
  color: var(--accent-strong);
  font-weight: 600;
}

.tech-chip-more:hover {
  border-color: var(--accent-strong);
}

.section-tech {
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
}

.stack-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.stack-group {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.stack-group:hover {
  border-color: rgba(94, 234, 212, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.stack-group-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.stack-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack-group-chips .tech-chip {
  font-size: 0.76rem;
  font-weight: 500;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 42rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

.about-card {
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(22, 27, 38, 0.98), var(--surface));
  border: 1px solid var(--border);
  border-top: 2px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--muted-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.skill-pill {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.skill-pill:hover {
  border-color: rgba(94, 234, 212, 0.25);
  transform: translateY(-2px);
}

.skill-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.skill-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(94, 234, 212, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.service-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--warm);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.work-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(
    135deg,
    hsl(var(--thumb-hue, 168), 45%, 38%),
    hsl(calc(var(--thumb-hue, 168) + 40), 40%, 22%)
  );
}

.work-card h3 {
  font-size: 1.05rem;
  margin: 1rem 1.25rem 0.35rem;
  font-family: var(--font-display);
}

.work-card p {
  margin: 0 1.25rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.work-tags {
  display: block;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.cta-band {
  max-width: none;
  margin: 2rem 0 0;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--accent-dim), transparent);
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-inner > p:first-of-type {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: 240px;
  }

  .stack-card {
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 56px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.75rem;
  }
}

@media (min-width: 901px) {
  .nav {
    display: flex !important;
  }
}
