@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;
}

body {
    background: #1f242d;
}

a {
    color: #fff;
    text-decoration: none;
}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 15px 5%;/*25px 9%*/
    display: flex;
    justify-content: center; /* This will center the logo on mobile */
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.navbar .logo {
    font-size: 24px;/*30px*/
    font-weight: 700;
}

.navbar ul {
    display: flex;/*flex*/
    gap: 15px; /* Add this line */
}

.navbar ul li {
    list-style: none;
    /*margin-left: 35px;*/
}

.navbar ul li a {
    font-size: 20px;
    font-weight: 500;
    transition: .5s;
}

.navbar ul li:hover a,.navbar ul li.active a{
    color: #7cf03d;
}

.home {
    display: flex;
    flex-direction: column; /*added*/
    align-items: center;
    gap: 30px; /*50px*/
    height: 100vh;
    padding: 60px 5% 0; /*60px 9% 0*/
    color: #fff;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
    text-align: center; /* Center text on mobile */
}

.home-info h1 {
    font-size: 40px; /*55px*/
}

.home-info h2 {
    display: inline-block;
    font-size: 24px; /*32px*/
    margin-top: 5px; /*-10px*/

}

.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));
}

@keyframes display-text {
    25%, 100% {
        display: none;
    }
}

.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 infinite;
}

@keyframes fill-text {
    10%, 100% {
        width: 0;
    }
    70%, 90% {
        width: 100%;
    }
}

.home-info p {
    font-size: 14px; /*16px*/
    margin: 10px 0 20px;/*25px*/
}

.home-info .btn-sci {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 20px; /*added*/
    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #7cf03d;
    border: 2px solid #7cf03d;
    border-radius: 40px;
    box-shadow: 0 0 10px #7cf03d;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    transition: .5s;
}

.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;
    transition: .5s;
}

.home-info .btn-sci .sci a:hover {
    background: #7cf03d;
    color: #1f242d;
    box-shadow: 0 0 10px #7cf03d;
}

/* image starts here */

.home-img .img-box {
    position: relative;
    width: 250px; /*32vm*/
    height: 250px; /*32vm*/
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before, 
.home-img .img-box::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradinet(transparent,transparent,transparent, #7cf03d);
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
    animation-delay: -5s;
} 

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1f242d;
    border-radius: 50%;
    border: .1px solid #1f242d;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    top: 30px;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

/* animation green thing */

.bars-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar {
    width: 100%;
    height: 100%;
    background: #1f242d;
    transform: translate(-100%);
    animation: show-bars .5s ease-in-out forwards;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars {
    100% {
        transform: translate(0%);
    }
}

/*additional*/

/* Responsive Media Queries */
@media (min-width: 768px) {
    /* Tablet and Desktop Styles */
    .navbar {
        padding: 25px 9%; /* Restore desktop padding */
    }

    .navbar .logo {
        font-size: 30px;
    }
    
    .navbar ul {
        display: flex; /* Show the menu on larger screens */
        justify-content: center; /* Center the links within the ul */
    }
    
    .navbar ul li {
        list-style: none;
        margin: 0 17.5px; /* Adjust margin to spread out links */
    }

    .navbar ul li a {
        font-size: 20px;
    }

    .home {
        flex-direction: row; /* Change back to horizontal layout */
        text-align: left; /* Align text to the left */
        gap: 50px; /* Restore desktop gap */
        padding: 60px 9% 0; /* Restore desktop padding */
    }

    .home-info h1 {
        font-size: 55px; /* Restore desktop font size */
    }

    .home-info h2 {
        font-size: 32px; /* Restore desktop font size */
        margin-top: -10px;
    }

    .home-info p {
        font-size: 16px; /* Restore desktop font size */
    }
    
    .home-info .btn-sci {
        flex-direction: row; /* Change back to horizontal layout */
        gap: 0;
    }
    
    .home-img .img-box {
        width: 32vw; /* Use responsive units for larger screens */
        height: 32vw;
    }
}