/* Base */
.body {
  margin: 0;
  position: relative;
  background-color: #000;
  color: #e5e7eb;
  font-family: sans-serif;
}

/* Background container */
.background {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

/* All images stacked */
.background-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*object-fit: fill;*/
  opacity: 0;
  animation: fadeSlideshow 48s infinite;
}

/* Sequence timing (for 6 images) */
.background img:nth-child(1) { animation-delay: 0s; }
.background img:nth-child(2) { animation-delay: 8s; }
.background img:nth-child(3) { animation-delay: 16s; }
.background img:nth-child(4) { animation-delay: 24s; }
.background img:nth-child(5) { animation-delay: 32s; }
.background img:nth-child(6) { animation-delay: 40s; }

/* Fade animation */
@keyframes fadeSlideshow {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40vh;
  /*background: linear-gradient(to bottom, #000, #111827);*/
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.98), rgba(17, 24, 39, 0.98));
}
.hero-inner {
  text-align: center;
  padding: 1.5rem;
}
.logo {
  margin: 0 auto;
  max-height: 10rem;
}
@media (min-width: 768px) {
  .logo { max-height: 15rem; }
}
.nav-buttons {
  margin-top: 3rem;
}
.nav-btn {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #6b7280;
  border-radius: 0.75rem;
  transition: all 0.3s;
  color: inherit;
  text-decoration: none;
}
.nav-btn:hover {
  background: #6b7280;
  color: #000;
}

/* Sections */
.section {
  padding: 2.5rem 1.5rem;
  background: rgba(0,0,0,0.7);
  text-align: center;
}
.section-title {
  display: inline-block;
  background: #1f2937;
  font-size: 1rem;
  font-weight: bold;
  color: #d1d5db;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 3rem;
}
.section-container {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 80rem;
  margin: 0 auto;
  justify-items: center;
}
.card {
  padding: 1rem;
  background: #1f2937;
  border: 1px solid #6b7280;
  border-radius: 1rem;
  transition: all 0.3s;
  text-align: center;
  color: #e5e7eb;
}
.card:hover {
  background: #374151;
  color: #000;
}
.card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.card-img {
  margin: 0 auto;
  max-height: 10rem;
  transition: transform 0.2s;
}
@media (min-width: 768px) {
  .card-img { max-height: 15rem; }
}
.card-img:hover {
  transform: scale(1.1);
}

/* Content Boxes */
.content-box {
  max-width: 64rem;
  margin: 1.5rem auto 0 auto;
  background: #1f2937;
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #d1d5db;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Links */
.link {
  color: #9ca3af;
  text-decoration: underline;
}
.link:hover {
  color: #e5e7eb;
}

/* Contact */
.contact-section {
  padding: 1.5rem 1.5rem;
  text-align: center;
  /*background: linear-gradient(to top, #000, #111827);*/
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(17, 24, 39, 0.98));
}
.contact-links {
  margin-top: 1rem;
}
.contact-link {
  margin: 0 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-link:hover {
  color: #9ca3af;
}

/* Footer */
.footer {
  padding: 1.5rem;
  text-align: center;
  color: #6b7280;
  /*background: #000;*/
  background: rgba(0, 0, 0, 0.98); /* black with 98% opacity */
}