/* ==== BASE LAYOUT ==== */
body {
  font-family: "open sans", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  color: #1a1a1a;
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* For Chrome and Safari */
  -moz-osx-font-smoothing: grayscale; /* For Firefox on macOS */
  text-rendering: optimizeLegibility; /* Encourages browser to optimize for legibility */
}

/* ========HEADER======== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem .75rem;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f15a29;
}

nav {}

nav a {
  text-decoration: none;
  color: #1a1a1a;
  margin-left: 1.5rem;
  font-weight: 500;
}

nav a:hover {
  color: #f15a29;
}

div.logo a img {
  width: 244px;
  height: 61px;
}

a.talktous {font-size: 1rem; font-weight: bold;}
a.talktous:hover {background-color: rgba(241, 90, 41, 0.85) !important; color:#fff !important; box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);}

@media (max-width: 900px) {
  div.logo a img {
    width: 200px;
    height: auto;
  }
  
  header {
    padding: 1.5rem 1rem .75rem;
  }
  
  a.talktous {font-size: .85rem; font-weight: bold;}
}

/* ========HEADER END======== */

.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: #597c98;
  background-image: URL("img/Hero4K3.jpg");
  background-position: top;
  background-size: cover;
}

.hero img {
  width: 65%;
  max-width: 900px;
  padding: 2rem 0 0 0;
}

.hero h1 {
  font-family: "montserrat", arial, sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  display: none;
}

.hero p {
  color: #555;
  font-size: 1.1rem;
  color: #fff;
  display: none;
}

@media (max-width: 900px) {
  section.hero img {width: 80%;}
}

main a {
  color: #f15a29;
  text-decoration: none;
}

main a:hover {
  color: #f59332;
}

.stripegrey {
  background-color: #efece9;
}

ul.custom-bullets {
  list-style-type: disc;          /* make sure bullets are on */
  list-style-position: outside;   /* bullets outside text block */
  padding-left: 1.5rem;           /* space for bullets */
  margin: 1rem 0 0 0;
}

ul.custom-bullets li {
  margin-bottom: 0.5rem;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  color: #333;
}

ul.custom-bullets li:last-child {margin-bottom: 0rem;}

/* bullet color */
ul.custom-bullets li::marker {
  color: #08d69f;
  font-size: 1.2rem;
}

iframe {
  aspect-ratio: 16 / 9;
  height: 100%;
  width: 100%;
}

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

/* Video */
.video-wrapper {
  flex: 1 1 500px;
  max-width: 600px;
}

video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Description */
.description {
  flex: 1 1 400px;
}

.description h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.description p {
  color: #444;
}

p.infopill, a.talktous {
  padding: .1rem .75rem;
  margin: 0 0 0px 0;
  color: white;
  background-color: #ee572f;
  border-radius: 100px;
  display: inline-block;
  width: 80px;
  text-align: center;
  text-transform: upper;
}

p.infopill {font-size: .75rem;}

/* Carousel */
.carousel-wrapper {
  flex: 1 1 500px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.click-to-enlarge {
  position: absolute;
  left: 4px;
  bottom: 32px;
  /* background-color: rgba(0,0,0,0.25); */
  padding: 4px;
  border-radius: 50%;
  color: grey;
  font-size: .65rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.click-to-enlarge:hover {
  background-color: rgba(119, 197, 200, 0.5);
  /* transform: scale(1.1); */
}

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-height: 360px;
  /* matches video height */
  object-fit: cover;
  border-radius: 12px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background-color: #f15a29;
}

/* Responsive */
@media(max-width:900px) {
  .portfolio-item {
    flex-direction: column;
    align-items: stretch;
  }

  .video-wrapper,
  .carousel-wrapper {
    max-width: 100%;
    flex: auto;
  }

  .description {
    flex: auto;
  }

  .carousel-track img {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* matches typical video aspect ratio */
    object-fit: cover;
    border-radius: 12px;
    max-height: fit-content;
  }

  .hero {
    padding: 3rem 2rem;
  }
}


/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #fff;
  background: #061a40;
}

div.SocialLinks {
  display: flex;
  justify-content: center;
}

div.SocialLinks div {
  width: 38px;
  height: 38px;
  margin: 0 1rem 1rem 0;
  border-radius: 100px;
  background: #ee572f;
  background-image: URL("img/Sprite-LI-INST-YT.png");
}

div.SocialLinks div.linkedin {background-position: 0 -38px;}
div.SocialLinks div.linkedin:hover {background-position: 0 0;}
div.SocialLinks div.instagram {background-position: -38px -38px;}
div.SocialLinks div.instagram:hover {background-position: -38px 0;}
div.SocialLinks div.youtube {background-position: -76px -38px;}
div.SocialLinks div.youtube:hover {background-position: -76px 0;}

ul.wt-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

ul.wt-links li {
  padding: 0 10px;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  font-size: 1.15rem;
}

ul.wt-links li + li::before {
  content: "|";    /* No spaces here */
  padding-right: 1rem;  /* optional — spacing between pipe and text */
  color: #06d6a0;
}

a {color: #fff; text-decoration: none;}
a:hover {color: #ee572f;}

div.legal p {font-size: .85rem;}

@media (max-width: 900px) {
  
  div.legal p {font-size: .7rem;}
  
  ul.wt-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
  }
  ul.wt-links li {
      padding: 0 10px;
      margin: 0 0 1rem 0;
      text-transform: uppercase;
      font-size: 1.15rem;
  }
  
  ul.wt-links li + li::before {
    content: none;
    padding: 0;
  }
}


/* ==== FOOTER RESPONSIVE ==== */
@media (max-width: 900px) {
  .portfolio-item {
    flex-direction: column;
  }
}

/* Modal container start */

.modal {
  display: flex;
  /* use flex so it's always ready for animation; hide via opacity instead */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  /* Needed transparency for Safari blur to render */
  background-color: rgba(0, 0, 0, 0.4);

  /* Frosted-glass blur */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  /* Start hidden */
  opacity: 0;
  pointer-events: none;

  /* Center content */
  align-items: center;
  justify-content: center;
  flex-direction: column;

  /* Smooth transition */
  transition: opacity 0.4s ease, background-color 0.4s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.65);
}

/* Image inside modal */
.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, .8);
  transition: transform 0.3s ease;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #bbb;
}

/* Caption text */
#caption {
  margin-top: 10px;
  text-align: center;
  color: #ddd;
  font-family: "Open Sans", sans-serif;
  display: none;
}

/* Navigation arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #ee572f;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  transition: 0.3s;
}

.prev:hover,
.next:hover {
  color: #f59332;
}

.prev {
  left: 5%;
}

.next {
  right: 5%;
}

/* Modal container end */