/* =========================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================= */
:root {
  /* Light Editorial Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;

  /* Typography & Layout */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1080px;
  --radius: 10px;
  --nav-height: 70px;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
}

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

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

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* =========================================
   3. REUSABLE BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}

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

/* =========================================
   4. STICKY NAVBAR
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
  min-height: calc(85vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero-summary {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
/* =========================================
   6. ABOUT ME SECTION (Photo + Bio Grid)
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--border);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================
   7. FEATURED PROJECTS GRID
   ========================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.project-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.project-tags {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

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

.project-card a {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
}

.project-card a:hover {
  text-decoration: underline;
}

/* =========================================
   8. CAPABILITIES & SERVICES
   ========================================= */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.capability-group {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.capability-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.capability-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.capability-group li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.capability-group li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* =========================================
   9. CONTACT FORM & FOOTER
   ========================================= */
.contact p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.contact-form {
  max-width: 600px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-page);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.contact-form button {
  margin-top: 1rem;
  align-self: flex-start;
}

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-surface);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
}

.social-links a:hover {
  color: var(--accent);
}
/* =========================================
   10. INTERACTIVE STATES & MOBILE LAYOUT
   ========================================= */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  color: var(--text-main);
  cursor: pointer;
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.direct-contact {
  margin-bottom: 1.5rem;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #15803d;
}

.form-status.error {
  color: #b91c1c;
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 1.25rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}