/* ============================================================
   PORTFOLIO — style.css
   Color palette, spacing, and component styles.

   HOW TO CUSTOMIZE:
   - Change colors in the :root variables below
   - Fonts: update the Google Fonts link in index.html
   - Spacing: adjust --section-padding and --container-max
============================================================ */

/* ============================================================
   DESIGN TOKENS — edit colors here
============================================================ */
:root {
  /* Background */
  --bg:           #FAFAF7;   /* warm off-white */
  --bg-alt:       #F2EDE5;   /* warm beige sections */
  --bg-card:      #FFFFFF;

  /* Brand */
  --navy:         #1B2D4B;   /* primary dark */
  --navy-hover:   #253F68;
  --teal:         #4E8B7F;   /* parrot-inspired accent — used sparingly */
  --slate:        #6B7FA3;   /* muted blue-slate */

  /* Text */
  --text:         #1E1E2E;   /* graphite */
  --text-muted:   #5A5A72;
  --text-light:   #8A8A9A;

  /* Borders */
  --border:       #DDD8CF;
  --border-light: #EAE5DE;

  /* Typography */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Layout */
  --section-pad:  96px 0;
  --max-width:    1160px;
  --pad-x:        24px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Shadows */
  --s-sm: 0 1px 4px rgba(30,30,46,.06), 0 1px 2px rgba(30,30,46,.04);
  --s-md: 0 4px 20px rgba(30,30,46,.09);
  --s-lg: 0 8px 40px rgba(30,30,46,.12);

  /* Transition */
  --t: .2s ease;
}


/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .95rem; font-weight: 500; }
p  { line-height: 1.75; color: var(--text-muted); }


/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-pad); }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 52px; text-align: center; }
.section-header.left-aligned { text-align: left; margin-bottom: 32px; }
.section-header.centered { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-title { color: var(--navy); margin-bottom: 10px; }
.section-subtitle { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }


/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: all var(--t);
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: var(--s-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn-ghost:hover { color: var(--navy); }

/* Small nav variants */
.btn-primary-sm {
  display: inline-flex; align-items: center;
  padding: 7px 16px;
  font-size: .84rem; font-weight: 500;
  background: var(--navy); color: #fff;
  border: 1.5px solid var(--navy);
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.btn-primary-sm:hover { background: var(--navy-hover); }

.btn-outline-sm {
  display: inline-flex; align-items: center;
  padding: 7px 16px;
  font-size: .84rem; font-weight: 500;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: all var(--t);
}
.btn-outline-sm:hover { border-color: var(--navy); }

/* Contact section buttons */
.btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500;
  transition: all var(--t);
  margin-top: 8px;
}
.btn-download:hover { background: rgba(255,255,255,.2); }

.btn-send {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border: 1.5px solid var(--teal);
  border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500;
  transition: all var(--t); cursor: pointer;
}
.btn-send:hover { background: #3d7a6e; border-color: #3d7a6e; }
.btn-send:disabled { opacity: .7; cursor: not-allowed; }


/* ============================================================
   TAGS / PILLS
============================================================ */
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: .76rem; font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--t);
}
.tag:hover { background: var(--border); color: var(--navy); }

.tag-teal {
  background: rgba(78,139,127,.08);
  color: var(--teal);
  border-color: rgba(78,139,127,.2);
}


/* ============================================================
   NAVIGATION
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--t);
}
.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.22);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.nav-logo {
  font-size: 1rem; font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  font-size: .79rem; font-weight: 500;
  color: rgba(255,255,255,.6);
  padding: 5px 9px;
  border-radius: var(--r-sm);
  transition: all var(--t);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-actions .btn-outline-sm {
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.25);
}
.nav-actions .btn-outline-sm:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.nav-actions .btn-primary-sm {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.nav-actions .btn-primary-sm:hover { background: rgba(255,255,255,.25); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: var(--navy);
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block;
  padding: 13px 0;
  font-size: .95rem; font-weight: 500;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color var(--t);
}
.mobile-link:hover { color: #fff; }
.mobile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.mobile-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.mobile-actions .btn-primary {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
}


/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  border: 1.5px solid rgba(27,45,75,.09);
  top: -220px; right: -180px;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78,139,127,.11) 0%, transparent 70%);
  bottom: -100px; left: -120px;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
/* Extra circle - right side accent */
.hero-container::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(78,139,127,.1);
  top: 50%; right: -60px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.hero-container { position: relative; z-index: 1; }
.hero-scroll     { position: relative; z-index: 1; }

.hero-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-eyebrow {
  font-size: .88rem; font-weight: 500;
  color: var(--teal);
  letter-spacing: .06em;
  margin-bottom: 10px;
  display: block;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.07;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.hero-roles {
  font-size: .95rem;
  color: var(--slate);
  margin-bottom: 22px;
  letter-spacing: .02em;
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card */
.hero-visual { display: flex; justify-content: center; }

.hero-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--s-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Photo placeholder */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 250px; height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--border-light);
  display: block;
  box-shadow: 0 10px 50px rgba(27,45,75,.2);
}

/* Parrot badge */
.parrot-badge {
  position: absolute;
  bottom: 6px;
  right: calc(50% - 146px);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: var(--s-md);
  user-select: none;
}
.parrot-badge:hover {
  transform: scale(1.18) rotate(-10deg);
  border-color: rgba(78,139,127,.4);
  box-shadow: 0 8px 22px rgba(78,139,127,.28);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-number {
  font-size: 1.55rem; font-weight: 700;
  color: var(--navy); line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .68rem; color: var(--text-light); line-height: 1.3; }

/* Availability */
.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(78,139,127,.06);
  border: 1px solid rgba(78,139,127,.15);
  border-radius: 100px;
  padding: 7px 16px;
  justify-content: center;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78,139,127,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(78,139,127,0); }
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 28px;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--text-light);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--border), transparent);
}


