@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
  color-scheme: light;
  --bg: #ebe9e1;
  --surface: #ffa2b6;
  --surface-2: #d6536d;
  --text: #31272a;
  --muted: #66545a;
  --accent: #e43d12;
  --accent-2: #efb11d;
  --border: rgba(214, 83, 109, 0.32);
  --link-color: var(--accent);
  --topbar-bg: var(--text);
  --topbar-text: var(--bg);
  --card-bg: rgba(255, 162, 182, 0.42);
  --highlight-bg: rgba(239, 177, 29, 0.18);
  --button-text: var(--text);
  --toggle-border: #d6536d;
  --toggle-hover-bg: rgba(214, 83, 109, 0.14);
  --shadow: rgba(49, 39, 42, 0.16);
  --button-shadow: rgba(228, 61, 18, 0.24);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171311;
  --surface: #231b18;
  --surface-2: #d6536d;
  --text: #f4eee8;
  --muted: #d9cec6;
  --accent: #ff8066;
  --accent-2: #f5c65a;
  --border: #d6536d;
  --link-color: #ff9db5;
  --topbar-bg: var(--surface);
  --topbar-text: var(--text);
  --card-bg: var(--surface);
  --highlight-bg: rgba(245, 198, 90, 0.14);
  --button-text: var(--bg);
  --toggle-border: var(--surface-2);
  --toggle-hover-bg: rgba(255, 157, 181, 0.12);
  --shadow: rgba(0, 0, 0, 0.32);
  --button-shadow: var(--shadow);
}

body,
.topbar,
.brand,
.nav-links a,
.theme-toggle,
.hero-profile-card,
.hero-profile-card p,
.hero-highlights li,
.hero-card,
.card,
.timeline-card,
.contact-card,
.footer {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* font-family: "Lora", serif; */
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

.topbar {
  color: var(--topbar-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--topbar-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  color: var(--topbar-text);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--topbar-text);
  transition: color 0.2s ease, background-color 0.25s ease;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.6rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: transparent;
  color: var(--topbar-text);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--toggle-hover-bg);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-sun {
  display: block;
}

.section {
  font-weight: 800;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 4rem;
}

.hero-profile-card {
  justify-self: center;
  width: min(100%, 600px);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  box-shadow: 0 10px 25px var(--shadow);
}

.hero-profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.hero-profile-card p {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.hero h1,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--accent-2);
  color: var(--button-text);
  box-shadow: 0 8px 24px var(--button-shadow);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-highlights {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-highlights li {
  background: var(--highlight-bg);
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero-card,
.card,
.timeline-card,
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 10px 25px var(--shadow);
}

.about-grid {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card h3,
.timeline-card h3 {
  margin-top: 0;
}

.card ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.timeline-card {
  max-width: 760px;
}

.contact-card ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    gap: 0.8rem;
  }
}
