/* ==========================================================================
   Reset and General Styles
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-orange: #E65C3B;
  --dark-orange: #C84628;
  --navy-blue: #0E3B68;
  --steel-blue: #1c638a;
  --light-bg: #F0F4F8;
  --white: #FFFFFF;
  --text-dark: #0E3B68;
  --transition-fast: 0.3s ease;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  padding: 10px 5%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  gap: 15px;
}

/* Logo Animation */
.logo {
  height: 60px;
  max-height: 7em;
  object-fit: contain;
  position: relative;
  animation: logoZoomOut 2s ease-out forwards;
}

@keyframes logoZoomOut {
  0% {
    transform: scale(2) translate(-50%, -50%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
  }
}

/* Nav Links */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-blue) 0%, var(--steel-blue) 80%, var(--primary-orange) 80%);
  padding: 12px 25px;
  border-radius: 30px;
  gap: 15px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  transition: color var(--transition-fast);
  
  /* Flex container to align the pseudo-element inline */
  display: inline-flex;
  align-items: center;
}

/* Orange vertical divider added before every link EXCEPT the first one */
.nav-links a + a::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 14px; /* Adjust height of the line */
  background-color: var(--primary-orange, orange);
  margin-right: 15px; /* Matches the layout gap */
  border-radius: 1px;
  pointer-events: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: orange;
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: #ec7c78;
}

.nav-links a:hover::after {
  width: 100%;
}

nav a.active {
  background-color: #060402;
  color: #a11010;
  border-radius: 4px;
  padding: 3px 6px;
}
/* Tagline Container */
.tagline-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.line {
  width: 3px;
  height: 40px;
  background: var(--primary-orange);
  border-radius: 2px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.logo-tagline {
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--primary-orange);
  text-transform: uppercase;
  white-space: nowrap;
  animation: slideText 6s linear infinite;
}
.tagline-box-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.line-2 {
  width: 10px;
  height: 300px;
  background: var(--primary-orange);
  border-radius: 2px;
  /* animation: pulse 2s infinite; */
}


@keyframes slideText {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { transform: translateX(0); opacity: 1; }
  80% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
/* --- Award Showcase Animations --- */

/* Keyframe for entrance animation */
@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Apply entrance effect to award cards */
.awards-banner {
    background: linear-gradient(135deg, #5dd3f3 0%, #ebebed 80%);
    padding: 35px 20px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }

  .awards-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .awards-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  /* Title Large Trophy Icon */
  .title-trophy-icon {
    font-size: 2rem;
    color: #d4af37;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.25));
  }

  /* Slider Container */
  .awards-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }

  /* Animated Track */
  .awards-track {
    display: flex;
    gap: 30px;
    animation: slideContinuous 28s linear infinite;
    width: max-content;
  }

  .awards-slider:hover .awards-track {
    animation-play-state: paused;
  }

  /* Item Styling with Hover Zoom-In */
  .award-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.35s ease;
    white-space: nowrap;
  }
.award-card:hover {
    z-index: 9999; /* Brings zoomed element above all surrounding page elements */
    transform: scale(2.2); /* Dramatic full-card expansion */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: #d4af37;
    background: #ffffff;
  }

   
  .award-text {
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.35;
    color: #475569;
  }

  .award-text strong {
    color: #1e293b;
    font-weight: 600;
    display: block;
    font-size: 0.95rem;
  }

  /* Keyframe Animation */
  @keyframes slideContinuous {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-btn {
  display: inline-block;
  background-color: #B0C4DE;
  color: #102A45;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 30px;
  border: 1px solid #7D9BB9;
  transition: background-color var(--transition-fast);
}

.hero-btn:hover {
  background-color: #92B1D3;
}

.hero-showcase {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-section img {
  opacity: 0;
  animation: flashIn 2s ease forwards;
}

@keyframes flashIn {
  0% {
    opacity: 0;
    transform: scale(1.00);
    filter: brightness(150%);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02);
    filter: brightness(120%);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(100%);
  }
}

.showcase-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 15px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 4px 12px rgba(2, 72, 164, 0.2);
}

.showcase-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.showcase-card span {
  display: block;
  margin-top: 10px;
  color: #102A45;
  font-weight: bold;
  font-size: 0.875rem;
}

/* ==========================================================================
   Products & Company Sections
   ========================================================================== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  text-align: center;
}

.products-section-c {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px;
  text-align: left;
}

.companyimg {
  display: flex;
  width: 50%;
}
 

.productimg {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.productimg img {
  opacity: 0;
  display: flex;
  width: 49%;
  transform: translateX(-30px);
  animation: fadeSlideIn 1.5s ease forwards;
}

.com-p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1.5s ease forwards;
}

/* Product Grids */
.product-grid,
.product-grid-d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-card,
.product-card-d {
  background: var(--white);
  border: 1px solid var(--steel-blue);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.5s ease;
}