/* ============================================================
   ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

/* Photo in right sidebar, above Quick Profile */
.about-sidebar-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  box-shadow: var(--s-md);
  margin-bottom: 20px;
}

.about-text p { margin-bottom: 16px; font-size: 1.02rem; }
.about-lead { font-size: 1.12rem !important; color: var(--text) !important; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}
.highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem; font-weight: 500;
  color: var(--text-muted);
}

/* Sidebar cards */
.about-card, .sw-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--s-sm);
}
.about-card { margin-bottom: 20px; }
.about-card h3, .sw-card h3 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.profile-list { margin-bottom: 20px; }
.profile-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .86rem;
}
.profile-list li:last-child { border-bottom: none; }
.profile-list li span:first-child { color: var(--text-light); }
.profile-list li span:last-child  { font-weight: 500; text-align: right; }

.about-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Strengths / weaknesses */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-label {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 10px;
}
.strength-label { color: var(--teal); }
.weakness-label { color: var(--slate); }
.sw-col ul { display: flex; flex-direction: column; gap: 7px; }
.sw-col li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.sw-col li::before { content: '-'; position: absolute; left: 0; color: var(--border); }


/* ============================================================
   EXPERIENCE / TIMELINE
============================================================ */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 44px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -21px; top: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 3px rgba(78,139,127,.15);
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--s-sm);
  transition: box-shadow var(--t);
}
.timeline-content:hover { box-shadow: var(--s-md); }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.job-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 3px; }
.job-company { font-size: .88rem; color: var(--text-muted); font-weight: 500; }
.job-type {
  font-size: .72rem;
  background: rgba(78,139,127,.08);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
  margin-left: 6px;
}
.job-period {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}
.job-desc { font-size: .9rem; margin-bottom: 14px; }
.job-achievements { margin-bottom: 14px; }
.job-achievements li {
  font-size: .86rem;
  color: var(--text-muted);
  padding: 3px 0 3px 18px;
  position: relative;
}
.job-achievements li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--teal);
  font-size: .78rem;
}
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }


/* ============================================================
   SKILLS
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.skill-category {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  border-top: 2px solid transparent;
  box-shadow: var(--s-sm);
  transition: box-shadow var(--t), border-top-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skill-category:hover {
  box-shadow: var(--s-md);
  border-top-color: var(--teal);
  transform: translateY(-2px);
}
.skill-category--accent { border-top-color: rgba(78,139,127,.3); }
.skill-category--accent:hover { border-top-color: var(--teal); }

/* Card header: icon + title */
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skill-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.skill-category:hover .skill-icon { transform: scale(1.12) rotate(-4deg); }
.skill-cat-header h3 { color: var(--navy); font-size: 1.05rem; }

/* Description */
.skill-desc {
  font-size: .84rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.55;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin: 0;
}

