/* Base Responsive Settings */
  :root { --brand-red: #c70000; }

  /* Hero Section Responsiveness */
  @media (max-width: 768px) {
    #about-hero { height: auto !important; padding: 100px 0 !important; }
    #about-hero h1 { font-size: 32px !important; }
  }

  /* About Overview Grid Fix */
  @media (max-width: 992px) {
    #about-overview .cfg-container-grid { 
        grid-template-columns: 1fr !important; 
        gap: 40px !important; 
    }
    #about-overview h2 { font-size: 32px !important; }
    .about-img img { height: 300px !important; }
  }

  /* Values/Vision/Mission Split Slider Fix */
  @media (max-width: 768px) {
    .slider-container { height: auto !important; overflow: visible !important; width: 100% !important; }
    .left-slide { width: 100% !important; position: relative !important; }
    .right-slide { display: none !important; } /* Hide images on mobile for speed */
    .left-slide > div { padding: 40px 24px !important; height: auto !important; }
    .left-slide h1 { font-size: 32px !important; }
    .action-buttons { display: none !important; } /* Not needed for stacked layout */
  }

  /* Why Choose CFG Horizontal Slider Fix */
  @media (max-width: 768px) {
    .cfg-card { width: 100% !important; height: 350px !important; flex-shrink: unset !important; }
    #cfgTrack { flex-direction: column !important; padding: 0 20px !important; }
    .cfg-card.active { width: 100% !important; }
    .cfg-content { opacity: 1 !important; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important; }
  }

  /* Precision Slider (Horizontal with Text) Fix */
  @media (max-width: 992px) {
    #cfg-slider { height: auto !important; }
    .cfg-slide { flex-direction: column !important; }
    .cfg-slide img { width: 100% !important; height: 300px !important; }
    .cfg-slide div { width: 100% !important; padding: 30px 20px !important; }
    #cfg-slider .controls-container { right: 20px !important; bottom: 20px !important; }
  }

/* ======================================================= */

:root{
      --red:#c70000;
      --red-deep:#a10000;
      --yellow:#ffcc00;
      --bg: #ffffff;
      --glass: rgba(255,255,255,0.85);
      --maxw: 1400px;
    }

    *{box-sizing:border-box}
    body{
      margin:0;
      font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
      color:#111;
      background:#fafafa;
      padding-top: 85px;
    }

/* ======================================================= */

:root{
  --red:#D70000;
  --yellow:#F4C400;
  --dark:#1a1a1a;
}

body{
  margin:0;
  padding-top: 85px;
  padding-top:var(--nav-height);
  overflow-x:hidden;
}

/* ----------------------------------------------
   PREMIUM NAVBAR WITH BRUSHED METAL TEXTURE
----------------------------------------------- */
.cfg-navbar{
  width:100%;

    background:#ffffff url('https://www.transparenttextures.com/patterns/white-wall.png');
     

  background-size:cover;

  position:fixed;
  top:0;
  left:0;
  z-index:999999;

  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);

  box-shadow:
      0 4px 12px rgba(0,0,0,0.18),
      inset 0 -2px 4px rgba(255,255,255,0.5);

  transition:0.3s ease;
}

/* container */
.cfg-navbar .site-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:85px;
  padding:0 18px;
}

