:root {
    --theme-green: #81D742;
    /* Parrot Green */
    --theme-green-dark: #27ae60;
    --theme-green-light: #a8e6cf;
}

body {
    font-family: 'Poppins', sans-serif;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#preloader .loader .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--theme-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

#preloader .loader p {
    font-size: 16px;
    color: #333;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bg-theme {
    background-color: var(--theme-green) !important;
}

.text-theme {
    color: var(--theme-green) !important;
}

.btn-theme {
    background-color: var(--theme-green);
    color: #fff;
    border: none;
}

.btn-theme:hover {
    background-color: var(--theme-green-dark);
    color: #fff;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Open dropdown on hover */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar .dropdown-menu {
    transition: all 0.2s ease;
}

/* Set a fixed height for carousel images */
#companyCarousel .carousel-item img {
    height: 600px;
    /* change as needed */
    object-fit: cover;
    /* ensures image fills container without distortion */
    width: 100%;
    /* full width */
}

@media (max-width: 768px) {
    #companyCarousel .carousel-item img {
        height: 300px;
        /* shorter height on mobile */
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
}

/* Fixed height container for all product images */
.product-image-wrapper {
    height: 200px;
    /* uniform height for all images */
    overflow: hidden;
    /* crop excess */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-wrapper img {
    height: 100%;
    /* fill the container height */
    width: auto;
    /* keep aspect ratio */
    object-fit: cover;
    /* crop extra width if necessary */
}

.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.ceo-container {
    display: flex;
    align-items: flex-start;
    /* Align top of text with image */
}

.ceo-info {
    background-color: #f9f9f9;
    border-left: 4px solid var(--theme-green);
    padding: 15px;
    border-radius: 10px;
    max-width: 220px;
    /* Text box width */
    font-size: 14px;
    line-height: 1.6;
}

.ceo-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 300px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ceo-frame img {
    justify-content: center;
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 1s ease;
    transform-origin: top;
    /* zoom from top */
}

/* Hover Effect */
.ceo-frame:hover img {
    transform: scale(1.5);
    /* zoom effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ceo-container {
        flex-direction: column;
        /* stack on mobile */
        align-items: center;
    }

    .ceo-info {
        max-width: 100%;
        margin-bottom: 15px;
        border-left: 4px solid var(--theme-green-light);
    }

    .ceo-frame {
        max-width: 250px;
        /* slightly smaller on mobile */
    }
}

