/* ============================================
   QISTARAH TECH - MAIN STYLESHEET
   ============================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Noto Sans Bengali', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #faf9f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header / Navigation ---------- */
.header {
    background-color: #ffffff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid #f14720;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0 auto;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f14720;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #f14720;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.header-contact a:hover {
    color: #f14720;
}

.header-contact a i {
    font-size: 1rem;
}

.header-contact .whatsapp-link {
    color: #25D366;
}

.header-contact .whatsapp-link:hover {
    color: #1da851;
}

.header-contact .phone-link i {
    color: #f14720;
}

.header-contact .divider {
    color: #cbd5e1;
    font-weight: 300;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #1e293b;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
    padding: 5px;
}

.menu-toggle:hover {
    color: #f14720;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: #f14720;
    color: #ffffff;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background: #d63a17;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(241, 71, 32, 0.35);
}

.btn-outline {
    background: transparent;
    color: #f14720;
    border: 2px solid #f14720;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #f14720;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(241, 71, 32, 0.25);
}

/* ---------- Hero Section with Slider ---------- */
.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.70);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-content h2 span {
    color: #f14720;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
    color: #e2e8f0;
}

.hero-content .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.hero-content .btn-outline:hover {
    background: #ffffff;
    color: #f14720;
    border-color: #ffffff;
}

/* Bengali text styling */
.bn-text {
    font-family: 'Noto Sans Bengali', 'SolaimanLipi', 'Kalpurush', 'Segoe UI', sans-serif;
}

.hero-content h2.bn-text {
    font-size: 2.9rem;
    line-height: 1.3;
}

.hero-content p.bn-text {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ---------- Hero Navigation Dots ---------- */
.hero-dots {
    position: absolute;
    bottom: 30px; /* Distance from bottom of hero */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #ffffff;
    border-color: #f14720; /* Brand color ring around active dot */
    box-shadow: 0 0 8px rgba(241, 71, 32, 0.6);
}

/* ---------- Section Titles ---------- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.section-title span {
    color: #f14720;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 50px;
}

section {
    padding: 80px 0;
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.about-text h2 span {
    color: #f14720;
}

.about-text p {
    color: #475569;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #f14720;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f14720;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

/* ---------- Services Section ---------- */
#services {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #faf9f8;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f14720, #ffa949);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(241, 71, 32, 0.10);
    background: #ffffff;
}

.service-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #f14720, #ffa949);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ============================================
   PRODUCTS SECTION - HYBRID THEME (Colored Top, White Body)
   ============================================ */

#products {
    background-color: #faf9f8; 
    padding-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Base Card Styles */
.product-card {
    background: #ffffff; /* RESET: Entire card body is now WHITE */
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0edeb; /* Subtle border like original */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.10);
    border-color: #f14720;
}

/* --- ICON AREA STYLING (The Colored Part) --- */
.product-image {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    /* Default fallback */
    background: linear-gradient(135deg, #ff6b35 0%, #d63a17 100%); 
}

/* --- TEXT CONTENT STYLING (Reset to Dark/Gray on White) --- */
.product-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 15px 15px 10px;
    font-weight: 700;
    color: #1e293b; /* DARK TEXT */
}

.product-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 15px 15px;
    flex: 1;
    color: #64748b; /* GRAY TEXT */
}

/* --- BUTTON STYLING (Reset to Original Style) --- */
.product-card .btn-sm {
    display: inline-block;
    width: auto;
    max-width: max-content;
    align-self: center;
    padding: 8px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid transparent;
    
    /* DEFAULT: Orange Button (for Odd cards) */
    background: #f14720;
    color: #ffffff;
    border-color: #f14720;
}

.product-card .btn-sm:hover {
    background: #d63a17;
    border-color: #d63a17;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 71, 32, 0.25);
}


/* ============================================
   THEME A: ODD CARDS (1, 3, 5...) -> ORANGE HEADER
   ============================================ */
