:root {
  --primary-color: #013ef8; /* Blue from brochure */
  --secondary-color: #6c6c6c; /* Dark gray for text */
  --accent-color: #fdcd07; /* Yellow accent color */
  --green: #13b077;
  --light-gray: #f5f5f5;
  --white: #ffffff;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--secondary-color);
}

/* Header Styles */
header {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 80px;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8),
    rgba(0, 0, 0, 0.4)
  );
  opacity: 1;
}

/* Special styles for home page */
body.home-page header,
body.contact-page header {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: all 0.5s ease;
}

body.home-page header::before,
body.contact-page header::before {
  opacity: 0;
  transition: all 0.5s ease;
}

body.home-page header.scrolled,
body.contact-page header.scrolled {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.home-page header.scrolled::before,
body.contact-page header.scrolled::before {
  opacity: 1;
}

nav {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  height: 60px;
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  height: 100%;
  align-items: center;
}

.logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-color);
  transform: scale(1.05);
}

.hero {
  position: relative;
  background-image: linear-gradient(
      to bottom left,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("../images/hero-image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 12rem 2rem 8rem;
  text-align: left;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0;
  margin-left: 2%;
  text-align: left;
  padding: 3rem;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: var(--accent-color);
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgb(0, 0, 0, 0.5);
}

.hero p {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgb(0, 0, 0, 0.8);
  margin-top: 15rem;
  font-style: italic;
  font-weight: 800;
}

.hero p.vision-statement {
  font-size: 1.5rem;
  color: var(--white);
  max-width: 800px;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 2rem;
  margin-bottom: 0;
  margin-left: 2rem;
  font-style: italic;
  font-weight: 400;
}

.vision-statement-mobile {
  display: none;
  color: var(--white);
  padding: 1.5rem 0.5rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
    linear-gradient(
      to bottom,
      var(--primary-color) 20%,
      var(--accent-color) 100%
    );
  position: relative;
  text-shadow: 2px 2px 4px rgb(0, 0, 0, 0.5);
  font-weight: 500;
  font-style: italic;
}

.vision-statement-mobile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Vertical lines */ repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px
    ),
    /* Horizontal lines */
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 20px
      );
  opacity: 0.3;
  pointer-events: none;
}

.vision-statement-mobile p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.hide-on-desktop {
  display: none;
}

@media (max-width: 768px) {
  .vision-statement {
    display: none;
  }

  .vision-statement-mobile {
    display: block;
  }

  .hide-on-desktop {
    display: flex;
  }

  .hero p.yellow-on-desktop {
    color: var(--white);
  }
}

/* Product Categories */
.product-categories {
  padding-top: 2rem;
  padding-bottom: 4rem;
  background-color: var(--light-gray);
}

.product-categories h2 {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 1rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

#product-portfolio {
  scroll-margin-top: 5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.category-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.category-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Contact Section - Home Page Only */
body.home-page .contact-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("images/global-locations.webp");
  background-position: center 27%;
  background-size: cover;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

body.home-page .contact-section h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

body.home-page .global-presence {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

body.home-page .contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

body.home-page .contact-info p {
  font-size: 1.1rem;
}

body.home-page .contact-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

body.home-page .contact-button:hover {
  background-color: color-mix(in srgb, var(--primary-color) 70%, black);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.category-header {
  /* option 1 */
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    linear-gradient(
      to top,
      var(--accent-color) 0%,
      color-mix(in srgb, var(--accent-color) 60%, var(--green) 40%) 30%,
      color-mix(in srgb, var(--accent-color) 30%, var(--green) 70%) 40%,
      color-mix(in srgb, var(--green) 70%, var(--primary-color) 30%) 55%,
      color-mix(in srgb, var(--green) 40%, var(--primary-color) 60%) 65%,
      var(--primary-color) 80%,
      color-mix(in srgb, var(--primary-color) 70%, black 30%) 100%
    ); */
  /* option 2 */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    linear-gradient(
      to bottom,
      var(--primary-color) 20%,
      var(--accent-color) 100%
    );
  color: var(--white);
  padding: 8rem 2rem 2rem;
  text-align: center;
  position: relative;
}

.category-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Vertical lines */ repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px
    ),
    /* Horizontal lines */
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 20px
      );
  opacity: 0.3;
  pointer-events: none;
}

.category-header h1 {
  font-size: 3.5rem;
  /* enable if using option 1 */
  /* color: var(--accent-color); */
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-intro {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 2rem;
  line-height: 1.4;
  position: relative;
  text-align: left;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.category-intro p {
  margin-bottom: 1rem;
}

.applications {
  font-size: 1.5rem;
  color: var(--white);
  font-style: italic;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.product-overview {
  padding: 4rem 2rem;
  background-color: var(--light-gray);
}

.product-overview h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 325px);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.product-card {
  width: 100%;
  max-width: 325px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.product-card img.zoomed-in {
  transform: scale(1.2);
}

.product-card img.extra-zoomed-in {
  transform: scale(1.5);
}

.product-card h3 {
  color: var(--primary-color);
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
}

.product-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--secondary-color);
}

.product-details {
  padding: 4rem 2rem;
  background: var(--white);
}

.product-details h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.features-list {
  max-width: 800px;
  margin: 0 auto;
  list-style-type: none;
  padding: 0;
}

.features-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.features-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.related-categories {
  padding: 4rem 2rem;
  background-color: var(--light-gray);
}

.related-categories h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.related-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 325px);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.related-product-card {
  width: 100%;
  max-width: 325px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card img.zoomed-in {
  transform: scale(1.2);
}

.related-product-card img.extra-zoomed-in {
  transform: scale(1.5);
}

.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.related-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-product-card a {
  text-decoration: none;
  color: inherit;
}

.related-product-card h3 {
  color: var(--primary-color);
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
}

.related-product-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--secondary-color);
}

.cta-section {
  position: relative;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2)),
    linear-gradient(to top, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Vertical lines */ repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px
    ),
    /* Horizontal lines */
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 20px
      );
  opacity: 0.3;
  pointer-events: none;
}

.cta-section h2 {
  position: relative;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  position: relative;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 12rem 0.5rem 4rem;
    min-height: 85vh;
    align-items: flex-end;
  }

  .hero-content {
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgb(0, 0, 0, 0.5);
  }

  .hero p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    font-style: italic;
    text-shadow: 2px 2px 4px rgb(0, 0, 0, 1);
  }

  .category-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    gap: 2rem;
  }

  .nav-links.active {
    right: 0;
  }

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

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

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

  .nav-links a {
    font-size: 1.5rem;
  }

  .category-header {
    padding: 6rem 1rem 1rem;
  }

  .category-header h1 {
    font-size: 2.5rem;
  }

  .category-intro,
  .applications {
    font-size: 1.2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .related-product-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .contact-buttons {
    flex-direction: column;
    padding: 0 2rem;
  }

  .vision-statement {
    display: none;
  }

  .vision-statement-mobile {
    display: block;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .logo.initial {
    height: 10rem;
    transform: translateY(4rem);
  }

  .logo.has-scrolled {
    transition: all 0.5s ease;
  }
}

.main-footer {
  padding-top: 2rem;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--primary-color) 50%, black) 0%,
    color-mix(in srgb, var(--primary-color) 15%, black) 100%
  );
  position: relative;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Vertical lines */ repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px
    ),
    /* Horizontal lines */
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 20px
      );
  opacity: 0.2;
  pointer-events: none;
}

.footer-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 1px;
  background-color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-tagline {
  margin-bottom: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  border-top: 1px solid var(--secondary-color);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 2rem;
  }
}
