/* ============================================================
   LogicLens — styles.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:       #0e0f11;
  --color-surface:  #16181c;
  --color-accent:   #a83252;
  --color-text:     #e8e9eb;
  --color-muted:    #8a8f98;
  --font-display:   'DM Serif Display', serif;
  --font-body:      'Inter', sans-serif;
  --max-width:      960px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Section shared ---------- */
section {
  padding: 6rem 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 3rem;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--color-muted);
  max-width: 52ch;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}

.hero-cta:hover {
  opacity: 0.85;
}

/* ---------- Services ---------- */
#services {
  background-color: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ---------- Stack ---------- */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.stack-badge {
  padding: 0.4rem 0.9rem;
  border: 1px solid #2a2d33;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-surface);
}

/* ---------- Work ---------- */
#work {
  background-color: var(--color-surface);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid #22252b;
  border-top: 2px solid var(--color-accent);
  border-radius: 4px;
  padding: 1.5rem;
  background-color: #13151a;
}

.work-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.work-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.work-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.25rem;
}

.work-stack li {
  font-size: 0.8125rem;
  color: var(--color-muted);
  background-color: #0e0f11;
  border: 1px solid #2a2d33;
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
}

/* ---------- About ---------- */
.about-inner {
  max-width: var(--max-width);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-body p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* ---------- Contact ---------- */
#contact {
  background-color: var(--color-surface);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-sub {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 48ch;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.contact-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.contact-cta:hover {
  opacity: 0.85;
}

.contact-linkedin {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid #2a2d33;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.contact-linkedin:hover {
  color: var(--color-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  section {
    padding: 4rem 0;
  }

  #hero {
    padding: 5rem 0;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

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