/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HEADER */
.site-header {
  background-image: url('../Images/header backgorund.png');
  background-color: #415a77;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 20px 0;
  position: relative;
  z-index: 1000;
}

/* LAYOUT */
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  height: 100px;
  width: auto;
}


/* NAV (desktop) */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: x-large;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.main-nav a:hover {
  color: slategray;
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* MOBILE STYLES */
@media (max-width: 900px) {

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .main-nav ul {
    position: absolute;
    top: 120px;
    right: 0;
    width: 100%;
    background-image: url('../Images/dropdown\ image.png');
    flex-direction: column;
    text-align: center;
    padding: 1rem 0;
    gap: 1.5rem;
    display: none; /* hidden by default */
  }

  .main-nav a {
  text-decoration: none;
  color: lightslategray;
  font-size: x-large;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  }

  .main-nav.open ul {
    display: flex; /* show when toggled */
  }
}

.projects-section {
  background-image: url('../Images/Home/coastal-themed\ sand\ .png'), 
                    url('../Images/Home/coastal-themed\ blue.png');
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.projects-heading {
  font-size: 3rem;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  color: white;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
  margin-top: 50px;
}

/* PROJECT CARD */
.project-card {
  background: rgba(255, 255, 255, 0.88);
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  font-family: Arial, Helvetica, sans-serif;
}

.carousel {
  width: 100%;
  height: 550px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%; /* 3 images = 300% */
  height: 100%;
  animation: slide 12s infinite ease-in-out;
}

.carousel img {
  width: auto;
  height: auto;
  object-fit: cover;
  flex: 0 0 100%; /* each image takes full width */
}

.project-card:last-child {
  margin-bottom: 50px;
}

/* FIXED ANIMATION — pauses on each image */
@keyframes slide {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }

  33%  { transform: translateX(-100%); }
  53%  { transform: translateX(-100%); }

  66%  { transform: translateX(-200%); }
  86%  { transform: translateX(-200%); }

  100% { transform: translateX(0%); }
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }
.project-card:nth-child(4) { animation-delay: 0.6s; }
.project-card:nth-child(5) { animation-delay: 0.8s; }
.project-card:nth-child(6) { animation-delay: 1s; }
.project-card:nth-child(7) { animation-delay: 1.2s; }

.project-card {
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
}

/* MOBILE */
@media (max-width: 900px) {
  .projects-heading {
    font-size: 2.4rem;
  }

  .carousel {
    height: 200px;
  }

  .carousel img {
    height: 220px;
    width: 100%
  }
}

.site-footer {
  background-color: #1b263b;
  color: white;
  padding: 20px 20px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-left h4 {
  margin-bottom: 10px;
}

.footer-right .social-link {
  display: block;
  color: #a8c0d6;
  text-decoration: none;
  margin: 5px 0;
}

.footer-right .social-link:hover {
  color: white;
}

/* Mobile */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }
}