* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  /* overflow-x: hidden; */
}

body, html {
    overflow-x: hidden; /* Absolutely prevents horizontal scrolling */
    font-family: 'Poppins', sans-serif;
}

@font-face {
  font-family: 'Norwester';
  src: url('/assets/fonts/norwester.otf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ========================================= */
/* GLOBAL RESET (Fixes the right-side gap)   */
/* ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ========================================= */
/* HEADER & BASE NAVIGATION                  */
/* ========================================= */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
}

.container.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px; 
    display: block;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list > li > a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-list a:hover {
    color: #e37222; /* Industrial Orange */
}

.arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Hide the hamburger menu on desktop */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #1a1a1a;
}

/* ========================================= */
/* DESKTOP DROPDOWN LOGIC (Screens > 768px)  */
/* ========================================= */
@media (min-width: 769px) {
    /* First Level Dropdown */
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 50%;
        background-color: #fff;
        min-width: 220px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        list-style: none;
        padding: 0;
        margin: 0;
        border-radius: 4px;
        
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 15px);
        transition: all 0.3s ease;
    }

    .dropdown:hover > .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .dropdown-content li a {
        color: #333;
        padding: 12px 20px;
        text-decoration: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content li:last-child a {
        border-bottom: none;
    }

    .dropdown-content li a:hover {
        background-color: #f9f9f9;
        color: #e37222;
    }

    /* Second Level Dropdown (Sub-Products) */
    .sub-dropdown {
        position: relative;
    }

    .sub-dropdown-content {
        position: absolute;
        top: 0;
        left: 100%; /* Pushes to the right */
        background-color: #fff;
        min-width: 200px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        list-style: none;
        padding: 0;
        margin: 0;
        border-radius: 4px;
        
        opacity: 0;
        visibility: hidden;
        transform: translateX(15px);
        transition: all 0.3s ease;
    }

    .sub-dropdown:hover > .sub-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* ========================================= */
/* MOBILE RESPONSIVE DESIGN (Screens <= 768px)*/
/* ========================================= */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
      color: #1a1a1a;
    }

    /* Force the menu to be full width and cover the screen properly */
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      width: 100%; 
      background-color: #ffffff;
      box-shadow: 0 10px 15px rgba(0,0,0,0.1);
      z-index: 1001;
      padding: 0;
    }

    .nav-links.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
      }

    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid #eeeeee;
    }

    .nav-list > li > a {
      display: flex;
      justify-content: space-between; /* Text on left, arrow on right */
      align-items: center;
      padding: 18px 25px;
      font-size: 1.1rem;
      color: #333;
      width: 100%;
      box-sizing: border-box;
    }

    /* Reset Dropdowns for Mobile Accordion */
    .dropdown-content, .sub-dropdown-content {
      position: static; /* Force accordion flow, removes absolute positioning */
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      width: 100%;
      display: none; /* Hidden by default until clicked */
      background-color: #f9f9f9;
      margin: 0;
      padding: 0;
    }

    .dropdown-content {
        background-color: #f5f5f5; /* Light gray for Level 2 */
    }

    .sub-dropdown-content {
        background-color: #f1f1f1; /* Darker gray for Level 3 */
    }

    /* JavaScript toggled class for opening menus */
    .dropdown.open > .dropdown-content,
    .sub-dropdown.open > .sub-dropdown-content {
        display: block;
    }

    .dropdown-content li, .sub-dropdown-content li {
      width: 100%;
      list-style: none;
    }

    /* Indentation so users know it's a submenu */
    .dropdown-content li a {
      display: flex;
      justify-content: space-between;
      padding: 15px 25px 15px 40px; /* Indents the first level */
      color: #444;
      text-decoration: none;
      border-bottom: 1px solid #e0e0e0;
      font-size: 1rem;
      font-weight: 500;
    }

    .sub-dropdown-content li a {
      padding: 15px 25px 15px 60px; /* Indents the second level further */
      color: #555;
      font-size: 0.95rem;
      font-weight: normal;
    }

    /* Arrow rotation on mobile when open */
    .dropdown.open > a .arrow,
    .sub-dropdown.open > a .arrow {
        transform: rotate(90deg);
    }
}

