/* style.css - version 2026-05-21 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  line-height: 1.6;
}

header {
  background-color: #1f2833;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #fff;
}

nav a:focus-visible,
.nav-toggle:focus-visible,
footer a:focus-visible,
.project-link a:focus-visible,
.content a:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 4px;
}

.logo {
  display: block;
  height: 50px;
  width: 50px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffd700;
}

.hero {
  min-height: 80vh;
  background: url('images/home.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 12px;
  animation: fadeIn 1s ease-in-out;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin: 0;
}

.hero p {
  font-size: 1.2rem;
  margin: 10px auto 0;
  max-width: 680px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 60px 20px;
}

.feature {
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: #1f2833;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}

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

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

footer {
  background-color: #1f2833;
  text-align: center;
  padding: 20px;
  color: #c5c6c7;
}

footer a {
  color: #ffe45c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand + nav polish */
.brand-link {
  display: flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffd700;
  margin-left: 10px;
}

.brand-link:hover .brand-name {
  color: #fff;
}

nav a.active {
  color: #fff;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 2px;
}

/* Feature cards */
.feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-link .feature {
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-link .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* Page hero for subpages */
.page-hero {
  min-height: 65vh;
  background: no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.page-hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0;
}

.page-hero p {
  font-size: 1.15rem;
  margin: 10px auto 0;
}

.container,
.content {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
}

main.container {
  padding: 56px 0;
}

.content h2 {
  color: #fff;
  line-height: 1.25;
}

.content a {
  color: #ffd700;
}

.content li {
  margin-bottom: 8px;
}

/* Projects Page Structure */
.project-block {
  margin-top: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.project-block:last-child {
  border-bottom: none;
}

.project-link {
  margin-top: 8px;
}

.project-link a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.project-link a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.project-link a:visited {
  color: #ffd700;
}

@media (max-width: 980px) {
  header {
    padding: 10px 16px;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu a {
    display: block;
    padding: 12px 0;
  }

  nav a.active {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .hero,
  .page-hero {
    min-height: 58vh;
    padding: 72px 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.15rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 18px;
  }

  .feature {
    max-width: 340px;
    margin: 0 auto;
  }

  .container,
  .content {
    width: min(100% - 32px, 900px);
  }

  main.container {
    padding: 40px 0;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.12rem;
  }

  .logo {
    width: 44px;
    height: 44px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
