/* ============================================
   Classic Apple-style portfolio
   Primary: mid-dark navy
   ============================================ */

:root {
  --navy: #1E2A47;        /* primary — mid dark navy */
  --navy-dark: #15203A;   /* hover / deeper tone */
  --navy-soft: #2F3F63;   /* lighter navy for gradients */
  --navy-tint: #EEF1F7;   /* very light navy tint for backgrounds */

  --text: #1D1D1F;        /* Apple near-black */
  --text-muted: #6E6E73;  /* Apple gray text */
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;      /* Apple light gray */
  --border: #D2D2D7;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 980px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: rgba(30, 42, 71, 0.85);     /* navy, translucent */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 120px 0 110px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.eyebrow {
  font-size: 19px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--text);
}

.lead {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;           /* Apple pill */
  padding: 12px 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-link {
  padding: 0;
  color: var(--navy);
}

.btn-link:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }

.section-tinted { background: var(--bg-alt); }

.section-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 10px;
  font-size: 19px;
  color: var(--text-muted);
}

/* ---------- Work grid / cards ---------- */
.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 42, 71, 0.16);
}

.card-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.card-thumb.alt {
  background: linear-gradient(135deg, var(--navy-soft) 0%, #4A5C87 100%);
}

.card-thumb.alt2 {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.card-body { padding: 24px; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-link {
  font-size: 15px;
  color: var(--navy);
}

.card-link:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-top: 18px;
  font-size: 19px;
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  gap: 16px;
}

.stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.stat strong {
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 15px;
  color: var(--text-muted);
}

/* ---------- Skills ---------- */
.pills {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pills li {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  background: var(--navy-tint);
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pills li:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  background: var(--navy);
  color: #fff;
}

.contact .section-title { color: #fff; }
.contact .section-sub   { color: rgba(255, 255, 255, 0.7); }

.contact .btn-primary {
  margin-top: 32px;
  background: #fff;
  color: var(--navy);
}

.contact .btn-primary:hover { background: var(--bg-alt); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  padding: 24px 0;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { padding: 80px 0 70px; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  .section { padding: 70px 0; }
  .section-title { font-size: 32px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .nav-links { display: none; }
}