:root {
  /* Colors */
  --color-primary: #000000;
  --color-accent: #ff5722;
  --color-text: #4b4b4b;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --color-gray-light: #f8f9fa;
  --color-border: #e9ecef;
  --color-overlay: rgba(20, 20, 20, 0.5);
  --color-link: #0056b3;
  --color-footer-hover: #0056b3;
  --color-popup-bg: #f9f9f9;
  --color-popup-border: #ddd;
  --color-nav-brand: #000;
  --color-nav-hover: var(--color-primary);

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-size-base: 1.2em;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.6rem;
  --font-size-nav: 1.4rem;
  --font-size-small: 1rem;
  --line-height: 1.9;
  --font-weight-normal: 400;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-0: 0;
  --spacing-sm: 20px;
  --spacing-md: 40px;
  --spacing-lg: 100px;
  --padding-nav: 14px 30px;
  --margin-gallery: 0 15px;

  /* Layout */
  --width-full: 100%;
  --width-container: 1275px;
  --width-gallery: 1290px;
  --width-contact: 1063px;
  --width-carousel: 1050px;
  --width-nav: 200px;
  --min-height-hero: 375px;
  --max-width-testimonial: 290px;

  /* Effects */
  --transition-default: all 0.3s ease;
  --transition-transform: transform 0.35s;
  --shadow-default: 0 2px 5px rgba(0, 0, 0, 0.2);
  --shadow-text: 2px 2px 2px #333;
  --border-radius: 5px;
  --opacity-normal: 1;
  --opacity-dim: 0.8;
  --opacity-hover: 0.4;

  /* Z-index */
  --z-behind: -1;
  --z-base: 1;
  --z-overlay: 999;
  --z-navbar: 1000;
  --z-popup: 1000;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* Base Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin: var(--spacing-0);
  padding: var(--spacing-0);
  overflow-x: hidden;
  line-height: var(--line-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
}

a {
  transition: var(--transition-default);
  color: var(--color-primary);
}

a:hover,
a:focus {
  text-decoration: none;
  color: var(--color-accent);
}

/* Navbar */
.tm-navbar {
  position: fixed;
  width: var(--width-full);
  z-index: var(--z-navbar);
  background-color: transparent;
  transition: var(--transition-default);
}


.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-white) !important;
  font-size: var(--font-size-nav);
}

.tm-navbar.scroll .navbar-brand {
  color: var(--color-primary);
}

.tm-navbar.navbar-toggled {
  background-color: black; /* Background color when toggled */
}

.tm-nav-link {
  color: var(--color-white) !important;
}

.tm-navbar.scroll  {
  color: var(--color-primary);
  background-color:var(--color-primary) !important;
}

/* Buttons */
.tm-btn-primary {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: var(--padding-nav);
}

.tm-btn-primary:hover {
  transform: scale(1.1);
}

.tm-btn-primary:focus {
  color: var(--color-white);
  background-color: var(--color-primary);
}

head,html {
    margin: var(--spacing-0);
  padding: env(safe-area-inset);  /* Safe area for notches */
  width: var(--width-full);
  height: var(--width-full);
  background-color: var(--color-primary);        /* Prevents white bars */
  overflow-x: hidden;
  font-family: var(--font-primary);
}


a:hover,
a:focus {
  text-decoration: none;
  color: var(--color-accent);
}

a:focus {
  outline: none;
}

.tm-section-pad-top {
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
}

.tm-section-pad-top-contact {
    padding-top: var(--spacing-0);
    padding-bottom: var(--spacing-0);
  }

.tm-content-box {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
}

.tm-info-content-box {
    padding-top: var(--spacing-0);
    padding-bottom: var(--spacing-0);
  }

.tm-text-primary {
  color: var(--color-primary);
}

.tm-font-big {
  font-size: 1.25rem;
}

.tm-btn-primary {
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: var(--padding-nav);
}

.tm-btn-primary:hover,
.tm-btn-primary:focus {
  color: var(--color-white);
  background-color: var(--color-primary);
}

/* Navbar */

.tm-navbar.scroll {
  background-color: var(--color-white);
}

.navbar-brand {
  color: var(--color-white);
  font-size: var(--font-size-nav);
  font-weight: bold;
}

.navbar-brand:hover,
.tm-navbar.scroll .navbar-brand:hover {
  color: var(--color-link);
  transform: scale(1.05);
}

.tm-navbar.scroll .navbar-brand {
  color: var(--color-primary);
}

.nav-item {
  list-style: none;
  font-size: 1.2rem;
}

.tm-nav-link {
  color: var(--color-white);
}

.tm-navbar.scroll .tm-nav-link {
  color: var(--color-primary);
}

