@import url('https://fonts.googleapis.com/css2?faimly=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 50px;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}
body{
    background: #081b29;
    color: #ededed;

}
/*
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 25px;
    position: relative;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
}
*/
.header {
    position: fixed;
    font-size: 35px;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
}

/* Ensuring the logo stays left-aligned */
.logo {
    font-size: 35px;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
    margin-left: -8%;
    margin-right: auto; /* Pushes everything else to the right */

}

.logo::before{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:.4s;
}
.navbar a {
    font-size: 18px;
    color:#ededed;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color:#00abf0;
}

.home{
    height: 100vh;
    background: url('home.jpg1') no-repeat;
    background-size: cover; 
    background-position: center ;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.home-content{
    max-width: 600px;
}

.home-content h1{
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}
.home-content h1::before{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:1s;
}
.home-content h3{
    position: relative;
    font-size: 32px;
    font-weight: 700;
    color:#00abf0;
}

.home-content h3::before{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:1.3s;
}

.home-content p{
    position: relative;
    font-size: 16px;
    margin: 20px 0px 40px;
}

.home-content p::before{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:1.6s;
}
.home-content .btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 345px;
    height: 50px;
 
}
.home-content .btn-box::before{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:1.9s;
    z-index: 2;
}
.btn-box a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height:100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #081b29;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}
.btn-box a:hover{
    color:#00abf0;
}
.btn-box a:nth-child(2){
    background: transparent;
    color:#00abf0;
}
.btn-box a:nth-child(2):hover{
    color:#081b29;
}
.btn-box a:nth-child(2)::before {
    background: #00abf0;
}
.btn-box a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height:100%;
    background: #081b29;
    z-index: -1;
    transition: .5s;

}
.btn-box a:hover::before{
    width: 100%;


}
.home-sci{
    position: absolute;
    bottom: 40px;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci::before{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:2.5s;
    z-index: 2;
}   
.home-sci a{
    display: inline-flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width:40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover{
   color:#081b29;
}
.home-sci a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #00abf0;
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before{
    width: 100%;
}

.home-imgHover{
    position: absolute;
    top:0;
    right: 30px;
    width: 500px;
    height: 100%;
    background: transparent;
    transition: 3s;
    animation: manipActiveHover .1s forwards;
    animation-delay: 4s;
    pointer-events: none;
}
.home-imgHover:hover{
    background: #081b29;
    opacity: .8;
}

.home-imgHover::after{
    content: '';
    position: absolute;
    top:0;
    right: 0;
    width: 140%;
    height: 100%;
    background: #081b29;
    animation: showRight 1s ease forwards;
    animation-delay:3s;
    z-index: 2;
} 

/*KeyFrames  Animation*/
@keyframes showRight{
    100%{
        width: 0;

    }
}


@keyframes manipActiveHover{
    100%{
        pointer-events: auto;
    }
}

/* Responsive Design */
@media (max-width: 1024px) { /* Tablets */
    .home {
        flex-direction: column;
        text-align: center;
    }

    .profile-container {
        margin-top: 30px;
    }
}

@media (max-width: 768px) { /* Mobile */
    .header {
        padding: 15px 5%;
        flex-direction: column;
        text-align: center;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .home {
        padding: 50px 5%;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 24px;
    }

    .profile-image {
        width: 150px; /* Smaller profile image on mobile */
        height: 150px;
    }
}