/* Section labels inside skill card */
.skill-section-label {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

/* Areas list */
.skill-areas ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.skill-areas li {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.skill-areas li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--teal);
  font-size: 1.2rem;
  line-height: .9;
  font-weight: 700;
}

/* Tools section */
.skill-tools-section { display: flex; flex-direction: column; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }


/* ============================================================
   PROJECTS
============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--s-sm);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--s-md);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-type {
  font-size: .7rem; font-weight: 700;
  color: var(--teal);
  text-transform: uppercase; letter-spacing: .07em;
}
.project-year { font-size: .78rem; color: var(--text-light); font-weight: 500; }
.project-card h3 { color: var(--navy); font-size: 1rem; }
.project-card > p { font-size: .86rem; line-height: 1.65; flex: 1; }

.project-outcome {
  font-size: .8rem;
  background: rgba(78,139,127,.06);
  border: 1px solid rgba(78,139,127,.14);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
}
.outcome-label { font-weight: 600; color: var(--teal); margin-right: 4px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }


/* ============================================================
   HOW I WORK + VALUES
============================================================ */
.two-col-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.work-cards { display: flex; flex-direction: column; gap: 14px; }

.work-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  transition: all var(--t);
}
.work-card:hover {
  border-color: rgba(78,139,127,.2);
  box-shadow: var(--s-sm);
}
.work-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.work-card h4 { color: var(--navy); margin-bottom: 5px; }
.work-card p { font-size: .86rem; }

.values-list { display: flex; flex-direction: column; gap: 22px; }
.value-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}
.value-item:last-child { border-bottom: none; padding-bottom: 0; }
.value-number {
  font-size: .7rem; font-weight: 700;
  color: var(--teal); letter-spacing: .05em;
  flex-shrink: 0; width: 26px; margin-top: 3px;
}
.value-item h4 { color: var(--navy); margin-bottom: 5px; }
.value-item p { font-size: .86rem; }


/* ============================================================
   TOOLS
============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-group {
  padding: 22px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
}
.tool-group h3 {
  font-size: .72rem;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-light);
  margin-bottom: 12px; font-weight: 600;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }


/* ============================================================
   EDUCATION & CERTIFICATIONS
============================================================ */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.edu-list { display: flex; flex-direction: column; gap: 26px; }
.edu-item {
  display: flex;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-light);
}
.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-year {
  font-size: .76rem; font-weight: 600;
  color: var(--text-light); white-space: nowrap;
  flex-shrink: 0; width: 88px; padding-top: 3px;
}
.edu-content h3 { color: var(--navy); margin-bottom: 3px; }
.edu-school { font-size: .86rem; font-weight: 500; color: var(--text-muted); margin-bottom: 3px; }
.edu-spec  { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; font-style: italic; }
.edu-thesis {
  font-size: .78rem;
  color: var(--text-light);
  background: var(--bg-alt);
  border-left: 2px solid var(--teal);
  padding: 6px 10px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 6px;
}
.edu-thesis span { font-weight: 600; color: var(--teal); margin-right: 4px; }

.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--t);
}
.cert-item:hover { box-shadow: var(--s-sm); }
.cert-badge {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  flex-shrink: 0;
}
.cert-item h4 { color: var(--navy); margin-bottom: 2px; font-size: .9rem; }
.cert-item p  { font-size: .8rem; }


/* ============================================================
   CURRENTLY INTO + RANDOM FACTS
============================================================ */
.fun-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.obsessed-list { display: flex; flex-direction: column; gap: 14px; }
.obsessed-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
}
.obsessed-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.obsessed-item h4 { color: var(--navy); margin-bottom: 5px; }
.obsessed-item p  { font-size: .84rem; }

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fact-card {
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  transition: all var(--t);
}
.fact-card:hover {
  border-color: rgba(78,139,127,.2);
  transform: translateY(-1px);
  box-shadow: var(--s-sm);
}
.fact-emoji { font-size: 1.4rem; display: block; margin-bottom: 9px; }
.fact-card p  { font-size: .84rem; line-height: 1.55; }


