.home-section {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden; 
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, -50%);
    z-index: -1; 
}
.overlay-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    width: 100%;
    animation: come2life linear 20s 1; 
    animation-fill-mode: forwards; 
}

.overlay-content img {
    width: 25%; 
    height: auto;
    margin-bottom: 14vh; 
}

.title-btn-section h1 {
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: 0em;
    font-family: "EB Garamond";
    letter-spacing: 4%;
    margin-bottom: 5vh;
    font-size: 10vh;
}
.get-started-btn {
    background-color: #004903;
    color: #fff;
    font-weight: bold; 
    border-radius: 5px;
    font-family: "montserrat";
    font-size: 20px;
    letter-spacing: 4px; 
    padding: 1%;
}

.title-btn-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive tablet view */
@media (min-width: 600px) and (max-width: 1280px) {
    .icon {
        width: 40%;
        max-width: 100%; 
        margin-bottom: 10vh; 
    }

    .title-btn-section h1 {
        font-size: 8vh !important;
    }
}

/*Responsive mobile view*/
@media (max-width: 599px) {
    .icon {
        width: 60%;
        max-width: 100%;
        margin-bottom: 4vh;
    }
    .title-btn-section h1{
        padding: 0% 4%;
        font-size: 5vh;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
    .icon {
        width: 40%;
        max-width: 100%;
        margin-bottom: 5vh;
    }
}

/*Animation contents*/
@keyframes come2life {
    0% {
        transform: translate(-50%, -50%) scale3d(0, 0, 1) rotate(0.02deg); /* Center during scaling */
        opacity: 0; /* Start hidden */
    }
    25% {
        transform: translate(-50%, -50%) scale3d(1, 1, 1) rotate(0.02deg); /* Center during scaling */
        opacity: 1; /* Fully visible */
    }
    40% {
        opacity: 1; /* Remain visible */
    }
    80% {
        opacity: 1; /* Remain visible */
    }
    100% {
        transform: translate(-50%, -50%) scale3d(1, 1, 1) rotate(0.02deg); /* Reduce scale to prevent moving out */
        opacity: 1; /* Keep it fully visible */
    }
}
