﻿.hero {
    width: 100%; /* Full viewport width */
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .hero .carousel-inner,
    .hero .carousel-item,
    .hero .carousel-item img {
        width: 100vw; /* Full screen width */
        height: 100%;
        object-fit: cover;
    }

.overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}



.media-section img {
    height: 150px;
    object-fit: cover;
    width: 100%;
}



.media-type-title {
    color: #ff0099;
}

/* Default navbar (dark) */
.navbar {
    transition: background-color 0.3s ease, color 0.3s ease;
}

    /* When scrolled */
    .navbar.scrolled {
        background-color: #f8f9fa !important; /* Off-white */
    }

        /* Text color changes on scroll */
        .navbar.scrolled .nav-link,
        .navbar.scrolled .navbar-brand,
        .navbar.scrolled .btn {
            color: #000 !important; /* Black text */
        }

        .navbar.scrolled .btn-primary {
            background-color: #000 !important;
            border-color: #000 !important;
            color: #fff !important;
        }

.logo-light {
    display: none;
}

.navbar.scrolled .logo-dark {
    display: none !important;
}

.navbar.scrolled .logo-light {
    display: inline-block !important;
}

.btn-gradient {
    background: linear-gradient(90deg, #3b82f6, #facc15);
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

    .btn-gradient:hover {
        background: linear-gradient(90deg, #2563eb, #eab308);
        transform: translateY(-2px);
    }

.icon-box {
    width: 50px;
    height: 50px;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.form-control,
.form-select,
textarea {
    width: 100% !important;
}


/* Custom Styles for Media Type Section */

.media-type-section {
    background-color: #f8f9fa; /* Light background */
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden; /* Important for animations */
}

.media-type-title {
    color: #007bff; /* A prominent blue for emphasis */
}

.media-type-card-wrapper {
    /* Ensures consistent column behavior across screen sizes */
    /* Adjust as needed for different breakpoints */
    flex: 0 0 auto;
    width: 33.333333%; /* For col-md-4 */
}

@media (max-width: 767.98px) {
    .media-type-card-wrapper {
        width: 50%; /* For col-sm-6 */
    }
}

@media (max-width: 575.98px) {
    .media-type-card-wrapper {
        width: 100%; /* For col-12 */
    }
}


.media-type-card {
    border-radius: 0.5rem; /* Rounded corners for cards */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden; /* Ensures image corners are rounded correctly within card */
}

    .media-type-card:hover {
        transform: translateY(-5px); /* Lifts the card slightly on hover */
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Enhanced shadow on hover */
    }

.media-type-image {
    width: 100%; /* Ensures image fills its container */
    height: 200px; /* Fixed height for all images */

    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Animation for Load */
.media-type-card-wrapper {
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInUp 0.8s ease-out forwards; /* Apply animation */
}

    /* Delay animation for each card for a staggered effect */
    .media-type-card-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .media-type-card-wrapper:nth-child(2) {
        animation-delay: 0.2s;
    }

    .media-type-card-wrapper:nth-child(3) {
        animation-delay: 0.3s;
    }

    .media-type-card-wrapper:nth-child(4) {
        animation-delay: 0.4s;
    }

    .media-type-card-wrapper:nth-child(5) {
        animation-delay: 0.5s;
    }

    .media-type-card-wrapper:nth-child(6) {
        animation-delay: 0.6s;
    }


/* Keyframes for fade-in and slide-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: Additional styling for the title */
.media-type-section h2 {
    position: relative;
    padding-bottom: 15px;
}

    .media-type-section h2::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: #007bff; /* Accent color for the underline */
        border-radius: 2px;
    }


/* Happy Clients Section Styling */
.happy-clients-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #fff;
}

    .happy-clients-section h2 .text-primary-pink {
        color: #e83e8c !important; /* Pink color from the image */
    }

    .happy-clients-section h2::after {
        background-color: #e83e8c; /* Pink underline */
    }

.logos-slider-container {
    overflow: hidden; /* Hide overflowing logos */
    white-space: nowrap; /* Keep logos in a single line */
    position: relative;
    padding: 2rem 0; /* Add some vertical padding */
}

.logos-slide {
    display: inline-flex; /* Use inline-flex to keep them on one line and allow wrapping if needed */
    animation: scroll-logos 30s linear infinite; /* Adjust duration for speed */
    will-change: transform; /* Optimize for animation performance */
}

    .logos-slide:hover {
        animation-play-state: paused; /* Pause animation on hover */
    }

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px; /* Adjust based on desired logo size and number visible */
    height: 100px; /* Fixed height for logo items */
    padding: 0 2rem; /* Spacing between logos */
    flex-shrink: 0; /* Prevent items from shrinking */
}

    .logo-item img {
        object-fit: contain; /* Ensure logo is contained within its space */
        width: 150px; /* All logos will occupy this width */
        height: 120px; /* All logos will occupy this height */
        /*filter: grayscale(100%);*/ /* Optional: grayscale for a professional look */
        /*opacity: 0.7;*/ /* Optional: slight transparency */
        transition: filter 0.3s ease, opacity 0.3s ease;
    }

        .logo-item img:hover {
            filter: grayscale(0%); /* Color on hover */
            opacity: 1;
        }

/* Keyframes for continuous scrolling */
@keyframes scroll-logos {
    from {
        transform: translateX(0);
    }

    to {
        /* This value needs to be half the total width of the *duplicated* logos-slide content */
        /* Assuming 6 logos, 180px min-width, 4rem total padding per item (2rem left + 2rem right) */
        transform: translateX(calc(-180px * 6 - (4rem * 6)));
    }
}

/* Responsive adjustments for logo items */
@media (max-width: 991.98px) { /* Tablet and smaller */
    .logo-item {
        min-width: 150px;
        padding: 0 1.5rem;
        height: 80px;
    }

        .logo-item img {
            max-height: 60px;
        }

    @keyframes scroll-logos {
        to {
            transform: translateX(calc(-150px * 6 - (3rem * 6))); /* Adjust for smaller min-width and padding */
        }
    }
}

@media (max-width: 767.98px) { /* Mobile */
    .logo-item {
        min-width: 120px;
        padding: 0 1rem;
        height: 70px;
    }

        .logo-item img {
            max-height: 50px;
        }

    @keyframes scroll-logos {
        to {
            transform: translateX(calc(-120px * 6 - (2rem * 6))); /* Adjust for smaller min-width and padding */
        }
    }
}

/* Printing Services Section Styling */
.printing-services-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f8f9fa; /* Light background, distinct from clients section */
}

    .printing-services-section h2 .text-secondary-dark {
        color: #007bff !important; /* Darker color for emphasis */
    }

    .printing-services-section h2::after {
        background-color: #007bff; /* Dark underline */
    }

.printing-service-card {
    border-radius: 0.75rem; /* More rounded corners */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    background-color: #fff; /* White background for cards */
}

    .printing-service-card:hover {
        transform: translateY(-8px); /* More pronounced lift on hover */
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18) !important; /* Stronger shadow */
    }