/* ----------------------------------------------
   LOGO
----------------------------------------------- */
.logo-box{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-box img{
  height:55px;
}
.logo-box span{
  font-size:24px;
  font-weight:700;
  color:var(--red);
  letter-spacing:0.4px;
}

/* ----------------------------------------------
   MENU (Desktop)
----------------------------------------------- */
.cfg-menu{
  display:flex;
  align-items: center;
  gap:42px;
}

.cfg-menu a{
  font-size:17px;
  font-weight:500;
  text-decoration:none;
  color:#111;
  padding:8px 4px;
  position:relative;
  transition:0.3s ease;
}

/* Hover glow */
.cfg-menu a:hover{
  color:var(--red);
  text-shadow:0 0 10px rgba(215,0,0,0.45);
}

/* underline animation */
.cfg-menu a::after{
  content:"";
  position:absolute;
  width:0;
  height:3px;
  bottom:0;
  left:0;
  background:var(--red);
  border-radius:20px;
  transition:0.3s ease;
}
.cfg-menu a:hover::after{
  width:100%;
}

/* ACTIVE button style */
.cfg-menu a.active{
  background:var(--red);
  color:#fff !important;
  padding:8px 18px;
  border-radius:20px;
  font-weight:600;
  box-shadow:0 4px 12px rgba(215,0,0,0.4);
}
.cfg-menu a.active::after{ width:0 !important; }

/* ----------------------------------------------
   MOBILE MENU ICON
----------------------------------------------- */
/* .cfg-menu-icon{
  display:none;
  font-size:36px;
  cursor:pointer;
  color:var(--red);
  transition:0.3s ease;
} */ 
 /* .cfg-menu-icon:hover{
  transform:scale(1.15);
} */

/* ----------------------------------------------
   SIDEBAR / MOBILE DRAWER
----------------------------------------------- */
.cfg-sidebar{
  position:fixed;
  top:0;
  left:0;
  height:100%;
  width:300px;

    background:#ffffff url('https://www.transparenttextures.com/patterns/white-wall.png');


  background-size:600px;

  transform:translateX(-100%);
  transition:0.4s ease;

  padding:50px 30px 30px;
  border-top-right-radius:22px;
  border-bottom-right-radius:22px;

  box-shadow:6px 0 25px rgba(0,0,0,0.25);
  z-index:999999;
}

/* active drawer */
.cfg-sidebar.active{
  transform:translateX(0);
}

/* close button */
.cfg-close-btn{
  font-size:38px;
  color:var(--red);
  cursor:pointer;
  margin-bottom:28px;
  transition:0.3s;
}
.cfg-close-btn:hover{
  transform:scale(1.2);
}

/* mobile links */
.cfg-sidebar a{
  font-size:20px;
  padding:16px 0;
  border-bottom:1px solid #ddd;
  display:block;
  text-decoration:none;
  color:#222;
  transition:0.3s;
}
.cfg-sidebar a:hover{
  color:var(--red);
  padding-left:10px;
}

/* ACTIVE in mobile */
.cfg-sidebar a.active{
  color:var(--red);
  font-weight:700;
  padding-left:12px;
}


/* ----------------------------------------------
   DROPDOWN (DESKTOP)
----------------------------------------------- */
.cfg-dropdown{
  position:relative;
}

.cfg-drop-btn{
  cursor:pointer;
  
}

.cfg-dropdown-menu{
  position:absolute;
  top:150%;
  left:1px;
  min-width:220px;
  background:#fff;
  border-radius:1px;
  padding:12px 0;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:0.35s ease;
  box-shadow:0 25px 45px rgba(0,0,0,0.18);
  z-index:9999;
}

.cfg-dropdown:hover .cfg-dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.cfg-dropdown-menu a{
  display:block;
  padding:12px 22px;
  font-size:15px;
  color:#222;
  text-decoration:none;
  transition:0.3s ease;
}

.cfg-dropdown-menu a:hover{
  background:rgba(215,0,0,0.01);
  color:var(--red);
  padding-left:28px;
}

.cfg-dropdown-menu .view-all{
  font-weight:600;
  color:var(--red);
}

/* ----------------------------------------------
   MOBILE PRODUCTS DROPDOWN
----------------------------------------------- */
.cfg-mobile-products{
  border-bottom:1px solid #ddd;
}

.cfg-mobile-title{
  font-size:20px;
  padding:16px 0;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.cfg-mobile-title span{
  font-size:22px;
  transition:0.3s ease;
}

.cfg-mobile-submenu{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.35s ease;
}

.cfg-mobile-submenu a{
  padding:12px 0 12px 14px;
  font-size:17px;
  display:block;
  text-decoration:none;
  color:#444;
}

.cfg-mobile-submenu a:hover{
  color:var(--red);
}

.cfg-mobile-products.active .cfg-mobile-submenu{
  max-height:300px;
}

.cfg-mobile-products.active .cfg-mobile-title span{
  transform:rotate(45deg);
}


/* ----------------------------------------------
   SIDEBAR HEADER (LOGO + CLOSE)
----------------------------------------------- */
.cfg-sidebar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:30px;
}

/* logo inside sidebar */
.cfg-sidebar-logo{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left: -15px;
}

.cfg-sidebar-logo img{
  height:59px;
}

.cfg-sidebar-logo span{
  font-size:20px;
  font-weight:700;
  color:var(--red);
  letter-spacing:0.4px;
}

/* close button refinement */
.cfg-close-btn{
  font-size:36px;
  color:var(--red);
  cursor:pointer;
  line-height:1;
  transition:0.3s ease;
}

.cfg-close-btn:hover{
  transform:rotate(180deg) scale(1.1);
}

/* MOBILE MENU ICON (Animated) */
.cfg-menu-icon{
  display:none;
  width:28px;
   padding: 6px 0;
  cursor:pointer;
  /* display:flex; */
  flex-direction:column;
  justify-content:space-between;
}

.cfg-menu-icon span{
  display: block;
  height:3px;
  width:100%;
  background:var(--red);
  border-radius: 999px;
    margin-bottom: 8px;   /* ✅ REAL spacing (mobile-safe) */
    transition:
        transform 0.45s cubic-bezier(.68,-0.55,.27,1.55),
        opacity 0.3s ease;
}

.cfg-menu span:last-child{
margin-bottom: 0;
}

/* ACTIVE → CLOSE ICON */
.cfg-menu-icon.active span:nth-child(1){
    transform: translateY(11px) rotate(135deg);
}

.cfg-menu-icon.active span:nth-child(2){
   opacity: 0;
    transform: scale(0);
}

.cfg-menu-icon.active span:nth-child(3){
   transform: translateY(-11px) rotate(-135deg);
}





/* ----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media(max-width:900px){
  .cfg-menu{display:none;}

  .cfg-menu-icon{
    display:flex;        
    align-items:center;
    justify-content:center;
  }
}

/* ======================================================= */

/* Base Desktop Styles */
  .about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 90px;
  }

  /* Tablet & Mobile Compatibility */
  @media (max-width: 991px) {
    #about-overview {
      padding: 80px 0 60px !important; /* Reduce excessive padding */
    }
    
    .about-grid {
      grid-template-columns: 1fr; /* Stack into 1 column */
      gap: 40px;
      text-align: center; /* Optional: centers text for better mobile look */
    }

    .about-text p {
      margin: 0 auto; /* Centers paragraph if text-align is center */
    }

    .about-text h2 {
      font-size: 32px !important; /* Smaller heading for mobile */
      line-height: 1.2 !important;
    }
    
    .about-img img {
      height: 300px !important; /* Reduce image height on mobile */
    }
  }

