*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    background-image: url("home.png");
    background-size: 200% 200%;
    background-attachment: fixed;
    background-origin: border-box;
    color:white;
    animation: animibg 200s ease infinite;
}
body{
    background: rgb(78, 72, 72,0.1);
}

@keyframes animibg {
    0%{ background-position: 0%; }
    50%{ background-position: 100%; }
    100%{ background-position: 0%; }
}

/* ========== NAV ========== */
.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    position: relative;
}
.bar{
    height: 3px;
    width:100%;
    background-color:white;
    display: block;
}
.title{
    font-size: 20px;
    font-weight: 500;
}
.loom ul{
    display: flex;
    list-style: none;
}
.nav ul li{
    list-style: none;
    padding: 10px;
}
.nav li a{
    padding: 10px 16px;
    text-decoration: none;
    color:white;
    white-space: nowrap;
}
.nav li a:hover{
    color: rgb(8, 130, 236);
    background: rgba(46, 114, 177, 0.2);
    border-radius: 70%;
    transition: all 1s ease-in-out;
    font-size: 15px;
}
.btn2{
    position: absolute;
    top:16px;
    right:16px;
    width:25px;
    height:23px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 100;
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 30px;
    text-align: center;
    gap: 18px;
}
.main{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.name{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
    color:greenyellow;
    animation: typing 14s infinite;
    width: 0ch;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}
@keyframes typing {
    0%{ width:0ch; }
    50%{ width:10ch; }
}
.name:hover{ color:white; }

.logo{
    height: 180px;
    width: 180px;
    object-fit: cover;
    border: 3px solid rgb(255, 124, 205);
    border-radius: 50%;
    transition: all 1s ease-in-out;
    display: block;
    animation-name: rotate;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
}
.logo:hover{
    height: 190px;
    width: 190px;
    border: 3px solid rgb(72, 34, 241);
    border-radius: 50%;
}
.logo:active{
    border: 3px solid rgb(51, 241, 34);
    border-radius: 50%;
}
.logomini{
    display: none;
    border: 3px solid rgb(255, 124, 205);
    border-radius: 50%;
    height: 140px;
    width: 140px;
    object-fit: cover;
}
.about1{
    overflow: hidden;
    width: 90%;
    max-width: 560px;
    line-height: 25px;
    margin-top: 6px;
    text-align: center;
}
.btn{
    color: rgb(8, 130, 236);
    background: rgba(46, 114, 177, 0.2);
    border-radius: 50px;
    padding: 10px 24px;
    margin-top: 10px;
    display: inline-block;
    font-size: 14px;
    border: 1px solid rgba(8,130,236,0.4);
    transition: all 0.4s ease-in-out;
}
.btn:hover{
    font-size: 15px;
    background: rgb(75, 228, 177,0.8);
    color:black;
    transition: all 0.4s ease-in-out;
}

/* ========== SKILLS ========== */
.box{
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-between;
    transition: all 3s ease-in 0s;
    padding: 0 40px;
}
.box .tech{
    width: 100%;
    margin-left: 10px;
    margin-bottom: 10px;
}
.boxs{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-between;
    padding: 0 40px;
    margin-top: 20px;
}
.box1, .box2, .box3, .box4 {
    border: 1px solid whitesmoke;
    border-radius: 10%;
    width: 300px;
    min-height: 250px;
    padding: 15px;
    text-align: justify;
    line-height: 25px;
    margin-top: 30px;
    transition: all 1s ease-in 0s;
}
.box1{
    background: rgb(83,81,81,0.1);
    color: whitesmoke;
    box-shadow: 0 4px 18px 0 rgb(149, 173, 8);
}
.box1:hover{
    background: rgba(73,72,72,0.3);
    width: 310px;
    border: 1px solid rgb(35, 253, 64);
    color: rgb(222, 235, 46);
}
.box2{
    background: rgb(83,81,81,0.1);
    box-shadow: 0 4px 18px 0 rgb(255, 166, 33);
    color: rgb(238, 197, 197);
    transition: all 0.5s ease-in 0s;
}
.box2:hover{
    background: rgba(24,24,24,0.9);
    border: 1px solid rgb(194, 250, 63);
    width: 310px;
    color: rgb(46, 223, 235);
    word-spacing: 1.5px;
}
.box3{
    background: rgb(83,81,81,0.1);
    box-shadow: 0 4px 18px 0 rgb(235, 52, 82);
    transition: all 0.5s ease-in 0s;
    color: rgb(238, 197, 197);
}
.box3:hover{
    background: rgba(73,72,72,0.3);
    border: 1px solid rgb(194, 250, 63);
    color: rgb(46, 223, 235);
    width: 310px;
}
.box4{
    background: rgb(83,81,81,0.1);
    color: whitesmoke;
    box-shadow: 0 4px 18px 0 rgb(52, 146, 235);
    transition: all 0.5s ease-in 0s;
}
.box4:hover{
    background: rgba(22,22,22,0.8);
    border: 1px solid rgb(35, 253, 64);
    color: rgb(222, 235, 46);
    width: 310px;
}

/* ========== SPINNER ========== */
.lbox{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.spinner{
    width: 50px;
    height: 50px;
    border: 5px solid rgb(23, 248, 34);
    border-top: green;
    border-radius: 50%;
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
@keyframes rotate {
    from{ transform: rotate(0deg); }
    to{ transform: rotate(360deg); }
}

/* ========== EDUCATION ========== */
.edu{
    margin-top: 80px;
    margin-left: 60px;
    color: aqua;
}
.cbox{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
    padding: 0 20px 40px;
    gap: 30px;
}
.card, .card2, .card3{
    width: 200px;
    min-height: 250px;
    border-radius: 20px;
    background: rgb(107,106,101,0.1);
    position: relative;
    padding: 1.8rem;
    text-align: center;
    transition: 1s ease-out;
    overflow: visible;
}
.card{ border: 2px solid rgb(255, 126, 66); }
.card2{ border: 2px solid rgb(227, 255, 66); transition: 0.5s ease-out; }
.card3{ border: 2px solid rgb(81, 184, 243); }

.c1, .c2{
    color: black;
    height: 100%;
    gap: 0.5em;
    display: grid;
    place-content: center;
}
.c1button, .c2button{
    transform: translate(-50%,125%);
    width: 30%;
    border-radius: 1rem;
    background-color: rgb(66, 243, 134);
    color: rgb(0,0,0);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
}
.c2button{ transition: 1s ease-out; text-align: center; }

.c1body{ color: rgb(255, 120, 66); }
.card:hover .c1body{ color: rgb(67, 230, 115); }
.c1title{ color: rgb(255, 108, 64); font-size: 1.5em; font-weight: bold; }
.card:hover .c1title{ color: green; }
.card:hover{
    border-color: rgb(28, 255, 130);
    box-shadow: 0 4px 18px 0 rgb(90, 87, 236);
    background: rgb(54,52,52,0.7);
}
.card:hover .c1button{ transform: translate(-50%,50%); text-align: center; opacity: 1; }

.c2body{ color: rgb(227, 255, 66); }
.card2:hover .c2body{ color: rgb(67, 230, 115); }
.c2title{ color: rgb(227, 255, 66); font-size: 1.5em; font-weight: bold; }
.card2:hover .c2title{ color: green; }
.card2:hover{
    border-color: rgb(28, 255, 130);
    background: rgb(54,52,52,0.7);
    box-shadow: 0 4px 18px 0 rgb(248, 135, 69);
}
.card2:hover .c2button{ transform: translate(-50%,50%); text-align: center; opacity: 1; }

.c3body{ color: rgb(66, 201, 255); }
.card3:hover .c3body{ color: rgb(67, 230, 115); }
.c3title{ color: skyblue; }
.card3:hover .c3title{ color: rgb(80, 230, 80); }
.card3:hover{
    border-color: rgb(28, 255, 130);
    background: rgb(54,52,52,0.7);
    box-shadow: 0 4px 18px 0 rgb(214, 236, 87);
}
.card3:hover .c1button{ transform: translate(-50%,50%); text-align: center; opacity: 1; }

/* ========== PROJECTS ========== */
.probox{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 40px 40px 80px;
    margin-top: 40px;
}
.proboxcon{
    position: relative;
    height: 380px;
    width: 320px;
    flex-shrink: 0;
}
.pbbox, .pfbox{
    position: absolute;
    top: 0; left: 0;
    height: 380px;
    width: 320px;
    padding: 28px 24px;
    transition: all 1s ease-in-out;
}
.proboxcon:hover .pbbox{ opacity: 0; }
.proboxcon:hover .pfbox{ opacity: 1; }
.pbbox{
    background-color: rgba(129, 252, 72, 0.1);
    border-radius: 30px;
    color: aliceblue;
    display: flex;
    padding-top: 60px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 16px 18px 0 rgb(194, 247, 49);
}
.pfbox{
    opacity: 0;
    line-height: 25px;
    text-align: justify;
    background-color: rgba(132, 136, 135, 0.4);
    color: chartreuse;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 16px 18px 0 orangered;
    overflow-y: auto;
}
.pbbox ul li{
    list-style: none;
    padding: 10px 10px 10px 20px;
}

/* ========== HOBBIES ========== */
.hobbies{
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}
.hbox{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: aquamarine;
    letter-spacing: 2px;
}
.lists{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    height: auto;
}
.photoshop, .photo, .chess{
    padding: 15px;
    min-height: 160px;
    width: 280px;
    line-height: 25px;
    transition: all 1s ease-in-out;
}
.photoshop{ border: 2px solid rgb(39, 255, 75); }
.photo{ border: 2px solid rgb(252, 23, 233); }
.chess{ border: 2px solid rgb(64, 217, 255); }
.photoshop:hover{
    padding: 18px;
    background-color: rgb(107,99,99,0.2);
    border: 2px solid rgb(255,255,255);
    color: yellow;
}
.photo:hover{
    padding: 18px;
    border: 2px solid rgb(139, 167, 148);
    color: yellow;
    background-color: rgb(107,99,99,0.2);
}
.chess:hover{
    padding: 18px;
    background-color: rgb(107,99,99,0.2);
    border: 2px solid rgb(0, 255, 213);
    color: yellow;
}

/* ========== CONTACT FORM ========== */
.form3{
    display: flex;
    flex-wrap: wrap;
    margin-top: 80px;
    justify-content: space-around;
    padding: 0 40px 80px;
    gap: 40px;
}
.follow{
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 16px;
}
.follow a{
    border: 1px solid pink;
    border-radius: 50px;
    padding: 15px 18px;
    text-align: center;
    transition: all 1s ease-in-out;
    display: block;
}
.follow a:hover{ padding: 18px 20px; }
a{
    text-decoration: none;
    color: rgb(255, 0, 242);
}
.form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.email{
    padding: 15px;
    width: 300px;
    border-radius: 10px;
    background: transparent;
    outline: none;
    border: none;
    margin: 20px 0;
    color: rgb(91, 195, 236);
    transition: all 1s ease-in-out;
    box-shadow: 0 8px 12px 0px rebeccapurple;
}
.email:focus{
    border: 1px solid rgb(0, 225, 255);
    padding: 20px;
}
.feedback{
    padding: 15px;
    width: 300px;
    transition: all 1s ease-in-out;
    border-radius: 10px;
    background: transparent;
    outline: none;
    height: 100px;
    border: none;
    margin: 20px 0;
    color: rgb(91, 195, 236);
    box-shadow: 0 8px 12px 0px rebeccapurple;
}
.feedback:focus{
    border: 1px solid rgb(0, 225, 255);
    padding: 20px;
}
input::placeholder{ color: rgb(214, 122, 214, 1.5); }
.btn5{
    padding: 15px;
    background: transparent;
    color: rgb(200, 255, 47);
    margin-top: 20px;
    border-radius: 30px;
    transition: all 1s ease-in-out;
    cursor: pointer;
}
.btn5:hover{
    padding: 20px;
    border: 1px solid rgb(0, 225, 255);
}
p:hover{ color: aquamarine; }
a:hover{ color: aqua; }
a:link{ font-style: none; }
a:active{
    color: aquamarine;
    background: rgb(240, 149, 149, 0.5);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-right: 50px;
    }
    .btn2 { display: flex; }
    .loom {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    .loom.active { display: flex; }
    .loom ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    .loom ul li {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 6px 0;
    }
    .nav li a { padding: 12px 10px; }

    /* Hero */
    .hero-section {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px 10px;
        gap: 16px;
    }
    .logo { display: none; }
    .logomini {
        display: block;
        margin: 0 auto;
        order: -1;
    }
    .main {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .name {
        font-size: 32px;
        animation: none;
        width: auto;
    }
    .about1 {
        width: 95%;
        margin-left: 0;
        text-align: center;
        max-width: 100%;
    }
    .btn { margin-left: 0; }

    /* Skills */
    .box, .boxs {
        padding: 0 16px;
        flex-direction: column;
        align-items: center;
    }
    .box1, .box2, .box3, .box4 {
        width: 100%;
        max-width: 380px;
    }
    .box1:hover, .box2:hover, .box3:hover, .box4:hover { width: 100%; }

    /* Education */
    .edu { margin-left: 20px; }
    .cbox {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .card, .card2, .card3 {
        width: 80%;
        max-width: 300px;
    }

    /* Projects */
    .probox {
        flex-direction: column;
        align-items: center;
        padding: 20px 16px 40px;
        gap: 30px;
    }
    .proboxcon { width: 90%; max-width: 360px; height: 420px; }
    .pbbox, .pfbox { width: 100%; height: 420px; }

    /* Hobbies */
    .hobbies { margin-top: 40px; }
    .lists {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .photoshop, .photo, .chess {
        width: 90%;
        max-width: 380px;
        min-height: auto;
        margin-top: 0;
    }

    /* Contact */
    .form3 {
        flex-direction: column;
        padding: 0 20px 60px;
        align-items: center;
        margin-top: 40px;
    }
    .follow {
        margin-left: 0;
        width: 100%;
        max-width: 340px;
    }
    .form { width: 100%; }
    .email, .feedback { width: 90%; max-width: 340px; }
}

@media (max-width: 400px) {
    .name { font-size: 26px; }
    .logomini { height: 110px; width: 110px; }
}