/* Home page banner with background image and overlay */

/* Base section and title styling - Mobile first */
.section {
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    margin-top: 30px;
}

.title h1 {
    /* Fluid typography: scales from 28px on mobile to 45px on desktop */
    font-size: clamp(28px, 6vw, 45px);
    margin: 0 0 30px 0;
}

/* Section-specific overrides - Mobile first */
.m1{
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    text-align: center;
    margin-top: 30px;
}

.t1 p{
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: clamp(14px, 3vw, 16px);
}

.d1{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    text-align: center;
    margin-top: 30px;
    gap: 20px;
}

.t2 h1{
    width: 100%;
    margin: 0 0 30px 0;
    font-size: clamp(28px, 6vw, 45px);
}

.t2 p{
    margin-bottom: 50px;
    font-size: clamp(14px, 3vw, 16px);
}

.d2{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    padding: 0 clamp(15px, 5vw, 50px);
}

.d2 div{
    /* Responsive width: 100% on mobile, scales for 3 cards on larger screens */
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.d2 div img{
    border-radius: 5px;
    display: block;
    margin: 0 0 20px 0;
    width: 100%;
    /* Responsive height: maintains aspect ratio, scales with viewport */
    height: auto;
    min-height: 250px;
    object-fit: cover;
}

.d2 div video{
    border-radius: 5px;
    display: block !important;
    margin: 0 0 20px 0;
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    visibility: visible !important;
}

.d2 div p{
    margin: 20px 0 30px 0;
    font-size: clamp(14px, 3vw, 16px);
}

/* Unified link styling */
.d2 div a,
.d3 div a,
.d5 a {
    text-decoration: none;
    color: black;
}

.m3{
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    margin: clamp(30px, 10vw, 80px) 0;
}

.d3{
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.d3 div{
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.d3 div img{
    border-radius: 5px;
    display: block;
    width: 100%;
    height: auto;
}

.m4{
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    text-align: center;
    margin-top: 30px;
}

.t4 h1{
    font-size: clamp(28px, 6vw, 45px);
    margin: 0 0 30px 0;
}

.t4 p{
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.d4{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.d4 div{
    width: 100%;
    max-width: 150px;
    font-size: clamp(12px, 3vw, 14px);
}

.m5{
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    text-align: center;
    margin-top: 30px;
}

.t5 h1{
    font-size: clamp(28px, 6vw, 45px);
    margin: 0 0 30px 0;
}

.t5 p{
    font-size: clamp(16px, 4vw, 20px);
    margin: 20px 0 40px 0;
}

.d5{
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 440;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
}

.d5 a{
   text-decoration: none;
   color: black;
}

.d5 div img{
    display: block;
    width: 100%;
    height: auto;
    transition: 1.5s;
}

.d5 div:hover img{
    transform: scale(1.1);
   display: block;
    margin: 15px 20px 25px 20px;
}
.loc{
    color: #646464;
    margin-top: 5px;
    font-size: clamp(12px, 2.5vw, 14px);
}

video{
    visibility: hidden;
    display: none;
}

.m6{
    padding: clamp(20px, 5vw, 80px) clamp(15px, 5vw, 50px);
    margin-top: clamp(30px, 10vw, 80px);
}

.t6{
    text-align: center;
    margin-bottom: 50px;
}

.t6 h1{
    font-size: clamp(28px, 6vw, 45px);
    margin: 0 0 30px 0;
}

.t6 p{
    margin-top: 20px;
    font-size: clamp(14px, 3vw, 16px);
}

.d6{
    width: 100%;
    max-width: 500px;
    height: 150px;
    margin: auto;
    position: relative;
    text-align: center;
}

.carousel-slide{
    position: absolute;
    width: 100%;
    height: 100%;
    animation: fadeImages 15s infinite;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fadeImages{
    0%{
        opacity: 0;
    }
    15%{
        opacity: 1;
    }
    85%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

.carousel-slide:nth-child(1){
    animation-delay: 0s;
}
.carousel-slide:nth-child(2){
    animation-delay: 3s;
}
.carousel-slide:nth-child(3){
    animation-delay: 6s;
}
.carousel-slide:nth-child(4){
    animation-delay: 9s;
}
.carousel-slide:nth-child(5){
    animation-delay: 12s;
}

#img-bk{
    position: absolute;
    top: 0;
    left: 0;
    transition: .5s;
    height: 150px;
    margin: auto;
    background-color: #0689ce;
    z-index: -1;
    width: 100%;
}

area{
    cursor: pointer;
}

.d6-2{
    width: 100%;
    text-align: center;
    margin: 0 0 40px 0;
}

.d6-2 h1{
    margin: 0 0 10px 0;
    font-size: clamp(24px, 5vw, 40px);
}

.d6-2 p{
    font-size: clamp(18px, 4vw, 25px);
}

.d6-3{
    width: 100%;
    height: auto;
}

.slider{
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.5);
    margin: auto;
    margin-bottom: 100px;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 800 / 500;
    border-radius: 10px;
    overflow: hidden;
}

.slide{
    width: 100%;
    height: 100%;
    display: flex;
}

.slide input{
    display: none;
}

.imgs{
    transition: 2s;
    width: 100%;
}

.imgs img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-last{
    min-height: auto;
}

@keyframes carousel-fade-in {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes carousel-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.carousel-slide-1 {
    animation: carousel-fade-in 5s ease-in-out 0s forwards, carousel-fade-out 5s ease-in-out 25s forwards;
}

.carousel-slide-2 {
    animation: carousel-fade-in 5s ease-in-out 5s forwards, carousel-fade-out 5s ease-in-out 30s forwards;
}

.carousel-slide-3 {
    animation: carousel-fade-in 5s ease-in-out 10s forwards, carousel-fade-out 5s ease-in-out 35s forwards;
}

.carousel-slide-4 {
    animation: carousel-fade-in 5s ease-in-out 15s forwards, carousel-fade-out 5s ease-in-out 40s forwards;
}

.carousel-slide-5 {
    animation: carousel-fade-in 5s ease-in-out 20s forwards, carousel-fade-out 5s ease-in-out 45s forwards;
}

@keyframes carousel-text-fade-in {
    0% { opacity: 0.3; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes carousel-text-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
}

.carousel-text-slide-1 {
    animation: carousel-text-fade-in 5s ease-in-out 0s forwards, carousel-text-fade-out 5s ease-in-out 25s forwards;
}

.carousel-text-slide-2 {
    animation: carousel-text-fade-in 5s ease-in-out 5s forwards, carousel-text-fade-out 5s ease-in-out 30s forwards;
}

.carousel-text-slide-3 {
    animation: carousel-text-fade-in 5s ease-in-out 10s forwards, carousel-text-fade-out 5s ease-in-out 35s forwards;
}

.carousel-text-slide-4 {
    animation: carousel-text-fade-in 5s ease-in-out 15s forwards, carousel-text-fade-out 5s ease-in-out 40s forwards;
}

.carousel-text-slide-5 {
    animation: carousel-text-fade-in 5s ease-in-out 20s forwards, carousel-text-fade-out 5s ease-in-out 45s forwards;
}
/* Clients and Partners Section Styles */

/* Main section container */
#clients-partners-section {
    background: #f9f9f9;
    padding: clamp(15px, 5vw, 150px);
    min-height: 97vh;
    display: flex;
    align-items: center;
}

/* Carousel wrapper with overflow hidden for smooth scrolling */
.clients-carousel-wrapper {
    overflow: hidden;
    padding: 40px 0;
    margin-bottom: 60px;
    width: 100%;
}

/* Carousel container with animation */
.clients-carousel {
    display: flex;
    animation: scroll-clients 20s linear infinite;
    gap: 50px;
    width: fit-content;
}

/* Individual client logo item */
.client-logo-item {
    flex-shrink: 0;
    /* Responsive size: 120px on mobile, 150px on desktop */
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

/* Hover effect for logo items */
.client-logo-item:hover {
    transform: scale(1.1);
}

/* Logo images styling */
.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Scrolling animation keyframes */
@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* ========== MOBILE-FIRST RESPONSIVE MEDIA QUERIES ========== */

/* Tablets and small devices (600px - 767px) */
@media (min-width: 600px) {
    .m1, .m3, .m4, .m5, .m6 {
        padding: clamp(30px, 5vw, 80px) clamp(20px, 5vw, 50px);
    }
    
    .d2 {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .d2 div {
        flex: 0 1 calc(33.333% - 14px);
        min-width: 250px;
    }
    
    .d3 {
        flex-direction: row;
    }
    
    .d4 {
        gap: 40px;
    }
    
    #clients-partners-section {
        padding: clamp(20px, 5vw, 150px);
    }
}

/* Tablets and medium devices (768px - 991px) */
@media (min-width: 768px) {
    .m1, .m2, .m3, .m4, .m5, .m6 {
        padding: 40px 50px;
    }
    
    .d2 {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .d2 div {
        flex: 0 1 calc(33.333% - 20px);
        max-width: 100%;
    }
    
    .d3 {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .d3 div {
        width: 45%;
        max-width: 100%;
    }
    
    #clients-partners-section {
        padding: 50px 100px;
    }
}

/* Large devices (992px - 1199px) */
@media (min-width: 992px) {
    .m1, .m2, .m3, .m4, .m5, .m6 {
        padding: 60px 80px;
    }
    
    .d2 div {
        width: 450px;
        max-width: 450px;
    }
    
    .d3 div {
        width: 550px;
    }
    
    #clients-partners-section {
        padding: 80px 120px;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .m1, .m2, .m3, .m4, .m5, .m6 {
        padding: 80px 150px;
    }
    
    .d2 div {
        width: 600px;
    }
    
    .d3 div {
        width: 600px;
    }
    
    #clients-partners-section {
        padding: 15px 150px;
    }
    
    .d4 {
        gap: 50px;
    }
}