* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #000000;
}

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

/* Nav Bar */

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 64px;
  border-bottom: 1px solid #e6e6e6;
}

.nav-bar__logo {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links__item {
  font-weight: 400;
  font-size: 16px;
  color: #333333;
  white-space: nowrap;
}

.nav-links__item:hover {
  color: #000000;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Projects Dropdown */

/* The container must be relative to anchor the absolute menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* The hidden dropdown menu */
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%; /* Positions it directly below the word "Projects" */
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
}

/* Reveal the menu on hover */
.nav-dropdown:hover .nav-dropdown__menu {
  display: block;
}

/* Style the links inside the dropdown */
.nav-dropdown__menu a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
}

.nav-dropdown__menu a:hover {
  background-color: #f3f4f6;
}

.empty-msg {
  display: block;
  padding: 10px 16px;
  color: #888;
  font-style: italic;
}
/*iii*/

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 96px 64px;
}

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 40px;
  color: #000000;
  text-align: center;
}

.hero__subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  color: #666666;
  text-align: center;
}

.project-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  width: 100%;
  margin-top: 300px;
}

.project-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 140px;
  padding: 16px;
  background: rgba(217, 217, 217, 0.25);
  border-radius: 8px;
}

.project-box__label {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  color: #808080;
  text-align: center;
}

/* Status bubble: top-right corner of each project card. */
.project-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.project-status--not_finished {
  background: #e5484d;
  color: #ffffff;
}

.project-status--in_progress {
  background: #f2b705;
  color: #4a3800;
}

.project-status--completed {
  background: #30a46c;
  color: #ffffff;
}

/* Tech-stack icons: bottom-left of each project card, growing rightward.
   Bare logos, no background chip -- each symbol carries its own brand
   color (or a neutral one for the two generic, non-branded glyphs). */
.project-box__tech {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon svg {
  width: 29px;
  height: 29px;
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 32px 64px;
  color: #666666;
  font-size: 14px;
}

.footer__copy {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links__item {
  color: #666666;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links__item:hover {
  color: #000000;
}

/* Responsive: nav collapses into a dropdown once it can't fit */

@media (max-width: 720px) {
  .nav-bar {
    padding: 20px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links--open {
    max-height: 240px;
  }

  .nav-links__item {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
  }

  .hero {
    padding: 64px 24px;
  }

  .hero__title {
    font-size: 32px;
  }

  .footer {
    padding: 24px;
  }
}

/* Responsive: project boxes stack vertically as the screen shrinks */

@media (max-width: 820px) {
  .project-box {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .project-boxes {
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: 28px;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
