/* --- Global Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* --- Navigation Styles --- */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 24px;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: #444 !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, 
.nav-link.active {
    color: #007bff !important; /* Primary Blue */
}

/* Header Button Customization */
.btn-rounded {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary.btn-rounded:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    outline: none !important;
}

/* Hero Section Main Styles */
.hero-carousel {
    position: relative;
}

.carousel-item {
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    cursor: grab;
    position: relative;
    z-index: 1;
}

.carousel-item:active {
    cursor: grabbing;
}

/* Background Overlay - අකුරු පැහැදිලි කිරීමට */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* වම් පැත්ත අඳුරු කර අකුරු ඉස්මතු කිරීමට gradient එකක් */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

/* Typography Enhancements */
.hero-content {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-weight: 800 !important;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    background: #007bff; /* Primary color */
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-shadow: none; /* Subtitle එකට shadow එක අවශ්‍ය නැත */
}

/* Indicators (Dots) */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff; /* Primary color */
    border: 2px solid white;
    margin: 0 6px;
}




/* Product Header Background */
.product-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2070') !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Product Card Styling */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    background: #ffffff;
}

/* PNG Image Container */
.product-img-container {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden; /* රූපය කාඩ් එකෙන් එළියට නොපෙනීමට */
}

.product-img-container img {
    max-height: 95%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth Pop-up Effect */
}

/* Mouse Hover Pop-up Effect */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.product-card:hover .product-img-container img {
    transform: scale(1.15); /* රූපය පොප්-අප් වීම */
}

.btn-rounded {
    border-radius: 50px;
    font-weight: 600;
}



/* Header Logo Styling */
.header-logo {
    /* උස (Height) අඩු කිරීමෙන් ලෝගෝ එක කුඩා කරගත හැකියි */
    height: 50px; /* කලින් 50px තිබුණේ, දැන් 35px - 40px වගේ දාලා බලන්න */
    width: auto;  
    object-fit: contain;
    padding: 2px 0; /* ලෝගෝ එක වටා ඇති ඉඩ පාලනය කිරීමට */
    transition: transform 0.3s ease;
}

/* Hover කළ විට පමණක් සියුම් ලෙස ලොකු වීම */
.header-logo:hover {
    transform: scale(1.02);
}

/* Navbar එකේ Padding අඩු කිරීම (අවශ්‍ය නම් පමණක්) */
.navbar {
    padding: 8px 0 !important; /* මුළු Header එකේම උස අඩු කිරීමට */
}

/* Contact Page Specific Styles */
.icon-box {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    display: flex;
    min-width: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.icon-box-light {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
}

.contact-form .form-control:focus {
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.product-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1516387933901-8266440ccdf6?q=80&w=2070') !important;
    background-size: cover !important;
    background-position: center !important;
}

.hotline-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.hotline-card:hover {
    transform: scale(1.02);
    background-color: #0056b3 !important; /* Hover කළ විට තද නිල් පැහැයක් */
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.shadow-sm {
    transition: all 0.3s ease;
}

.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

/* --- Client Logo Slider (Independent Styles) --- */
.client-section-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    padding: 40px 0;
}

/* Slider track එක Hero එකේ class එක්ක පැටලෙන්නේ නැති වෙන්න වෙනම නමක් දුන්නා */
.client-logo-track {
    display: flex;
    /* ලොගෝ 10ක් සහ ඒවායේ double (loop එක සඳහා) අනුව පළල */
    width: calc(200px * 20); 
    animation: clientScroll 30s linear infinite;
}

/* මවුස් එක ගෙනියද්දී ස්ලයිඩර් එක නැවතීම */
.client-logo-track:hover {
    animation-play-state: paused;
}

.client-logo-item {
    width: 200px; /* එක් ලොගෝ එකක පළල */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Hero එකේ පින්තූර වලට බලපෑමක් නොවීමට විශේෂිතව සඳහන් කිරීම */
.client-logo-item img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%); /* Premium පෙනුම සඳහා */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animation එක - මෙහි නම වෙනත් ඒවා සමඟ නොගැටිය යුතුය */
@keyframes clientScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 10)); } /* මුල් ලොගෝ ගණනේ භාගයක පළල */
}

.client-swiper {
    width: 100%;
    padding: 30px 0;
}

.client-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab; /* අතක සලකුණ පෙන්වීමට */
}

.client-logo-item:active {
    cursor: grabbing;
}

.client-logo-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s ease;
}

.client-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}


