@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Default: show the main content, hide the small screen message */
#small-screen-message {
    display: none;
}

#main-content {
    display: block;
}

/* For screens smaller than 660px in width */
@media (max-width: 660px) {
    #small-screen-message {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #333;
        color: white;
        font-size: 1.5em;
        text-align: center;
        z-index: 1000;
    }

    #main-content {
        display: none;
    }
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
body {
    background: #1f242d;
    animation: fadein 1s ease forwards;
    
}

a {
    color: white;
    text-decoration: none;
}



.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.navbar .logo {
    font-size: 30px;
    font-weight: 700;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    list-style: none;
    margin-left: 35px;
}

.navbar ul li a {
    font-size: 20px;
    font-weight: 500;
    transition: 0.5s;
}

.navbar ul li:hover a, .navbar ul li.active a {
    color: #7cf03d;
}

.home {
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 60px 9% 0;
    color: white;
}

.home-info  h1{
    font-size: 55px;
}

.home-info h2 {
    font-size: 32px;
    margin-top: -10px;
    display: inline-block;
}

.home-info h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px #7cf03d;
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

.home-info h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0%;
    border-right: 2px solid #7cf03d;
    color: #7cf03d;
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear forwards;
}

@keyframes display-text {
    25%, 
    100% {
        display: none;
    }
}

@keyframes fill-text {
    10%, 100% {
        width: 0;
    }

    70%, 90% {
        width: 100%;
    }
}
.home-info p {
    font-size: 16px;
    margin: 10px 0 25px;
    max-width: 650px;

}

.home-info .btn-sci {
    display: flex;
    align-items: center;

}
.btn {
    display: inline;
    padding: 10px 30px;
    background: #7cf03d;
    border: 2px solid #7cf03d;
    border-radius: 40px;
    box-shadow: 0 0 10 #7cf03d;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;

}

.btn:hover {
    background: transparent;
    color: #7cf03d;
    box-shadow: none;
}

.home-info .btn-sci .sci {
    margin-left: 20px;

}


.home-info .btn-sci .sci a{
    display: inline-flex;
    padding: 8px;
    border: 2px solid #7cf03d;
    border-radius: 50%;
    font-size: 20px;
    color: 7cf03d;
    margin: 0 8px;
}

/* Basic layout styles */
.home {
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 60px 9% 0;
    color: white;
}

/* Updated styles for img-item */
.home-img .img-box {
    position: fixed; /* Fixes the image in place */
    top: 50%;
    right: 5%; /* Adjusts position to the right */
    transform: translateY(-50%); /* Centers the image vertically */
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .img-box .img-item {
    width: 100%;
    height: 100%;
    background: #1f242d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    width: 85%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 1024px) {
    /* Scale down image slightly on medium screens */
    .home-img .img-box {
        width: 15vw;
        height: 15vw;
        right: 2%;
    }
}

@media (max-width: 768px) {
    /* Hide the image on smaller screens */
    .home-img .img-box {
        display: none;
    }
}
