/* =====================================================
   GLOBAL STYLES (Design System)
===================================================== */

:root {
  --primary: #ED1C24;
  --primary-dark: #b3131a;
  --text-dark: #222;
  --text-light: #777;
  --bg-light: #f9f9f9;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}


/* =====================================================
 GLOBAL SECTION HEADINGS (FINAL FIX)
===================================================== */

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.3rem;
  text-transform: uppercase;
  position: relative;
  display: block;
  text-align: center;
}

/* underline */
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0; ;
}

.section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

/* industrial left bar */
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 20px;
  background: var(--primary);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 10px;
}

/* CENTER FIX*/
.text-center .section-title {
  display: inline-block;
  text-align: center;
}

.text-center .section-title::after {
  margin: 10px auto 0;
}
/* =====================================================
 SCROLL ANIMATIONS
===================================================== */
.reveal {
  --x: 0px;
  --y: 40px;

  opacity: 0;
  transform: translate(var(--x), var(--y));
  transition: all 0.8s ease;
}

.reveal-left {
  --x: -40px;
}

.reveal-right {
  --x: 40px;
}

.reveal.active {
  opacity: 1;
  --x: 0px;
  --y: 0px;
}

/* mobile */
@media (max-width: 768px) {
  .reveal {
    --x: 0px; /* disable horizontal shift */
  }
}

  /* =====================================================
     HERO SECTION
  ===================================================== */
  
  .hero-industrial {
    position: relative;
    min-height: 85vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
   
  }
  
  .hero-industrial::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
      linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
  }
  
  /* Background Image */
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-bg img {
    position: absolute;
    top: 0;       
    left: 0;      
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Dark overlay */
  .hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,0.75) 30%,
      rgba(0,0,0,0.4) 55%,
      rgba(0,0,0,0.15) 100%
    );
    z-index: 1;
  }
  
  /* Content */
  .hero-content {
    position: relative;
    max-width: 100%;
    z-index: 2;
    color: #fff;
    animation: fadeUp 1s ease;
  }
  
  /* Animation */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Title */
  .hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
  }
  
  .hero-title span {
    color: var(--primary);
  }
  
  /* Subtitle */
  .hero-subtitle {
    margin-top: 20px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #ccc;
    max-width: 500px;
  }

  .hero-title,
.hero-subtitle {
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
  
  /* Buttons */
  .hero-buttons {
    margin-top: 30px;
  }
  
  .btn-primary-custom {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
  }
  
  .btn-primary-custom:hover {
    background: var(--primary-dark);
  }
  
  .btn-outline-custom {
    border: 1px solid #fff;
    padding: 12px 28px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    transition: 0.3s;
  }
  
  .btn-outline-custom:hover {
    background: #fff;
    color: #000;
  }
  
  /* Stats */
  .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
  }
  
  .hero-stats h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary);
  }
  
  .hero-stats span {
    font-size: 0.9rem;
    color: #aaa;
  }

  .hero-stats div {
    transition: 0.3s;
  }
  
  .hero-stats div:hover {
    transform: translateY(-5px);
  }
  
  /* Scroll Indicator */
  .scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .scroll-indicator span {
    display: block;
    width: 20px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
  }
  
  .scroll-indicator span::after {
    content: "";
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
  }
  
  @keyframes scroll {
    0% { opacity: 0; top: 6px; }
    50% { opacity: 1; }
    100% { opacity: 0; top: 20px; }
  }
  
  /* Responsive */
  /* ================================
   LARGE DEVICES (1200px+)
================================ */
@media (min-width: 1200px) {
  .hero-industrial {
    padding: 120px 0;
  }

  .hero-stats {
    gap: 50px;
  }
}

/* ================================
   LAPTOP / SMALL DESKTOP
================================ */
@media (max-width: 1199px) {
  .hero-industrial {
    min-height: 90vh;
  }

  .hero-title {
    line-height: 1.3;
  }
}

/* ================================
   TABLET (992px ↓)
================================ */
@media (max-width: 992px) {

  .hero-industrial {
    text-align: center;
    padding: 80px 20px;
  }

  .hero-content {
    display: flex;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-outline-custom {
    margin-left: 0;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
  }
}

/* ================================
   MOBILE (768px ↓)
================================ */
@media (max-width: 768px) {

  .hero-industrial {
    min-height: auto;
    padding: 70px 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .hero-stats h3 {
    font-size: 1.5rem;
  }

  /* Softer overlay for mobile readability */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.75) 20%,
      rgba(0,0,0,0.4) 60%,
      rgba(0,0,0,0.2) 100%
    );
  }
}