/* ============================================================
   CONTACT
============================================================ */
.contact-section { background: var(--navy); }
.contact-section .section-tag  { color: rgba(255,255,255,.45); }
.contact-section .section-title { color: #fff; }
.contact-section .section-subtitle { color: rgba(255,255,255,.55); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-item { margin-bottom: 22px; }
.contact-label {
  display: block;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}
.contact-value { font-size: .92rem; color: rgba(255,255,255,.82); font-weight: 500; }
a.contact-value:hover { color: #fff; }

/* Contact CTA panel (replaces form) */
.contact-cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-lg);
  padding: 48px 36px;
  border: 1px solid rgba(255,255,255,.09);
  text-align: center;
}

/* Hobi with speech bubble */
.contact-hobi-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-hobi-emoji {
  font-size: 4rem;
  display: block;
  animation: sway 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(78,139,127,.3));
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg) scale(1); }
  30%       { transform: rotate(6deg) scale(1.04); }
  70%       { transform: rotate(-5deg) scale(1.02); }
}
.contact-hobi-bubble {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-md);
  padding: 12px 20px;
  font-size: .84rem;
  font-style: italic;
  color: rgba(255,255,255,.6);
  max-width: 300px;
  line-height: 1.5;
}
.contact-hobi-bubble::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-bottom-color: rgba(255,255,255,.13);
  border-top: none;
}

/* CTA buttons */
.contact-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 340px;
}
.contact-cta-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.13);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .22s ease;
  text-align: left;
  font-family: var(--font);
  color: #fff;
  text-decoration: none;
}
.contact-cta-btn:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cta-btn-icon { font-size: 1.6rem; flex-shrink: 0; }
.cta-btn-text { flex: 1; }
.cta-btn-label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.cta-btn-sub {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.cta-btn-arrow {
  font-size: 1rem;
  color: rgba(255,255,255,.35);
  transition: transform .2s ease;
}
.contact-cta-btn:hover .cta-btn-arrow {
  transform: translateX(4px);
  color: rgba(255,255,255,.7);
}


/* ============================================================
   FOOTER
============================================================ */
.footer { background: #111829; padding: 28px 0; }

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-name {
  font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,.65);
  display: block;
}
.footer-tagline {
  font-size: .76rem;
  color: rgba(255,255,255,.32);
  display: block; margin-top: 2px;
}

.footer-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
}
.footer-parrot {
  font-size: 1.15rem; cursor: default;
  transition: transform .25s ease;
  display: block; text-align: center;
}
.footer-parrot:hover { transform: rotate(12deg) scale(1.25); }
.footer-credit {
  font-size: .7rem;
  color: rgba(255,255,255,.22); display: block;
}

.footer-right { display: flex; gap: 18px; }
.footer-right a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: color var(--t);
}
.footer-right a:hover { color: #fff; }


/* ============================================================
   NEW / EXTRA COMPONENTS
============================================================ */

/* Hobi caption under photo in hero card */
.hobi-caption {
  font-size: .7rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: -12px;
}

/* Hobi quote block in About */
.hobi-quote {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(78,139,127,.05);
  border: 1px solid rgba(78,139,127,.14);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 20px 0;
}
.hobi-q-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 3px; }
.hobi-q-content p {
  font-size: .86rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.hobi-q-content span {
  font-size: .72rem;
  color: var(--teal);
  font-weight: 600;
}

/* Experience — industry badge */
.job-industry-badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--slate);
  background: rgba(107,127,163,.08);
  border: 1px solid rgba(107,127,163,.18);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  margin-top: 2px;
}

/* Experience — two-column layout inside card */
.job-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 4px;
}
.job-focus-label {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

/* Experience — areas tag grid */
.job-areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .job-two-col { grid-template-columns: 1fr; gap: 16px; }
}

/* About — CV buttons */
.cv-actions {
  flex-wrap: wrap;
  gap: 8px !important;
}
.btn-sm {
  padding: 7px 14px !important;
  font-size: .8rem !important;
}
.cv-note {
  font-size: .72rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* Tag variant — learning */
.tag-learning {
  background: rgba(107,127,163,.08);
  color: var(--slate);
  border-color: rgba(107,127,163,.2);
}

/* Contact section — photo intro */
.contact-intro {
  margin-bottom: 28px;
}
.contact-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,.2);
  display: block;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.contact-person-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}
.contact-tagline {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 340px;
  font-style: italic;
}
.contact-cv-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Section-tag subtle underline accent */
.section-tag {
  border-bottom: 2px solid rgba(78,139,127,.28);
  padding-bottom: 2px;
}


