* {
  box-sizing: border-box;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  z-index: 1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, backdrop-filter 0.5s ease-out;
  will-change: opacity, backdrop-filter;
}

header {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 4rem;
  color: #fff;
  background: url('images/header-bg.jpg') center/cover no-repeat;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header>* {
  position: relative;
  z-index: 1;
}

header h1 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

header p {
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}

nav {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  z-index: 1000;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #333;
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.scrolled {
  background: #000;
  border-color: #222;
}

nav.scrolled .menu-toggle span {
  background: #fff;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav.scrolled a {
  color: #fff;
}

nav a:hover {
  color: #555;
}

nav.scrolled a:hover {
  color: #ddd;
}

nav a.active {
  font-weight: 600;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #333;
  transition: transform 0.3s ease, width 0.3s ease;
}

nav.scrolled .nav-indicator {
  background: #fff;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    padding: 0.3rem 1rem;
  }

  .nav-indicator {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    gap: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
  }

  .nav-links a {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    width: 100%;
  }

  nav.open .nav-links {
    max-height: 500px;
    opacity: 1;
  }

  nav.scrolled .nav-links {
    background: #000;
    border-color: #222;
  }

  nav.scrolled .nav-links a {
    color: #fff;
    border-top: 1px solid #333;
  }

  nav.scrolled .nav-links a:hover {
    color: #ddd;
  }
}

section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

h2 {
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.project-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  display: block;
}

.project-content {
  padding: 2rem;
  line-height: 1.6;
}

.project-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #222;
  font-size: 1.4rem;
}

.project-label {
  font-weight: 700;
  color: #333;
  display: block;
  margin-top: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.stat-highlight {
  font-weight: 800;
  color: #007bff;
}

.takeaway {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.02);
}

.gallery figcaption {
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #555;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #888;
}

a.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: 2px solid transparent;
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s;
}

a.button:active {
  transform: scale(0.98);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #000;
  outline: none;
}

.contact-form button {
  align-self: center;
  font-family: inherit;
  padding: 0.75rem 1.5rem;
  background: #000;
  border: 2px solid transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: transform 0.2s;
}

.contact-form button:active {
  transform: scale(0.98);
}