/* ─────────────────────────────────────────
   AYEISHA SHELDON — PORTFOLIO
   style.css
   Palette: #033D4F · #045872 · #9CD7E9 · #EBF5F7
   Font: Arimo (Google Fonts)
   Mode: Light
───────────────────────────────────────── */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #033D4F;
  --mid:     #045872;
  --accent:  #9CD7E9;
  --pale:    #EBF5F7;
  --white:   #ffffff;
  --muted:   #5A8A9F;
  --text:    #1a3a47;
  --border:  #d4eaf0;
  --border-mid: #c8e3ec;

  --font: 'Arimo', sans-serif;

  --container: 1100px;
  --radius: 8px;
  --radius-lg: 12px;

  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.accent { color: var(--mid); }

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--mid);
  border: 1.5px solid var(--mid);
}
.btn-outline:hover {
  background: rgba(4, 88, 114, 0.06);
}

/* ── EYEBROW / BADGE ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  background: rgba(4, 88, 114, 0.08);
  border: 1px solid rgba(4, 88, 114, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--mid);
  background: rgba(4, 88, 114, 0.07);
  border: 1px solid rgba(4, 88, 114, 0.18);
  border-radius: 4px;
  padding: 3px 10px;
}

/* ── NAVIGATION ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  color: rgba(156, 215, 233, 0.7);   /* was var(--muted) */
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link.active::after {background: var(--accent);   /* was var(--navy) */}
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

/* ── HERO ── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--pale);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 { margin-bottom: 1rem; }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Hero photo */
.hero-photo {
  width: 70%;
  height: 250;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(156, 215, 233, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(156, 215, 233, 0.1);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(156, 215, 233, 0.65);
}

/* ── SECTIONS ── */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.section-header h2 { margin-bottom: 0; }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about h2 { margin-bottom: 1.25rem; }
.about p { color: var(--text); margin-bottom: 0.9rem; }

.skills-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.9rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  background: rgba(4, 88, 114, 0.07);
  border: 1px solid rgba(4, 88, 114, 0.18);
  border-radius: 6px;
  padding: 5px 12px;
  transition: border-color var(--transition), background var(--transition);
}
.skill-tag i { color: var(--mid); font-size: 0.8rem; }
.skill-tag:hover {
  background: rgba(4, 88, 114, 0.12);
  border-color: rgba(4, 88, 114, 0.35);
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
}
.focus-item i {
  color: var(--mid);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ── PROJECT CARDS ── */
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--pale);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--mid);
  transform: translateY(-2px);
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  width: 36px;
  height: 36px;
  background: rgba(4, 88, 114, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  background: rgba(4, 88, 114, 0.08);
  border-radius: 4px;
  padding: 3px 8px;
}

.project-card h3 {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.3;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.project-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-meta i { color: var(--mid); font-size: 0.7rem; }

.project-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.25rem;
  transition: gap var(--transition);
}
.project-link:hover { gap: 8px; }

/* ── CARTOGRAPHY PREVIEW ── */
.carto-intro {
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.carto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.carto-placeholder {
  aspect-ratio: 4/3;
  background: var(--pale);
  border-radius: var(--radius);
  border: 1px dashed var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--transition);
}
.carto-placeholder:hover { border-color: var(--mid); }

/* ── CONTACT CTA ── */
.contact-cta {
  background: var(--navy);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-cta h2 { margin-bottom: 0.5rem; color: var(--white); }
.contact-cta p  { color: rgba(156, 215, 233, 0.75); max-width: 480px; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-cta .btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(156, 215, 233, 0.08);
  border: 1px solid rgba(156, 215, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition);
}
.social-link:hover {
  background: rgba(156, 215, 233, 0.18);
  border-color: rgba(156, 215, 233, 0.5);
}

/* ── FOOTER ── */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--navy);
}

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

.footer-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pale);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid       { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; }
  .hero-photo,
  .about-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-cards   { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .carto-grid      { grid-template-columns: repeat(2, 1fr); }
  .contact-cta-inner { flex-direction: column; align-items: flex-start; }
  .section-header  { flex-direction: column; align-items: flex-start; }
  .footer-inner    { flex-direction: column; align-items: flex-start; }
  .footer-links    { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);   /* already set correctly */
    border-bottom: 1px solid rgba(156, 215, 233, 0.12);
    padding: 1rem 2rem;
    z-index: 99;
  }
  .nav-links.open .nav-link { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .nav-toggle  { display: block; }
  .hero        { padding: 3rem 0; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .stat        { border-right: none; border-bottom: 1px solid rgba(156, 215, 233, 0.1); }
  .carto-grid  { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
