/* ---------------------------------------------------------------------------
   Lingaraj S — Portfolio
   Plain CSS, no framework. Light theme, single accent color.
--------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --bg-raised: #f8fafc;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #4b5563;
  --accent: #047857;
  --accent-soft: rgba(4, 120, 87, 0.08);
  --max-width: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / nav ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
}

.nav-brand:hover {
  text-decoration: none;
  background: var(--accent-soft);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.25rem 4.5rem;
}

.hero-kicker {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
}

.hero-tagline {
  max-width: 34rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

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

/* Sections --------------------------------------------------------------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.section p + p {
  margin-top: 0.9rem;
}

.section > p {
  color: var(--text-muted);
  max-width: 40rem;
}

/* Work cards ------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.card h4 {
  font-size: 1.08rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-tags {
  font-size: 0.82rem !important;
  color: var(--accent) !important;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Approach --------------------------------------------------------------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.approach-item h4 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.approach-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Skills ----------------------------------------------------------------- */

.skills {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.skill-row dt {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-row dd {
  font-size: 0.98rem;
}

@media (max-width: 540px) {
  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Contact ---------------------------------------------------------------- */

.contact-list {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
}

.contact-list span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
