/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    /* Bootstrap Primary Blue */
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #e9ecef;
    /* Light gray background for boxed effect */
}

.boxed-wrapper {
    width: 96%;
    /* Slightly narrower to emphasize side boxing */
    max-width: 1920px;
    margin: 0 auto;
    /* No margin on top/bottom */
    background-color: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    /* No border-radius for sharp corners */
}

/* =========================================
   Top Bar Section
   ========================================= */
.top-bar-section {
    font-size: 0.9rem;
    background-color: #1a1a1a !important;
    /* Darker than bg-dark */
}

.top-bar-section i {
    color: var(--accent-color);
    margin-right: 5px;
}

.top-bar-section a:hover {
    color: var(--accent-color) !important;
    transition: color var(--transition-speed);
}

@media (max-width: 576px) {
    .top-bar-section {
        font-size: 0.7rem;
        /* Slightly smaller for fitting */
    }

    .top-bar-left,
    .top-bar-right {
        white-space: nowrap;
        display: flex;
        align-items: center;
    }

    .top-bar-left {
        overflow-x: auto;
        /* Allow horizontal scroll if really tight, but prioritize no wrap */
        scrollbar-width: none;
    }

    .top-bar-left::-webkit-scrollbar {
        display: none;
    }

    .small-mobile-text {
        display: inline-block;
        white-space: nowrap;
        margin-right: 8px;
    }

    .top-bar-section i {
        margin-right: 2px;
    }
}

/* =========================================
   Header & Navigation Section
   ========================================= */
.header-section {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin-left: 15px;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
    margin-top: 3px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hover Dropdown Logic */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInUpSmall 0.3s ease-out;
    }
}

@keyframes fadeInUpSmall {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    font-size: 0.95rem;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    padding-left: 25px;
}

.hero-top-banner {
    margin-left: -15px;
    /* Offset the container padding */
    margin-right: -15px;
    margin-top: 0;
}

.hero-top-banner img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.hero-slider-section {
    background-color: #f8fafc;
    /* Professional light slate background */
    border-bottom: 1px solid #e2e8f0;
}

.hero-slick-slider .slider-item img {
    height: 300px;
    object-fit: cover;
}

/* Slick Custom Dots */
.hero-slick-slider .slick-dots {
    bottom: 20px;
}

.hero-slick-slider .slick-dots li button:before {
    color: #fff;
    font-size: 12px;
}

.hero-slick-slider .slick-dots li.slick-active button:before {
    color: var(--primary-color);
}

/* Slick Arrows */
.hero-slick-slider .slick-prev,
.hero-slick-slider .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slick-slider .slick-prev:hover,
.hero-slick-slider .slick-next:hover {
    background: var(--primary-color);
}

.hero-slick-slider .slick-prev {
    left: 20px;
}

.hero-slick-slider .slick-next {
    right: 20px;
}

