/*
================================================
== STYLESHEET ==
================================================
This one file controls the look of your entire site.
You can change the colors in the ":root" section below.
*/

:root {
  --primary-color: #000025; /* black for nav bar and text */
  --bg-color: #000025;      /* dark blue page background */
  --content-bg: #838bdb;    /* light blue for content boxes */
  --accent-color: #007bff;  /* Blue for links and highlights */
  --text-color-light: #ffffff; /* White text for the nav bar */
}

/* --- Basic Setup --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.container {
  max-width: 960px;
  margin: 20px auto; /* 20px space on top/bottom, auto on left/right to center */
  padding: 20px;
  background-color: var(--content-bg);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Navigation Bar --- */
header {
  background-color: var(--primary-color);
  padding: 10px 0;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

nav ul li {
  display: inline;
}

nav ul li a {
  display: inline-block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text-color-light);
  font-weight: bold;
}

/* This ".active" class highlights the page you're currently on */
nav ul li a.active,
nav ul li a:hover {
  background-color: var(--accent-color);
  border-radius: 5px;
}

/* --- Page Content --- */
h1, h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--bg-color);
  padding-bottom: 5px;
}

p {
  line-height: 1.6;
}

a {
  color: var(--accent-color);
}

/* --- Responsive Video Embeds --- */
/* To embed a video, wrap it in this div. 
  It will resize nicely on all devices.
  <div class="video-container">
    ...your iframe embed code...
  </div>
*/
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Gear Page List --- */
.gear-list {
  list-style-type: none;
  padding-left: 0;
}

.gear-list li {
  font-size: 1.1em;
  padding: 10px;
  border-bottom: 1px solid var(--bg-color);
}
.gear-list li:last-child {
  border-bottom: none;
}

/* --- Contact Form --- */
.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* Important for 100% width */
}

.contact-form button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-color-light);
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1em;
  font-weight: bold;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* --- Banner --- */
.banner-container {
  text-align: center; /* Centers the banner image */
  padding: 10px 0;    /* Adds a little space above/below the banner */
}

.banner-container img {
  max-width: 100%;  /* Ensures the image is responsive and doesn't overflow */
  height: auto;     /* Maintains the image's aspect ratio */
  display: block;   /* Removes any extra space below the image */
  margin: 0 auto;   /* An extra centering safeguard */
}

/* --- Profile Image on Home Page --- */
.bottom-image {
  max-width: 100%; /* Keeps it from overflowing its container */
  height: auto;    /* Maintains the aspect ratio */
  margin-top: 20px;  /* Adds some space above the image */
  border-radius: 8px; /* Matches your other content boxes */
}

/* --- Automatic Scrolling Gallery --- */
/* This is updated for 14 images */

.slider {
  /* This is the "window" for your gallery */
  background-color: var(--bg-color);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2) inset;
  margin: 30px auto;
  overflow: hidden; /* This hides the images that are off-screen */
  position: relative;
  width: 100%;
  height: 200px; /* Set the height of your gallery */
  border-radius: 8px;
  visibility: hidden;
}

.slider::before,
.slider::after {
  /* This adds the nice fade-out effect on the left and right sides */
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color) 0%, rgba(0,21,61,0) 100%);
}

.slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color) 0%, rgba(0,21,61,0) 100%);
}

.slide-track {
  /* This is the "track" that holds all the images and moves */
  display: flex;
  position: absolute;
}

/* Pause the animation when you hover over it */
.slide-track:hover {
  animation-play-state: paused;
}

.slide {
  /* This is the container for each individual image */
  height: 200px; /* Must match the .slider height */
  width: auto;  /* Set the width of your images */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  perspective: 100px;
  box-sizing: border-box;
}

.slide img {
  /* This styles the actual image */
  height: 100%;
  width: auto;
  transition: transform 0.3s;
  cursor: pointer; /* Adds a pointer hand on hover */
}

.slide img:hover {
  transform: scale(1.1); /* Makes the image pop a little on hover */
}

/* --- NEW: Lightbox Modal Styles --- */

.lightbox {
  /* The full-screen black background */
  display: none; /* Hidden by default */
  position: fixed; /* Stays in place */
  z-index: 1000; /* On top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto; /* Enable scroll if image is too tall */
  
  /* For centering the content */
  flex-direction: column;  /* Stack image and caption vertically */
  justify-content: center; /* Center them on the screen */
  align-items: center;
}

.lightbox-content {
  /* The image itself */
  max-width: 90%;
  max-height: 80%;
}

#lightbox-caption {
  /* The caption (from the alt text) */
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  margin-top: 15px;
  font-size: 1.2em;
}

.lightbox-close {
  /* The 'X' close button */
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}