/* ======================= */
/* HERO SECTION */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px; /* Crucial: Prevents content from overflowing on short landscape screens */
  background: url("/assets/img/hero.jfif") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* DARK OVERLAY */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  z-index: 1; /* Ensures the overlay stays behind the text */
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2; /* Forces the text to sit above the dark overlay */
  color: #fff;
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
  width: 100%;
}

/* MAIN HEADING - Fluid Typography */
.hero-content h1 {
  /* clamp(MIN_SIZE, PREFERRED_SIZE, MAX_SIZE) */
  /* This smoothly scales the text between 32px and 64px based on screen width */
  font-size: clamp(2rem, 5vw + 1rem, 4rem); 
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  margin: 0;
}

.hero-content h1 span {
  color: #ccc;
  display: inline-block; /* Prevents the pipe symbol from wrapping strangely */
  margin: 0 10px;
}

/* SUB TEXT - Fluid Typography */
.hero-content p {
  margin-top: 20px;
  /* Smoothly scales between 16px and 22px */
  font-size: clamp(1rem, 2vw + 0.5rem, 1.375rem);
  color: #ff6a00;
  font-weight: 600;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTON */
.hero-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 14px 36px;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Adds a subtle premium glow */
}

/* Premium Hover Effect */
.hero-btn:hover {
  background: #0056b3;
  transform: translateY(-3px); /* Moving up slightly looks more modern than scaling */
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* ========================================= */
/* STRUCTURAL RESPONSIVE ADJUSTMENTS         */
/* ========================================= */

@media (max-width: 768px) {
  .hero {
    height: 80vh; /* Gives a bit more room for scrolling on mobile */
    min-height: 450px;
  }
  
  .hero-content h1 span {
    margin: 0 5px; /* Tighter spacing around the pipe on smaller screens */
  }
}

@media (max-width: 480px) {
  .hero {
    height: 75vh; 
  }
  
  .hero-content h1 {
    letter-spacing: 1px; /* Reduces letter spacing to fit long words on tiny screens */
  }
}

/* ======= */
/* ========================================= */
/* SERVICES SECTION STYLING                  */
/* ========================================= */
.services {
    background: #e8e9e9;
    padding: 80px 0; /* Slightly more padding for breathing room on desktop */
}

/* GRID - Upgraded to fluid auto-fit */
.container-card {
    width: 90%;
    max-width: 1200px; /* Prevents cards from getting comically large on big screens */
    margin: auto;
    display: grid;
    /* This automatically creates columns that are at least 300px wide. 
       If the screen is smaller than 300px, it perfectly stacks them one by one! */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Increased gap for a cleaner look */
}

/* CARD */
.service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* IMAGE WRAPPER */
.image-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px; /* Added subtle rounded corners for a modern, clean look */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Subtle shadow gives depth */
}

/* IMAGE */
.image-box img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block; /* Removes weird spacing under images */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother premium transition */
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.4s ease-in-out;
}

/* OVERLAY CONTENT */
.overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
    padding: 20px;
}

/* TEXT */
.overlay-content h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 12px 26px;
    background: #e37222; /* Updated to match Prabhat Enterprises Industrial Orange */
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn:hover {
    background: #c96019;
}

