
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

a{
    cursor: pointer;
    text-decoration: none;
}
li{
    list-style: none;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.section-p1{
    padding: 40px 80px;
}

body{   
    background-color: #1b1a1a;
    color: white;
    font-family: "Google Sans Code", monospace;
    overflow-x: hidden;
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; 
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #1b1a1a;
}
.navbar a{
    color: white;
    font-weight: 500;
    position: relative;
    transition: 0.3s linear;
    /* opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); */
}
.navbar .fa-close{
    display: none;
}
.list li{
    font-size: 20px;
}
.navbar .list{
    display: flex;
    gap:10px 40px;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
}
.navbar a::before,
.navbar a.active::before{
    content: "";
    position: absolute;
    width: 0%;
    height: 4px;
    background-color: #2d77ff;
    left: 0;
    bottom: -6px;
    border-radius: 80px;
    transition: 0.2s linear;
}
.navbar a:hover::before,
.navbar a.active::before{
    width: 100%;
}
.navbar a:is(:hover, :focus),
.navbar a.active{
    color: #ff5959;
    transform: scale(0.95);
}

.header .logo{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
}
.logo .fa-2x{
    color: #2d77ff;
    animation: logorotate 3s linear alternate-reverse infinite;
}
.logo a{
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #2d77ff;
  transition: 0.3s ease;
 /* opacity: 0;
animation: slideTop 1s ease forwards; */
}
.logo a:hover{
    transform: scale(0.95);
    color: #ff5959;
}
@keyframes logorotate {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}


#home{
     width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    position: relative;
    padding: 40px 80px;
}
.home-text{
    flex: 1;
}
.home-text p{
    font-size: 1.2rem;
    line-height: 1.2;
    opacity: 0;
    animation: slideLeft 3s ease forwards;
}
.home-text h3{
    color: #ff5959;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
     opacity: 0;
    animation: slideTop 3s ease forwards;
}
.home-text h1{
    font-size: 4rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1;
     opacity: 0;
    animation: slideLeft 3s ease forwards;
}

.home-text .information{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}

