/*─────────────────────────────────────────────────────────────────
  IMPORT INTER & MERRIWEATHER FROM GOOGLE FONTS
─────────────────────────────────────────────────────────────────*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Merriweather:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

/*─────────────────────────────────────────────────────────────────
  0. LOAD EYEGLASS NORMAL (no spaces in filename / root/fonts/)
─────────────────────────────────────────────────────────────────*/
@font-face {
  font-family: 'Eyeglass Normal';
  src: url('fonts/eye-glass-2.woff') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*─────────────────────────────────────────────────────────────────
  1. ROOT VARIABLES
─────────────────────────────────────────────────────────────────*/
:root {
  --bg: #000000;
  --overlay: rgba(0,0,0,0.7);
  --card-bg: #121212;
  --card: #1a1a1a;
  --accent: #DAA520;
  --text-light: #F5F5F5;
  --text-muted: #AAAAAA;
  --bullet: #F5F5F5;
  --transition: 0.3s ease;
}

/*─────────────────────────────────────────────────────────────────
  2. GLOBAL RESET & TYPOGRAPHY
─────────────────────────────────────────────────────────────────*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text-light);
  /* use Lora for all body text */
  font-family: 'Lora', serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* explicitly style the hamburger so it never falls back to a tiny font */
#menu {
  font-family: 'Eyeglass Normal', serif;
  font-size: 2.5rem;
  line-height: 1;
}

/*─────────────────────────────────────────────────────────────────
  3. HEADER / NAVIGATION
─────────────────────────────────────────────────────────────────*/
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  transition: background var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
}
header.scrolled {
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: clamp(300px, 95vw, 2000px);
  margin: 0 auto;
}
.logo {
  font-family: 'Eyeglass Normal', serif;
  font-size: 2.5rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 4rem;
}
.nav-wrapper {
  display: flex;
  justify-content: flex-end;
}
nav#header-nav {
  position: relative;
  transition: right var(--transition);
}
nav#header-nav ul {
  display: flex;
  gap: 2em;
  list-style: none;
}
nav#header-nav a {
  font-family: 'Eyeglass Normal', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
nav#header-nav a:hover,
nav#header-nav a.active {
  background: var(--accent);
  color: #121212;
}

/*─────────────────────────────────────────────────────────────────
  4. HAMBURGER BUTTON
─────────────────────────────────────────────────────────────────*/
#menu,
#menu-toggle {
  display: none;
}
@media (max-width: 768px) {
  /* show hamburger on mobile */
  #menu,
  #menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* above nav */
  }
}
#menu .bar,
#menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/*─────────────────────────────────────────────────────────────────
  5. HERO SECTION
─────────────────────────────────────────────────────────────────*/
.hero {
  /* use safe viewport height on iOS */
  min-height: 100vh;
  height: 100svh;
  background: url('images/new-york-cityscape-uhd-4k-wallpaper.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  padding: 1em;
}
.hero h1,
.hero p,
.hero .btn {
  font-family: 'Eyeglass Normal', serif;
}
.hero h1 {
  font-size: 5rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5em;
}
.hero .btn {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75em 2em;
  background: var(--accent);
  color: #121212;
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--transition);
}
.hero .btn:hover {
  background: #c2942d;
}

/*─────────────────────────────────────────────────────────────────
  6. SECTION BASE & CONTAINER
─────────────────────────────────────────────────────────────────*/
.section {
  background: var(--bg);
  padding: 6em 0;
}
.container {
  width: 90%;
  max-width: clamp(300px, 85vw, 1200px);
  margin: 0 auto;
}

/*─────────────────────────────────────────────────────────────────
  7. SECTION HEADINGS
─────────────────────────────────────────────────────────────────*/
.section h2 {
  font-family: 'Eyeglass Normal', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1em;
}

/*─────────────────────────────────────────────────────────────────
  8. ABOUT PAGE STYLES
─────────────────────────────────────────────────────────────────*/
#about h2 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
}
#about p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* animated photo strip */
.image-strip {
  overflow: hidden;
}
.strip-inner {
  display: flex;
  animation: scroll-left 20s linear infinite;
}
.strip-item {
  flex: 0 0 250px;
  margin-right: 1rem;
  text-align: center;
}
.strip-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform var(--transition);
}
.strip-item:hover img {
  transform: translateY(-10px);
}
.strip-item .caption {
  margin-top: .5rem;
  font-size: .9rem;
  color: var(--text-muted);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/*─────────────────────────────────────────────────────────────────
  9. PDF RESUME CANVAS (About page)
─────────────────────────────────────────────────────────────────*/
#resume canvas {
  display: block;
  margin: 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/*─────────────────────────────────────────────────────────────────
 10. GLOBAL BANNER STYLE
─────────────────────────────────────────────────────────────────*/
.banner {
  background: var(--card);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.4);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}
.banner h2 {
  margin: 0;
  font-family: 'Eyeglass Normal', serif;
  font-size: 2.25rem;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .15em;
}

