:root {
    --primary-color: #002157;
    --secondary-color: #FCBB01;
}

:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.preloader-split {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    top: 0;
    left: 0;
    background: transparent;
    pointer-events: none;
    align-items: center;
    justify-content: center;
}

.split {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #fff;
    /* change to your brand color */
    transition: transform 1s ease-in-out;
    z-index: 1000;
}

.split.left {
    left: 0;
    transform: translateX(0);
}

.split.right {
    right: 0;
    transform: translateX(0);
}

.preloader-split.loaded .left {
    transform: translateX(-100%);
}

.preloader-split.loaded .right {
    transform: translateX(100%);
}

.preloader-logo {
    position: absolute;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.preloader-split.loaded .preloader-logo {
    opacity: 0;
}

/*hero image*/
.hero-bg {
    /*Image by Vecteezy.com*/
    background-image: linear-gradient(to right, rgba(0, 33, 87, 0.9), rgba(0, 33, 87, 0.6), rgba(0, 33, 87, 0.2)),
        url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
}


.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.3));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #FFB703;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background-color: #0A2463;
    color: white;
}

.btn-primary:hover {
    background-color: #061a42;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: black;
    color: white;
}

.btn-secondary:hover {
    background-color: #222;
    transform: scale(1.05);
}


.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 33, 87, 0.1);
    animation: float-particle 15s infinite ease-in-out;
}

.rotating-cube {
    width: 100px;
    height: 100px;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}


.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    border: 1px solid rgba(0, 33, 87, 0.3);
}

.face-1 {
    transform: translateZ(50px);
    background: rgba(0, 33, 87, 0.05);
}

.face-2 {
    transform: rotateY(180deg) translateZ(50px);
    background: rgba(0, 33, 87, 0.05);
}

.face-3 {
    transform: rotateY(90deg) translateZ(50px);
    background: rgba(0, 33, 87, 0.05);
}

.face-4 {
    transform: rotateY(-90deg) translateZ(50px);
    background: rgba(0, 33, 87, 0.05);
}

.face-5 {
    transform: rotateX(90deg) translateZ(50px);
    background: rgba(0, 33, 87, 0.05);
}

.face-6 {
    transform: rotateX(-90deg) translateZ(50px);
    background: rgba(0, 33, 87, 0.05);
}

.bounce-animation {
    animation: bounce 2s ease infinite;
}

.map-container {
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/*Service section*/
.services-section {
    position: relative;
    padding: 100px 0px 20px 0px;
    overflow: hidden;

}


.services-header {
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 0 20px;
}

.services-header:hover {
    transform: scale(1.05);
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0A2463;
    margin-bottom: 16px;
}


.service-section-image .service-icon {
    font-size: 3rem;
    color: #0A2463;
    margin-bottom: 16px;
}

.service-section-image .service-title {
    font-size: 1.5rem;
    color: #0A2463;
    margin-bottom: 8px;
}


.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 50px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.service-box {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.05),
        /* bottom */
        0 -4px 8px rgba(0, 0, 0, 0.05),
        /* top */
        4px 0 8px rgba(0, 0, 0, 0.05),
        /* right */
        -4px 0 8px rgba(0, 0, 0, 0.05);
    /* left */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.service-box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.service-box .icon {
    background-color: var(--primary-color);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
    transition: background-color 0.3s, color 0.3s;
}

.service-box h3 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
    min-height: 50px;
    color: #000;
}

.service-box p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    min-height: 40px;
}

.service:hover p {
    transition: transform 0.3s ease, color 0.3s ease;
    transform: scale(1.02);
    color: #002157;
}

.service-box:hover .icon {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/*fun-facts section*/
.fun-facts {
    /*Image by Vecteezy.com*/
    background-image: linear-gradient(rgba(0, 33, 87, 0.8), rgba(0, 33, 87, 0.8)), url('../images/bread-bg.jpg');
    background-color: var(--primary-color);
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
}

/*Why choose our section*/
.counter-percentage::after {
    content: '%';
}


/*product section*/
.section-products {
    background-color: #f9fafb;
    padding: 100px 20px;
    overflow: hidden;
}

.products-header {
    text-align: center;
    margin-bottom: 60px;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.products-header:hover {
    transform: scale(1.05);
}

.products-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0A2463;
    margin-bottom: 16px;
}

.products-header p {
    color: #666;
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .card-content {
    padding: 24px;
}

.product-card h3 {
    font-size: 1.2rem;
    color: #0A2463;
    font-weight: bold;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
}

.product-card button {
    background: none;
    border: none;
    color: #0A2463;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-card button:hover {
    color: #FFB703;
}

/*Our partner*/
.animate-scroll {
    animation: scroll 60s linear infinite;
}

.animate-scroll-reverse {
    animation: scroll-reverse 60s linear infinite;
}

.partner-slider:hover {
    animation-play-state: paused;
}

/*float animation*/
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delay-1 {
    animation: float 6s ease-in-out 1s infinite;
}

.float-animation-delay-2 {
    animation: float 6s ease-in-out 2s infinite;
}

/*animation*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Initial state: off-screen and invisible */
.float-in {
    opacity: 0;
    transform: translateY(50px);
    /* Start from below */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Final state: visible and floating upwards */
.float-in.visible {
    opacity: 1;
    transform: translateY(0);
    /* Move to the final position */
}


/*Responsive Design*/

@media screen and (max-width: 500px) {
    .float-bubble {
        display: none;
    }

    .services-container {
        grid-template-columns: 1fr;
        padding: 0px;
    }

    .opening-hour-container {
        margin-left: -20px;
    }

    .service-box {
        max-width: 340px;
        margin: 0px 20px;
    }

}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-working-hours {
        margin-left: 40px;
    }
}

@media (min-width: 960px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .fun-facts-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}


@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


@keyframes float-particle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
    }

    75% {
        transform: translateY(-25px) translateX(5px);
    }
}