.product-card:nth-child(odd) .product-image {
    background: linear-gradient(135deg, #ff9e80 0%, #ea6b50 100%); /* Vibrant Orange Gradient */
    border-bottom: 3px solid #ffa949; /* Accent line */
}

.product-card:nth-child(odd) .product-image i {
    color: #ffffff; /* White Icon */
}

/* Buttons remain Orange by default in base styles above */


/* ============================================
   THEME B: EVEN CARDS (2, 4, 6...) -> DARK SLATE HEADER
   ============================================ */
.product-card:nth-child(even) .product-image {
    background: #ebe8e3; /* Deep Navy/Slate */
    border-bottom: 3px solid #334155; /* Lighter slate accent line */
}

.product-card:nth-child(even) .product-image i {
    color: #ffa949; /* Gold/Orange Icon */
}

/* Change Button to Dark Theme for Even Cards */
.product-card:nth-child(even) .btn-sm {
    background: #1e293b; /* Dark Slate Background */
    color: #ffffff;       /* White Text */
    border-color: #1e293b;
}

.product-card:nth-child(even) .btn-sm:hover {
    background: #0f172a; /* Even darker hover */
    border-color: #0f172a;
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.25);
}


/* ============================================
   STORE CTA (Bottom Button)
   ============================================ */
.store-cta {
    text-align: center;
    margin-top: 45px;
    margin-bottom: 20px;
    clear: both;
}

.store-cta .btn {
    background: transparent;
    color: #f14720;
    border: 2px solid #f14720;
}

.store-cta .btn:hover {
    background: #f14720;
    color: #ffffff;
}

