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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-yellow {
  display: inline-block;
  padding: 10px 24px;
  background: #F5C100;
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 2px solid #F5C100;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.btn-yellow:hover { background: #d9aa00; border-color: #d9aa00; }

.btn-outline {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn-outline:hover { background: #1a1a1a; color: #fff; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 58px;
  border-bottom: 1px solid #ebebeb;
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.08); }

.nav-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  position: relative;
  padding-bottom: 3px;
  transition: color .18s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #F5C100;
  transition: width .2s;
}
.nav-link:hover,
.nav-link.active          { color: #1a1a1a; }
.nav-link:hover::after,
.nav-link.active::after   { width: 100%; }

/* Resume button in desktop nav */
.nav-resume-btn {
  padding: 7px 18px;
  background: #F5C100;
  color: #1a1a1a;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #F5C100;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.nav-resume-btn:hover { background: #d9aa00; border-color: #d9aa00; }

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.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 dropdown */
.mob-menu {
  display: none;
  position: absolute;
  top: 58px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  flex-direction: column;
  padding: 8px 0 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.mob-menu.open { display: flex; }
.mob-link {
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid #f2f2f2;
  transition: color .18s, background .18s;
}
.mob-link:last-child { border-bottom: none; }
.mob-link:hover { color: #1a1a1a; background: #fafafa; }

/* ============================================
   SECTION 1 — HERO (text only, no photo)
   ============================================ */
.s-hero {
  min-height: 100vh;
  padding-top: 58px;
  display: flex;
  align-items: center;
  background: #f7f7f7;
}

.hero-text {
  max-width: 680px;
  padding: 80px 56px 80px 10%;
}

.hero-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #F5A000;
  margin-bottom: 18px;
}

.hero-name {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}

.hero-bio {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

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

/* ============================================
   SECTION 2 — PROJECTS
   ============================================ */
.s-projects {
  background: #ecebf3;
  padding: 80px 0 60px;
}

.sec-projects-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: -.02em;
}
.sec-projects-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: #F5C100;
  margin: 10px auto 56px;
  border-radius: 2px;
}

/* Card list */
.cards-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Individual card: text left / image right */
.pcard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  min-height: 260px;
  transition: box-shadow .22s, transform .22s;
}
.pcard:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Text half */
.pcard-text {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pcard-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.pcard-period {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #F5A000;
  margin-bottom: 10px;
}
.pcard-desc {
  font-size: 0.87rem;
  color: #555;
  line-height: 1.68;
  margin-bottom: 14px;
}
.pcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ptag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 4px;
  background: #fff9e6;
  color: #a07200;
  border: 1px solid #f5d87a;
}

/* Image half */
.pcard-img {
  overflow: hidden;
  background: #ddd;
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

/* ============================================
   SECTION 3 — ABOUT
   ============================================ */
.s-about {
  background: #fff;
  border-top: 1px solid #ebebeb;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 48px 64px;
}

.about-left { flex: 1; }

.about-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-body-text {
  font-size: 0.94rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
  max-width: 420px;
}

/* Contact links */
.about-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 26px;
}
.about-clink {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.87rem;
  font-weight: 500;
  color: #444;
  transition: color .18s;
}
.about-clink i {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff9e6;
  border: 1px solid #f5d87a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E09800;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background .18s, color .18s, border-color .18s;
}
.about-clink:hover     { color: #1a1a1a; }
.about-clink:hover i   { background: #F5C100; color: #1a1a1a; border-color: #F5C100; }

/* Right: yellow circle photo */
.about-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #F5C100;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 32px rgba(245,193,0,.3);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 48px 0 36px;
  border-top: 1px solid #f0f0f0;
}
.sf-icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 10px;
}
.sf-icons a {
  font-size: 1.2rem;
  color: #333;
  transition: color .18s;
}
.sf-icons a:hover { color: #F5C100; }
.sf-copy {
  font-size: 0.78rem;
  color: #aaa;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Accessibility fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE — TABLET  (≤ 860px)
   ============================================ */
@media (max-width: 860px) {
  /* Nav */
  .navbar       { padding: 0 24px; }
  .nav-right    { display: none; }
  .hamburger    { display: flex; }

  /* Hero — full width, less padding */
  .s-hero       { min-height: auto; padding-bottom: 60px; }
  .hero-text    { padding: 52px 24px 0; max-width: 100%; }

  /* Project cards — single column, image ON TOP */
  .cards-list   { padding: 0 16px; }
  .pcard {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .pcard-img    { height: 220px; order: 1; }  /* image first (top) */
  .pcard-text   { order: 2; }                 /* text below */

  /* About */
  .about-inner  { flex-direction: column; padding: 64px 24px 48px; gap: 40px; align-items: flex-start; }
  .about-right  { align-self: center; }
  .about-circle { width: 220px; height: 220px; }
  .about-body-text { max-width: 100%; }
}

/* ============================================
   RESPONSIVE — PHONE  (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-text    { padding: 40px 20px 0; }
  .hero-name    { font-size: 2.2rem; }

  /* Buttons side by side */
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-actions .btn-yellow,
  .hero-actions .btn-outline {
    flex: 1 1 auto;
    text-align: center;
  }

  .about-inner  { padding: 48px 20px 40px; }
  .about-circle { width: 180px; height: 180px; }
  .pcard-text   { padding: 24px 20px; }
}