/* TITLE BELOW IMAGE */
.title {
    margin-top: 20px;
    font-family: 'Norwester', 'Oswald', sans-serif;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* 🔥 HOVER EFFECTS (Desktop) */
@media (hover: hover) {
    .image-box:hover img {
        transform: scale(1.1);
    }
    .image-box:hover .overlay {
        opacity: 1;
        transform: scale(1);
    }
    .image-box:hover .overlay-content {
        transform: translateY(0);
    }
}

/* 📱 MOBILE TOUCH SUPPORT */
/* When tapped via JavaScript, this class activates the overlay */
.image-box.active img {
    transform: scale(1.1);
}
.image-box.active .overlay {
    opacity: 1;
    transform: scale(1);
}
.image-box.active .overlay-content {
    transform: translateY(0);
}

/* STRUCTURAL RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .services {
        padding: 50px 0;
    }
    .image-box img {
        height: 240px; /* Slightly shorter on mobile */
    }
    .container-card {
        gap: 30px;
    }
}


@media (max-width: 992px) {
    .container-card {
        /* This forces the cards to stack exactly one below the other */
        grid-template-columns: 1fr; 
        
        /* Optional: Keeps the single stacked cards from stretching too wide on iPads */
        max-width: 600px; 
        margin: 0 auto;
    }
    
    .image-box img {
        height: 300px; /* Adjusts image height for the new full-width stacked look */
    }
}

@media (max-width: 576px) {
    .image-box img {
        height: 250px; /* Slightly shorter for smaller phone screens */
    }
}
/* ============================ */
/* FABRICATOR SECTION UPDATES   */
/* ============================ */

/* Optional: Add this class to the <section> wrapping your fabricator content to give it the grey background from the inspector */
.fabricator-section {
    background-color: #80a5a5;
    padding: 40px 0;
}

.container-fabri {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px; /* Updated to match inspector padding */
}

/* Typography */
.main-title-fabri {
    text-align: left; /* Changed from center to start/left */
    font-family: 'Norwester', sans-serif; /* Applied Norwester font */
    font-size: 2.2rem;
    font-weight: 400; /* Changed to 400 per inspector */
    line-height: 90px; /* Changed to 90px per inspector */
    letter-spacing: normal;
    color: #373738; /* Changed to match inspector color */
    margin: 0;
    text-transform: uppercase;
}

.divider-fabri {
    width: 60px;
    height: 2px;
    background-color: #ccc;
    margin: 0 0 20px 0; /* Aligned to the left to match title */
}

/* Layout */
.content-wrapper-fabri {
    display: flex;
    align-items: center;
    gap: 40px;
    color: #58595B; /* Applied global text color for this section */
}

.text-content-fabri {
    flex: 2;
}

.text-content-fabri p {
    margin-bottom: 20px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: #212327;
}

.text-content-fabri a {
    color: #122857;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.text-content-fabri a:hover {
    color: #111;
    font-weight: 600;
    border-bottom: 3px solid #e37222;
}

/* Button Styling */
.action-area-fabri {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Push button to the right */
}

.cta-button-fabri {
    background-color: #e37222;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
}

.cta-button-fabri:hover {
    background-color: #c5601a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper-fabri {
        flex-direction: column;
        text-align: left;
    }

    .main-title-fabri {
        font-size: 1.8rem;
        line-height: 1.2; /* Prevent 90px line-height from breaking mobile views */
    }

    .action-area-fabri {
        margin-top: 20px;
        justify-content: flex-start; /* Align button left on mobile */
    }
}

/* Products */
.products {
  padding: 60px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

/* Footer */
.footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

/* General Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    right: 0;
    top: 60px;
    width: 200px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* =======Industries======= */
.industries-section {
    position: relative;
    /* Replace with your actual background image */
    background: url(/assets/img/industries.jfif) no-repeat center center/cover;
    background-color: #1a252f; /* Fallback color */
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* For animation bounds */
}

/* Dark blue/grey overlay */
.industries-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 34, 46, 0.85); 
    z-index: 1;
}

.container-ind {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.industries-title {
    font-family: 'Norwester', sans-serif;
    color: #ffffff;
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.industries-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 25px; /* Vertical space between rows */
}

.industries-list li {
    display: flex;
    align-items: center;
}

/* Creating the vertical dividers between items */
.industries-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 25px;
}