.store-cta .btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.store-cta .btn:hover i {
    transform: translateX(5px);
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1200px) {
    .products-grid {
        gap: 16px;
    }
    
    .product-image {
        height: 100px;
        font-size: 2.2rem;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .product-image {
        height: 110px;
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    
    .product-image {
        height: 120px;
        font-size: 2.6rem;
    }
    
    .product-card h3 {
        font-size: 1rem;
        margin: 12px 12px 8px;
    }
    
    .product-card p {
        font-size: 0.82rem;
        margin: 0 12px 12px;
    }
    
    .product-card .btn-sm {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 140px;
        font-size: 3rem;
    }
    
    .product-card h3 {
        font-size: 1.15rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
}

/* ============================================
   STORE CTA (Bottom Button)
   ============================================ */
.store-cta {
    text-align: center;
    margin-top: 45px;
    margin-bottom: 20px;
    clear: both;
}

.store-cta .btn {
    background: transparent;
    color: #f14720;
    border: 2px solid #f14720;
}

.store-cta .btn:hover {
    background: #f14720;
    color: #ffffff;
}

.store-cta .btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.store-cta .btn:hover i {
    transform: translateX(5px);
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1200px) {
    .products-grid {
        gap: 16px;
    }
    
    .product-image {
        height: 100px;
        font-size: 2.2rem;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .product-image {
        height: 110px;
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    
    .product-image {
        height: 120px;
        font-size: 2.6rem;
    }
    
    .product-card h3 {
        font-size: 1rem;
        margin: 12px 12px 8px;
    }
    
    .product-card p {
        font-size: 0.82rem;
        margin: 0 12px 12px;
    }
    
    .product-card .btn-sm {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 140px;
        font-size: 3rem;
    }
    
    .product-card h3 {
        font-size: 1.15rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
}

/* ---------- Product Card Buttons (Alternating Colors) ---------- */
/* Applied globally so it works on Desktop AND Mobile */

.product-card .btn-sm {
    display: inline-block;
    width: auto;
    max-width: max-content;
    align-self: center;
    justify-self: center;
    white-space: nowrap;
    padding: 7px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid transparent; /* Prevent layout shift on hover */
}

/* ODD BUTTONS (1st, 3rd, 5th...) -> ORANGE THEME */
.product-card:nth-child(odd) .btn-sm {
    background: #f14720;
    color: #ffffff;
    border-color: #f14720;
}

.product-card:nth-child(odd) .btn-sm:hover {
    background: #d63a17; /* Darker orange */
    border-color: #d63a17;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(241, 71, 32, 0.25);
}

/* EVEN BUTTONS (2nd, 4th, 6th...) -> BLACK/DARK THEME */
.product-card:nth-child(even) .btn-sm {
    background: #1e293b; /* Your site's dark slate color */
    color: #ffffff;
    border-color: #1e293b;
}

.product-card:nth-child(even) .btn-sm:hover {
    background: #0f172a; /* Even darker black/slate */
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(30, 41, 59, 0.25);
}


.store-cta {
    text-align: center;
    margin-top: 45px;
    margin-bottom: 20px;
    clear: both;
}

.store-cta .btn {
    background: transparent;
    color: #f14720;
    border: 2px solid #f14720;
}

.store-cta .btn:hover {
    background: #f14720;
    color: #ffffff;
}

.store-cta .btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.store-cta .btn:hover i {
    transform: translateX(5px);
}

/* ---------- Our Disclosable R&D Solutions Section ---------- */
.rd-section {
    background-color: #ffffff; 
    padding: 80px 0;
}

/* New Container to hold arrows and scroller together */
.rd-carousel-container {
    position: relative;
    width: 100%;
}

/* 1. The Wrapper: Handles Scrolling */
.rd-scroll-wrapper {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: hidden; 
    
    /* Hide scrollbar visually but keep functionality */
    -ms-overflow-style: none;  
    scrollbar-width: none; 
    
    /* Snap behavior */
    scroll-snap-type: x mandatory;
    
    /* Smooth scrolling for JS clicks */
    scroll-behavior: smooth;
    
    padding-bottom: 20px; 
}

/* Custom Scrollbar (Visible on hover for desktop usability hint) */
.rd-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.rd-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.rd-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}
.rd-scroll-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: #f14720;
}

/* 2. The Track: Holds the Cards Side-by-Side */
.rd-track {
    display: flex;
    gap: 24px; 
    width: max-content; /* Forces track to expand beyond container */
    padding: 0 10px; /* Small padding so first/last card doesn't hit edge */
}

/* 3. The Card: FIXED WIDTH for Reliable Layout */
.rd-card {
    flex: 0 0 360px; /* Fixed width ensures consistent sizing */
    min-width: 360px;
    
    background: #faf9f8;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    min-height: 420px; 
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    
    /* SNAP BEHAVIOR */
    scroll-snap-align: start;
}

.rd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(241, 71, 32, 0.10);
    border-color: #f14720;
}

.rd-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rd-icon-header i {
    font-size: 2.2rem;
    color: #f14720;
    background: rgba(241, 71, 32, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.rd-tag {
    background: #1e293b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rd-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.rd-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; 
}

.rd-features {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.rd-features li {
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.rd-features li i {
    color: #10b981; 
    margin-top: 3px;
    font-size: 0.85rem;
}

.btn-outline-dark {
    background: transparent;
    color: #1e293b;
    border: 2px solid #1e293b;
    padding: 8px 20px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: auto; 
    align-self: flex-start; 
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: #1e293b;
    color: #ffffff;
}

/* NEW: Navigation Buttons Styling */
.rd-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #1e293b;
    font-size: 1rem;
}

.rd-nav-btn:hover {
    background: #f14720;
    color: #ffffff;
    border-color: #f14720;
}

.rd-prev {
    left: -20px; /* Pull slightly outside container */
}

.rd-next {
    right: -20px; /* Pull slightly outside container */
}

/* ---------- Product Gallery Section ---------- */
.gallery-section {
    background-color: #faf9f8; /* Matches body bg for seamless look */
    padding: 80px 0;
}

.gallery-carousel-container {
    position: relative;
    width: 100%;
}

.gallery-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    
    /* Hide scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none; 
    
    /* Snap behavior */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    padding-bottom: 20px;
}

.gallery-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.gallery-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}
.gallery-scroll-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: #f14720;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 0 10px;
}

.gallery-item {
    flex: 0 0 300px; /* Fixed width for consistent grid look */
    min-width: 300px;
    height: 220px; /* Uniform height */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(241, 71, 32, 0.15);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* Caption Overlay */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: #ffffff;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.gallery-caption p {
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.3;
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #1e293b;
    font-size: 1rem;
}

.gallery-nav-btn:hover {
    background: #f14720;
    color: #ffffff;
    border-color: #f14720;
}

.gallery-prev {
    left: -20px;
}

.gallery-next {
    right: -20px;
}

/* ---------- Contact / Footer ---------- */
.contact-section {
    background: #1e293b;
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 0;
    clear: both;
}

.contact-section h2 {
    color: #ffffff;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-section h2 span {
    color: #ffa949;
}

.contact-section .section-subtitle {
    color: #94a3b8;
    margin-bottom: 50px;
}

/* Common Grid Settings */
.contact-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

/* ROW 1: 4 Equal Columns */
.contact-row-1 {
    grid-template-columns: repeat(4, 1fr);
}

/* ROW 2: Aligned to match Row 1 visually 
   We use 3 columns here, but we adjust the widths slightly 
   or just let them flow naturally if the content dictates. 
   For perfect alignment with a 4-col top row, 
   we can make the middle item span 2 cols if needed, 
   BUT typically 3 items look better centered. 
   
   Let's stick to 3 equal columns for the bottom row as requested, 
   but ensure text is centered.
*/
.contact-row-2 {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 40px; /* Space between rows */
    border-top: 1px solid #334155; /* Visual separator */
    padding-top: 40px;
}

.contact-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers icon and text horizontally */
    gap: 10px;
}

.contact-item h4 i {
    color: #f14720;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 0.95rem;
    text-align: center; /* Centers all paragraph text */
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #f14720;
}

/* Helper for centered items in Row 2 */
.contact-center {
    text-align: center;
}

.note {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin-top: 5px;
}

.note i {
    color: #ffa949;
    margin-right: 5px;
}

.muted {
    color: #94a3b8;
}

/* Social Icons Wrapper */
.social-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between circles */
    margin-top: 10px;
}

.social-icons-wrapper a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons-wrapper a:hover {
    background: #f14720;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom .heart {
    color: #f14720;
}

/* ============================================
   FOOTER RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 992px) {
    /* Tablet: Stack Row 1 into 2x2 */
    .contact-row-1 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet: Stack Row 2 into 1 column or keep 3 if space allows? 
       Usually 3 looks cramped on tablet. Let's go 1 column centered or 2.
       Let's try 1 column for simplicity on tablets/mobiles below 768, 
       but for 992px let's keep 3 if possible, otherwise stack.
       Actually, 3 columns on 992px might be tight. Let's do 1 column centered.
    */
    .contact-row-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile: Everything 1 column */
    .contact-row-1,
    .contact-row-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-item h4 {
        justify-content: center;
    }
    
    .contact-item p {
        text-align: center;
    }
}
/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* ---------- Large Tablets / Small Desktops ---------- */
@media (max-width: 1200px) {
    .products-grid {
        gap: 16px;
    }

    .product-image {
        height: 105px;
        font-size: 2.1rem;
    }

    .product-card h3 {
        font-size: 1.08rem;
    }

    .product-card p {
        font-size: 0.9rem;
    }
}