/* Product Category Cards */
.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.category-img {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.category-img img {
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.5s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-info h5 {
    transition: color 0.3s ease;
}

.category-card:hover .category-info h5 {
    color: #007bff;
}

/* Section අතර පරතරය අඩු කිරීම */
section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* විශේෂයෙන්ම මෙම කොටස් දෙක අතර පරතරය තවත් අඩු කිරීමට */
.bg-light + .py-5 {
    padding-top: 20px !important;
}

/* --- High Demand Items Slider --- */
.high-demand-swiper {
    width: 100%;
    padding-bottom: 50px; /* Pagination dots සඳහා */
}

.high-demand-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    height: auto; /* උස ස්වයංක්‍රීයව පාලනය කිරීමට */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.high-demand-item img {
    max-width: 100%;
    height: 180px; /* පින්තූර වල උස පාලනය කිරීමට */
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.high-demand-item:hover img {
    transform: scale(1.05);
}

.high-demand-item h6 {
    color: #333;
}

/* Ad Placeholder Styles */
.ad-placeholder {
    width: 300px; /* Standard Google Ad size */
    height: 600px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #777;
    overflow: hidden;
}

.ad-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper Pagination dots වල පාට වෙනස් කිරීම */
.high-demand-swiper .swiper-pagination-bullet-active {
    background-color: #007bff;
}
/* High Demand Item පින්තූර බැලන්ස් කිරීම */
.high-demand-card .img-container {
    height: 220px; /* පින්තූරය තියෙන කොටුවේ ස්ථාවර උස */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc; /* සියුම් වර්ණයක් පින්තූරය කැපී පෙනීමට */
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px;
}

.high-demand-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* පින්තූරය ඇද නොවී කොටුව ඇතුළේ බැලන්ස් වීමට */
}

/* Carousel එක සහ Ad එක එකම උසකට ගැනීම */
.high-demand-swiper, 
.high-demand-swiper .swiper-wrapper, 
.high-demand-swiper .swiper-slide {
    height: auto !important;
}

.high-demand-card {
    height: 100%; /* Card එක මුළු උසම ලබා ගැනීමට */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* අකුරු සහ පින්තූරය පරතරය තබා බැලන්ස් කිරීමට */
}

/* සියලුම High Demand පින්තූර එකම මට්ටමකට ගැනීමට */
.high-demand-card .img-container {
    height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.high-demand-card img {
    max-height: 100%;
    object-fit: contain;
}

/* High Demand Cards Balance */
.hd-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.hd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* පින්තූර පෙට්ටියේ උස ස්ථාවර කිරීම */
.hd-img-box {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.hd-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* පින්තූරය ඇද නොවී බැලන්ස් කරයි */
}

/* Swiper එකේ ඉඩකඩ නිවැරදි කිරීම */
.high-demand-swiper {
    padding-bottom: 40px !important;
}

#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* පේජ් එක උඩ තියෙද්දී මෙය පෙනෙන්නේ නැත */
    z-index: 1000;
    border-radius: 50%; /* වටකුරු වීමට */
    width: 50px;
    height: 50px;
    padding: 0;
    line-height: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

#btn-back-to-top:hover {
    transform: scale(1.1); /* මවුස් එක ගෙනියද්දී පොඩ්ඩක් ලොකු වීමට */
}


/* Footer එකේ පසුබිම සහ අකුරු වල පාට නිවැරදි කිරීම */
.main-footer {
    background-color: #111111 !important; /* තද කළු පසුබිම */
    color: #ffffff !important; /* සියලුම පොදු අකුරු සුදු පැහැයට */
}

/* ලිපිනය සහ අනෙකුත් විස්තර (p tags) */
.main-footer p {
    color: #cccccc !important; /* ලා අළු පැහැය (පැහැදිලිව පෙනීමට) */
    font-size: 0.9rem;
}

/* මාතෘකා (Headings) */
.main-footer h5 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 25px;
}

/* ලින්ක් වල පාට (Links) */
.footer-link {
    color: #bbbbbb !important;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-link:hover {
    color: #007bff !important; /* මවුස් එක ගෙනියද්දී නිල් පාට වීමට */
    padding-left: 8px;
}

/* අයිකන වල පාට (Icons) */
.main-footer .bi {
    color: #007bff !important; /* අයිකන නිල් පාටින් කැපී පෙනීමට */
}

/* සෝෂල් මීඩියා අයිකන වල අකුරු සුදු කිරීමට */
.social-links a i {
    color: #ffffff !important;
}


.footer-map-link:hover {
    color: #007bff !important; /* Christo Racks තේමා වර්ණය */
    text-decoration: underline !important;
}


/* Logo Collage Styles - No Grayscale */
.logo-collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .logo-collage {
        grid-template-columns: repeat(3, 1fr);
    }
}