/* ======================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Poppins', sans-serif;
  }

  .slider-container {
    position: relative;
    overflow: hidden;
    width: 100vw; /* Use 100vw instead of 98.8 to avoid gaps */
    height: 100vh;
  }

  /* LEFT PANEL (TEXT) */
  .left-slide {
    height: 100%;
    width: 40%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease-in-out;
    z-index: 2;
  }

  .left-slide > div {
    height: 100%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f6f1ea;
  }

  .left-slide h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
  }

  .left-slide p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 420px;
  }

  /* RIGHT PANEL (IMAGES) */
  .right-slide {
    height: 100%;
    position: absolute;
    top: 0;
    left: 40%;
    width: 60%;
    transition: transform 0.6s ease-in-out;
    background-color: #ffffff;
  }

  .right-slide > div {
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* Changed to cover for better consistency */
  }

  /* BUTTONS */
  .action-buttons button {
    background-color: #c70000;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 14px 18px;
    transition: background-color 0.3s ease;
    position: absolute;
    left: 40%;
    top: 50%;
    z-index: 10;
  }

  .action-buttons .down-button {
    transform: translateX(-100%);
    border-radius: 50% 0 0 50%;
  }

  .action-buttons .up-button {
    transform: translateY(-100%);
    border-radius: 0 50% 50% 0;
  }

  /* ======================================================
     MOBILE & TABLET COMPATIBILITY (Screens < 768px)
     ====================================================== */
 @media (max-width: 768px) {
  .slider-container {
    height: 100vh;
  }

  .left-slide,
  .right-slide {
    width: 100%;
    height: 50vh;
  }

  .left-slide {
    top: auto;
    bottom: 0;
  }

  .right-slide {
    top: 0;
    left: 0;
  }

  /* Each slide becomes 50vh tall */
  .left-slide > div,
  .right-slide > div {
    height: 50vh;
  }

  .left-slide > div {
    padding: 30px 20px;
    text-align: center;
    align-items: center;
  }

  .left-slide h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .left-slide p {
    font-size: 15px;
    max-width: 100%;
  }

  .right-slide > div {
    background-size: contain;
  }

  .action-buttons button {
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
  }
}