/* ============================================================
   HERO CHIPS
============================================================ */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.hero-chip {
  font-size: .71rem;
  font-weight: 500;
  color: var(--text-light);
  background: rgba(27,45,75,.04);
  border: 1px solid var(--border-light);
  padding: 5px 13px;
  border-radius: 100px;
  letter-spacing: .02em;
  transition: all var(--t);
}
.hero-chip:hover {
  background: rgba(78,139,127,.07);
  border-color: rgba(78,139,127,.2);
  color: var(--teal);
}


/* ============================================================
   EMAIL MODAL
============================================================ */
.email-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.email-modal.visible { opacity: 1; }
.email-modal-content {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  max-width: 380px;
  width: 92%;
  position: relative;
  text-align: center;
  box-shadow: var(--s-lg);
  transform: translateY(16px);
  transition: transform .22s ease;
}
.email-modal.visible .email-modal-content { transform: translateY(0); }
.email-modal-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.email-modal-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.email-modal-label {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.email-modal-address {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-alt);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  word-break: break-all;
  border: 1px solid var(--border-light);
  display: block;
}
.email-modal-actions { display: flex; gap: 10px; justify-content: center; }
.email-modal-copy {
  padding: 10px 22px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: .86rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: background .2s;
  font-family: var(--font);
}
.email-modal-copy:hover { background: var(--navy-hover); }
.email-modal-open {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .86rem; font-weight: 500;
  color: var(--navy);
  transition: border-color .2s;
  display: inline-flex; align-items: center;
}
.email-modal-open:hover { border-color: var(--navy); }
.email-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer; background: none; border: none;
  line-height: 1; font-family: inherit;
  transition: color .2s;
}
.email-modal-close:hover { color: var(--navy); }


/* ============================================================
   BACKGROUND ACCENT DECORATIONS
============================================================ */

/* About section — subtle blue blob top-right */
#about {
  position: relative;
  overflow: hidden;
}
#about::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,45,75,.04) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
  z-index: 0;
}
#about .container { position: relative; z-index: 1; }

/* Skills section — decorative circle outline */
#skills {
  position: relative;
  overflow: hidden;
}
#skills::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(27,45,75,.05);
  bottom: -100px; right: -80px;
  pointer-events: none;
}
#skills::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(78,139,127,.08);
  top: 60px; left: -60px;
  pointer-events: none;
}
#skills .container { position: relative; z-index: 1; }

/* Experience section — left stripe accent */
#experience {
  position: relative;
}
#experience::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, rgba(78,139,127,.25), transparent);
  pointer-events: none;
}

/* Projects section — dot grid accent (CSS pattern) */
#projects {
  position: relative;
  overflow: hidden;
}
#projects::before {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background-image: radial-gradient(circle, rgba(27,45,75,.07) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  top: 40px; right: 20px;
  pointer-events: none;
  border-radius: var(--r-md);
}
#projects .container { position: relative; z-index: 1; }

/* Fun section — large circle outline */
#fun {
  position: relative;
  overflow: hidden;
}
#fun::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(27,45,75,.06);
  bottom: -160px; left: -100px;
  pointer-events: none;
}
#fun .container { position: relative; z-index: 1; }


/* ============================================================
   TOAST NOTIFICATION (parrot easter egg)
============================================================ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-size: .86rem; font-weight: 500;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--s-lg);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============================================================
   FADE-IN SCROLL ANIMATION
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   RESPONSIVE — tablet (≤1024px)
============================================================ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr 340px; gap: 40px; }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .tools-grid     { grid-template-columns: repeat(2, 1fr); }
  .about-grid     { grid-template-columns: 1fr 320px; gap: 36px; }
}


/* ============================================================
   RESPONSIVE — mobile (≤768px)
============================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 60px 0; }

  /* Nav */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    padding-top: 40px; gap: 36px;
  }
  .hero-visual { order: -1; }
  .hero-card { max-width: 100%; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }

  /* Grids */
  .skills-grid   { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .two-col-sections { grid-template-columns: 1fr; gap: 52px; }
  .tools-grid    { grid-template-columns: 1fr; }
  .edu-cert-grid { grid-template-columns: 1fr; gap: 48px; }
  .fun-grid      { grid-template-columns: 1fr; gap: 48px; }
  .facts-grid    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 36px; }

  /* Footer */
  .footer-container { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
}


/* ============================================================
   RESPONSIVE — small mobile (≤480px)
============================================================ */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .sw-grid { grid-template-columns: 1fr; }
  .hero-stats .stat-number { font-size: 1.3rem; }
}
