/* ====== Root & helpers ====== */
:root {
  --gap: 16px;
  --gap-lg: 24px;
  --text: #111;
  --muted: #666;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container padding for small screens */
.container {
  padding-left: 16px;
  padding-right: 16px;
}

/* Clamp-based type scale */
h1.title {
  font-size: clamp(1.125rem, 1.5vw + 0.7rem, 1.75rem);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
h2.desc {
  font-size: clamp(0.875rem, 0.9vw + 0.5rem, 1.125rem);
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
p.size-big {
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.25rem);
  color: var(--text);
  text-align: center;
}
.mobile-br {
  display: none;
}
@media (max-width: 767.98px) {
  .mobile-br {
    display: block;
  }
}

/* ====== Header ====== */
.header--title {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.header--title .flex {
  gap: var(--gap);
}
.logo-wrapper .logo {
  white-space: nowrap;
}

/* Nav default (desktop) */
.header--title .nav {
  display: flex;
  gap: var(--gap);
  margin-left: auto;
}
.header--title .nav .list-item {
  padding: 8px 10px;
  display: inline-block;
}

/* Burger default (hidden on desktop) */
.burger-menu {
  display: none;
  width: 40px;
  height: 32px;
  cursor: pointer;
}
.burger-menu .bar {
  height: 3px;
  width: 100%;
  background: #111;
  margin: 6px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ====== Hero/About ====== */
#home {
  min-height: calc(100dvh - 64px);
  padding: 32px 0;
}
.about {
  gap: var(--gap-lg);
  flex-wrap: nowrap;
}
.about-detail {
  min-width: 0;
  flex: 1;
}
.about .profile-picture {
  width: clamp(96px, 16vw, 180px);
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.about-detail .social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Buttons */
.btns-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== Footer ====== */
footer {
  padding: 20px 0;
  text-align: center;
}

/* ====== Narrow phones (<= 360px) ====== */
@media (max-width: 360px) {
  .logo-wrapper .logo {
    font-size: 1rem;
  }
  .about .profile-picture {
    width: 88px;
    border-radius: 10px;
  }
}

/* ====== Mobile (<= 576px) ====== */
@media (max-width: 576px) {
  /* Header nav collapses */
  .header--title .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid #eee;
    flex-direction: column;
    padding: 8px 16px;
    display: none; /* closed by default */
  }
  .header--title .nav.nav--open {
    display: flex;
  }

  .burger-menu {
    display: block;
    margin-left: auto;
  }

  /* Burger animation when active */
  .burger-menu.is-open .bar--top {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-menu.is-open .bar--middle {
    opacity: 0;
  }
  .burger-menu.is-open .bar--bottom {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* About block stacks */
  .about {
    flex-direction: column;
    align-items: flex-start;
  }
  .about .profile-picture {
    width: 120px;
  }
  .btns-wrapper {
    width: 100%;
  }
  .btns-wrapper .btn {
    flex: 1;
    text-align: center;
    margin-right: 0;
  }
}

/* ====== Small tablets (577–767px) ====== */
@media (min-width: 577px) and (max-width: 767px) {
  .about {
    gap: 20px;
  }
  .about .profile-picture {
    width: 140px;
  }
}

/* ====== Tablets (768–991px) ====== */
@media (min-width: 768px) and (max-width: 991px) {
  .about .profile-picture {
    width: 160px;
  }
  .container {
    max-width: 720px;
  }
}

/* ====== Small desktops (992–1199px) ====== */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  .about {
    align-items: flex-start;
  }
}

/* ====== Large desktops (>=1200px) ====== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  #home {
    padding: 56px 0;
  }
  .about .profile-picture {
    width: 180px;
  }
}

/* ====== Ultra-wide (>=1536px) ====== */
@media (min-width: 1536px) {
  .container {
    max-width: 1280px;
  }
  h1.title {
    font-size: 1.875rem;
  }
}
