:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #6eb5ff;
  --accent-soft: rgba(110, 181, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.home-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.home-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.home-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.home-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(110, 181, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-hero-text {
  flex: 1;
  min-width: 0;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-title {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
}

.home-tagline {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(110, 181, 255, 0.25);
}

.home-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem 3rem;
}

.home-main section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.home-main section:last-of-type {
  border-bottom: none;
}

.home-main h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list li,
.footer-contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 4.5rem;
}

.contact-list a,
.footer-contact-list a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.contact-list a:hover,
.footer-contact-list a:hover {
  text-decoration: underline;
}

.home-main p {
  margin: 0;
  color: var(--text);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.timeline-head strong {
  font-weight: 600;
}

.timeline-period {
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline-org {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-list li {
  padding: 0.65rem 0;
}

.edu-list .muted {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.social-link:hover {
  text-decoration: none;
  border-color: rgba(110, 181, 255, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

.social-link--linkedin:hover {
  color: #70b5ff;
}

.social-link--facebook:hover {
  color: #6b9cff;
}

.social-icon {
  flex-shrink: 0;
  display: block;
}

.home-footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.home-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-portal-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-portal-link:hover {
  border-color: rgba(110, 181, 255, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 2.5rem;
  }

  .home-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-pills {
    justify-content: center;
  }

  .home-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-portal-link {
    margin-left: 0;
  }
}
