/* RESET + BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Ultra-light latte foam theme */
  --bg: #faf7f3;              /* very light cream */
  --bg-alt: #f5eee7;          /* pale warm beige */
  --accent: #d7a778;          /* soft caramel */
  --accent-soft: rgba(215, 167, 120, 0.18);

  --card-bg: #ffffff;         /* clean white cards */
  --card-bg-soft: #f9f3ec;    /* faint beige wash */
  --card-edge: rgba(200, 170, 140, 0.35);

  --text-main: #4b3627;       /* warm espresso brown (dark enough to read) */
  --text-sub: #7d6554;        /* soft mocha */

  --chip-bg: rgba(230, 214, 200, 0.85); /* creamy chip background */

  --card-radius: 1.4rem;
  
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Playfair Display", serif;
}



body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background:
    radial-gradient(circle at top left, #ffffff 0%, #faf7f3 45%, #f5eee7 100%);
  color: var(--text-main);
  line-height: 1.7;
}


/* GLOBAL HEADINGS */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* NAV */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(75, 54, 39, 0.95);
  border-bottom: 1px solid rgba(83, 57, 40, 0.55);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 0.9rem;
  color: #e1d5c5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: #e1d5c5;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Resume button in nav */
.nav-resume {
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(198, 118, 60, 0.7);
  font-size: 0.8rem;
  background: radial-gradient(circle at top left, #c6763c, #a75a2b);
  color: #140b07 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}
/* FULLSCREEN INTRO NAME */
.intro-name {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, #ffffff 0%, #faf7f3 40%, #f5eee7 100%);
  pointer-events: none;                 /* allow scrolling through */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-name-text {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4b3627;                       /* warm espresso */
}

/* hidden state after first scroll */
.intro-name.intro-hidden {
  opacity: 0;
  transform: translateY(-40px) scale(0.9);
}

/* HERO */
.hero {
  background: linear-gradient(
    to bottom,
    #faf7f3 0%,
    #f3ede7 40%,
    transparent 100%
  );
}


.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 0.6rem;
}

.name-line {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

#name {
  white-space: nowrap;
}

/* cursor */
.cursor {
  width: 2px;
  height: 1.2em;
  background: linear-gradient(to bottom, #d6a06f, #a75a2b);
  display: inline-block;
  opacity: 0.85;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.hero-tagline {
  margin-top: 1.2rem;
  font-size: 0.96rem;
  max-width: 540px;
  color: var(--text-sub);
  letter-spacing: 0.015em;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
  font-size: 0.84rem;
  text-align: center;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: #b59378;
  font-family: var(--font-body);
}

.meta-value {
  color: var(--text-main);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 0.87rem;
  border: 1px solid rgba(120, 84, 60, 0.75);
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  background: var(--chip-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--chip-bg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

.btn.primary {
  background: var(--chip-bg);
  border-color: rgba(120, 84, 60, 0.75);
  color: var(--text-main);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
  background: var(--chip-bg);
  color: var(--text-main);
}

/* Centered hero note */
.hero-note-centered {
  margin-top: 2.2rem;
  width: min(360px, 100%);
  background: var(--card-bg);
  border-radius: 1.8rem;
  padding: 1.5rem 1.5rem 1.3rem;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.hero-note-title {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #b59378;
  font-family: var(--font-body);
  font-weight: 600;
}

.hero-note-text {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--text-sub);
}

/* SECTION COMMON */
.section {
  padding: 3.1rem 1.5rem;
}

.section-header {
  max-width: 1080px;
  margin: 0 auto 1.6rem;
}

.section-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-sub);
  max-width: 600px;
}

/* ABOUT */
.about-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.about-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(246, 230, 210, 0.9);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.85),
    0 0 0 10px rgba(36, 22, 16, 0.9);
}

.about-text {
  font-size: 0.96rem;
  color: var(--text-sub);
  letter-spacing: 0.015em;
  line-height: 1.7;
}

.about-text ul {
  padding-left: 1.2rem;
}

/* PROJECTS */
.project-card-grid {
  max-width: 1080px;
  margin: 0 auto 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.project-card-tile {
  border-radius: 1.2rem;
  border: 1px solid rgba(120, 84, 60, 0.8);
  background: var(--chip-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 0.95rem 1rem 0.9rem;
  text-align: left;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.project-card-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
  border-color: rgba(216, 151, 100, 0.9);
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}

.project-card-tag {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b09a;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
}

/* Bounce animation when clicked */
.tile-bounce {
  animation: tile-bounce 0.4s ease;
}

@keyframes tile-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-7px); }
  60%  { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* Project details cards */
.project-details {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

.project-detail-card {
  background: var(--card-bg);
  border-radius: 1.8rem;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.5rem 1.3rem;
}

.project-detail-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}

.project-detail-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #b59378;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.project-detail-card p {
  font-size: 0.96rem;
  color: var(--text-sub);
  letter-spacing: 0.015em;
  line-height: 1.7;
}

.project-bullets {
  margin: 0.7rem 0 0.4rem;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.project-status {
  font-size: 0.82rem;
  color: #e4c09c;
}

/* SKILLS */
.skills-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.skills-card {
  background: var(--card-bg);
  border-radius: 1.8rem;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.5rem 1.3rem;
}

.skills-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid rgba(126, 89, 63, 0.7);
  font-size: 0.78rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* CONTACT */
.contact-layout {
  max-width: 1080px;
  margin: 0 auto;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 1.8rem;
  border: none;
  background: var(--card-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-list li {
  padding: 0.9rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: baseline;
  border-bottom: 1px solid rgba(200, 170, 140, 0.15);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  min-width: 80px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9a7f68;
}

.contact-list a {
  color: #f2c187;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  padding: 1.6rem 1.4rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #947c67;
  border-top: 1px solid #261510;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.footer-dot {
  font-size: 0.7rem;
}

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Anchor scroll offset for sticky nav */
section[id] {
  scroll-margin-top: 80px;
}

/* RESPONSIVE */
@media (max-width: 880px) {
  .nav-inner {
    gap: 0.7rem;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .nav-resume {
    display: none;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.2rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 1.2rem;
  }
}