.btn-cv{
    padding: 15px 30px;
    color: #ff5959;
    font-size: 20px;
    background-color: transparent;
    border: 2px solid #ff5959;
    transition: 0.3s linear;
    outline: none;
    cursor: pointer;
    border-radius: 10px;
       opacity: 0;
    animation: slideBottom 3s ease forwards;
}
.btn-cv:is(:hover, :focus){
    transform: scale(0.95);
    background-color: #ff5959;
    color: #6e0202;
    box-shadow: 0 0px 30px rgba(236, 31, 66, 0.5);
}
.social-media ul{
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: slideBottom 3s ease forwards;
}
.social-media ul i{
    color: #2d77ff;
    font-size: 24px;
    background-color: transparent;
    border: 3px solid #2d77ff;
    padding: 10px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    outline: none;
    transition: .3s linear;
    /* opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); */
}
.social-media ul i:hover{  
    box-shadow: 0 0 25px rgba(251, 2, 43, 0.8);
    transform: scale(1.01) translateY(-5px);
    background-color: #ff5959;
    color: white;
}
#home .card-container{
    flex: 1;
}
.card-container.card-1{
    display: none;
}
#home .card{
    width: 420px;
    height: 420px;
    border-radius:300px 100px 500px 200px;
    box-shadow: 0 3px 20px aqua;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    position: relative;
    overflow: hidden;
}
.card .card-img{
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 10px; 
    overflow: hidden;
    transition: 0.3s ease;
    height: 350px;
    width: 300px;
}
.card img{
    width: 100%;
    /* border-radius: 50%; */
        border-radius:300px 100px 500px 200px;
    object-fit: cover;
    background:transparent;
    /* border: 1px solid white; */
}
.card-img:hover{
    transform: scale(1.03);
    cursor: zoom-in;
}
.card::before{
    content: "";
    position: absolute;
    width: 380px;
    height: 140%;
    background: linear-gradient(180deg, rgb(255, 8, 49) , rgb(0, 221, 255));
    animation: rotate 2s alternate infinite ;
}
.card::after{
    content: "";
    position: absolute;
    inset: 5px;
    background-color: #1b1a1a;
    border-radius:300px 100px 500px 200px;
}
@keyframes rotate {
    from{
        transform: rotate(0deg) ;
    }
    to{
        transform: rotate(360deg);
    }
}
.home-text h2{
    font-size: 2.6rem;
    letter-spacing: 1;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideRight 3s ease forwards;
    position: relative;
}
.typing-text{
    font-weight: 600px;
}
.typing-text span{
    position: relative;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.typing-text span::before{
    content: "Web Developer ";
    color: #2d77ff;
    animation: name 20s infinite;
    position: relative;
}
.typing-text span::after{
    content: "";
    position: relative;
    width: calc(100% + 8px);
    height: 100%;
    background-color: transparent;
    border-left: 5px solid black;
    right: -8;
    animation: cursor 0.6s infinite ;
}
@keyframes cursor {
    to{
        border-left: 5px solid #2d77ff;
    }
}
@keyframes name {
    0%{
            content: "Frontend Developer ";
    }
    20%{
            content: "FullStack Developer ";
    }
    40%{
            content: "UX/UI Designer";
    }
    60%{
            content: "Graphic Designer";
    }
    80%{
            content: "Software Developer ";
    }
    0%{
            content: "Web Developer";
    }
}

@keyframes slideRight {
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes slideTop {
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
        
    }
}
@keyframes slideLeft {
    0%{
        transform: translateX(200px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
        
    }
}
@keyframes slideBottom {
    0%{
        transform: translateY(200px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
        
    }
}

.home-infor{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.home-infor h1{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 4rem;
}
.home-infor span{
    font-size: 1rem;
}
.hr hr{
   width: 100%;
   margin: 20px 80px 20px 80px;
}
.my-infor{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    line-height: 1;
}
.my-infor p{
    margin-top: 20px;
}
.my-infor span, h3{
    color: #2d77ff;
    margin-bottom: 20px;
}
.my-infor p a{
    color: white;
}
.my-infor p a:is(:hover, :active){
    text-decoration: underline;
    color: #2d77ff;
    transition: 0.3s;
}
#footer{
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 80px;
    gap: 20px;
}
#footer span{
    color: #2d77ff;
    margin-left: 5px;
}

.mobile{
    background-color: #2d77ff;
    padding: 5px;
    font-size: 20px;
    border-radius: 10px 0 10px 0;
    cursor: pointer;
    display: none;
}
.mobile:hover{
    background-color: #6496f4;
}

@media (max-width:989px) {
    .header{
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 0;
        padding: 20px 0;
    }
    .header .logo{
       right: 0;
    }
    .mobile{
        display: block;
        z-index: 1;
        position: absolute;
        left: 20px;
        top: 20px;
        transition: 2s top ease;
    }
    .navbar{
        width: 100%;
        position: relative;
        display: none;
        justify-content:flex-start;
        top: -500px;
        box-shadow: 10px 10px 30px rgba(8, 8, 8, 0.5);
        background-color: transparent;
        transition: 2s linear;
        margin: 0;
        padding: 20px 40px;
    }
    .list li {
        font-size: 16px;
    }
    .navbar .fa-close{
        display: block;
        position: absolute;
        top: 0;
        right: 0px;
        font-size: 20px;
        background-color: #2d77ff;
        padding: 5px;
        cursor: pointer;
        transition: 2s ease;
    }
    .navbar .fa-close:is(:hover, :focus){
        background-color: #6496f4;
    }
    .navbar .list{
        display: flex;
        flex-direction: column;
        gap: 20px;
        opacity: 0;
        animation: slideRight 0.5s ease forwards;
    }
    .navbar.active{
        display: block;
        top: 0px;
    }
    .navbar a{
    color: white;
    font-weight: 500;
    position: relative;
    transition: 0.3s linear;
    /* opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); */
}

#home{
    display: flex;
}
.card-container.card-1{
    display: flex;
    padding: 40px 80px;
}
.card-container{
    display: none;
}
#home .card{
    width: 320px;
    height: 320px;
}
.card .card-img{
    height: 320px;
    width: 250px;
}
.card::before{
    width: 320px;
    height: 120%;
}

#home{
    justify-content: center;
}
.home-text{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.home-text p{
    font-size: 1rem;
    line-height: 1.2;
}
.home-text h3{
    font-size: 2rem;

}
.home-text h1{
    font-size: 3rem;
}

.btn-cv{
    font-size: 16px;
}

.social-media ul i{
    font-size: 24px;
}


#footer{
    font-size: 14px;
}
}