.industries-list a {
    font-family: 'Norwester', sans-serif;
    color: #e37222; /* The orange color */
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.industries-list a:hover {
    color: #ffffff; /* Changes to white on hover */
    text-shadow: 0px 0px 8px rgba(255, 255, 255, 0.5);
}

/* Animation Initial State */
.fade-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================ */
/* RESPONSIVE DESIGN            */
/* ============================ */

@media (max-width: 1024px) {
    .industries-list li:not(:last-child)::after {
        margin: 0 15px; /* Tighter spacing on tablets */
    }
    .industries-list a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .industries-section {
        padding: 60px 0;
    }
    
    .industries-title {
        font-size: 2.2rem;
    }
    
    .industries-list {
        flex-direction: column; /* Stack vertically on mobile */
        row-gap: 15px;
    }

    /* Hide the vertical dividers when stacked vertically */
    .industries-list li:not(:last-child)::after {
        display: none;
    }
}

/* ====Now Featuring===== */

.featured-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.container-featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-title {
    font-family: 'Norwester', sans-serif;
    font-size: 38px;
    text-transform: uppercase;
    text-align: center;
    color: #58595B;
    margin-bottom: 40px;
}

/* --- Grid Layout (Desktop) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.project-card a:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-family: 'Norwester', sans-serif;
    color: #58595B;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.project-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes the 'Learn More' link to the bottom */
}

.learn-more {
    font-family: 'Norwester', sans-serif;
    color: #e37222;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.project-card a:hover .learn-more {
    color: #c5601a;
}

/* --- Call to Action Banner --- */
.featured-cta {
    background-color: #E8E9E9;
    padding: 25px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border-radius: 4px;
}

