:root {
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #9CBBD5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: white;
  line-height: 1.6;
}

/* Hero */








.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Desktop layout */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  /* Reset order for desktop */
  .hero-text {
    order: 1;
  }
  .hero-image {
    order: 2;
  }
}

/* Mobile layout: portrait first */
@media (max-width: 899px) {
  .hero-text {
    order: 2; /* text after image */
  }
  .hero-image {
    order: 1; /* image first */
  }
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

.hero-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.3;
  margin-top: 1rem;
  color: var(--text-muted);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 36rem;
}


.hero h1 span {
  color: var(--text-muted);
}

.hero-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.link {
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid transparent;
}

.link:hover {
  border-color: currentColor;
}

/* Portrait */

.portrait {
  width: 300px;
  height: 300px;
  background: var(--accent);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

.section {
  padding: 8rem 2rem;
}

.section.light {
  background: var(--bg-light);
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.section p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Highlights list */

.highlights {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
}

.highlights li {
  margin-bottom: 2rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.highlights strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Competencies */

.competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.competencies span {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #eef2f7;
  font-size: 0.95rem;
  color: var(--text-main);
}


/* Cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 2.5rem;
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.card p {
  margin-bottom: 0;
}

/* Footer */

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

/* Animations */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.visible {
  opacity: 1;
  transform: none;
}
