/* ================= HOME SECTION ================= */

#home.content.active{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;

    width: 90%;
    max-width: 1100px;
    margin: 3rem auto;
}

/* ================= IMAGE ================= */

.img-container{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    flex-shrink: 0;
}

/* rotating border */
.img-container::before,
.img-container::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;

    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        var(--green)
    );

    animation: revolve 4s linear infinite;
}

.img-container::after {
    animation-delay: 2s;
}

@keyframes revolve {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.img-container img{
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}


/* ================= TEXT ================= */

.details{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 520px;
}

.details h2{
    font-size: 3rem;
}
.details h2 span{
    background: linear-gradient(to right, var(--green), var(--white));
    padding-bottom: 2px;
    border-bottom: 5px solid var(--green);
    color: transparent;
    -webkit-background-clip: text;
}
.details h3{
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}
.details h3 span{
    color: var(--green);
    display: inline-block;
    min-width: 130px;
    overflow: hidden;
    white-space: nowrap;
}
.details h3 span::after{
    content:"|";
    margin-left: 5px;
    animation: blink 0.7s steps(1) infinite;
}
@keyframes blink{
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
}
.details p{
    font-size: 1.2rem;
    line-height: 1.6;
}
.bottom{
    display: flex;
    align-items: center;
    gap: 25px;
}
.bottom button{
    width: 12rem;
    padding: 0.8rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 5px;
    background: var(--green);
    cursor: pointer;
    border: none;
}
.bottom button:hover{
    box-shadow: 
        3px 3px 3px var(--green),
        -3px 3px 3px var(--green),
        3px -3px 3px var(--green),
        -3px -3px 3px var(--green);
}
.social-icons{
    display: flex;
    gap: 20px;
    font-size: 2.5rem;
}
.social-icons a{
    color: var(--white);
    transition: all ease 0.3s;
}
.social-icons a:hover{
    color: var(--green);
    scale: 105%;
}
/* ================= MOBILE ================= */

@media (max-width: 768px){

    #home.content.active{
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .img-container{
        order: -1;  
        width: 220px;
        height: 220px;
    }
    .details h3{
        font-size: 2.5rem;
    }
    .social-icons{
        font-size: 3rem;
    }
    .bottom{
        flex-direction: column; /* Stack button and icons vertically */
        gap: 15px;             /* Add some spacing between them */
        align-items: center;    /* Center horizontally */
    }

    .bottom button{
        width: 100%; /* Optional: make the button full width on mobile */
        max-width: 12rem;
    }
}


/* ================= LARGE SCREEN ================= */

@media (min-width: 1024px){

    .details h2{
        font-size: 4.5rem;
    }
        .details h3{
        font-size: 2.8rem;
    }

    .details p{
        font-size: 1.5rem;
    }

    .img-container{
        width: 380px;
        height: 380px;
    }
}