/* ================================
   SMALL MOBILE (480px ↓)
================================ */
@media (max-width: 480px) {

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-stats span {
    font-size: 0.8rem;
  }

  .scroll-indicator {
    display: none; /* cleaner mobile UI */
  }
}

/* ==================================================
   TOP BAR
================================================== */
.topbar {
  font-size: 0.9rem;
  z-index: 1020;
  background: linear-gradient(90deg, #484748, #1f1f1f);
  color: #fff;
}

.icon-circle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

/* ==================================================
   SOCIAL MEDIA ICONS
================================================== */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon i {
  color: #fff;
  transition: 0.3s;
}

/* Social Icon Brand Colors */
.social-icon:hover .fa-instagram {
  color: #E4405F;
}

.social-icon:hover .fa-facebook-f {
  color: #1877F2;
}

.social-icon:hover .fa-youtube {
  color: #FF0000;
}

.social-icon:hover .fa-linkedin {
  color: #0A66C2;
}

/* Social Icon Hover Effect */
.social-icon:hover {
  background-color: #fff;
  transform: scale(1.1);
}

/* ==================================================
   NAVBAR - GENERAL
================================================== */
.navbar.sticky-top {
  z-index: 1030;
}

.modern-navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ==================================================
   BRANDING
================================================== */
.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #df332d;
  letter-spacing: 1px;
}

/* ==================================================
   NAVIGATION LINKS
================================================== */
.nav-btn {
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #333;
  position: relative;
}

.nav-btn:hover {
  color: #df332d !important;
}

/* Navigation Underline Effect */
.nav-btn::after,
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #df332d;
  left: 0;
  bottom: -4px;
  transition: 0.3s ease;
}

/* Normal Links Hover */
.nav-item:not(.dropdown) .nav-link:hover::after {
  width: 100%;
}

/* Active Link */
.nav-link.active {
  color: #df332d !important;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Disable Underline for Dropdown Toggle */
.nav-item.dropdown > .nav-link::after {
  display: none !important;
}

.navbar-brand img {
  height: 40px;
}

.navbar-brand {
  gap: 8px !important;
}

.nav-link.text-danger {
  position: relative;
}

.nav-link.text-danger::after {
  background: #df332d;
}


/* ==================================================
   DROPDOWN MENU
================================================== */
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.dropdown-item {
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f8f9fa;
  color: #df332d;
  transform: translateX(5px);
}
.dropdown-item:focus,
.dropdown-item:active {
  background-color: rgba(237, 28, 36, 0.1) !important;
  color: var(--primary) !important;
  outline: none;
  box-shadow: none;
}
.dropdown.show .dropdown-menu {
  display: block;
  opacity: 1;
}

/* Animated Dropdown */
.dropdown-menu.dropdown-animated {
  display: none;
}

.dropdown.show .dropdown-menu.dropdown-animated {
  display: block;
  animation: fadeInDown 0.3s ease both;
}

/* ==================================================
   DROPDOWN ANIMATION
================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================
   BUTTONS
================================================== */
.btn-danger {
  background: linear-gradient(135deg, #df332d, #b92a25);
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #b92a25;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(223, 51, 45, 0.3);
}

.catalog-btn {
  background: transparent;
  border: 1px solid #df332d;
  color: #df332d;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.catalog-btn:hover {
  background: #df332d;
  border-color: #df332d;
  color: #fff;
}

/* ==================================================
   MOBILE MENU TOGGLE (HAMBURGER)
================================================== */
.menu-toggle {
  width: 25px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #df332d;
  left: 0;
  transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 7px;
}

.menu-toggle span:nth-child(3) {
  top: 14px;
}

/* Hamburger Active State */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 7px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 7px;
}

/* ==================================================
   RESPONSIVE - TABLET & MOBILE
================================================== */
@media (max-width: 991px) {

  .navbar-nav {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .nav-item {
    margin-bottom: 8px;
  }

  .btn-danger {
    width: 100%;
    text-align: center;
  }

  .navbar-collapse {
    transform: translateY(-20px);
    opacity: 0;
    transition: 0.3s ease;
  }

  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================Scroll to top=============================== */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 25px;
  background: linear-gradient(135deg, #df332d, #b92a25);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.3s ease;
  z-index: 999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(223, 51, 45, 0.3);
}

/* ================= CHAT BUTTON ================= */

#chat-toggle {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #df332d, #ff5a52);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(223, 51, 45, 0.4);
  transition: all 0.3s ease;
}


#chat-toggle:hover {
  transform: scale(1.1) rotate(5deg);
}



/* ================= CHATBOX ================= */

#chat-box {
  position: fixed;
  right: 25px;
  bottom: 160px;
  width: 340px;
  height: 480px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

#chat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================= HEADER ================= */
.chat-header {
  background: linear-gradient(135deg, #df332d, #ff5a52);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.chat-title span {
  font-size: 11px;
  opacity: 0.8;
}

.chat-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}


/* ================= BODY ================= */

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* BOT MESSAGE */

.chat-body .bot {
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  max-width: 75%;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* USER MESSAGE */

.chat-body .user {
  background: #df332d;
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  max-width: 75%;
  font-size: 13px;
}


/* ================= FOOTER ================= */

.chat-footer {
  padding: 10px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  background: #fff;
}

.chat-footer input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.chat-footer button {
  border: none;
  background: #df332d;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.chat-footer button:hover {
  background: #b92a25;
}


@media(max-width: 576px){

  #chat-box{
    width: calc(100% - 20px);
    height: 80vh;
    right: 10px;
    bottom: 80px;
  }

  #chat-toggle{
    right: 15px;
    bottom: 75px;
  }

}



  
  /* =====================================================
     ABOUT SECTION
  ===================================================== */
  
  .about-section {
    background: var(--bg-light);
  }
  
  /* Image */
  .about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
  }
  
  .about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .about-image-wrapper:hover img {
    transform: scale(1.05);
  }
  
  /* Content */
  .about-content {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
  }
  
  .about-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .about-tagline {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
  }
  
  .about-text {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size:clamp(0.95rem, 1.2vw, 1rem);
  }
  
  /* Button */
  .about-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
  }
  
  .about-btn:hover {
    background: var(--primary-dark);
  }
  
  /* Responsive */
  @media (max-width: 991.98px) {
    .about-section {
      text-align: center;
    }
  
    .about-content {
      border-left: none;
      border-top: 3px solid var(--primary);
      padding-left: 0;
      padding-top: 24px;
      margin-top: 15px; /* Creates spacing between image and text when stacked */
    }
  
    .about-image-wrapper {
      aspect-ratio: 16/10; /* Keeps a clean wide layout on tablets */
    }
  }
  
  /* SMALL MOBILE (576px and down) */
  @media (max-width: 575.98px) {
    .about-section {
      padding: 40px 0; /* Keeps padding tight and clean on tiny screens */
    }
  
    .about-image-wrapper {
      aspect-ratio: 4/3; /* Reverts to boxy ratio so image doesn't get too short/thin */
    }
  
    .about-btn {
      width: 100%; /* Makes the button easy to tap on small mobile screens */
      text-align: center;
    }
  }
  /* company hero variation */
