* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* HOMEPAGE STYLES */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.text-block {
  margin: 4% 0 0 5%;
  color: white;
}

.text-block h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.2;
  margin-bottom: 0.1em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-top: -0.2em;
  margin-bottom: 0.5em;
  color: #ddd;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: white;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-decoration: none;
  transition: transform 0.2s, color 0.3s;
}

.social-icons a:hover {
  color: #ccc;
  transform: scale(1.2);
}

/* SUBPAGE BACKGROUND COLORS */
.career-bg { background-color: #7cb2cc; height: 100vh; }
.pictures-bg { background-color: #db553e; height: 100vh; }
.videos-bg { background-color: #ecca60; height: 100vh; }
.contact-bg { background-color: #636363; height: 100vh; }

/* NAVIGATION BAR - SHARED STYLES */
.nav-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  font-size: 1.2em;
  z-index: 10;
}

.nav-bar a {
  flex: 1;
  position: relative;
  text-align: center;
  line-height: 60px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1;
  transition: transform 0.3s ease;
  padding-bottom: 30px;
  display: block;
}

/* NAV COLORS */
.nav-bar a:nth-child(1) { background-color: #7cb2cc; color: white; }
.nav-bar a:nth-child(2) { background-color: #db553e; color: white; }
.nav-bar a:nth-child(3) { background-color: #ecca60; color: #000; }
.nav-bar a:nth-child(4) { background-color: #636363; color: white; }

.five-item-nav a:nth-child(1) { background-color: #134c67; color: white; }
.five-item-nav a:nth-child(2) { background-color: #7cb2cc; color: white; }
.five-item-nav a:nth-child(3) { background-color: #db553e; color: white; }
.five-item-nav a:nth-child(4) { background-color: #ecca60; color: #000; }
.five-item-nav a:nth-child(5) { background-color: #636363; color: white; }

/* ACTIVE STATE */
.nav-bar a.active,
.five-item-nav a.active {
  filter: brightness(110%);
  font-weight: bolder;
  text-decoration: underline;
}

/* NAV HOVER EFFECTS */
.nav-bar a::before,
.five-item-nav a::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: inherit;
  z-index: -1;
}

.nav-bar a:hover,
.five-item-nav a:hover {
  transform: translateY(-30px);
}

/* HOMEPAGE RESPONSIVE */
@media (max-width: 768px) {
  .text-block {
    margin: 15% 0 0 5%;
  }

  .text-block h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }

  .social-icons {
    gap: 15px;
  }

  .nav-bar,
  .five-item-nav {
    flex-direction: column-reverse;
    height: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1rem;
    position: fixed;
    z-index: 100;
  }

  .nav-bar a,
  .five-item-nav a {
    line-height: 50px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-bar a:hover,
  .five-item-nav a:hover {
    transform: none;
  }

  .nav-bar a::before,
  .five-item-nav a::before {
    display: none;
  }
}

/* CAREER PAGE */
body.career-bg {
  background-color: #7cb2cc;
  color: white;
}

.career-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  gap: 40px;
}

.career-text {
  flex: 1;
  padding-right: 30px;
  min-width: 300px;
}

.career-text h1 {
  font-size: 60px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

.career-text p {
  font-size: 20px;
  margin-bottom: 20px;
}

.career-text a {
  display: inline-block;
  margin-right: 20px;
  font-size: 18px;
  color: #ffffff;
  text-decoration: underline;
}

.career-image {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.career-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: -80px;
}

/* PICTURES PAGE */
body.pictures-bg {
  background-color: #db553e;
  color: white;
  font-family: Arial, sans-serif;
}

.pictures-page {
  padding-top: 60px;
}

.pictures-header h1 {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-align: left;
  margin-left: 60px;
}

.gallery-wrapper {
  max-width: 800px;
  margin-left: 60px;
  padding-right: 20px;
}

.gallery-section {
  margin-bottom: 60px;
}

.gallery-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: white;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery a img {
  width: 200px;
  height: auto;
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery a img:hover {
  transform: scale(1.05);
  border-color: #00ccff;
}

/* LIGHTBOX for Pictures */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  margin-bottom: 20px;
}

.lightbox-caption {
  color: white;
  font-size: 18px;
  text-align: center;
  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 10000;
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 204, 255, 0.7);
}

/* Responsive Pictures */
@media (max-width: 768px) {
  .pictures-header h1,
  .gallery-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }

  .gallery {
    justify-content: center;
  }
}

/* VIDEOS PAGE */
body.videos-bg {
  background-color: #ecca60;
  color: black;
  font-family: Arial, sans-serif;
}

.videos-page {
  padding-top: 60px;
}

.videos-header h1 {
  font-size: 48px;
  font-weight: bold;
  color: black;
  text-align: left;
  margin-left: 60px;
}

.video-gallery-wrapper {
  max-width: 800px;
  margin-left: 60px;
  padding-right: 20px;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.video-container {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
}

.video-thumbnail {
  cursor: pointer;
}

.video-thumbnail iframe {
  width: 100%;
  height: 250px;
  border: none;
  pointer-events: none;
}

.video-caption {
  margin-top: 2px;
  font-size: 16px;
  font-weight: bold;
  color: black;
  text-align: left;
}

/* Lightbox for Videos */
.video-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
  flex-direction: column;
}

.video-lightbox-content {
  position: relative;
  max-width: 90%;
  width: 800px;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-lightbox-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-lightbox-caption {
  margin-top: 12px;
  font-size: 18px;
  color: white;
  text-align: center;
}

.video-lightbox-meta {
  font-size: 14px;
  line-height: 1.4;
  color: #ccc;
  text-align: center;
}

.video-lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* Responsive Videos */
@media (max-width: 768px) {
  .video-container {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .video-thumbnail iframe {
    height: 220px;
  }

  .video-caption {
    text-align: center;
  }

  .video-lightbox-content {
    width: 95%;
  }
}

/* CONTACT PAGE */
body.contact-bg {
  background-color: #636363;
  color: white;
  font-family: Arial, sans-serif;
}

.contact-page {
  padding-top: 60px;
}

.contact-header h1 {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-align: left;
  margin-left: 60px;
}

.contact-form-wrapper {
  max-width: 600px;
  margin-left: 60px;
  padding: 20px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: white;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  background-color: #333;
  color: white;
  border: 2px solid white;
  border-radius: 4px;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: fit-content;
  padding: 10px 20px;
  background-color: white;
  color: #636363;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #dddddd;
}

.form-status {
  margin-top: 10px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .contact-header h1,
  .contact-form-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }
}