.client-box {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* Popup වෙන වේගය සහ ලස්සන පාලනය කිරීමට */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.client-box img {
    max-width: 100%;
    height: 40px; 
    object-fit: contain;
    /* මෙතැන තිබූ grayscale සහ opacity ඉවත් කරන ලදි */
    transition: 0.3s;
}

/* Hover Popup Effect පමණක් ඉතිරි කර ඇත */
.client-box:hover {
    transform: scale(1.3); /* Popup size */
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #007bff; /* Hover කළ විට සියුම් නිල් පාට බෝඩරයක් */
}

/* --- Medium Duty Product Page Styles --- */

/* Hero Styling */
.product-hero {
    background: linear-gradient(45deg, #0056b3, #007bff);
}

/* Gallery Styling */
.product-main-swiper {
    height: 450px;
}

.product-main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Thumbnails එකම මට්ටමකට සහ සම්පූර්ණයෙන් පෙනෙන ලෙස සැකසීම */
.product-thumb-swiper {
    padding: 15px 0;
    /* ස්ලයිඩර් එකට අවශ්‍ය උස ලබා දීම */
    height: 110px; 
}

.product-thumb-swiper .swiper-slide {
    width: 25%;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s ease;
    /* බෝඩරය පින්තූරය ඇතුළේම තබා ගැනීමට */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.product-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #007bff; /* Active එකට තද නිල් පාට බෝඩරයක් */
}

.product-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    /* මෙතැන 'cover' වෙනුවට 'contain' භාවිතා කරන්න */
    object-fit: contain; 
    padding: 5px; /* පින්තූරය බෝඩරයේ නොගෑවී පෙනීමට */
}

/* ප්‍රධාන පින්තූරයත් බාගෙට කැපේ නම් මේ කොටසත් පරීක්ෂා කරන්න */
.product-main-swiper {
    height: 450px;
    background: #fff;
}

.product-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header Dropdown Styling */
.dropdown-img-box {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    border: 1px solid #eee;
}

.dropdown-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dropdown-item {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f7ff !important;
    transform: translateX(5px);
}

/* Mouse එක ගෙනියපු සැනින් Dropdown එක Open වීමට (Optional) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
    }
}

/* Products Dropdown Hover Effect */
@media (min-width: 992px) {
    .custom-hover-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 0; 
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .custom-hover-dropdown .dropdown-menu {
        display: none;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }
}

.dropdown-img-box {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    border: 1px solid #eee;
}

.dropdown-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dropdown-item:hover {
    background-color: #f0f7ff !important;
    transform: translateX(5px);
}
/* Sales Inquiries Banner Styling */
.sales-banner {
    background: #0056ff; /* ඔබ එවූ රූපයේ ඇති නිල් පැහැය */
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-radius: 20px;
    color: white !important;
    transition: transform 0.3s ease;
}

.sales-banner:hover {
    transform: scale(1.03);
}

.sales-icon-box {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 28px;
    margin-right: 20px;
}

.sales-text {
    display: flex;
    flex-direction: column;
}

.sales-label {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 500;
}

.sales-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

/* Mobile වලදී පෙනුම සකස් කිරීම */
@media (max-width: 576px) {
    .sales-number {
        font-size: 24px;
    }
    .sales-banner {
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .hotline-card h3 {
        font-size: 1.25rem; /* Mobile වලදී අංකය පේළියට ගැලපෙන ලෙස කුඩා කරයි */
    }
    .hotline-card .icon-box-light {
        padding: 10px;
    }
}

/* Contact Page Enhancements */

/* Mobile Responsiveness for Hotline Card and Maps */
@media (max-width: 576px) {
    /* Hotline Card එකේ අංකය සහ අකුරු Mobile වලදී නිවැරදිව පෙන්වීමට */
    .hotline-card h3 {
        font-size: 1.4rem !important; 
        letter-spacing: -0.5px;
    }
    .hotline-card h6 {
        font-size: 0.85rem;
    }
    
    /* සිතියම් (Maps) එක යට එක එන විට පරතරය අඩු කිරීමට */
    .ratio-16x9 {
        --bs-aspect-ratio: 75%; /* Mobile වලදී සිතියම තව ටිකක් උසට පෙනීමට */
    }
    
    /* Section පරතරය අඩු කිරීම */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Hotline Card Hover Effect */
.hotline-card {
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.hotline-card:hover {
    transform: translateY(-5px);
    background-color: #004dc7 !important; /* තද නිල් පැහැය */
    border-color: rgba(255,255,255,0.2) !important;
}

.icon-box-light {
    background: rgba(255, 255, 255, 0.2);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* --- Sales Inquiries Banner (Image Style) --- */
.hotline-card {
    background: #0056ff !important; /* Image එකේ තියෙන තද නිල් පාට */
    border-radius: 20px !important;
    transition: all 0.3s ease;
    border: none !important;
}

.hotline-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,86,255,0.3) !important;
}

.icon-box-light {
    background: rgba(255, 255, 255, 0.2);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* --- Location Cards (Google Style) --- */
.location-card {
    background: #1a1a1a; /* කළු පැහැති පසුබිම */
    border-radius: 15px;
    overflow: hidden;
    color: white;
    border: 1px solid #333;
}

.location-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.location-body {
    padding: 15px;
    background: #000;
}

.status-closed {
    color: #ff6b6b;
    font-weight: 500;
}

.btn-directions {
    background: #2d2d2d;
    color: #8ab4f8;
    border-radius: 20px;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .hotline-card h3 {
        font-size: 1.5rem !important;
    }
    .location-header {
        flex-direction: column;
        align-items: flex-start;
    }
}