.tm-navbar.scroll .tm-nav-link:hover,
.tm-navbar.scroll .tm-nav-link.current,
.tm-nav-link:hover {
  color: var(--color-white);
  background-color: transparent;
  transform: scale(1.1);
}

.navbar-toggler {
  padding-left: 10px;
  padding-right: 10px;
}


.navbar-toggler-icon {
  color: var(--color-white);
  padding-top: 6px;
}


.tm-navbar.scroll .navbar-toggler-icon {
  color: var(--color-white);
}

/* Hero */

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--width-full);
    height: var(--width-full);
    object-fit: cover; /* Ensures the video fills the area, cropping if needed */
    z-index: var(--z-behind); /* Places the video behind the text */
    background-color: black; /* Ensures no empty space if the video doesn't load */
    padding: env(safe-area-inset);  /* Prevents notch issues */
  }
  
#infinite {
	background-color: var(--color-primary);
  /* background-image: url(../img/infinite-loop-01.jpg); */
  background-repeat: no-repeat;
  height: 100vh;
  min-height: var(--min-height-hero);
  position: relative;
  padding: env(safe-area-inset);  /* Safe area support for notches */
  inset: 0;
}

@media (min-height: 680px) and (max-height: 829px) {
  #infinite {
    background-position: center -300px;
  }
}

@media (min-height: 500px) and (max-height: 679px) {
  #infinite {
    background-position: center -400px;
  }
}

@media (max-height: 499px) {
  #infinite {
    background-position: center -450px;
  }
}

.tm-hero-text-container {
  width: var(--width-full);
  height: var(--width-full);
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.tm-hero-text-container-inner {
    z-index: 10; /* Ensures it stays above the video */
  margin-top: -90px;
}

.tm-hero-title {
  font-size: var(--font-size-h1);
  text-shadow: var(--shadow-text);
}

.tm-hero-subtitle {
  color: var(--color-white); /* Change to your desired text color */
}

p.tm-hero-subtitle {
    margin-bottom: var(--spacing-0);
  }

.tm-intro-next {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
}

@media (max-height: 480px) {
  .tm-hero-text-container-inner {
    margin-top: -40px;
  }

  .tm-intro-next {
    bottom: 20px;
  }
}

.tm-down-arrow-link {
  display: block;
  margin-top: 18%;
}

.tm-down-arrow {
  	color: var(--color-white);
    cursor: pointer;
    background: transparent;
    padding: 15px 40px;
    transition: var(--transition-default);
}

.tm-down-arrow:hover,
.tm-down-arrow:focus {
  color: var(--color-white);
  background: transparent;
  padding: 20px 50px;
}

/* Introduction */

#introduction {
  padding-bottom: var(--spacing-lg);
}


.tm-section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-normal);
}

/* Add this to prevent extra scroll */
#specs, #mtf, #about, #contact {
  scroll-margin-top: 100px; /* Same as navbar height */
}


@media (max-width: 768px) {
    h2.tm-text-primary.mb-4 {
      font-size: 1.5rem; /* Adjust the font size as needed */
    }
    p.mb-4.tm-intro-text {
        font-size: 1rem; /* Adjust the font size as needed */
      }
  }

.tm-intro-text {
  font-size: 1.2rem;
}

.tm-continue {
	padding: 10px 0 40px 0;
}

/* Full page container */
.center-container {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;     /* Center vertically */
  }
  

.mtf-link {
  color: var(--color-accent);
}

/* Center the video container */
.video-container {
  display: flex;
  justify-content: center;  /* Horizontally center the video */
  align-items: center;      /* Vertically center the video */
  margin: 0 auto;           /* Auto margin for centering */
  padding: 20px 0;          /* Optional padding for spacing */
  max-width: var(--width-full);          /* Ensure the video container doesn't exceed 100% width */
  height: auto;             /* Maintain aspect ratio of video container */
  padding-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
}

.embed-responsive{
  padding-bottom: 0;
}

/* Make the iframe responsive and allow it to grow larger on desktop */
.video-container iframe {
  height: auto;              /* Maintain the aspect ratio automatically */
  max-width: 1200px;         /* Maximum width of the video on larger screens */
  aspect-ratio: 16 / 9;      /* Maintain 16:9 aspect ratio */
  position: relative;
  z-index: 10;              /* Ensure iframe is interactive */
  border: 3px solid var(--color-link);
  border-radius: 5px;
}


/* specs */
#specs {
  color: var(--color-white);
  background-image: url(../img/output-infinite-loop-03-1.jpg);
  background-color: var(--color-white);
  background-size: cover;
  /* background-size: contain; */
  background-repeat: no-repeat;
  /* background-size: 100%; */
  position: relative;
  background-position: center; /* Center the image */
}

