/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #000;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

hr {
    border-color: #ddd;
    margin: 5rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 56px; /* Adjust for fixed navbar height */
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imgs/hero.webp'); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c1f3c; /* Dark blue color */
    clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
}

.hero-overlay .container,
.hero-overlay .row,
.hero-overlay .col-lg-6 {
    height: 100%;
}

.hero-text-col {
    display: flex;
    align-items: center;
}

/* "What Sets Cliffer Apart" Section */
.cliffer-features h2 {
    font-weight: 600;
}

.feature-card {
    background-color: #0c1f3c;
    color: #ffffff;
    border-radius: 10px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
}

/* Clients Section */
.clients-section {
    padding: 50px 0;
    text-align: center;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.client-logos-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 200%;
    animation: slide-left 20s linear infinite;
}

.client-logos-container:hover .client-logos {
    animation-play-state: paused;
}

.client-logos img {
    height: 60px;
    margin: 0 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.client-logos img:hover {
    filter: grayscale(0%);
}

@keyframes slide-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Door Products Section */
.door-products {
    background-color: #0c1f3c;
    color: #fff;
}

.door-products h2 {
    font-weight: 600;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(7, 11, 37, 0.2);
    border-radius: 10px;
    padding: 1rem;
    background-color: transparent;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-btn {
    border-radius: 5px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-color: #fff;
    color: #fff;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.product-btn:hover {
    background-color: #fff;
    color: #0f0a33;
    border-color: #fff;
}

/* Window Products Section */
.window-products-section {
    background-color: #f8f9fa;
    color: #000;
}

.window-products-section h2 {
    font-weight: 600;
}

.sub-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: #6c757d;
}

.window-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 1rem;
    background-color: #fff;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.window-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.window-card-container img {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.window-btn {
    border-radius: 5px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-color: #000;
    color: #000;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.window-btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Browse Section */
.browse-section {
    background-color: #f8f9fa;
}

.main-grid-container {
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.row.g-0 > div {
    border: 1px solid #ddd;
}

.content-box {
    color: #fff;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-mustard {
    background-color: #d4a742;
}

.bg-dark-blue {
    background-color: #0c1f3c;
}

.bg-dark-blue-2 {
    background-color: #0c1f3c;
}

.box-icon, .box-icon-location {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.box-title, .box-title-location {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.box-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.box-btn {
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
}

.box-btn:hover {
    background-color: #fff;
    color: #000;
}

.contact-details p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
}

.img-fluid {
    width: 100%;
    object-fit: cover;
}

/* Custom CSS for Footer Section */
.footer-section {
    background-color: #000;
    color: #fff;
    padding: 3rem 0;
}

.footer-logo img {
    max-width: 150px;
    
}

.footer-links-row .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.footer-links-row .footer-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links-row .footer-item p {
    margin-bottom: 0;
}

.social-media {
    display: flex;
    justify-content: center;
}

.social-icons-row {
    display: flex;
    align-items: center;
}

.social-icons-row a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

.social-icons-row a:hover {
    color: #ccc;
}

.footer-address {
    font-size: 0.9rem;
    color: #bbb;
}

.footer-divider {
    border-color: #444;
    margin: 2rem 0;
}

.footer-credit {
    font-size: 0.8rem;
    color: #bbb;
}

.footer-credit a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer-credit a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .footer-links-row .footer-item {
        margin-bottom: 1.5rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366; /* WhatsApp green */
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Scroll to Top Button */
.to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0c1f3c; /* Dark blue from your design */
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}

.to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.to-top-btn:hover {
    transform: scale(1.1);
}

/* Gallery Section Styles */
.gallery-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.gallery-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
}

.gallery-grid .gallery-item {
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    object-fit: cover; /* Ensures images fill their space nicely */
    height: 200px; /* Fixed height for consistent grid */
    width: 100%;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%; /* Max width of image */
    max-height: 90%; /* Max height of image */
    object-fit: contain; /* Ensures the whole image is visible */
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    text-decoration: none;
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Hide scrollbar when modal is open to prevent background scrolling */
body.modal-open {
    overflow: hidden;
}

/* Responsive adjustments for lightbox */
@media only screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    .prev-btn, .next-btn {
        font-size: 16px;
        padding: 10px;
        margin-top: -30px;
    }
    .close-btn {
        font-size: 30px;
        right: 20px;
        top: 10px;
    }
}