.printing-service-image {
    width: 100%;
    height: 180px; /* Fixed height for service images */
    /*object-fit: cover;*/ /* Cover ensures no empty space */
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.printing-service-card .card-body {
    padding: 1.25rem;
}

.printing-service-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

/* Animation for Printing Services Cards */
.printing-service-card-wrapper {
    opacity: 0;
    transform: translateY(30px); /* Start further down */
    animation: fadeInUpPrinting 0.9s ease-out forwards; /* Slightly longer animation */
}

    /* Staggered animation delay for printing service cards */
    .printing-service-card-wrapper:nth-child(1) {
        animation-delay: 0.1s;
    }

    .printing-service-card-wrapper:nth-child(2) {
        animation-delay: 0.2s;
    }

    .printing-service-card-wrapper:nth-child(3) {
        animation-delay: 0.3s;
    }

    .printing-service-card-wrapper:nth-child(4) {
        animation-delay: 0.4s;
    }

    .printing-service-card-wrapper:nth-child(5) {
        animation-delay: 0.5s;
    }

    .printing-service-card-wrapper:nth-child(6) {
        animation-delay: 0.6s;
    }

    .printing-service-card-wrapper:nth-child(7) {
        animation-delay: 0.7s;
    }

    .printing-service-card-wrapper:nth-child(8) {
        animation-delay: 0.8s;
    }

    .printing-service-card-wrapper:nth-child(9) {
        animation-delay: 0.9s;
    }

    .printing-service-card-wrapper:nth-child(10) {
        animation-delay: 1.0s;
    }

    .printing-service-card-wrapper:nth-child(11) {
        animation-delay: 1.1s;
    }

    .printing-service-card-wrapper:nth-child(12) {
        animation-delay: 1.2s;
    }


@keyframes fadeInUpPrinting {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