/* ---------- Tablets ---------- */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-contact a span {
        display: none;
    }
    
    .header-contact a i {
        font-size: 1.3rem;
    }
    
    .header-contact {
        gap: 10px;
    }
    
    .nav-links {
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-image {
        height: 120px;
        font-size: 2.4rem;
    }

    .product-card h3 {
        font-size: 1.05rem;
    }

    .product-card p {
        font-size: 0.88rem;
    }
    
    /* Tablet: Show 2 cards for R&D */
    .rd-card {
        flex: 0 0 calc(50% - 12px); 
        min-width: 300px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .header-contact {
        order: 2;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0 10px;
        border-top: 1px solid #e2e8f0;
        margin-top: 15px;
        order: 4;
        flex: 0 0 100%;
    }

    .nav-links.active {
        display: flex;
    }
    
    .header-contact a span {
        display: none;
    }
    
    .header-contact a i {
        font-size: 1.4rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero-slide {
        display: none;
    }

    .hero-slide:first-child {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content h2.bn-text {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .hero-content p.bn-text {
        font-size: 1rem;
    }
    
    /* Mobile Dot Adjustment */
    .hero-dots {
        bottom: 20px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-image {
        height: 130px;
        font-size: 2.6rem;
    }

    .product-card h3 {
        font-size: 1rem;
        margin: 12px 12px 6px;
    }

    .product-card p {
        font-size: 0.85rem;
        margin: 0 12px 12px;
    }
    
    /* Mobile: Hide Nav Arrows for Carousels */
    .rd-nav-btn,
    .gallery-nav-btn {
        display: none;
    }
    
    /* Mobile: R&D Cards full width-ish */
    .rd-card {
        flex: 0 0 85%; 
        min-width: 85%;
        min-height: auto;
        padding: 20px;
    }
    
    .rd-icon-header i {
        font-size: 1.8rem;
        padding: 10px;
    }
    
    .rd-card h3 {
        font-size: 1.15rem;
    }
    
    .rd-card p {
        font-size: 0.88rem;
    }
    
    /* Mobile: Gallery Items larger */
    .gallery-item {
        flex: 0 0 85%; 
        min-width: 85%;
        height: 200px;
    }
    
    /* Always show caption on mobile since there is no hover */
    .gallery-caption {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4));
    }

    .contact-grid,
    .contact-grid--three {
        grid-template-columns: 1fr 1fr;
    }

    .header .container {
        position: relative;
    }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 160px;
        font-size: 3rem;
    }

    .product-card h3 {
        font-size: 1.15rem;
    }

    .product-card p {
        font-size: 0.95rem;
    }

    .product-card .btn-sm {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .contact-grid,
    .contact-grid--three {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo img {
        height: 45px;
    }
}