/* ===================================================
   VervoLabs | Retro/Tech Aesthetic
   =================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:        #0a0a0a;
  --bg-card:   #111111;
  --bg-raised: #1a1a1a;
  --bg-light:  #f4f3ef;
  --bg-accent: #e8fc5a;

  --text:        #e8e8e8;
  --text-dim:    #888888;
  --text-dark:   #111111;
  --text-accent: #e8fc5a;

  --border:      #2a2a2a;
  --border-light:#3a3a3a;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-pill:999px;

  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* --- PILLS / BADGES --- */
.pill {
  display: inline-block;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pill--sm {
  padding: 0.2em 0.65em;
  font-size: 0.72rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--bg-accent);
  color: var(--text-dark);
  border-color: var(--bg-accent);
}

.btn--primary:hover {
  background: #d4e050;
  border-color: #d4e050;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 252, 90, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}

.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* --- SECTION --- */
.section {
  padding: 7rem 0;
}

.section--dark {
  background: var(--bg-card);
}

.section--accent {
  background: var(--bg-accent);
  color: var(--text-dark);
}

.section--accent .section__tag,
.section--accent .section__sub {
  color: rgba(0, 0, 0, 0.6);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__tag {
  display: block;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.section__sub .section__link {
  color: var(--text-accent);
  text-decoration: none;
  white-space: nowrap;
}

.section__sub .section__link:hover {
  text-decoration: underline;
}

.highlight {
  color: var(--text-accent);
}

.section--accent .highlight {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.nav__logo-mark {
  font-family: var(--font-mono);
  color: var(--text-accent);
  font-weight: 600;
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:not(.btn):hover::after {
  width: 100%;
}

.nav__links a:not(.btn):hover {
  color: var(--text-accent);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__badge .mono {
  color: var(--text-dim);
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-accent);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(232, 252, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 252, 90, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}

/* --- MARQUEE --- */
.marquee {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- SERVICES --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--text-accent);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.service-card__desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.service-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* --- WORK / PORTFOLIO --- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.work__grid .work-card {
  flex: none;
}

.work__scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.work__scroll::-webkit-scrollbar {
  display: none;
}

/* Controls: dots + arrows */
.work__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.work__dots {
  display: flex;
  gap: 0.5rem;
}

.work__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.work__dot:hover {
  background: var(--text-dim);
}

.work__dot.active {
  background: var(--text-accent);
  transform: scale(1.25);
}

.work__arrows {
  display: flex;
  gap: 0.5rem;
}

.work__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.work__arrow:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
  background: rgba(232, 252, 90, 0.06);
}

.work-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.work-card__img {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}


.work-card__label {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: #fff;
}

.work-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-card__body--center {
  text-align: center;
  align-items: center;
  padding: 3rem 1.5rem;
}

.work-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.work-card__body h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.work-card__body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.work-card__cta {
  color: var(--text-accent);
  font-size: 0.82rem;
  margin-top: 0.5rem;
  transition: letter-spacing 0.3s var(--ease);
}

.work-card:hover .work-card__cta {
  letter-spacing: 0.04em;
}

.work-card__mini-stats {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.work-card__mini-stats span {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--text-accent);
}

.work-card__img {
  position: relative;
}

/* --- CASE STUDY PAGES --- */
.t-accent { color: var(--text-accent); }
.t-dim    { color: var(--text-dim); }

.cs-page { padding-top: 5rem; }

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.cs-back:hover { color: var(--text-accent); }

.cs-back svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.cs-back:hover svg { transform: translateX(-3px); }

/* CS Hero */
.cs-hero {
  padding: 8rem 0 4rem;
}

.cs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.cs-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cs-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.cs-hero__subtitle {
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 2rem;
}

.cs-hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cs-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* CS Stats bar */
.cs-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.cs-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
}

.cs-stats__item {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cs-stats__item:last-child {
  border-right: none;
}

.cs-stats__value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-accent);
  line-height: 1.2;
}

.cs-stats__label {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* CS Body / Sections */
.cs-body {
  padding: 5rem 0;
}

.cs-body .container {
  max-width: 800px;
}

.cs-section {
  margin-bottom: 4rem;
}

.cs-section:last-child {
  margin-bottom: 0;
}

.cs-section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-accent);
  margin-bottom: 1rem;
  padding: 0.3em 0.8em;
  background: rgba(232, 252, 90, 0.08);
  border: 1px solid rgba(232, 252, 90, 0.15);
  border-radius: var(--radius-pill);
}

.cs-section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cs-section p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.cs-section p:last-child {
  margin-bottom: 0;
}

/* CS Features grid */
.cs-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cs-feature {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.cs-feature:hover {
  border-color: var(--border-light);
}

.cs-feature__icon {
  color: var(--text-accent);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.cs-feature__icon svg {
  width: 100%;
  height: 100%;
}

.cs-feature__favicon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  margin-top: 2px;
}

.cs-feature__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cs-feature__desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* CS Tech Stack table */
.cs-stack {
  margin-top: 1.5rem;
}

.cs-stack__row {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  gap: 1rem;
}

.cs-stack__row:last-child {
  border-bottom: none;
}

.cs-stack__key {
  font-family: var(--font-mono);
  color: var(--text-accent);
  font-size: 0.82rem;
  min-width: 130px;
  flex-shrink: 0;
}

.cs-stack__val {
  color: var(--text-dim);
}

/* CS Process Timeline */
.cs-process {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 2.5rem;
}

.cs-process__step {
  text-align: center;
  position: relative;
  padding: 0 0.25rem;
}

.cs-process__step::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--border-light);
}

.cs-process__step:last-child::after {
  display: none;
}

.cs-process__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-accent);
  color: var(--bg-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.cs-process__step--done .cs-process__num {
  background: var(--bg-accent);
  color: var(--bg);
  border-color: var(--bg-accent);
}

.cs-process__step strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.cs-process__step p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .cs-process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 0;
  }

  .cs-process__step:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .cs-process {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
  }

  .cs-process__step:nth-child(even)::after {
    display: none;
  }
}