.hero-industrial.company-hero .hero-title {
  font-size: 2.6rem;
}

.hero-industrial.company-hero .hero-subtitle {
  max-width: 600px;   
  width: 100%;
}

.hero-content.text-center .hero-subtitle {
  margin: 20px auto 0;
  max-width: 600px;
  text-align: center;
}

.hero-industrial.company-hero .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-industrial.company-hero .hero-stats h3 {
  font-size: 1.5rem;
}
/* INNER PAGE HERO (Company, Services, etc) */
.hero-industrial.company-hero {
  min-height: 55vh;  
  padding: 60px 0;
}

@media (max-width: 768px) {
  .hero-industrial.company-hero {
    min-height: 45vh;
    padding: 50px 20px;
  }
}
@media (max-width: 768px) {

  .hero-industrial.company-hero {
    text-align: center;
  }

  .hero-industrial.company-hero .hero-content {
    align-items: center;
  }

  .hero-industrial.company-hero .hero-subtitle {
    max-width: 100%;        /* 🔥 critical fix */
    padding: 0 10px;        /* prevents edge sticking */
    line-height: 1.6;
  }

}

@media (max-width: 480px) {

  .hero-industrial.company-hero .hero-title {
    font-size: 1.6rem;
  }

  .hero-industrial.company-hero .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }

}

 /* =====================================================
   CTA SECTION 
===================================================== */

.cta-section {
  position: relative;
  background: #111;
  color: #fff;
  overflow: hidden;
}

/* subtle grid (industrial feel) */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* red glow accent */
.cta-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(237,28,36,0.25), transparent 70%);
  top: -80px;
  right: -80px;
}

/* content box */
.cta-box {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
}

/* title */
.cta-box h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* text */
.cta-box p {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* outline button */
.btn-outline-light {
  border: 1px solid #fff;
  padding: 12px 28px;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-outline-light:hover {
  background: #fff;
  color: #000;
}

/* responsive */
@media (max-width: 768px) {
  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 1.8rem;
  }
}