@media (max-width: 768px) {
  #specs {
    color: var(--color-white);
    background-image: url(../img/infinite-loop-03-mobile.jpg);
    background-size: cover;
    /* background-size: contain; */
    background-repeat: no-repeat;
    /* background-size: 100%; */
    position: relative;
    background-position: center; /* Center the image */
    background-attachment: scroll !important; /* or 'local' */
  }
}

.tm-specs-content {
  position: relative;
  z-index: 100;
}

.tm-bg-overlay {
  width: var(--width-full);
  height: var(--width-full);
  /* background: rgba(20, 70, 80, 0.2); */
  background-image: url(../img/infinite-loop-03-mobile.jpg);
  background: var(--color-overlay); /* Dark overlay */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.tm-specs-carousel {
  max-width: var(--width-carousel);
  margin: 0 auto;
}

.tm-testimonial-item {
  max-width: var(--max-width-testimonial);
  margin-left: 35px;
  margin-right: 35px;
}

.tm-testimonial-item img {
  border-radius: 50%;
  margin-bottom: 35px;
}

.tm-testimonial-item figcaption {
  text-align: right;
  font-style: italic;
  font-size: var(--font-size-caption);
}

.image-container {
  display: flex; /* Enable flexbox */
  flex-wrap: wrap; /* Allow items to wrap onto the next line */
  justify-content: center; /* Center items */
}

.image-container img {
  width: 45%; /* Adjust the width of images on larger screens */
  max-width: var(--width-full); /* Ensure images do not overflow */
  margin: 10px;
}

@media (max-width: 768px) {
  .image-container img {
      width: var(--width-full); /* Full width on smaller screens */
  }
  .video-container iframe {
    max-width: var(--width-full);         /* Make the video take up the full width on small screens */
    height: auto;            /* Maintain aspect ratio */
  }
}

/* Work */


.tm-section-desc {
  margin: 0 auto; /* Center the container */
  font-size: var(--font-size-small);
}

.tm-gallery-container {
  padding-top: var(--spacing-md);
  padding-bottom: 30px;
}

.tm-gallery-item {
  margin: var(--margin-gallery);
}

.slick-dots {
  bottom: -50px;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0; /* Keep dots in line */
}

.slick-dots li {
  display: inline-block;
  margin: 0 8px; /* Reduce margin on mobile */
  padding: 0;
  width: auto;
}

@media (max-width: 480px) {
  .slick-dots li {
    margin: 0 5px; /* Even smaller margins on mobile */
  }
  
  .tm-specs-carousel .slick-dots {
    bottom: -40px; /* Adjust position if needed */
  }
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before,
.slick-dots li.slick-active button:before {
  opacity: var(--opacity-normal);
  color: var(--color-primary);
}

.tm-specs-carousel .slick-dots li button:before {
  color: var(--color-white);
  opacity: 0.5;
}

.tm-specs-carousel .slick-dots li button:hover:before,
.tm-specs-carousel .slick-dots li button:focus:before,
.tm-specs-carousel .slick-dots li.slick-active button:before {
  color: var(--color-white);
  opacity: var(--opacity-normal);
}

.slick-dots li button:before {
  font-size: 18px;
}

/* Hover Effect */
/* Common style */
.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  background: var(--color-primary);
  text-align: center;
  cursor: pointer;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: var(--width-full);
  max-width: var(--width-full);
  opacity: var(--opacity-dim);
}

.grid figure figcaption {
  padding: 2em;
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
  pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--width-full);
  height: var(--width-full);
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.grid figure h2 {
  word-spacing: -0.15em;
  font-size: 0.9em;
  font-weight: 300;
}

.grid figure h2 span {
  font-weight: 600;
}

.grid figure h2,
.grid figure p {
  margin: var(--spacing-0);
}

.grid figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}

#about .slick-dots {
  display: none; /* Hides the dots within the about section */
}


/*---------------*/
/***** Honey *****/
/*---------------*/

figure.effect-honey {
  background: var(--color-white);
  max-width: 220px;
}

figure.effect-honey img {
  opacity: var(--opacity-normal);
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.effect-honey:hover img {
  opacity: var(--opacity-hover);
}

figure.effect-honey figcaption::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--width-full);
  height: 10px;
  background: var(--color-primary);
  content: "";
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}

figure.effect-honey h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em 1.5em;
  width: var(--width-full);
  text-align: left;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey h2 i {
  font-style: normal;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(0, -30px, 0);
  transform: translate3d(0, -30px, 0);
}

figure.effect-honey figcaption::before,
figure.effect-honey h2 {
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
}

.text-center.col-12 p {
    margin-bottom: 0 !important; 
  }