/* CS Highlights */
.cs-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cs-highlight {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.cs-highlight__icon {
  color: var(--text-accent);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.cs-highlight__icon svg {
  width: 100%;
  height: 100%;
}

.cs-highlight p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 0;
}

/* CS Graph (used on TEAMS.gg page) */
.cs-graph {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.cs-graph__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.cs-graph__visual {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem 0.75rem;
  border: 1px solid var(--border);
}

.traffic-chart {
  width: 100%;
  height: 120px;
  display: block;
}

.cs-graph__axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-top: 0.5rem;
  font-family: var(--font-mono);
}

/* CS CTA */
.cs-cta {
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.cs-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cs-cta__text {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* CS Page responsive */
@media (max-width: 768px) {
  .cs-hero {
    padding: 6rem 0 3rem;
  }

  .cs-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-stats__item {
    padding: 1.25rem 1rem;
  }

  .cs-stats__item:nth-child(even) {
    border-right: none;
  }

  .cs-features {
    grid-template-columns: 1fr;
  }

  .cs-stack__row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .cs-stack__key {
    min-width: auto;
  }
}

/* --- ABOUT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.about__text .section__title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about__highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-num {
  color: var(--text-accent);
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.about__highlight strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.about__highlight p {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
}

/* Terminal visual */
.terminal {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161616;
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
}

.terminal__dot:nth-child(1) { background: #ff5f57; }
.terminal__dot:nth-child(2) { background: #febc2e; }
.terminal__dot:nth-child(3) { background: #28c840; }

.terminal__title {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.terminal__body {
  padding: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.8;
}

.terminal__body p {
  margin-bottom: 0.15rem;
}

.t-green  { color: #28c840; }
.t-blue   { color: #4facfe; }
.t-yellow { color: #febc2e; }
.t-dim    { color: #555; }

.cursor-blink {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- HOW I BUILD --- */
.tech__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tech__category-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.tech__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech__item {
  padding: 0.5rem 1.1rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  cursor: default;
}

.tech__item:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .tech__categories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- TESTIMONIALS --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.testimonial__stars {
  color: var(--text-accent);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.testimonial__author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial__author .mono {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* --- BLOG --- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.blog-card__img {
  height: 160px;
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card__date {
  color: var(--text-accent);
  font-size: 0.78rem;
}

.blog-card__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-card__body p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* --- CTA --- */
.cta {
  background: var(--bg);
  text-align: center;
  padding: 8rem 0;
}

.cta__inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta__sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta__email {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__tagline {
  color: var(--text-dim);
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}

.footer__copy {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.footer__col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer__col li {
  margin-bottom: 0.6rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* --- SCROLL ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out);
    z-index: 999;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__burger {
    display: flex;
    z-index: 1001;
  }

  .nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__burger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .work-card {
    flex: 0 0 300px;
  }

  .section {
    padding: 5rem 0;
  }

  .section__header {
    margin-bottom: 3rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  .cta__actions {
    flex-direction: column;
  }
}