.featured-cta p {
    font-family: 'Norwester', sans-serif;
    color: #58595B;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

.cta-btn {
    background-color: #e37222;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background-color: #c5601a;
}

/* ========================================= */
/* RESPONSIVE DESIGN                         */
/* ========================================= */

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-cta {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .featured-cta p {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    /* Converts grid into a native horizontal swipe carousel on mobile */
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px; /* Space for scrollbar */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .project-card {
        flex: 0 0 85%; /* Cards take up 85% of screen width */
        scroll-snap-align: center;
    }
}

/* ==== Footer ===== */


/* ========================================= */
/* PRABHAT ENTERPRISES FOOTER STYLES         */
/* ========================================= */
/* ========================================= */
/* PRABHAT ENTERPRISES FOOTER STYLES         */
/* ========================================= */

.sfi-footer {
    background-color: #1a1a1a; /* Deep industrial black/grey */
    color: #a0a0a0;
    font-family: 'Poppins', sans-serif;
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
}

.sfi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Section (Branding Intro) --- */
.sfi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.sfi-brand-left {
    flex: 1;
    min-width: 250px;
}

.sfi-brand-right {
    flex: 2; /* Gives the tagline more room to breathe */
    min-width: 300px;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    margin-left: 110px;
    margin-bottom: 10px;
    display: block;
}

.footer-company-name {
    font-family: 'Norwester', sans-serif;
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
}

.footer-tagline {
    /* word-spacing: 5px; */
    font-size: 1.2rem;
    font-weight: bolder;
    line-height: 1.6;
    margin: 0;
    color: #cccccc;
    text-align: justify;
}

/* --- Divider --- */
.sfi-divider {
    border: none;
    border-top: 1px solid #333333;
    margin: 40px 0;
}

/* --- Middle Section (Columns) --- */
.sfi-middle {
    display: grid;
    /* 'auto' makes the column only as wide as its content, 
       perfectly aligning the heading and the list */
    grid-template-columns: repeat(4, auto); 
    /* This spreads the compact columns evenly across the container */
    justify-content: space-between; 
    gap: 40px;
}

.sfi-col h3 {
    color: #ffffff;
    font-family: 'Norwester', sans-serif;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: left;
}

.sfi-col p {
    line-height: 1.6;
    margin: 0 0 10px 0;
    text-align: left;
}

.sfi-col ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.sfi-col ul li {
    margin-bottom: 12px;
}

.sfi-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block; /* Helps with the hover sliding effect */
}

.sfi-col ul li a:hover {
    color: #e37222;
    transform: translateX(5px); /* Cleaner slide effect than using padding */
}

/* --- Social Media Icons in Contact Column --- */
.sfi-social {
    display: flex;
    gap: 15px;
    margin-top: 15px; /* Adds space above the icons */
    justify-content: flex-start; /* Aligns them to the left to match the text */
}

.sfi-social a {
    color: #ffffff;
    font-size: 20px; /* This sets the size of the new icons */
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.sfi-social a:hover {
    color: #e37222;
    transform: translateY(-3px);
}


/* --- Bottom Section (Legal Center Alignment) --- */
.sfi-bottom {
    display: flex;
    justify-content: center; /* Centers the legal text completely */
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    padding-bottom: 10px;
}

.sfi-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows text to drop to a new line on very small phone screens if needed */
    gap: 6px; /* Spacing between copyright and developer credit */
}

.sfi-legal a {
    color: #e37222;
    text-decoration: none;
    font-weight: 600;
}

.sfi-legal a:hover {
    text-decoration: underline;
}

/* ========================================= */
/* RESPONSIVE DESIGN                         */
/* ========================================= */

@media (max-width: 992px) {
    .sfi-middle {
        grid-template-columns: 1fr 1fr; /* Switch to 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .sfi-top {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 10px auto; /* Centers the logo on mobile */
    }
    .sfi-brand-right {
        min-width: 100%;
    }
    /* When Contact column stacks on mobile, center the social icons */
    .sfi-col.sfi-contact .sfi-social {
        justify-content: left; 
    }
}

@media (max-width: 576px) {
    .sfi-middle {
        grid-template-columns: 1fr; /* Switch to 1 single stacking column on phones */
        text-align: center;
    }
    .sfi-col ul {
        text-align: left; /* Centers the list items on tiny screens */
    }
    .sfi-dev-credit {
        /* Removes the "|" symbol on tiny phone screens where it might stack on two lines */
        display: block; 
        color: transparent;
    }
    .sfi-dev-credit::after {
        content: "Developed by ";
        color: #a0a0a0;
        margin-left: -10px; /* Hides the original pipe symbol visually */
    }
}
/* ==========Floaters=========== */
/* ========================================= */
/* FLOATING ACTION BUTTONS                   */
/* ========================================= */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between the buttons */
    z-index: 9999; /* Ensures they are always on top of everything */
}

/* Base button styling */
.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Icon sizing */
.float-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Universal hover effect */
.float-btn:hover {
    transform: translateY(-5px); /* Hop up slightly */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.float-btn:hover svg {
    transform: scale(1.1); /* Icon slightly zooms in */
}

/* --- Specific Button Colors & Logic --- */

/* 1. Back to Top Button */
.top-btn {
    background-color: #333333; /* Dark industrial grey */
    opacity: 0;           /* Hidden by default */
    visibility: hidden;   /* Hidden by default */
    transform: scale(0.5); /* Shrunk by default */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

/* Class added by JavaScript when scrolled down */
.top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1); 
}

.top-btn:hover {
    background-color: #1a1a1a;
}

/* 2. Phone Button */
.phone-btn {
    background-color: #e37222; /* Prabhat Industrial Orange */
}

.phone-btn:hover {
    background-color: #c96019;
}

/* 3. WhatsApp Button */
.wa-btn {
    background-color: #25D366; /* Official WhatsApp Green */
}

.wa-btn:hover {
    background-color: #1ebe57;
}

/* ========================================= */
/* MOBILE RESPONSIVE TWEAKS                  */
/* ========================================= */
@media (max-width: 768px) {
    .floating-container {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .float-btn {
        width: 48px;
        height: 48px;
    }
    .float-btn svg {
        width: 24px;
        height: 24px;
    }
}