/* ======================================================= */

.cfg-card {
            width: 120px;
            height: 500px;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            background: #111;
            transition: width .6s cubic-bezier(.25, .46, .45, .94), box-shadow .6s ease;
            flex-shrink: 0;
        }

        .cfg-card.active {
            width: 500px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        }

        .cfg-card img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .cfg-card.active img {
            transform: scale(1.02);
        }

        .cfg-content {
            position: absolute;
            inset: 0;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
            opacity: 0;
            transition: opacity .4s ease;
        }

        .cfg-card.active .cfg-content {
            opacity: 1;
        }

        .cfg-content h3 {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 8px;
            color: #ffffff;
        }

        .cfg-content p {
            font-size: 15px;
            line-height: 1.5;
            color: #eeeeee;
            max-width: 320px;
            margin: 0;
        }

        /* MOBILE & TABLET COMPATIBILITY */
        @media (max-width: 991px) {
            .cfg-header-container {
                flex-direction: column;
                align-items: center !important;
                text-align: center;
                gap: 20px;
            }

            .cfg-slider-wrapper {
                padding: 0 20px !important;
            }

            #cfgTrack {
                flex-direction: column;
                gap: 20px;
            }

            .cfg-card {
                width: 100% !important;
                height: 280px !important;
                cursor: default;
            }

            .cfg-content {
                opacity: 1 !important;
                background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
            }

            .cfg-nav-btns {
                display: none; /* Navigation buttons not needed in stacked layout */
            }

            .cfg-content h3 {
                font-size: 22px;
            }
        }

/* ======================================================= */

/* Default Slide styling */
    .cfg-slide {
      flex: 0 0 100%;
      display: flex;
    }

    .slide-content {
      width: 45%;
      padding: 80px;
      color: #000000;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .slide-image {
      width: 50%;
      height: 100%;
      object-fit: cover;
    }

    .slider-track {
    display: flex;
    height: 100%;
    /* This makes the movement buttery smooth */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

    /* Tablet & Mobile Adjustments */
    @media (max-width: 1024px) {
      #cfg-slider { height: auto; min-height: 80vh; }
      .cfg-slide { flex-direction: column; }
      .slide-image { width: 100%; height: 350px; }
      .slide-content { width: 100%; padding: 40px 24px; text-align: center; }
      .slide-content h2 { font-size: 24px; }
      .slide-content p { font-size: 14px; }
      
      /* Reposition controls for mobile */
      .slider-controls {
        position: relative !important;
        bottom: 20px !important;
        right: 0 !important;
        justify-content: center !important;
        margin-top: 20px;
      }
    }

    @media (max-width: 480px) {
      .slide-image { height: 250px; }
      .slide-content { padding: 30px 20px 60px 20px; }
    }

/* ======================================================= */

.cfg-marquee-content{
  display:flex;
  align-items:center;
}

/* TEXT */
.cfg-brand{
  color:#c70000;
  font-weight:800;
  font-size:24px;
  margin:0 40px;
}

.cfg-text{
  color:#fff;
  font-size:20px;
  margin-right:40px;
}

/* GEAR */
.cfg-gear{
  color:#c70000;
  font-size:26px;
  margin-right:40px;
  display:inline-flex;
}

/* MOBILE SCALE */
@media (max-width:768px){
  .cfg-brand{ font-size:18px; margin:0 24px; }
  .cfg-text{ font-size:15px; margin-right:24px; }
  .cfg-gear{ font-size:20px; margin-right:24px; }
}
