/* ==========================================================================
   Karoline Nascimento — Portfólio
   ========================================================================== */

:root {
  --bg: #FAF5EF;
  --white: #FFFFFF;
  --dark: #2E2622;
  --dark-hover: #4A3D34;

  --text: #2E2622;
  --text-soft: #6E5F53;
  --text-softer: #8A7A6E;
  --text-body: #55483E;
  --text-muted: #B3A294;

  --border: #F0E4D6;
  --border-2: #F2E7DA;

  --orange: #D98E63;
  --orange-dark: #C97D52;
  --orange-darker: #B8764A;
  --orange-hover: #C97D52;
  --orange-bg: #FCEEDF;

  --pink: #DE9C9C;
  --pink-dark: #A85A5A;
  --pink-bg: #F9E3E3;

  --yellow: #E4BC6B;
  --yellow-dark: #9A7A2E;
  --yellow-bg: #FBF0D7;

  --green: #7FB58A;

  --footer-bg: #2E2622;
  --footer-text: #FAF5EF;
  --footer-text-muted: #C9BBAE;
  --footer-text-mutest: #A6968A;

  --font-display: 'DM Serif Display', serif;
  --font-body: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

/* ---------- progress bar ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #E8A87C, #E39B9B, #EFCB8A);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
}

/* ---------- nav ---------- */

.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(120, 90, 60, 0.10);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar::-webkit-scrollbar {
  display: none;
}

.nav-link {
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: #FAF0E4;
  color: var(--text);
}

.nav-link--active {
  color: var(--text);
  font-weight: 700;
}

.nav-link--cta {
  color: var(--white);
  font-weight: 700;
  padding: 7px 16px;
  background: var(--orange);
}

.nav-link--cta:hover {
  background: var(--orange-hover);
  color: var(--white);
}

/* ---------- buttons ---------- */

.btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

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

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

.btn--outline {
  background: var(--white);
  border: 1px solid #E9D9C6;
  color: var(--text);
}

.btn--outline:hover {
  background: #FAF0E4;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob--1 {
  top: -140px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 35% 35%, #FBE3CD, rgba(251, 227, 205, 0));
}

.hero-blob--2 {
  bottom: -160px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 60% 40%, #F7DEDE, rgba(247, 222, 222, 0));
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1060px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-content {
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-darker);
  letter-spacing: 0.04em;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 1.02;
  margin: 22px 0 0;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 22px 0 0;
  max-width: 480px;
}

.hl {
  font-style: normal;
  font-weight: 700;
}

.hl--orange {
  color: var(--orange-dark);
}

.hl--pink {
  color: #C77E7E;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
}

.hero-photo-blob {
  position: absolute;
  inset: -18px;
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: linear-gradient(140deg, #F3C9A6, #EDB9B9 60%, #F0D9A8);
  animation: floaty 7s ease-in-out infinite;
}

.hero-photo-img {
  position: relative;
  width: 300px;
  height: 370px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 42% 58% 55% 45% / 48% 44% 56% 52%;
  border: 6px solid var(--white);
  box-shadow: 0 24px 60px rgba(120, 80, 50, 0.22);
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -10px;
  left: -34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 12px 30px rgba(120, 90, 60, 0.14);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.hero-badge-sub {
  color: var(--text-softer);
  font-weight: 600;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* ---------- shared section bits ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--orange-dark);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.12;
  margin: 14px 0 0;
}

/* ---------- sobre ---------- */

.about {
  padding: 110px 24px;
  background: var(--white);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.about-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.about-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0;
}

.about-text + .about-text {
  margin-top: 18px;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.chip {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

.chip--orange {
  background: var(--orange-bg);
  color: #A8663B;
}

.chip--pink {
  background: var(--pink-bg);
  color: var(--pink-dark);
}

.chip--yellow {
  background: var(--yellow-bg);
  color: #9A7A2E;
}

/* ---------- experiência / timeline ---------- */

.experience {
  padding: 110px 24px;
  background: var(--bg);
}

.experience-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #EBDCC9;
  transform-origin: 50% 0;
}

.tl-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 34px;
  margin-bottom: 26px;
  box-shadow: 0 6px 24px rgba(120, 90, 60, 0.06);
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-color);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--dot-color);
}

.tl-item--orange { --dot-color: #D98E63; }
.tl-item--pink { --dot-color: #DE9C9C; }
.tl-item--yellow { --dot-color: #E4BC6B; }

.tl-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}

.tl-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.tl-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.tl-badge--orange {
  color: var(--orange-dark);
  background: var(--orange-bg);
}

.tl-badge--pink {
  color: var(--pink-dark);
  background: var(--pink-bg);
}

.tl-badge--yellow {
  color: var(--yellow-dark);
  background: var(--yellow-bg);
}

.tl-org {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-softer);
  margin-top: 6px;
}

.tl-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- formação ---------- */

.formacao {
  padding: 110px 24px;
  background: var(--white);
  border-top: 1px solid var(--border-2);
}

.formacao-inner {
  max-width: 1020px;
  margin: 0 auto;
}

.degree-card {
  background: linear-gradient(120deg, var(--orange-bg), #F9E9E9);
  border-radius: 24px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.degree-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #A8663B;
}

.degree-name {
  font-family: var(--font-display);
  font-size: 30px;
  margin-top: 8px;
}

.degree-since {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.crs {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
}

.crs-title {
  font-size: 15px;
  font-weight: 700;
}

.crs-org {
  font-size: 13px;
  color: var(--text-softer);
  margin-top: 4px;
}

/* ---------- contato / footer ---------- */

.footer {
  padding: 110px 24px 60px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.footer-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #E8A87C;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 56px);
  margin: 16px 0 0;
}

.footer-lead {
  font-size: 17px;
  color: var(--footer-text-muted);
  margin: 20px auto 0;
  max-width: 520px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.footer-link {
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.footer-link--primary {
  background: #E8A87C;
  color: var(--footer-bg);
}

.footer-link--primary:hover {
  background: #F0BC96;
}

.footer-link--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--footer-text);
  font-weight: 700;
}

.footer-link--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.footer-address {
  margin-top: 44px;
  font-size: 14px;
  color: var(--footer-text-mutest);
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--text-softer);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .navbar {
    gap: 2px;
    padding: 6px 8px;
  }

  .nav-link {
    padding: 7px 10px;
    font-size: 12px;
  }

  .nav-link--cta {
    padding: 7px 12px;
  }

  .timeline {
    padding-left: 30px;
  }

  .tl-item::before {
    left: -27px;
  }
}
