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

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/*Hero image section*/
.hero-section {
    height: 400px;
}

.hero-bg {
    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('https://public.readdy.ai/ai/img_res/614887023826658693789fbb17f9077d.jpg');
    background-size: cover;
    background-position: center;
    width: auto;
    padding-top: 30px;
}

.hero-text {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*timeline ection*/
.timeline-progress {
    height: 2px;
    background: linear-gradient(90deg, var(--tw-gradient-stops));
    width: 0;
    transition: width 0.5s ease-out;
}

.timeline-container {
    flex-direction: row;
    display: flex;
}

.timeline-dot {
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
}

.card-3d {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.activity-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.activity-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    background-color: white;
    transition: all 0.2s ease;
}

.custom-checkbox::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked+.custom-checkbox {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

input[type="checkbox"]:checked+.custom-checkbox::after {
    display: block;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #3b82f6;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

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

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

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

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

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

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

/*Responsive Design*/
@media (max-width: 768px) {
    .timeline-horizontal {
        flex-direction: column;
    }

    .timeline-line {
        width: 2px;
        height: 100%;
        left: 25px;
        top: 0;
    }

    .timeline-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        flex: none;
    }
}