@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* Reset Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
}

/*Body and other tags*/

body {
    background-color: #2c2c2c;
    color: white;
    letter-spacing: 0.6px;
}

header, footer, main, section, article{
    container-type: inline-size;
}

h1,h2,h3,h4,h5,h6{
    text-wrap: balance;
    font-family: 'Lato', sans-serif;
}

h1{
    font-size: clamp(2rem, 3.8vw, 3.9rem);
    font-weight: 900;
    text-transform: uppercase;
}

h2{
    font-size: clamp(1.20rem, 2.35vw, 3.4rem);
    font-weight: 700;
    text-transform: uppercase;
}

/*h3,h4,h5{
    text-align: left;
}*/

p,li,figcaption{
    text-wrap: pretty;
    word-wrap: break-word;
    max-width: 110ch;
    font-size: 17px;
    text-align: center;
    letter-spacing: 0.11rem;
}

a{
    color: skyblue;
    transition: color 0.3s ease-in-out;
}

a:hover{
    color: khaki;
}
.cover-img{
    position: relative;
    background: url('../img/20X20.jpg') repeat;
}

/* General Container Width */

.container {
    text-align: center;
}

.container h2{
    text-align: left;
}

.container p{
    margin: 0 auto;
    text-align: left;
}

/* Navigation Bar */

.navbar {
    background-color: rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease-in-out;
    position: fixed; /* Fixes the navbar at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Ensures it stays above other elements */
}

.navbar .navbar-brand {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    z-index: 11;
    padding-left: 15px;
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .nav-link {
    text-transform: uppercase;
    margin: 0 12px;
    transition: color 0.3s ease-in-out;
    letter-spacing: 1.5px;
    font-size: clamp(0.65rem, 1vw, 0.89rem);
    color: whitesmoke;
    font-weight: 500;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: skyblue !important;
}

/* Dropdown Menu */

.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border: none;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item {
    color: whitesmoke;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    padding: 8px 12px;
}

.dropdown-menu .dropdown-item:hover {
    background-color: skyblue !important;
    color: black !important;
}

/* Hero Section */

.carousel-item video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter: brightness(40%);
    pointer-events: none;
}

.carousel-caption {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.7px;
}

.carousel-caption h1 {
    font-size: clamp(2.3rem, 4.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: .50rem;
    text-align: left;
    text-transform: uppercase;
}

.carousel-caption h2 {
    font-size: clamp(1.9rem, 3.4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: .50rem;
    text-align: left;
    text-transform: uppercase;
    color: skyblue;
}

.carousel-caption p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    letter-spacing: 0.8px;
    text-align: left;
}

.carousel-item,
.video-bg {
  border-bottom: none !important;
  outline: none;
}

/* Hero Section Styles on all other pages */

.hero-section {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
}

.main-header-img {
    width: 100%;
    height: 800px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text visibility */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4.5vw, 5.5rem);
    font-weight: 900;
    letter-spacing: .50rem;
    text-align: left;
    text-transform: uppercase;
}

.hero-content h2{
    font-size: clamp(1.1rem, 3.4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: .50rem;
    text-align: left;
    text-transform: uppercase;
    color: skyblue;
}

.hero-content p {
    font-size: clamp(0.86rem, 1.5vw, .90rem);
    letter-spacing: 0.8px;
    text-align: left;
    text-transform:uppercase;
}

.hero-content .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
}

/* Button */ 

.btn-primary {
    background-color: skyblue;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    letter-spacing: 1px;
    text-transform: uppercase;
    float: left;
    z-index: 9999;
}

.btn-primary:hover {
    background-color: white;
    color: skyblue;
}

/* Product Gallery Section */

