body {
  font-family: sans-serif;
  margin: 0;
  background-color: #c6d3db;
  color: #000;
}

/* Make all links black instead of default blue/purple */
a {
  color: #000;
  text-decoration: underline;
}

a:visited {
  color: #000;
}

a:hover {
  color: #333;
}

header {
  background-color: #222;
  color: white;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 1em;
  background-color: black;
}

/* Make company name red and bold to match contact button */
.company-name {
  color: rgba(255, 0, 0, 1.0);
  font-weight: bold;
}

/* Updated contact button with black background and red text */
.contact-button {
  background-color: #000 !important;
  color: rgba(255, 0, 0, 1.0) !important;
  padding: 0.25em 0.5em;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.contact-button:visited {
  color: rgba(255, 0, 0, 1.0) !important;
}

.contact-button:hover {
  color: rgba(255, 0, 0, 1.0) !important;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: #333;
}
.main-nav .logo {
  font-weight: bold;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: white;
  text-decoration: none;
  padding: 0.25em 0.5em;
}
.hero {
  background: linear-gradient(to right, #444, #333);
  padding: 1.5em 1em;
  text-align: center;
}

.hero h1 {
  color: rgba(255, 0, 0, 1.0);
}

.hero .carousel {
  margin-top: 1.5em;
}
.intro {
  display: flex;
  gap: 2em;
  padding: 2em;
}
.content {
  max-width: 800px;
}
.products {
  padding: 2em;
}

/* Carousel Styles */
.carousel {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto 2em auto;
}

.carousel img {
  width: 120px;
  height: 120px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}

.carousel img.active {
  opacity: 1;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  display: none;
  user-select: none;
}

.arrow.left {
  left: 5px;
}

.arrow.right {
  right: 5px;
}

.carousel:hover .arrow {
  display: block;
}

.arrow:hover {
  color: rgba(255, 255, 255, 1);
}

/* Video responsive styles */
video {
  max-width: 100%;
  height: auto;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5em;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Media Query - Responsive Navigation */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
  }
  
  video {
    width: 100%;
  }
  
  /* Show hamburger menu on mobile */
  .hamburger {
    display: flex;
  }
  
  /* Keep main nav horizontal on mobile but hide menu initially */
  .main-nav {
    position: relative;
  }
  
  /* Hide the navigation menu by default on mobile */
  .main-nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    max-height: 100vh;
    background-color: #333;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 0 80px 0;
    margin: 0;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    box-sizing: border-box;
  }
  
  /* Show menu when active */
  .main-nav ul.active {
    left: 0;
  }
  
  /* Mobile menu items */
  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #555;
  }
  
  .main-nav a {
    display: block;
    padding: 1em 1.5em;
    text-align: left;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-left: 4px solid transparent;
  }
  
  .main-nav a:hover,
  .main-nav a:active {
    background-color: #444;
    border-left-color: rgba(255, 0, 0, 1.0);
  }
  
  /* Overlay for mobile menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Reduce hero padding on mobile */
  .hero {
    padding: 2em 1em;
  }
  
  /* Reduce section padding on mobile */
  .intro, .products {
    padding: 1em;
  }
}