.products-section {
    background: linear-gradient(150deg, #f5f5f5, #eef5f1);
    position: relative;
    overflow: hidden;
}

.products-swiper .swiper-slide {
    display: flex;
}

.product-card {
    display: flex;
    flex-direction: column;
    /* height: 100%; */
    height: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-height: 180px;
    /* adjust as needed */
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h5 {
    margin-top: 12px;
    /* space between image and title */
    margin-bottom: 8px;
    font-weight: 700;
    font-size: small;
}

.product-card p {
    font-size: small;
    margin-bottom: 12px;
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Hide arrows by default */
.products-section .swiper-button-next,
.products-section .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: var(--theme-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Show arrows on hover */
.products-section:hover .swiper-button-next,
.products-section:hover .swiper-button-prev {
    opacity: 1;
    pointer-events: auto;
}

/* Remove default Swiper arrow styles */
.products-section .swiper-button-next::after,
.products-section .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* Optional: slight hover effect */
.products-section .swiper-button-next:hover,
.products-section .swiper-button-prev:hover {
    transform: scale(1.1);
    background-color: var(--theme-green-dark);
}

/* Adjust position */
.products-section .swiper-button-prev {
    left: 0px;
}

.products-section .swiper-button-next {
    right: 0px;
}

.product-card .btn {
    margin-top: auto;
}

.certifications-section {
    background: linear-gradient(120deg, #f9f9f9, #eef5f1);
}

.certification-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.cert-img-wrapper {
    height: 100px;
    /* uniform height for all logos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cert-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.certification-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.about-us-section {
    background: #f7f9f6;
}

.about-us-img-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    /* slightly reduced image size */
    margin: 0 auto;
}

.about-us-img-main {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-us-img-main:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.about-us-section h2 {
    font-size: 2rem;
    color: #2d7a4f;
    /* theme color */
}

.about-us-section p.lead,
.about-us-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.about-us-section .btn-theme {
    transition: all 0.3s ease;
}

.about-us-section .btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.mission-vision-section {
    background: #f7f9f6;
}

.mv-card {
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mv-icon i {
    color: #2d7a4f;
    /* theme color */
    transition: transform 0.3s ease, color 0.3s ease;
}

.mv-card:hover .mv-icon i {
    transform: scale(1.2);
    color: #1b5d3a;
    /* darker shade on hover */
}

.mv-card h5 {
    color: #2d7a4f;
}

.mv-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.values-section {
    background: linear-gradient(135deg, #f5f5f5, #eef5f1);
}

.value-card {
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.value-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.value-card:hover i {
    transform: scale(1.3);
    color: var(--theme-green-dark);
    /* darker theme color on hover */
}

.value-card h6 {
    color: var(--theme-green-dark);
    margin-top: 8px;
    font-size: 1rem;
}

.printex-group-section {
    background: linear-gradient(150deg, #f5f7f6, #eef4f1);
}

.group-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: var(--theme-green);
}

.group-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.group-logo {
    max-height: 70px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.group-card:hover .group-logo {
    transform: scale(1.08);
}

.group-card h5 {
    color: var(--theme-green);
    font-weight: 700;
    margin-bottom: 10px;
}

.group-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Floating Buttons Container */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Common Button Style */
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* Floating Buttons Container */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Common Button Style */
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* WhatsApp */
.whatsapp-btn {
    background: #25d366;
    color: #fff;
}

.wa-icon {
    width: 26px;
    height: 26px;
}

/* Go To Top */
.top-btn {
    display: none;
    background: #0f172a;
    color: #fff;
}

/* Hover Effect */
.float-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Partner Card */
.partners-section .partner-card {
    height: 250px;
    /* fixed height for all cards */
    padding: 15px;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.partners-section .partner-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Fixed height container for logos */
.partner-image-wrapper {
    height: 150px;
    /* smaller, more balanced */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 10px;
    background-color: #fff;
    /* optional for uniform look */
    border-radius: 8px;
}

.partner-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* keeps aspect ratio */
    display: block;
    margin: 0 auto;
}

/* Swiper arrows */
.partners-swiper .swiper-button-next,
.partners-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: var(--theme-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.partners-swiper:hover .swiper-button-next,
.partners-swiper:hover .swiper-button-prev {
    opacity: 1;
    pointer-events: auto;
}

.partners-swiper .swiper-button-next i,
.partners-swiper .swiper-button-prev i {
    font-size: 1.2rem;
    /* small centered icon */
}

/* Position arrows slider */
.partners-swiper .swiper-button-next {
    right: 0;
}

.partners-swiper .swiper-button-prev {
    left: 0;
}

.partners-swiper .swiper-button-next:hover,
.partners-swiper .swiper-button-prev:hover {
    transform: scale(1.1);
    background-color: var(--theme-green-dark);
    color: #fff;
}

/* Show arrows on hover */
.partners-section:hover .swiper-button-next,
.partners-section:hover .swiper-button-prev {
    opacity: 1;
    pointer-events: auto;
}

/* Remove default Swiper arrow styles */
.partners-section .swiper-button-next::after,
.partners-section .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* Wrapper for quality and safety images */
.quality-image-wrapper,
.safety-image-wrapper {
    position: relative;
    /* needed for the pseudo-element */
    height: 250px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 12px;
}

/* Watermark Logo */
.quality-image-wrapper::before,
.safety-image-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    /* adjust size */
    height: auto;
    background-image: url("../images/printex_chemicals_logo.png");
    /* path to logo */
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    /* very light watermark */
    z-index: 1;
    /* above background but below image */
    pointer-events: none;
    /* allow clicks on image/content */
}

/* Images inside wrapper */
.quality-image-wrapper img,
.safety-image-wrapper img {
    position: relative;
    /* above watermark */
    z-index: 2;
    height: 100%;
    width: auto;
    object-fit: fill;
    display: block;
}

.leader-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.leader-image {
    width: 200px;
    height: 240px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-theme {
    background-color: var(--theme-green);
    color: #fff;
    border: none;
}

.btn-theme:hover {
    background-color: #0b5d3b;
    color: #fff;
}

.text-theme {
    color: var(--theme-green);
}

.fl-wrapper {
    z-index: 9999 !important;
}