:root {
  --bg: #ffffff;
  --bg-muted: #f4f8ff;
  --text: #2f3b52;
  --muted: #6a7890;
  --line: #d5e2f4;
  --primary: #54aff8;
  --primary-dark: #2d95e8;
  --card: #ffffff;
  --shadow: 0 10px 28px rgba(41, 79, 120, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary-dark);
}

.section {
  padding: 4.5rem 0;
}

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

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 54% 46%;
}

.hero-media {
  min-height: 100vh;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.18), transparent 38%),
    #cfd4de;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
}

#hero-name {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 4rem);
  color: #f5f7f8;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.01em;
}

.hero-role {
  margin: 1rem 0 0;
  color: #f3f5f7;
  max-width: 34ch;
  font-size: 1.05rem;
}

.hero-cta {
  margin-top: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #202633;
  border-radius: 999px;
  min-width: 208px;
  padding: 1.05rem 1.6rem;
  font-family: "Space Mono", monospace;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  margin-top: 1.3rem;
}

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

.btn-secondary {
  background: var(--card);
  color: var(--primary-dark);
  border-color: var(--line);
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 1.35rem;
}

.section-intro {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.4rem;
}

.about-profile-card,
.about-text,
.timeline-item,
.project-card,
.contact-form,
.contact-links {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.about-profile-card {
  padding: 1.15rem;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(160deg, #49a9f7, #2a8be0);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.profile-avatar-wrap {
  width: 84px;
  height: 84px;
  margin-bottom: 0.9rem;
  position: relative;
}

.profile-image {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--line);
  display: none;
}

.profile-avatar-wrap.has-image .profile-image {
  display: block;
}

.profile-avatar-wrap.has-image .profile-avatar-fallback {
  display: none;
}

.profile-avatar-fallback {
  margin-bottom: 0;
}

.profile-facts {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.profile-facts li {
  margin: 0.35rem 0;
}

.about-text {
  padding: 1.3rem;
  color: var(--muted);
}

.about-text p {
  margin: 0.75rem 0;
}

.timeline {
  display: grid;
  gap: 1.05rem;
}

.timeline-item {
  padding: 1rem 1.1rem;
}

.timeline-item h3 {
  font-size: 1.1rem;
}

.timeline-meta {
  margin-top: 0.3rem;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.timeline-item ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: 1.05rem;
}

.project-card h3 {
  font-size: 1.1rem;
}

.project-title-link {
  color: var(--text);
}

.project-title-link:hover {
  color: var(--primary-dark);
}

.project-card p {
  margin: 0.5rem 0;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0.8rem;
}

.activity-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
}

.activity-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.activity-meta {
  margin: 0.28rem 0 0;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.activity-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.project-tags span,
.chip-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fff;
}

.project-link {
  color: var(--primary-dark);
  font-weight: 600;
}

.project-status {
  margin: 0;
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
}

.contact-form {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(67, 166, 246, 0.25);
  border-color: var(--primary);
}

.contact-links {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-links a {
  color: var(--primary-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .about-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main-nav {
    gap: 0.65rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-media,
  .hero-content {
    min-height: 52vh;
  }
}
