﻿



/* counter section */
.counter-section {
    padding: 50px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #ffffff;
    text-align: center;
    /*background-color: #051650;*/ /* Dark overlay */
}

    .counter-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

.counter-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    z-index: 2;
    position: relative;
}

.counter-item {
    flex: 1 1 200px;
    max-width: 200px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    transform-style: preserve-3d; /* Enable 3D effects */
}

    .counter-item i {
        font-size: 50px;
        color:#d3af37 ;
        margin-bottom: 10px;
        transition: transform 0.3s ease-in-out;
    }

.counter-number {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

.counter-item p {
    font-size: 18px;
    color: #dfe6e9;
}

/* Hover effects */
.counter-item:hover {
    transform: scale(1.1) rotateY(15deg); /* Scale and rotate on hover */
}

    /*.counter-item:hover i {
        transform: rotate(360deg);*/ /* Rotate the icon */
    /*}*/

    .counter-item:hover .counter-number {
        color:#d3af37 ; /* Change number color */
        transform: translateY(-10px); /* Move number upwards */
    }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .counter-wrapper {
        flex-direction: row;
    }
}










/* effects CSS */

/* Animation for fade-in effect */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Slightly shift it down initially */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0); /* Move to the original position */
    }

/* Slide-in effect from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px); /* Start slightly off-screen */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

    .slide-in-left.visible {
        opacity: 1;
        transform: translateX(0); /* Slide to the original position */
    }

/* Slide-in effect from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px); /* Start slightly off-screen */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

    .slide-in-right.visible {
        opacity: 1;
        transform: translateX(0); /* Slide to the original position */
    }