
/* Universal CSS */
*{
    margin : 0%;
    padding : 0%;
    box-sizing  : border-box;
    font-family: 'poppins',sans-serif; 
}

/* Background and text coloring */
body{
    background-color: #1f242d;
    color: #fff;
}


/* The  header */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}


/* Portfolio Logo */
.logo{
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}


/* Nav bar */
.navbar a{
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}


.navbar a:hover,
.navbar a.active{
    color: #0ef;
}



.home{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}



.home .home-img img{
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #0ef;
    margin-left: -30px;
    opacity: 0;
    animation: zoomIn 1s ease forwards , floatImage 4s ease-in-out infinite;
    animation-delay: 2s , 3s;
}


.home-content{
    max-width: 600px;
}

.home-content h1{
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0.7s;
}


.home-content h3 span{
    color: #0ef;
}   

.home-content h3:nth-of-type(2){
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content p{
    font-size: 16px;
    letter-spacing: .7px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.7s;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration:none;
    margin: 30px 15px 30px 0;
    transform: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}


.social-media a:hover{
    background-color: #0ef;
    color:#1f242d;
    box-shadow: 0 0 20px #0ef;
}

.btn{
    display: inline-block;
    padding: 12px 28px;
    background-color: #0ef;
    border-radius: 40px;
    box-shadow: 0 0 10px #0ef;
    font-size: 16px;
    color: #1f242d;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: 2s;
}


/* KEYFRAMES ANIMATION */

@keyframes slideRight {
    0%{
        opacity: 0;
        transform: translateX(-100px);
    }
    100%{
        opacity: 1;
        transform: translateX(0px);
    }
    
}




@keyframes slideTop {
    0%{
        opacity: 0;
        transform: translateY(100px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
    
}





@keyframes slideBottom {
    0%{
        opacity: 0;
        transform: translateY(-100px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
    
}




@keyframes slideLeft {
    0%{
        opacity: 0;
        transform: translateX(100px);
    }
    100%{
        opacity: 1;
        transform: translateX(0px);
    }
    
}




@keyframes zoomIn {
    0%{
        opacity: 0;
        transform: scale(0);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
    
}


@keyframes floatImage {
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-24px);  /* isse move krega aur 0 or 100 pe zero h to again initial position pe aa jayega */
    }
    
    100%{
        transform: translateY(0);
    }
}


/* ================= RESPONSIVE DESIGN ================= */

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    .header {
        padding: 20px 6%;
    }

    .home {
        padding: 100px 6% 40px;
        gap: 35px;
    }

    .home-content {
        max-width: 550px;
    }

    .home-content h1 {
        font-size: 46px;
    }

    .home-content h3 {
        font-size: 27px;
    }

    .home .home-img img {
        width: 260px;
        height: 260px;
        margin-left: 0;
    }

    .navbar a {
        margin-left: 22px;
        font-size: 16px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header {
        padding: 18px 5%;
        flex-wrap: wrap;
        gap: 15px;
        background-color: #1f242d;
    }

    .logo {
        font-size: 23px;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px 18px;
    }

    .navbar a {
        font-size: 15px;
        margin-left: 0;
    }

    .home {
        min-height: 100vh;
        height: auto;
        padding: 150px 7% 60px;
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 35px;
    }

    .home-content {
        max-width: 600px;
    }

    .home-content h1 {
        font-size: 43px;
        margin: 8px 0;
    }

    .home-content h3 {
        font-size: 25px;
    }

    .home-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .home .home-img img {
        width: 230px;
        height: 230px;
        margin: 0;
    }

    .social-media {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-media a {
        margin: 20px 8px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .header {
        justify-content: center;
        padding: 15px 4%;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .navbar {
        width: 100%;
        justify-content: center;
        gap: 10px 16px;
    }

    .navbar a {
        font-size: 13px;
    }

    .home {
        padding: 155px 6% 45px;
        gap: 28px;
    }

    .home .home-img img {
        width: 190px;
        height: 190px;
        border-width: 4px;
    }

    .home-content h3 {
        font-size: 20px;
    }

    .home-content h1 {
        font-size: clamp(30px, 9vw, 38px);
        line-height: 1.2;
        margin: 10px 0;
    }

    .home-content h3:nth-of-type(2) {
        margin-bottom: 18px;
    }

    .home-content p {
        font-size: 14px;
        letter-spacing: 0.3px;
        line-height: 1.7;
    }

    .social-media {
        margin-top: 8px;
    }

    .social-media a {
        width: 38px;
        height: 38px;
        font-size: 19px;
        margin: 15px 6px 22px;
    }

    .btn {
        padding: 11px 24px;
        font-size: 14px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 350px) {
    .navbar {
        gap: 9px 12px;
    }

    .navbar a {
        font-size: 12px;
    }

    .home {
        padding-top: 165px;
    }

    .home .home-img img {
        width: 165px;
        height: 165px;
    }

    .home-content h1 {
        font-size: 29px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Dekho CSS me explain krne wala kuch h nhi bss animations h vo dekh ke samjh aa rha h */


/* Most of the things bss name se hi clear h  */


/* if you want you can take colors in rgb or rgba , # is not compulsary */