/*─────────────────────────────────────────────────────────────────
 11. EXPERIENCE PAGE STYLES
─────────────────────────────────────────────────────────────────*/
.resume-container {
  max-height: 75vh;
  overflow-y: auto;
  padding-top: 1rem;
}
.job {
  display: flex;
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  align-items: stretch;
}
.job::before {
  content: '';
  width: 6px;
  background: var(--accent);
}
.company-block {
  width: 200px;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: .75rem;
}
.job-logo,
.job-logo--placeholder {
  width: 48px;
  height: 48px;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  object-fit: contain;
}
.company-btn {
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 20px;
  padding: .5rem 1rem;
  font-family: 'Eyeglass Normal', serif;
  font-size: .9rem;
  text-transform: uppercase;
  pointer-events: none;
}
.job-content {
  padding: 1rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.job-content h3 {
  font-family: 'Eyeglass Normal', serif;
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 .5rem;
}
.job-meta {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.job-content ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  flex: 1;
}
.job-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .75rem;
  line-height: 1.5;
}
.job-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--bullet);
}

/*─────────────────────────────────────────────────────────────────
 12. PROJECT CARDS (Me-Projects page)
─────────────────────────────────────────────────────────────────*/
.project-category {
  margin-top: 3rem;
}
.project-category h3 {
  font-family: 'Eyeglass Normal', serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.project-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-title {
  font-family: 'Eyeglass Normal', serif;
  font-size: 1.3rem;
  color: var(--accent);
}
.project-tags {
  font-family: 'Merriweather', serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.project-short {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  margin: 0.5rem 0;
}
.toggle-more {
  align-self: flex-start;
  background: var(--accent);
  color: #121212;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Merriweather', serif;
  transition: background var(--transition);
}
.toggle-more:hover {
  background: #c2942d;
}

/* the expandable panel */
/*─────────────────────────────────────────────────────────────────
   PROJECT “MORE/LESS INFO” PANELS (using .summary)
─────────────────────────────────────────────────────────────────*/
.summary {
  display: none;
  margin-top: 1rem;
  font-family: 'Merriweather', serif;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}
.summary.active {
  display: block;
}
.summary ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin: 0;
}
.summary li {
  margin-bottom: .5rem;
}
.download-link {
  display: inline-block;
  margin-top: .5rem;
  padding: .4rem .8rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: .3rem;
  font-weight: bold;
  transition: background var(--transition);
}
.download-link:hover {
  background: #c2942d;
}



/*─────────────────────────────────────────────────────────────────
 13. BLOG LIST
─────────────────────────────────────────────────────────────────*/
.blog-list {
  list-style: none;
  font-family: 'Merriweather', serif;
  padding: 0;
}
.blog-list li {
  margin-bottom: 1em;
}
.blog-list li a {
  color: var(--accent);
  text-decoration: none;
}
.blog-list li a:hover {
  text-decoration: underline;
}

/*─────────────────────────────────────────────────────────────────
 14. PUBLICATIONS GRID
─────────────────────────────────────────────────────────────────*/
.publication-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .publication-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pub-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pub-image {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.pub-title {
  font-family: 'Eyeglass Normal', serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.pub-authors,
.pub-lab,
.pub-prof,
.pub-venue,
.pub-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.pub-links a {
  margin-right: 1rem;
  font-weight: bold;
  color: var(--accent);
}
.learn-more {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.learn-more:hover {
  text-decoration: underline;
}

/*─────────────────────────────────────────────────────────────────
 15. LINKEDIN BUTTON (Contact section)
─────────────────────────────────────────────────────────────────*/
#contact .btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.75em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition);
}
#contact .btn-linkedin:hover {
  background: #c2942d;
}

/*─────────────────────────────────────────────────────────────────
 16. FOOTER
─────────────────────────────────────────────────────────────────*/
footer {
  background: var(--bg);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  font-family: 'Merriweather', serif;
}

/*─────────────────────────────────────────────────────────────────
 17. RESPONSIVE / MOBILE NAV DRAWER & HERO ADJUSTMENTS
─────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  /* header & container tweaks */
  header {
    padding: 1rem 0;
  }
  .container {
    width: 100%;
    padding: 0 1rem;
  }

  /* hamburger */
  #menu {
    display: flex;                 /* ensure it’s visible */
    align-items: center;           /* vertical centering */
    justify-content: center;
    font-size: 2rem;               /* bigger icon */
    width: 48px;                   /* larger tap area */
    height: 48px;
    margin-left: auto;             /* push it to the right */
    color: var(--text-light);      /* ensure contrast */
  }
  #menu-toggle {
    display: flex;
  }

  /* slide-in nav */
  nav#header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: right var(--transition);
    z-index: 1000;
  }
  nav#header-nav.open {
    right: 0;
  }
  nav#header-nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  /* hero section adjustments */
  .logo {
    font-size: 1.5rem;
    margin-right: 1rem;
  }
  .hero h1 {
    font-size: 3rem;
    letter-spacing: 0.05em;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero .hero-content {
    padding: 0 1rem;
  }
  .hero .btn {
    padding: 0.5em 1em;
    font-size: 0.9rem;
  }

  /* about adjustments */
  #about h2 {
    font-size: 1.5rem;
  }
  #about p {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  /* strip adjustments */
  .strip-item {
    flex: 0 0 40%;
    margin-right: .5rem;
  }
  .strip-inner {
    width: calc((40vw + .5rem) * 6);
  }
  @keyframes scroll-left {
    to { transform: translateX(calc(-1 * (40vw + .5rem) * 3)); }
  }

  /* resume canvas */
  #resume canvas {
    width: 100% !important;
    height: auto !important;
  }

  /* work experience mobile fix */
  .job {
    flex-direction: column;
  }
  .company-block {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
  }
  .company-block .job-logo,
  .company-block .job-logo--placeholder {
    margin-right: 1rem;
  }
  .job-content {
    padding: 1rem;
  }
}