.contact-section {
    position: relative;
    background-image: url('../img/contact_background.jpg'); /* Ensure the path is correct */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-section > * {
    position: relative;
    z-index: 2;
}

.contact-section h3{
    text-transform: uppercase;
}

.pro-section {
    position: relative;
    background-image: url('../img/section.jpg'); /* Ensure the path is correct */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.pro-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.pro-section > * {
    position: relative;
    z-index: 2;
}

.pro-section h3{
    text-transform: uppercase;
}

/* JIT Page */

.jit-section {
    position: relative;
    background-image: url('../img/ai_bg.jpg'); /* Ensure the path is correct */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.jit-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.jit-section > * {
    position: relative;
    z-index: 2;
}

.jit-section h3{
    text-transform: uppercase;
}

.ai-section {
    position: relative;
    background-image: url('../img/ai_bg.jpg'); /* Ensure the path is correct */
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.ai-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.ai-section > * {
    position: relative;
    z-index: 2;
}

.ai-section h3{
    text-transform: uppercase;
}

.services-section {
    position: relative;
    background-image: url('../img/landing_page.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    color: white;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* Card Section */
.contact-section .card{
    padding: 20px;
    transition: all 0.3s ease-in-out;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: solid rgb(26, 26, 26) 2px;
}

.contact-section .card:hover {
    transform: scale(1.05);
}

.pro-section .card{
    padding: 20px;
    transition: all 0.3s ease-in-out;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: solid rgb(26, 26, 26) 2px;
}

.pro-section .card:hover {
    transform: scale(1.05);
}

.jit-section .card{
    padding: 20px;
    transition: all 0.3s ease-in-out;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: solid rgb(26, 26, 26) 2px;
}

.jit-section .card:hover {
    transform: scale(1.05);
}

.ai-section .card{
    padding: 20px;
    transition: all 0.3s ease-in-out;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(135, 206, 235, 0.9);
    color: white;
    border: solid white 2px;
}

.ai-section .card:hover {
    transform: scale(1.05);
}

.services-section .card {
    padding: 20px;
    transition: all 0.3s ease-in-out;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(135, 206, 235, 0.9);
    color: white;
    border: solid white 2px;
}

.services-section .card:hover {
    transform: scale(1.05);
}

/* General Section Spacing */

.norm-section {
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

.btn-norm{
    background-color: skyblue;
    color: white;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    letter-spacing: 1px;
    text-transform: uppercase;
    float: center;
}

.btn-norm:hover{
    background-color: white;
    color: skyblue;
}

.norm-section::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Adjust color and opacity as needed */
    z-index: 1;
}
.norm-section p{
    margin: 0 auto;
    text-align: center;
}

.norm-section >*{
    position: relative;
    z-index: 2;
}

.img-section{
    position: relative;
    background: url('../img/home_intro.jpg') no-repeat center center/cover; 
}

.img-section-contact{
    position: relative;
    background: url('../img/footer_back_ground.jpg') no-repeat center center/cover; 
}

.news-container {
    display: flex;
    align-items: stretch; /* Ensures left & right stay the same height */
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    gap: 20px;
}

/* News Section */

 .left {
    flex: 1;
    flex-direction: column;
    position: relative;
    width: 610px; 
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure Overlay is Visible */
/* Overlay: Keep Text Inside & Visible */

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto; /* Expands based on content */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Keeps text at the bottom */
    align-items: center;
    padding: 15px;
    text-align: center;
    max-width: 100%; /* Prevents text from stretching */
    overflow: hidden; /* Prevents text from escaping */
}

/* Ensure Text Stays Inside the Overlay */
.overlay h4,
.overlay p,
.overlay a {
    max-width: 90%; /* Prevents text from being too wide */
    word-wrap: break-word; /* Ensures long words wrap */
    overflow-wrap: break-word;
    color: white; /* Makes sure text is visible */
    z-index: 2; /* Ensures text is above background */
    margin: 5px 0; /* Adds spacing */
}

/* Fix Button Inside Overlay */
.overlay .btn {
    position: relative;
    z-index: 2;
    margin-bottom: 10px; /* Adds space between text and button */
    align-self: center;
    white-space: nowrap; /* Prevents button text from breaking */
}


/* Overlay for the left image */
.left .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Covers 40% of the image */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    z-index: 2;
}

/* Right Side using Grid */
.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* "NEW" Label */

.new-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: orange;
    color: white;
    font-size: 20px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    z-index: 4;
}

/* Overlay for right images */

.right .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto; /* ✅ Fix: Allows overlay to expand with content */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 15px;
    z-index: 2;
    overflow: hidden; /* ✅ Ensures text does not overflow */
    text-align: center;
    max-width: 100%;
}

.right .overlay h4,
.right .overlay p,
.right .overlay a {
    max-width: 90%; /* ✅ Prevents text from being too wide */
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: white;
    z-index: 2;
    margin: 5px 0;
}

.right .overlay .btn {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    align-self: center;
    white-space: nowrap; /* ✅ Prevents button text from breaking */
}

.right .overlay .btn:hover{
    color: skyblue;
}

.right .image-container {
    width: 100%;
    height: auto;
}

.full-width-img {
    width: 100%;
    height: auto; /* Allows the image to scale naturally */
    object-fit: cover; /* Keeps aspect ratio while covering the container */
}

/* Footer */

.footer {
    background-color: #111;
}

.footer p{
    font-size: 0.75em;
}

.footer h5{
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 700;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    flex-wrap: wrap;
    letter-spacing: 0.7px;
}

.footer .row {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 100%;
}

.footer .col-md-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

/*.footer-logo {
    width: 150px;
    margin-bottom: 10px;
}*/

.footer-description {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 10px;
    max-width: 250px;
    text-align: center;
    letter-spacing: 0.7px;
}

.footer-divider {
    width: 80%;
    border-top: 1px solid white;
    margin: 10px 0;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    letter-spacing: 0.8px;
    font-size: 0.7em;
    text-transform: uppercase;
}

.footer ul li a:hover {
    color: skyblue !important;
}

.footer .social-icons a {
    font-size: 1.1rem;
    margin: 10px auto;
    padding-left: 20px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    color: white;
}

.footer .social-icons a:hover {
    color: skyblue !important;
    transform: scale(1.2);
}

/* Footer Bottom */

.footer-bottom {
    background-color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-top: 20px;
    letter-spacing: 0.7px;
}

.footer-bottom p {
    margin: 0;
    color: white;
    font-size: 0.75em;
    margin-top: 4px;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 15px;
}

.footer-bottom a {
    color: skyblue;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    letter-spacing: 0.8px;
    font-size: 0.75em;
    margin-top: 4px;
}

.footer-bottom a:hover {
    color: white;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  Medium devices (tablets, <992px)
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
@media (max-width: 991.98px) {
  /* Navbar text and padding */
  .navbar .nav-link {
    margin: 0 8px;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
  }

  /* Shrink hero video height so it doesn't overwhelm */
  .carousel-item video {
    height: 60vh;
  }

  /* Caption width and padding */
  .carousel-caption {
    max-width: 90%;
    padding: 0 1rem;
  }

  /* Stack news section vertically */
  .news-container {
    flex-direction: column;
    gap: 30px;
  }

  .left, .right {
    width: 100%;
  }

  /* Reduce large font sizes in carousel */
  .carousel-caption h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    letter-spacing: 0.3rem;
  }
  .carousel-caption h2 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
  }

  /* Reduce hero-section height */
  .hero-section {
    height: auto;
  }
  .hero-content {
    max-width: 95%;
  }

  /* Turn multi‑column footer into single column */
  .footer .container {
    flex-direction: column;
    align-items: center;
  }
  .footer .row {
    flex-direction: column;
    width: 100%;
  }
  .footer .col-md-4 {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Make buttons full‑width on tablet */
  .btn-primary, .btn-norm {
    width: 100%;
    text-align: center;
  }

  /* Disable fixed-attachment backgrounds for performance */
  .contact-section,
  .pro-section,
  .jit-section,
  .ai-section,
  .services-section {
    background-attachment: scroll;
  }
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  Small devices (landscape phones, <768px)
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
@media (max-width: 767.98px) {
  /* Collapse news completely */
  .news-container {
    margin: 20px auto;
  }

  /* Center-align headings and paragraphs */
  .container h2,
  .container p {
    text-align: center;
    padding: 0 1rem;
  }

  /* Simplify typography */
  h1 {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  h2 {
    font-size: clamp(1.2rem, 5vw, 2.5rem);
  }
  p, li, figcaption {
    font-size: 15px;
    max-width: 100ch;
    letter-spacing: 0.1rem;
  }

  /* Stack navbar brand and toggle button nicely */
  .navbar .navbar-brand {
    padding-left: 1rem;
  }

  /* Hero captions shrink further */
  .carousel-caption h1 {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    letter-spacing: 0.2rem;
  }
  .carousel-caption h2 {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }

  /* Cards become full width */
  .contact-section .card,
  .pro-section .card,
  .jit-section .card,
  .ai-section .card,
  .services-section .card {
    margin-bottom: 1.5rem;
  }

  /* Footer bottom links stack */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
  Extra-small devices (phones, <576px)
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
@media (max-width: 575.98px) {
  /* Tiny tweaks: reduce padding everywhere */
  body {
    padding: 0 .5rem;
  }

  /* Super‑small navbar links */
  .navbar .nav-link {
    margin: 0 4px;
    font-size: 0.65rem;
  }

  /* Reduce carousel-video height again */
  .carousel-item video {
    height: 50vh;
  }

  /* Smaller buttons */
  .btn-primary, .btn-norm {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}
