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

:root {
 
  --main-bg:   #f5f0e8;
  --main-font:     #1a1714; 
  --muted:   #6b6560; 
  --accent:  #c8502a; 
  --dark-bg: #031926;
  --dark-card: #051C2C; 

/*
  --main-bg:   #031926;
  --main-font: #FFFFFF;
  --muted:   #FFFFFF;
  --accent:  #FE9920;
  --dark-bg: #FFFFFF;
  --dark-card: #FFFFFF;
*/
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width: 1100px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--main-bg);
  color: var(--main-font);
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 300;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--main-font);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

@media (max-width: 700px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

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

@media (max-width: 400px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

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

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: unset;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 0rem;
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  color: var(--main-font);
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin: 1rem 0 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ─────────────────────────────────────────
   BUTTON
───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--main-font);
  color: var(--main-bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section {
  padding: var(--section-pad) 2.5rem;
}

.section--dark {
  background: var(--dark-bg);
  color: var(--main-bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--main-font);
  font-weight: 500;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skills-list li {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(26, 23, 20, 0.18);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--dark-card);
  border: 1px solid rgba(245, 240, 232, 0.07);
  padding: 2rem;
  border-radius: 4px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 80, 42, 0.4);
}

.card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--main-bg);
  margin-bottom: 0.75rem;
}

.card-desc {
  color: rgba(245, 240, 232, 0.5);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--main-bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 240, 232, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-container {
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.social-links {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(26, 23, 20, 0.1);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 700px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-graphic {
    display: none;
  }

  .hero-name {
    font-size: clamp(2.2rem, 11vw, 4rem);
  }

  .hero-role {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero {
    padding: 6rem 1.5rem 0.2rem;
  }
}

@media (max-width: 400px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

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

  .hero-name {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-role {
    font-size: 0.82rem;
  }
}

/* ─────────────────────────────────────────
   SCROLL FADE-IN (driven by script.js)
───────────────────────────────────────── */
.fade-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─────────────────────────────────────────
   NAV LOGO AS LINK
───────────────────────────────────────── */
a.nav-logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--main-font);
}

/* ─────────────────────────────────────────
   DROPDOWN MENU
───────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-bg);
  border: 1px solid rgba(26,23,20,0.08);
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem;
  min-width: 160px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 200;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--main-bg);
  border-left: 1px solid rgba(26,23,20,0.08);
  border-top: 1px solid rgba(26,23,20,0.08);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a::before { content: '•'; color: var(--accent); opacity: 0.7; font-size: 0.85rem; }

.dropdown-menu li a:hover {
  color: var(--main-font);
  background: rgba(200,80,42,0.07);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}
/* ─────────────────────────────────────────
   PAGE HERO (inner pages)
───────────────────────────────────────── */
.page-hero {
  padding: 8rem 2.5rem 1rem;
  background: var(--main-bg);
}

.page-hero .hero-label {
  animation: none;
}

.page-hero .hero-label a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,23,20,0.15);
}

.page-hero .hero-label a:hover {
  color: var(--accent);
}

.page-hero .hero-name {
  animation: none;
}

.page-hero .hero-role {
  animation: none;
}

/* ─────────────────────────────────────────
   ACTIVE NAV LINK
───────────────────────────────────────── */
.nav-links a.active {
  color: var(--accent);
}

/* ─────────────────────────────────────────
   CARD AS LINK BLOCK
───────────────────────────────────────── */
a.card-link-block {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   COMING SOON PLACEHOLDER
───────────────────────────────────────── */
.coming-soon {
  font-size: 1.1rem;
  color: var(--muted);
  padding: 3rem 0;
  border: 1px dashed rgba(26,23,20,0.15);
  border-radius: 4px;
  text-align: center;
}

@media (max-width: 700px) {
  .page-hero {
    padding: 8rem 1.5rem 0.2rem;
  }
}

.section--tight {
  padding-top: 0.25rem;    
  padding-bottom: 3rem;   
}

.cv-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.cv-location {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────
   CV HEADER 2-COLUMN LAYOUT (NEW)
───────────────────────────────────────── */

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.cv-left {
  display: flex;
  flex-direction: column;
}

.cv-right {
  display: flex;
  flex-direction: column;
  text-align: right;
}

/* Role / Degree */
.cv-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--main-font);
  line-height: 1.2;
}

/* Company / Institution */
.cv-company {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Dates */
.cv-dates {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.2;
}

/* Location */
.cv-location {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────
   CV PROFILE HEADER (NEW)
───────────────────────────────────────── */

.cv-profile {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}

.cv-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--main-font);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.cv-meta {
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.cv-meta a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.cv-meta a:hover {
  text-decoration: underline;
}