.product-card-d h5 {
  font-size: 0.875rem;
  color: rgb(58, 52, 52);
  border-radius: 4px;
  padding-left: 5px;
  margin-bottom: 5px;
  width: 100%;
  text-align: left;
}

.card-img-product,
.card-img-container {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-product img,
.card-img-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card h3 {
  display: inline-block;
  width: 100%;
  max-width: 220px;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 12px;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(135deg, #0E3B68, #14508A);
  margin-top: 10px;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.view-btn:hover {
  background-color: var(--steel-blue);
}


/* Mobile & Hover Behavior */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  .card-img-product:hover img {
    transform: scale(1.2);
  }
  .customer-card:hover {
    transform: translateY(-8px);
  }
}
.product-card-d {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-d:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Modal Overlay backdrop */
.card-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.card-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container holding the enlarged content */
.card-modal-content {
  background-color: var(--white, #ffffff);
  border-radius: 12px;
  padding: 25px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-modal-overlay.active .card-modal-content {
  transform: scale(1.5);
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: var(--navy-blue, #0E3B68);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--primary-orange, #E65C3B);
}

/* Enlarged image styles inside modal */
.card-modal-content .card-img-product,
.card-modal-content .card-img-container {
  height: 320px;
}

.card-modal-content img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain
}
/* ==========================================================================
   Customers & Portfolio Section
   ========================================================================== */
.portfolio {
  text-align: center;
  padding: 20px 15px;
}

.custhead {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  text-align: center;
  color: #1e3a8a;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 166, 255, 0.6);
  letter-spacing: 2px;
  font-weight: 500;
  padding: 10px 20px;
  border-bottom: 4px solid #ff9800;
  display: inline-block;
}

.customer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 30px auto;
  padding-bottom: 30px;
  max-width: 1200px;
}

.customer-card {
  width: 150px;
  height: 150px;
  background: var(--white);
  border: 1px solid var(--steel-blue);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.customer-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.customerlogo {
  background: var(--white);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
}

.h3 {
  width: 100%;
  max-width: 200px;
  font-size: 1.125rem;
  padding: 5px;
  color: white;
  border-radius: 4px;
  background: #0E3B68;
  margin-bottom: 5px;
}

/* Keyframe Animations */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   Certifications & Contact Section
   ========================================================================== */
.bottom-grid-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.certifications-container h2,
.contact-container h2 {
  color: var(--navy-blue);
  font-size: 1.25rem;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  justify-items: center;
}

.badge-item {
  text-align: center;
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.badge-icon.orange { color: #E65C3B; }
.badge-icon.blue { color: #1C5A8A; }
.badge-icon.gold { color: #D4AF37; }
.badge-icon.red { color: #C84628; }
.badge-icon.steel { color: #4A6B82; }

.badge-item p {
  font-size: 0.6875rem;
  font-weight: bold;
  color: #444;
}
/* Container Layout Alignment */
.portfolio-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.products-section .product-grid {
    flex: 1; /* Takes up remaining flexible space */
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .portfolio-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .awards-banner {
        width: 100%;
        max-width: 350px;
        height: 100px;
    }
    .banner-header {
        flex-direction: row;
        writing-mode: horizontal-tb;
        width: auto;
        padding: 5px 10px;
        border-bottom: none;
        border-right: 2px solid #f1c40f;
    }
    .banner-header span {
        writing-mode: horizontal-tb;
    }
    .banner-track {
        flex-direction: row;
        animation: scrollBannerHorizontal 10s linear infinite;
    }
    @keyframes scrollBannerHorizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: linear-gradient(to bottom, var(--navy-blue) 80%, var(--primary-orange) 80%);
  color: var(--white);
  text-align: center;
  padding: 25px 15px;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer p {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ==========================================================================
   Media Queries & Responsive Breakpoints
   ========================================================================== */

/* Tablets & Desktop (768px and up) */
@media (min-width: 768px) {
  .nav-links {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }
  
  .footer {
    background: linear-gradient(to right, var(--navy-blue) 75%, var(--primary-orange) 75%);
  }
  
  .customer-card {
    width: 180px;
    height: 180px;
  }
}

/* Mobile Devices (Under 768px) */
@media (max-width: 767px) {
  .navbar {
    justify-content: center;
    padding: 15px;
  }

  .nav-links {
    width: 100%;
    border-radius: 12px;
    padding: 10px;
  }

  .nav-links a {
    margin: 5px 10px;
  }

  .customer-grid {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Small Screens (Under 480px) */
@media (max-width: 480px) {
  .hero-section {
    padding: 30px 10px;
  }

  .showcase-card {
    padding: 10px;
  }

  .card-img-product,
  .card-img-container {
    height: 160px;
  }
}