/* ═══════════════════════════════════════════
   JESTIN THOMAS — Portfolio CSS
   Theme: Warm Cream + Navy Blue
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:     #faf7f2;
  --cream2:    #f5f0e8;
  --cream3:    #ede8df;
  --navy:      #0a0f1e;
  --blue:      #1d4ed8;
  --blue-lt:   #3b82f6;
  --blue-pale: #eff6ff;
  --blue-bdr:  #bfdbfe;
  --text:      #0f172a;
  --text2:     #374151;
  --text3:     #64748b;
  --border:    #e4ddd4;
  --border2:   #d5cdc0;
  --white:     #ffffff;
  --green:     #16a34a;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.11);
  --radius:    10px;
  --radius-lg: 16px;
  --font:      'Inter', sans-serif;
  --serif:     'Playfair Display', serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; color: var(--text); background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══ NAV ═══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(250,247,242,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { font-size: .95rem; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.nav-links { display: flex; list-style: none; gap: .1rem; }
.nav-links a { font-size: .82rem; font-weight: 500; color: var(--text3); text-decoration: none; padding: .4rem .7rem; border-radius: 6px; transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-pale); }
.nav-cta { font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; padding: .5rem 1.1rem; border: 1.5px solid var(--blue); border-radius: 8px; transition: all .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--blue); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text2); border-radius: 2px; }

/* ═══ BUTTONS ═══ */
.btn-primary { display: inline-flex; align-items: center; gap: .4rem; background: var(--blue); color: #fff; font-weight: 600; font-size: .9rem; padding: .75rem 1.75rem; border-radius: 8px; text-decoration: none; transition: all .2s; border: none; cursor: pointer; font-family: var(--font); }
.btn-primary:hover { background: #1e40af; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,78,216,.3); }
.btn-secondary { display: inline-flex; align-items: center; background: var(--white); color: var(--text2); font-weight: 500; font-size: .9rem; padding: .75rem 1.75rem; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--border2); transition: all .2s; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ═══ SECTION HEADERS ═══ */
.section-tag { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--blue); background: var(--blue-pale); border: 1px solid var(--blue-bdr); padding: 3px 10px; border-radius: 100px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.section-header { margin-bottom: 3.5rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
.section-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding-top: 64px;
  background: var(--cream);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.star-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  padding: 60px 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}

/* LEFT */
.hero-left { display: flex; flex-direction: column; align-items: flex-start; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; color: var(--green); background: #f0fdf4; border: 1px solid #bbf7d0; padding: 5px 14px; border-radius: 100px; margin-bottom: 1.75rem; }
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s ease infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-name { font-size: clamp(3.5rem, 6.5vw, 6rem); font-weight: 700; color: var(--navy); line-height: .92; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero-name em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); display: block; }
.hero-role { font-size: 1rem; font-weight: 600; color: var(--text2); margin-bottom: .5rem; }
.hero-desc { font-size: .9rem; color: var(--text3); margin-bottom: 2rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-social { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 500; color: var(--text3); text-decoration: none; transition: color .2s; }
.social-link:hover { color: var(--blue); }

/* Stats under social */
.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border); width: 100%; }
.hstat { text-align: left; }
.hstat-n { font-size: 1.9rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.hstat-u { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.hstat p { font-size: .73rem; color: var(--text3); font-weight: 500; margin-top: 3px; }
.hstat-sep { width: 1px; height: 32px; background: var(--border2); }

/* ═══ HERO RIGHT — Photo + floating skills ═══ */
.hero-right { display: flex; justify-content: center; align-items: center; }

.photo-universe {
  position: relative;
  width: 480px; height: 520px;
  display: flex; align-items: center; justify-content: center;
}

/* Photo */
.hero-photo-wrap {
  width: 300px; height: 360px;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
  border: 3px solid var(--white);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* Floating skill stars */
.fstar {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--blue);
  padding: 5px 13px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 3;
  animation: floatStar 6s ease-in-out infinite;
}
/* Stagger animations */
.fs1  { animation-delay: 0s;    animation-duration: 6.2s; }
.fs2  { animation-delay: .5s;   animation-duration: 5.8s; }
.fs3  { animation-delay: 1s;    animation-duration: 6.5s; }
.fs4  { animation-delay: 1.5s;  animation-duration: 5.5s; }
.fs5  { animation-delay: 2s;    animation-duration: 6.8s; }
.fs6  { animation-delay: 2.5s;  animation-duration: 5.2s; }
.fs7  { animation-delay: .8s;   animation-duration: 7s;   }
.fs8  { animation-delay: 1.8s;  animation-duration: 5.9s; }
.fs9  { animation-delay: 3s;    animation-duration: 6.3s; }
.fs10 { animation-delay: .3s;   animation-duration: 5.6s; }

@keyframes floatStar {
  0%, 100% { transform: translateY(0px) scale(1); opacity: .9; }
  33%       { transform: translateY(-8px) scale(1.03); opacity: 1; }
  66%       { transform: translateY(5px) scale(.97); opacity: .85; }
}

/* Positions scattered around the photo */
.fs1  { top: 6%;   left: 2%;   }
.fs2  { top: 3%;   right: 8%;  }
.fs3  { top: 20%;  left: -4%;  }
.fs4  { top: 20%;  right: -2%; }
.fs5  { top: 42%;  left: -6%;  }
.fs6  { top: 42%;  right: -4%; }
.fs7  { top: 62%;  left: 0%;   }
.fs8  { top: 62%;  right: 2%;  }
.fs9  { bottom: 8%; left: 10%; }
.fs10 { bottom: 5%; right: 10%;}

/* ═══ ABOUT ═══ */
.about { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
.about-text p { color: var(--text2); margin-bottom: 1.2rem; font-size: .96rem; line-height: 1.85; }
.about-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1.5rem; }
.about-pills span { font-family: var(--mono); font-size: .76rem; background: var(--cream2); color: var(--text2); padding: 4px 11px; border-radius: 6px; border: 1px solid var(--border); transition: all .2s; }
.about-pills span:hover { background: var(--blue-pale); color: var(--blue); border-color: var(--blue-bdr); }
.about-skills { display: flex; flex-direction: column; gap: 1.2rem; }
.skill-group { padding: 1.2rem; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); transition: all .2s; }
.skill-group:hover { border-color: var(--blue-bdr); box-shadow: 0 0 0 3px var(--blue-pale); }
.skill-group h4 { font-size: .83rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.skill-group p { font-size: .8rem; color: var(--text3); line-height: 1.65; }

/* ═══ EXPERIENCE ═══ */
.experience { background: var(--cream); border-bottom: 1px solid var(--border); }
.exp-list { display: flex; flex-direction: column; gap: 1.5rem; }
.exp-item { display: grid; grid-template-columns: 190px 1fr; gap: 3rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: all .2s; }
.exp-item:hover { box-shadow: var(--shadow); border-color: var(--blue-bdr); }
.exp-meta { display: flex; flex-direction: column; gap: .4rem; }
.exp-logo { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: .04em; margin-bottom: .3rem; }
.tz-logo { background: var(--blue-pale); border: 1.5px solid var(--blue-bdr); color: var(--blue); }
.si-logo { background: #fdf4ff; border: 1.5px solid #e9d5ff; color: #7c3aed; }
.exp-company { font-size: .88rem; font-weight: 700; color: var(--navy); }
.exp-period { font-family: var(--mono); font-size: .73rem; color: var(--text3); }
.exp-badge { display: inline-block; font-size: .7rem; font-weight: 600; background: var(--blue-pale); color: var(--blue); border: 1px solid var(--blue-bdr); padding: 2px 9px; border-radius: 100px; margin-top: .2rem; width: fit-content; }
.exp-badge-2 { background: #fdf4ff; color: #7c3aed; border-color: #e9d5ff; }
.exp-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.exp-project { font-family: var(--mono); font-size: .76rem; color: var(--blue); margin-bottom: .9rem; }
.exp-content ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.exp-content li { padding-left: 1.2rem; position: relative; font-size: .88rem; color: var(--text2); line-height: 1.7; }
.exp-content li::before { content: '·'; position: absolute; left: 0; color: var(--blue); font-size: 1.2rem; line-height: 1.3; }
.exp-content strong { color: var(--text); font-weight: 600; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1.1rem; }
.exp-tags span { font-family: var(--mono); font-size: .7rem; background: var(--cream); color: var(--text3); padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border); }

/* ═══ PROJECTS ═══ */
.projects { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.proj-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; transition: all .25s; position: relative; overflow: hidden; }
.proj-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-lt)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.proj-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-bdr); background: var(--white); transform: translateY(-3px); }
.proj-card:hover::before { transform: scaleX(1); }
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.proj-num { font-family: var(--mono); font-size: .72rem; color: var(--blue); font-weight: 600; }
.proj-gh { font-size: .78rem; font-weight: 600; color: var(--blue); text-decoration: none; padding: 3px 10px; border: 1px solid var(--blue-bdr); border-radius: 6px; background: var(--blue-pale); transition: all .2s; }
.proj-gh:hover { background: var(--blue); color: var(--white); }
.proj-top-links { display: flex; gap: .5rem; align-items: center; }
.proj-live { font-size: .76rem; font-weight: 600; color: var(--white); background: var(--blue); text-decoration: none; padding: 3px 10px; border-radius: 6px; transition: background .2s; }
.proj-live:hover { background: #1e40af; }
.proj-badge-inline { font-family: var(--mono); font-size: .68rem; background: #fdf4ff; color: #7c3aed; border: 1px solid #e9d5ff; padding: 2px 7px; border-radius: 5px; font-weight: 500; vertical-align: middle; }
.proj-card h3 { font-size: .98rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.proj-card p { font-size: .86rem; color: var(--text2); line-height: 1.75; flex: 1; }
.proj-card strong { color: var(--text); font-weight: 600; }
.proj-metrics { display: flex; gap: 1.4rem; padding: .85rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pm { display: flex; flex-direction: column; gap: 2px; }
.pm strong { font-size: .95rem; font-weight: 700; color: var(--navy); }
.pm span { font-family: var(--mono); font-size: .68rem; color: var(--text3); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tags span { font-family: var(--mono); font-size: .68rem; background: var(--white); color: var(--text3); padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border); }

/* ═══ EDUCATION ═══ */
.education { background: var(--cream); border-bottom: 1px solid var(--border); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.edu-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; }
.edu-card:hover { box-shadow: var(--shadow); border-color: var(--blue-bdr); transform: translateY(-2px); }
.edu-img-wrap { height: 175px; overflow: hidden; }
.edu-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.edu-card:hover .edu-img { transform: scale(1.04); }
.edu-body { padding: 1.4rem; }
.edu-year { font-family: var(--mono); font-size: .73rem; color: var(--blue); font-weight: 500; display: block; margin-bottom: .45rem; }
.edu-body h3 { font-size: .97rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.edu-inst { font-size: .83rem; color: var(--blue); font-weight: 500; margin-bottom: .15rem; }
.edu-loc { font-size: .8rem; color: var(--text3); margin-bottom: .85rem; }
.edu-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-tags span { font-family: var(--mono); font-size: .68rem; background: var(--cream); color: var(--text3); padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border); }

/* ═══ RESEARCH ═══ */
.research { background: var(--white); border-bottom: 1px solid var(--border); }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.research-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; transition: all .25s; }
.research-card:hover { box-shadow: var(--shadow); border-color: var(--blue-bdr); background: var(--white); }
.research-meta { display: flex; justify-content: space-between; align-items: center; padding-bottom: .9rem; border-bottom: 1px solid var(--border); gap: .5rem; flex-wrap: wrap; }
.research-source { font-family: var(--mono); font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.ieee-src { color: var(--blue); background: var(--blue-pale); border: 1px solid var(--blue-bdr); }
.patent-src { color: #7c3aed; background: #fdf4ff; border: 1px solid #e9d5ff; }
.research-date { font-family: var(--mono); font-size: .72rem; color: var(--text3); }
.research-card h3 { font-size: .97rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.research-sub { font-size: .83rem; color: var(--blue); font-style: italic; }
.research-card > p { font-size: .86rem; color: var(--text2); line-height: 1.75; flex: 1; }
.research-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.research-tags span { font-family: var(--mono); font-size: .68rem; background: var(--white); color: var(--text3); padding: 3px 8px; border-radius: 5px; border: 1px solid var(--border); }
.research-cta { font-size: .84rem; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-block; padding: .5rem .9rem; background: var(--blue-pale); border: 1px solid var(--blue-bdr); border-radius: 7px; width: fit-content; transition: all .2s; }
.research-cta:hover { background: var(--blue); color: var(--white); }

/* ═══ CONTACT ═══ */
.contact { background: var(--navy); }
.contact .section-tag { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #93c5fd; }
.contact .section-title { color: #fff; }
.contact .section-title em { color: #93c5fd; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.contact-desc { color: #94a3b8; font-size: .93rem; margin-bottom: 2rem; line-height: 1.75; }
.contact-details { display: flex; flex-direction: column; gap: .6rem; }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); text-decoration: none; transition: all .2s; }
.contact-row:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.cr-icon { font-size: 1.2rem; flex-shrink: 0; }
.cr-label { font-family: var(--mono); font-size: .72rem; color: #64748b; font-weight: 500; margin-bottom: 1px; }
.cr-val { font-size: .84rem; color: #e2e8f0; font-weight: 500; }
.form-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 2rem; }
.form-card h3 { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin-bottom: .3rem; }
.form-card > p { font-size: .85rem; color: #64748b; margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .75rem; font-weight: 600; color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; font-family: var(--mono); }
.form-group input, .form-group textarea { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: .7rem .9rem; color: #f1f5f9; font-family: var(--font); font-size: .88rem; transition: all .2s; outline: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue-lt); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #475569; }
.form-btn { width: 100%; justify-content: center; border-radius: var(--radius); font-size: .9rem; }
.form-msg { padding: .7rem 1rem; border-radius: var(--radius); font-size: .86rem; text-align: center; margin-top: .25rem; }
.form-msg.success { background: rgba(22,163,74,.15); border: 1px solid rgba(22,163,74,.3); color: #86efac; }
.form-msg.error { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }

/* ═══ FOOTER ═══ */
.footer { background: #060a14; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.footer-name { font-size: .95rem; font-weight: 700; color: #f1f5f9; }
.footer-desc { font-size: .8rem; color: #475569; }
.footer-links { display: flex; gap: 1.5rem; margin: .4rem 0; }
.footer-links a { font-size: .8rem; color: #475569; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #93c5fd; }
.footer-copy { font-size: .75rem; color: #1e293b; font-family: var(--mono); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-inner { gap: 2.5rem; }
  .photo-universe { width: 380px; height: 440px; }
  .hero-photo-wrap { width: 240px; height: 300px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { align-items: center; }
  .hero-right { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .exp-item { grid-template-columns: 1fr; gap: 1.25rem; }
  .exp-meta { flex-direction: row; align-items: center; gap: 1rem; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .edu-grid, .research-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 70px 0; }
  .proj-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
}
.nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; background: rgba(250,247,242,.98); align-items: center; justify-content: center; gap: 2rem; z-index: 199; backdrop-filter: blur(8px); }
.nav-links.open a { font-size: 1.1rem; color: var(--navy); }