/* Hero Sidebar Styles */
.hero-sidebar {
    height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px !important;
    background-color: #ffffff;
    border: 1px solid #eef2f6 !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    font-family: 'Poppins', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* Sidebar Custom Scrollbar */
.hero-sidebar::-webkit-scrollbar {
    width: 6px;
}

.hero-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.hero-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.sidebar-widget h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

.sidebar-widget img {
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.sidebar-widget img:hover {
    transform: scale(1.05);
}

.address-mini p {
    line-height: 1.4;
    color: #555;
    margin-bottom: 8px;
}

.ratio-1x1.bg-primary:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* =========================================
   Hero Slider Section
   ========================================= */
.hero-slider-section .carousel-item {
    height: 80vh;
    /* Full viewport height or adjusted */
    min-height: 500px;
    position: relative;
    /* For overlay */
    background-color: #000;
}

.hero-slider-section img {
    height: 100%;
    object-fit: cover;

    /* Darken image for text readability */
}

.hero-slider-section .carousel-caption {
    bottom: 30%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-slider-section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.hero-slider-section p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
    /* Delay */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Hero Box (Professional 2D Flat Style)
   ========================================= */
.hero-box {
    border: 2px solid #dee2e6;
    /* Thicker, darker border */
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.15);
    /* Darker, more visible 2D shadow */
    transition: all 0.3s ease;
}

.hero-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 0 rgba(13, 110, 253, 0.4);
    border-color: var(--primary-color);
}

/* =========================================
   About Section
   ========================================= */
.about-section {
    background-color: #fff;
}

.section-title {
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    /* Or center with transform translateX */
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-image-col img {
    transition: transform var(--transition-speed);
}

.about-image-col img:hover {
    transform: scale(1.02);
}

/* =========================================
   Products Section
   ========================================= */
.products-section {
    background-color: #f8f9fa;
}

.product-card {
    border: none;
    border-radius: 10px;
    background: #fff;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-card i {
    transition: transform var(--transition-speed);
}

.product-card:hover i {
    transform: scale(1.1);
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #004494);
}

.cta-section .btn {
    font-weight: 600;
    padding: 12px 30px;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery-section img {
    width: 100%;
    /* Ensure full width of the column */
    height: 250px;
    /* Fixed height for uniformity */
    object-fit: cover;
    /* Crop content to fit without distortion */
    cursor: pointer;
    transition: all var(--transition-speed);
    filter: grayscale(20%);
}

.gallery-section img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

/* =========================================
   Footer Section
   ========================================= */
.footer-section {
    background-color: #212529;
    color: #ababab;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    transition: all var(--transition-speed);
}

.footer-contact p i {
    color: var(--primary-color);
    width: 20px;
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
    .hero-slider-section h2 {
        font-size: 2.5rem;
    }
}

/* Hover Dropdown for Desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* =========================================
   CEO Section Custom Styles
   ========================================= */
.ceo-section-bg {
    background-color: #f8f9fa;
}

.ceo-bg-decoration {
    position: absolute !important;
    top: 0;
    right: 0;
    opacity: 0.1;
    padding: 3rem;
    z-index: 0;
}

.ceo-image-wrapper {
    display: inline-block;
    position: relative;
    padding: 0.5rem !important;
}

.ceo-img {
    width: 280px;
    height: 100%;
    object-fit: cover;
}

.font-playfair {
    font-family: 'Playfair Display', serif !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.line-separator {
    width: 50px;
    height: 3px;
}

.ceo-message-text {
    font-family: 'Lora', serif;
    line-height: 1.9 !important;
    font-size: 1.05rem !important;
}

.signature-name {
    font-family: 'Alex Brush', cursive !important;
    font-size: 2rem !important;
    line-height: 1 !important;
}

.signature-divider {
    height: 40px;
    width: 1px;
    background-color: #dee2e6;
}

.signature-title {
    font-size: 0.7rem !important;
    letter-spacing: 2px;
}

/* =========================================
   Product List Section Custom Styles
   ========================================= */
.product-list-item {
    transition: all var(--transition-speed);
    border-radius: 8px;
    background: #fff;
    border: 1px solid #0d6efd;
    padding: 2rem;
    height: 100%;
}

.product-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.product-icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: all var(--transition-speed);
}

.product-list-item:hover .product-icon-box {
    background: var(--primary-color);
    color: #fff;
}

.product-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-desc {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   Client List Section Custom Styles
   ========================================= */
.client-card {
    transition: all var(--transition-speed);
    border-radius: 12px;
    background: #fff;
    border: 1px solid #111111;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.client-logo-container {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 10px;
    /* Changed to rounded square for logos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    padding: 10px;
    border: 1px solid #eee;
    transition: all var(--transition-speed);
    overflow: hidden;
}

.client-card:hover .client-logo-container {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.client-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-speed);
}

.client-card:hover .client-logo-container img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
    margin-bottom: 0;
}

/* =========================================
   Gallery Lightbox Styles
   ========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
}

.lightbox-content,
#lightbox-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery image hover effect refinement */
.gallery-img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}