figure.effect-honey:hover figcaption::before,
figure.effect-honey:hover h2,
figure.effect-honey:hover h2 i {
  opacity: var(--opacity-normal);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.tm-container-gallery {
	padding-top: 10px;
	}

/* Contact */


#contact {
  color: var(--color-primary);
  background-color: var(--color-white);
  background-position: center 90%;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 10;
}

/* Change color of all anchor links in the contact section */
#contact a {
  color: var(--color-accent); /* Change to your desired color, e.g., orange */
  font-style: normal;
}

#contact h2, 
#contact p {
    font-style: normal; /* Resets font style to normal */
}

.tm-footer {
  background-color: var(--color-gray-light); /* Light background for the footer */
  color: var(--color-gray); /* Subtle text color */
  text-align: center;
  padding: 20px 0; /* Spacing around the footer content */
  position: relative; /* Default position to avoid overlap */
  bottom: 0;
  width: var(--width-full);
}

.tm-footer a {
  color: var(--color-footer-link); /* Link color */
  text-decoration: none;
}

.tm-footer a:hover {
  color: var(--color-footer-hover); /* Darker shade on hover */
  text-decoration: underline;
}

.social-icons a {
  font-size: 1.5rem;
}

.social-icons a[href*="linkedin"] {
  color: #0A66C2; /* LinkedIn blue */
}

.social-icons a[href*="youtube"] {
  color: #FF0000; /* YouTube red */
}

/* Intro Text Container */
.tm-intro-text-container {
  margin: 0 auto; /* Center the container */
}

p {
  line-height: var(--line-height);
}

@media (min-width: 768px) {
  .tm-intro-text-container {
    padding-left: 0px;
  }

  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--width-container);
  }

  .tm-container-gallery {
    max-width: var(--width-gallery);
  }

  .tm-container-contact {
    max-width: var(--width-contact);
  }
}

@media (max-width: 991px) {
  .tm-intro-text-container {
    /* padding-left: 15px; */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-intro-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 767px) {

  .navbar-nav {
    max-width: var(--width-nav);
    text-align: right;
  }

  .navbar-collapse {
    padding: 10px;
    border-radius: 3px;
  }

  .navbar-collapse .nav-link {
    color: #fdfdfd;
	padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .tm-gallery-container {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .slick-dots li {
    margin: 0 5px; /* Even smaller margins on mobile */
  }

  .tm-gallery-item {
    margin: 0;
  }
}

.popup a {
  color: var(--color-accent); /* Change to your desired color, e.g., orange */
  font-style: normal;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-popup-bg);
  z-index: var(--z-popup);
  display: none; /* Initially hidden */

  background-color: var(--color-popup-bg);
  border: 1px solid var(--color-popup-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-default);
  color: #333;
  padding: 15px 20px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--width-full);
  height: var(--width-full);
  background-color: var(--color-overlay);
  z-index: var(--z-overlay);
  display: none; /* Initially hidden */
}

/* Technical Overview Page-Specific Styles */
body.technical-overview {
  background: #fff !important; /* Plain white background */
  color: #000; /* Black text for readability */
}

.technical-overview .tm-navbar {
  background-color: var(--color-primary) !important; /* White navbar background */
}

.technical-overview .tm-nav-link {
  color: #ffffff !important; /* Black navbar links */
}

.technical-overview .tm-nav-link:hover {
  color: #ffffff !important; /* Optional: Hover color for navbar links */
}

/* Technical Overview page specific styles */
.technical-overview .navbar-brand {
  color: var(--color-white) !important;
}

.technical-overview .navbar-brand:hover {
  color: var(--color-white) !important;
}

/* Modal Custom Styles */
/* Modal Enhancements */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.modal-header .close {
  color: var(--color-primary);
  opacity: 0.8;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition-default);
}

.modal-header .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.list-group-item {
  border: none;
  transition: var(--transition-default);
}

.list-group-item:hover {
  background-color: var(--color-gray-light);
  transform: translateX(5px);
}

.list-group-item a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  display: block;
  border-radius: 5px;
  transition: var(--transition-default);
}

.list-group-item a:hover {
  background-color: var(--color-gray-light);
  color: var(--color-accent);
  text-decoration: none;

}

.modal-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.animate-backdrop {
  opacity: 0.5;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal.fade .modal-dialog {
  animation: modalFadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
  .modal-dialog {
    margin: 20px;
  }

  .modal-content {
    padding: 15px;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-body {
    padding: 15px;
  }
}


/* Carousel Enhancements */
.tm-specs-carousel .slick-slide {
  padding: 10px;
  transition: transform 0.3s ease;
}

.tm-specs-carousel .slick-slide:hover {
  transform: scale(1.05);
}

/* Override technical-overview page styles for Slick arrows */


body.technical-overview .slick-prev:before,
body.technical-overview .slick-next:before {
  color: black !important; /* Default Slick arrow color */
}
