/* *{
    background: rgb(103, 136, 131);
} */

.sticky-top {
    background: lightblue;
}

.gradient{
    background: rgb(103, 136, 131);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    max-height: 80px; /* Adjust based on your design */
    width: auto;
    margin-left: 40px;
}

@media (max-width: 768px) {
    .navbar-logo {
        max-height: 60px; 
        width:auto;/* Adjust for smaller screens */
    }
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    /* Text color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Optional: Add a shadow to the text */
}
.navbar-scrolled {
    background-color: rgb(103, 136, 131)!important;
    transition: background-color 0.3s ease-in-out;
}
.card-img-top{
    background: transparent;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.card-img-top:hover .overlay {
    opacity: 1;
}
.carousel-image-container {
    position: relative;
    width: 100%;
}

.carousel-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%; /* Adjust size as needed */
    max-height: 80%; /* Adjust size as needed */
    z-index: 10;
    pointer-events: none; /* Allows clicks to pass through */
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15; /* Ensures text is above both images */
}
/* .ftr{
    
    background: linear-gradient(180deg, rgba(103,136,131,1) 0%, rgba(0,0,0,1) 100%);
} */

.rounded-25{
    border-radius: 10px;
}
.card:hover{
    background-color: rgba(103, 109, 114, 0.726);

}

.position-relative {
    position: relative;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    /* background-color: rgba(0, 0, 0, 0.7); */
    padding: 10px;
    width: 50%;
    height: 60%;
    border-radius: 20%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.card img:hover + .overlay-text,
.card img.clicked + .overlay-text {
    opacity: 1;
    visibility: visible;
}

.rounded-circle {
    cursor: pointer;
}

.footer {
    background: linear-gradient(180deg, rgba(103,136,131,1) 0%, rgba(61, 71, 83) 100%);
    padding: 20px 0;
    /* width: 100%; */
}
.footer img {
    max-width: 100%;
    height: auto;
}
/* Custom CSS for scrolling logos and rounded images */
.scroll-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.scroll-list {
    display: flex;
    flex-direction: column;
    position: absolute;
}

.scroll-container.left .scroll-list {
    animation: scrollDown 25s linear infinite;
}

.scroll-container.right .scroll-list {
    animation: scrollUp 25s linear infinite;
}

.scroll-container img {
    width: 150px;
    height: 150px;
    margin: 15px 0;
    border-radius: 50%; /* Rounded images */
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    padding: 0 10px; /* Added padding for smaller screens */
    position: relative; /* Ensure positioning context for mobile layout */
    z-index: 1; /* Ensure text appears above scrolling logos */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .scroll-container {
        height: 240px; /* Fixed height for horizontal scrolling */
        flex-direction: row; /* Horizontal layout for scrolling */
    }

    .scroll-container.left .scroll-list {
        flex-direction: row;
        animation: scrollRight 15s linear infinite;
    }

    .scroll-container.right .scroll-list {
        flex-direction: row;
        animation: scrollLeft 15s linear infinite;
    }

    .scroll-container img {
        width: 100px; /* Slightly smaller image size for mobile */
        height: 100px;
        margin: 0 10px; /* Adjust margin for horizontal scrolling */
    }

    .content-container {
        padding: 20px 10px; /* Adjust padding for mobile */
        height: auto; /* Allow height to adapt to content */
        z-index: 2; /* Ensure the content is on top */
        position: relative; /* Maintain positioning context */
    }
}
 /* Custom CSS for card flip effect */
 /* Custom CSS for card flip effect */
/* Custom CSS for card flip effect */
.card-container {
    perspective: 1000px; /* Creates a 3D perspective */
}

.card2 {
    width: 100%;
    height: 300px; /* Set a fixed height for the cards */
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.card-inner2 {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front2, .card-back2 {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* .card-front2 {
    background: #fff;
} */

.card-back2 {
    background: linear-gradient(180deg, rgba(103,136,131,1) 0%, rgba(61, 71, 83) 100%);
    color: #fff;
    transform: rotateY(180deg);
}

.card2:hover .card-inner2 {
    transform: rotateY(180deg);
}

.card2 img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .card2 {
        height: 200px; /* Adjust height for smaller screens */
    }
}
