/* General Settings */
:root {
    --dark-blue: #0f294a;
    --primary-blue: #1155cc;
    --primary-light: #4285f4;
    --accent-yellow: #f7b239;
    --light-gray: #f4f7f6;
    --text-muted: #6c757d;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

#products, #gallery {
    min-height: 55vh;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Improve Image Rendering Quality */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

/* Typography & Colors */
.text-dark-blue { color: var(--dark-blue) !important; }
.bg-dark-blue { background-color: var(--dark-blue) !important; }
.text-primary-blue { color: var(--primary-blue) !important; }
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.btn-primary-blue {
    background-color: var(--primary-blue);
    color: white;
    border: none;
}
.btn-primary-blue:hover {
    background-color: #0d42a6;
    color: white;
}
.text-primary-light { color: var(--primary-light) !important; }
.bg-light-gray { background-color: var(--light-gray) !important; }

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
}

/* Navbar */
.navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s;
    color: #212529 !important;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-color: var(--dark-blue);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay that is dark on the left behind the text, fading to transparent on the right */
    background-image: linear-gradient(to right, rgba(15, 41, 74, 0.95) 0%, rgba(15, 41, 74, 0.6) 45%, rgba(0, 0, 0, 0.2) 100%), url('images/hero-bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}
.hero-section .container {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.hero-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-blue);
}

/* About Section */
.quality-badge {
    bottom: -20px;
    left: -20px;
    z-index: 2;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
}

/* Products */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.clickable-image {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.clickable-image:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Clients */
.client-box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 85px;
    transition: transform 0.2s;
    background-color: white;
}
.client-box:hover {
    transform: scale(1.05);
    border-color: var(--primary-blue) !important;
}
/* Ensure 7 equal columns on large screens */
@media (min-width: 992px) {
    .row-cols-lg-7 > * {
        flex: 0 0 auto;
        width: 14.2857%;
    }
}

/* Light Testimonials Carousel */
.testimonial-light-card {
    background-color: #fff;
    padding: 35px 25px;
    text-align: left;
    height: 100%;
    min-height: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
}
.testimonial-light-card p {
    font-style: italic;
    font-size: 1.05rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}
.testimonial-light-card h6 {
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
}
/* Force consistent heights inside carousel rows */
.carousel-item .row {
    display: flex;
    align-items: stretch;
}
.carousel-item .col-md-4 {
    display: flex;
}
.carousel-light-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
    z-index: 10;
}
.carousel-light-arrow:hover {
    background-color: rgba(255,255,255,0.4);
    color: #fff;
}
.carousel-light-arrow.prev { left: -60px; }
.carousel-light-arrow.next { right: -60px; }

/* Ensure Carousel controls sit outside on large screens */
@media (max-width: 1200px) {
    .carousel-light-arrow.prev { left: 0px; }
    .carousel-light-arrow.next { right: 0px; }
}

/* Footer */
.footer-links a {
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-light) !important;
}
