@import url('./fonts.css');
@import url('./theme.css');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #FFFFFF;
  color: #000000;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s ease;
}
.nav-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: #000000;
}
.nav-logo sup { font-size: 0.5em; vertical-align: super; }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  font-family: var(--font-body); font-size: 0.875rem;
}
.nav-links a {
  color: #6F6F6F;
  transition: color 0.3s ease;
}
.nav-links a:first-child { color: #000000; }
.nav-links a:hover { color: #000000; }
.nav-cta {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  background: #000000; color: #FFFFFF;
  font-size: 0.875rem; font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: #000; display: block; transition: 0.3s; }

/* ===== Hero Container ===== */
.hero-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #FFFFFF;
}

/* Video Background */
.hero-video-wrap {
  position: absolute;
  inset: auto 0 0 0;
  top: 300px;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #FFFFFF 0%, transparent 30%, transparent 70%, #FFFFFF 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative; z-index: 10;
  padding-top: 10rem;
  padding-bottom: 10rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-left: 1.5rem; padding-right: 1.5rem;
  min-height: 100vh;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -2.46px;
  color: #000000;
  max-width: 80rem;
}
.hero-headline em {
  color: #6F6F6F;
  font-style: italic;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 42rem;
  margin-top: 2rem;
  line-height: 1.7;
  color: #6F6F6F;
}
.hero-cta-btn {
  display: inline-block;
  margin-top: 3rem;
  padding: 1.25rem 3.5rem;
  border-radius: 9999px;
  background: #000000; color: #FFFFFF;
  font-size: 1rem; font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta-btn:hover { transform: scale(1.03); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* ===== Section Base ===== */
.section {
  padding: 7rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
  scroll-margin-top: 5rem;
}
.section-full {
  padding: 7rem 2rem;
  width: 100%;
  scroll-margin-top: 5rem;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6F6F6F;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #000000;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.section-title em { color: #6F6F6F; font-style: italic; }
.section-desc {
  color: #6F6F6F;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}
.section-divider {
  width: 100%; height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: #6F6F6F;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 58ch;
}
.about-text p strong { color: #000000; font-weight: 500; }
.about-panel {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 2rem;
}
.about-panel-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6F6F6F;
  margin-bottom: 0.5rem;
}
.about-panel-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 1.5rem;
}
.about-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}
.about-panel dt { color: #6F6F6F; }
.about-panel dd { color: #000000; }

/* ===== Experience ===== */
.exp-card {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid #000000;
  border-radius: 0 16px 16px 0;
  padding: 2.5rem 2rem;
}
.exp-head {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.exp-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.exp-org { color: #6F6F6F; font-size: 0.95rem; margin-top: 0.25rem; }
.exp-dates {
  font-size: 0.85rem;
  color: #6F6F6F;
  white-space: nowrap;
}
.exp-card ul { display: grid; gap: 0.85rem; }
.exp-card li {
  position: relative;
  padding-left: 1.5rem;
  color: #6F6F6F;
  font-size: 0.95rem;
  line-height: 1.6;
}
.exp-card li::before {
  content: '—';
  position: absolute; left: 0;
  color: #000;
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.skill-cat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6F6F6F;
  margin-bottom: 0.5rem;
}
.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #000;
}
.skill-card .skill-desc {
  color: #6F6F6F;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #FFFFFF;
  color: #000;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: background 0.2s, border-color 0.2s;
}
.chip:hover { background: #000; color: #FFF; border-color: #000; }

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.project-card {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.project-card h3 {
  font-size: 1.25rem;
  color: #000;
  margin-bottom: 0.75rem;
}
.project-card p {
  color: #6F6F6F;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.6;
}
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tag {
  font-size: 0.72rem;
  color: #6F6F6F;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}
.project-link {
  font-size: 0.85rem;
  color: #000;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.2s ease;
}
.project-link:hover { gap: 0.6rem; }
.project-link::after { content: '→'; }

/* ===== Certifications ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(0,0,0,0.2); }
.cert-name { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.4rem; color: #000; }
.cert-issuer { font-size: 0.8rem; color: #6F6F6F; }

/* ===== Education ===== */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.edu-card {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 2rem;
}
.edu-badge {
  font-size: 0.72rem;
  color: #FFF;
  background: #000;
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.edu-school { color: #6F6F6F; margin-bottom: 1rem; font-size: 0.95rem; }
.edu-meta { color: #6F6F6F; font-size: 0.9rem; line-height: 1.8; }

.extra-panel {
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 2rem;
}
.extra-panel h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.extra-panel li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #6F6F6F;
  font-size: 0.93rem;
  line-height: 1.6;
}
.extra-panel li::before {
  content: '—';
  position: absolute; left: 0;
  color: #000;
}
.extra-panel li:last-child { margin-bottom: 0; }

/* ===== Contact / Footer ===== */
.footer {
  background: #FAFAFA;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 2rem;
  scroll-margin-top: 5rem;
}
.contact-list {
  display: grid; gap: 0;
  margin-top: 0.5rem;
  max-width: 520px;
}
.contact-row {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.92rem;
  align-items: baseline;
  flex-wrap: wrap;
  transition: padding-left 0.3s ease;
}
.contact-row:hover { padding-left: 0.75rem; }
.contact-row .cmd { color: #6F6F6F; min-width: 5rem; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-row .val { color: #000; }
.contact-row:hover .val { color: #6F6F6F; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 2.5rem; margin-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem; color: #6F6F6F;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a, .nav-links .nav-cta {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.04);
    width: 100%;
    text-align: left;
    border-radius: 0;
  }
  .nav-toggle { display: flex; }
  .about-grid, .education-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 5rem 1.5rem; }
  .hero-content { padding-top: 6rem; padding-bottom: 6rem; }
  .hero-video-wrap { top: 200px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 1rem 1.25rem; }
  .hero-headline { letter-spacing: -1.2px; }
  .section { padding: 3.5rem 1.25rem; }
}
