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

/* VARIABLES */
:root {
  --bg: #F5F5F0;
  --text: #1A1A1A;
  --accent: #C4622D;
  --muted: #6B6B6B;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-bottom: 0.5px solid rgba(26, 26, 26, 0.12);
}

nav .logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.nav-active {
  color: var(--accent);
}

.nav-cv-dropdown {
  position: relative;
}

.nav-cv {
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border: 0.5px solid rgba(26, 26, 26, 0.25);
  border-radius: 3px;
  padding: 5px 12px;
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
  line-height: inherit;
}

.nav-cv:hover,
.nav-cv-dropdown.is-open .nav-cv {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-cv-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 7.5rem;
  background: #F5F5F0;
  border: 1px solid #E0E0D8;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10;
}

.nav-cv-dropdown:hover .nav-cv-menu,
.nav-cv-dropdown.is-open .nav-cv-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-cv-menu a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-cv-menu a:hover {
  color: var(--accent);
}

nav.nav-scrolled {
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(8px);
}

/* HERO */
#hero {
  position: relative;
  padding: 6rem 2.5rem;
  background: var(--bg);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

#hero h1 {
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.hero-right > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-right.hero-cards-animate > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-right.hero-cards-animate > *:nth-child(1) {
  transition-delay: 400ms;
}

.hero-right.hero-cards-animate > *:nth-child(2) {
  transition-delay: 520ms;
}

.hero-right.hero-cards-animate > *:nth-child(3) {
  transition-delay: 640ms;
}

.hero-right.hero-cards-animate > *:nth-child(4) {
  transition-delay: 760ms;
}

.hero-card {
  background: var(--white);
  border: 0.5px solid rgba(26, 26, 26, 0.1);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  width: 200px;
}

.hero-card-accent {
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.hero-card-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-card-value {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
}

.hero-card-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 98, 45, 0.08);
  color: var(--accent);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 20px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* ABOUT */
.divider {
  border: none;
  border-top: 0.5px solid rgba(26, 26, 26, 0.1);
  max-width: 720px;
  margin: 0 auto;
}

#about {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 3rem;
  align-items: start;
}

.about-grid p {
  font-size: 15px;
  line-height: 1.8;
  color: #3A3A3A;
  margin-bottom: 1.1rem;
}

.about-cta {
  color: var(--accent);
  font-size: 14px;
  font-style: italic;
}

.about-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Placeholder when using a div instead of img (e.g. photo.jpg missing) */
div.about-photo {
  background: #E8E4DC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

/* EXPERIENCE */
#experience {
  padding: 4.5rem 0;
}

.subsection {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(26, 26, 26, 0.1);
}

.container > h3.subsection:first-of-type {
  margin-top: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.exp-date {
  font-size: 12px;
  color: #9B9B9B;
  padding-top: 2px;
  line-height: 1.5;
}

.exp-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}

.exp-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.exp-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.tag {
  font-size: 11px;
  background: rgba(196, 98, 45, 0.08);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: 2px;
  margin-right: 5px;
  display: inline-block;
  margin-top: 6px;
}

.lang-row {
  display: flex;
  gap: 2.5rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lang-name {
  font-size: 14px;
  font-weight: 500;
}

.lang-level {
  font-size: 12px;
  color: var(--muted);
}

/* PROJECTS */
#projects {
  padding: 4.5rem 0;
}

.project-card {
  border: 0.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.project-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 0.5px solid rgba(26, 26, 26, 0.08);
}

.project-soon {
  font-size: 11px;
  color: #9B9B9B;
  border: 0.5px solid rgba(26, 26, 26, 0.15);
  border-radius: 2px;
  padding: 3px 10px;
}

.project-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 98, 45, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.project-link:hover {
  border-color: var(--accent);
}

/* CONTACT */
#contact {
}

.contact-section {
  background: #1A1A1A;
  color: var(--bg);
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.contact-inner h2 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.contact-inner p {
  font-size: 15px;
  color: rgba(245, 245, 240, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
}

.contact-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 98, 45, 0.4);
  padding-bottom: 2px;
}

.contact-cv-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-cv-sep {
  font-size: 13px;
  color: rgba(196, 98, 45, 0.45);
  line-height: 1;
  user-select: none;
}

.site-footer {
  border-top: 0.5px solid rgba(245, 245, 240, 0.1);
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  background: #1A1A1A;
}

.site-footer span {
  font-size: 12px;
  color: rgba(245, 245, 240, 0.3);
}

/* FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section child stagger (about, experience, projects) */
#about .container > *,
#experience .container > *,
#projects .container > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#about .container > *.stagger-visible,
#experience .container > *.stagger-visible,
#projects .container > *.stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* LAYOUT */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}
