* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
a {text-decoration: none; color: #f2f2f2;}
body {
    font-family: "Poppins",monospace;
    overflow-x: hidden;
    position: relative;
}
#up {position: fixed; 
    bottom: 10px; 
    right: 10px; 
    z-index: 1; 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}
#up .filter {
    background-color: #9ca3af; 
    border-radius: 50%;
    opacity: .5;
    width: 40px;
    height: 40px;
}
#up:hover {background-color: #fc6736; opacity: 1;}
#container {
    display: flex;
    position: relative;
}
/*  Nav with Ham-Menu */
#menu {
    position: fixed;
    width: 90%;
    height: 50vh;
    top: -50vh;
    left: 5%;
    opacity: 0;
    border-radius: 50px;
    transition: all 0.5s ease-in-out;
    z-index: 1000;
}
#menu .bg {
    width: 100%;
    height: 100%;
    background-color: black;
    border-radius: 50px;
    opacity: .8;
    position: absolute;
}
#menu .menutext {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    position: absolute;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
#menu.active {opacity: 1;top: 120px;}
#nav {
    background-color: #1c1c1c;
    position: fixed;
    right: 5%;
    top: 20px;
    height: 80px;
    width: 90%;
    border-radius: 50px;
    display: none;
    align-items: center;
    z-index: 1000;
}
#nav .pfp {height: 100%; margin-left: 10px;display: flex; align-items: center;justify-content: center;}
#nav .pfp img {
    border: 3px solid #fc6736;
    height: 80%;
    border-radius: 50%;
}
#nav .socials {gap: 10px; flex: 1; padding: 0;}
#ham-menu {
    width: 50px;
    height: 50px;
    margin-left: auto;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
#ham-menu span{
    width: 50px;
    height: 6px;
    background-color: #fc6736;
    border-radius: 30px;
}
/* ==================================================== */
/* Reusables */
.section {
    min-height: 100vh;
}
.section:not(:first-of-type) {padding: 0 42px;}
.textbox {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding-top: 80px;
    box-sizing: content-box;
}
.upper {
    position: absolute;
    z-index: 2;
    font-size: 2.25rem;
    font-weight: 600;
}
.lower {
    position: absolute;
    z-index: 1;
    font-size: calc(2.3rem + 6vw);
    font-weight: 600;
    color: #9ca3af;
    opacity: .1;
}
.line {
    position: relative;
    z-index: 2;
    width: 80px;
    border-bottom: 3px solid #fc6736;
    top: 28px;

}
/* ============================================== */
/* sidebar */
#sidebar {
    background-color: #1c1c1c;
    width: 255px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
#sidebar .pfp {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 50%;
    color: #fc6736;
    font-weight: 600;
    font-size: 21px;
    gap: 10px;
    padding-top: 50px;
}
#sidebar .pfp img {width: 70%; border-radius: 50%; border: #fc6736 7px solid;}
.sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-weight: 500;
}
.sections > a.selected {color: #fc6736;}

.socials {display: flex; justify-content: center; gap: 20px; padding-bottom: 15px;}
.socials > a > i {color: #9ca3af;font-size: 16px;}
.socials a:nth-of-type(1):hover i{color: #1877F2;}
.socials a:nth-of-type(2):hover i{color: #0077B5;}
.socials a:nth-of-type(3):hover i{color: #C6195E;}
.socials a:nth-of-type(4):hover i{color: #000;}
/* ================================================= */
/* sections */
#content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HOME */
#home {
    position: relative;
    z-index: 1;
}
#home .bg {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    background-image: url(./images/cover1.jpg);
    background-size: cover;
    background-position: center;
}
#home .filter {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 3;
    background-color: black;
    opacity: 0.3;
}
#home .hometext {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 10px;
}
#home .hometext p {font-weight: 600;}
#home .hometext h1 {font-size: calc(1.525rem + 3.1vw) !important;}
#home .hometext p:nth-of-type(1) {font-size: 28px;}
#home .hometext p:nth-of-type(2) {font-size: 21px;}

a.btn {
    border: 3px solid #fc6736;
    color: #fc6736;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 40px;
    margin-top: 20px;
}
a.btn:hover {background-color: #fc6736; color: #fff;}
a.navigate {
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 5px; 
    border: 2px solid #fc6736; 
    border-radius: 50%; 
    position: absolute;
    bottom: 15px;
}

/* ABOUT */
#about {
    display: flex;
    flex-direction: column;
    box-sizing: content-box;
}
.about-info {
    flex: 1;
    display: flex;
    margin-top: 48px;
}
.about-me {flex: 2; padding-right:12px; box-sizing: content-box;}
.about-me h2 {font-size: 28px; font-weight: 600; margin-bottom: 16px;}
.about-me p {line-height: 1.8; margin-bottom: 16px; color: #363636; max-inline-size: 75ch;}
.contact-me {flex: 1;margin-top: 12px;}
.contact-me li span {margin-right: 8px; font-weight: 600;}
.contact-me ul {padding-left: 24px; margin-bottom: 32px;}
.contact-me ul li {list-style: none; color: #1c1c1c; padding: 12px 0;}
.contact-me ul li:not(:last-of-type) {border-bottom: 1px solid #eaeaea;}
.contact-me ul li a {color: #fc6736;}
.contact-me .btn {
    background-color: #fd7e14;
    border-color: #fd7e14; 
    color: #fff; 
    transition: all .3s ease-in;
    margin-left: 24px;
    padding: 12px 38px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}
.contact-me .btn:hover {
    background-color: #fc6736; 
    border-color: #fc6736; 
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

#stats {
    display: flex;
    text-align: center;
    margin-top: 48px;
    padding-bottom: 72px;
}
#stats div {flex: 1; padding: 20px 12px;}
#stats div:not(:last-of-type) {border-right: 1px solid #eaeaea;}
#stats div h2 {font-size: calc(1.425rem + 2.1vw); font-weight: 500;color: #9ca3af;}
/* =================================================================================== */
/* What i Do */
#service {
    display: flex;
    flex-direction: column;
}
.cardsC {
    width: 92%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-self: center;
    margin-top: 48px;
    margin: 0 12px;
}
.card {
    width: 48%;
    display: flex;
    margin-bottom: 48px;
}
.icon {
    width: 30px;
    height: 30px;
    padding: 35px;
    color: #fc6736;
    background-color: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center ;
    margin-right: 20px;
}
.card p {
    line-height: 1.8;
    
}
p.service-desc {
    color: #252B33;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 15px;
}
/* =============================================== */
/* resume */
#resume {
    padding: 0 24px;
}
.resumeEduEx {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin-top: 48px;
    
}
#resume h2 {font-weight: 600; margin-bottom: 24px;}
.col {width: 48%;}
/* Resume Cards */
.resCard {
    width: 100% ;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    line-height:1.8;
}

.resCard p:first-child {
    background-color: #fc6736; 
    color: #1c1c1c;
    width: 90px;
    font-size: 14px;
    border-radius: 5px;
    text-align: center;
}
.resCard h3 {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 8px;
}
.resCard :nth-child(3) {color: #fc6736;}
.resCard p:not(:last-child) {margin-bottom: 16px;}
/* skills */
.Skills {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.cell {
    width: 100%;
    margin-bottom: 12px;
    line-height:1.8;
}
.percent {
    display: flex;
    justify-content: space-between;
}
progress {
    width: 100%;
    accent-color: #fc6736;
}
.title1 {margin-top: 12px;}
#resume > a.btn {
    display: block;
    width: fit-content;
    margin: 48px auto;
    color: #6c757d;
    border: 1px solid #6c757d;
    background-color: transparent;
    transition: all .3s ease-in;
}
#resume > a.btn:hover {
    background-color: #6c757d;
    color: white;
}
/* ==================================================== */
/* portfolio */
#portfolio {
    padding-bottom: 72px;
}
.categories {text-align: center; margin-top: 48px;}
.categories a{text-decoration: none; color: #7b8084;padding: 9.6px 16px;}
.categories a:hover{color: #22ba87;}
.categories :first-child {color: #22ba87;border-bottom: #22ba87 2px solid;}

.gallery {
    margin-top: 48px;
    display: flex;
    width: 100%;
}
.gallery .col {
    width: 33%;
    display: flex;
    flex-direction: column;
    gap: 24px;  
}
.gallery img {
    width: 100%;
    padding: 0px 12px;
    border-radius: 15px;
}
/* ===================================== */
/* testimonial */
.comments {
    display: flex;
    justify-content: center;
    margin-top: 70px; 
    margin-bottom: 36px;
    gap: 24px;
}

.comment {
    padding: 48px 50px;
    border-radius: 10px;
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    line-height: 1.8;
    gap: 24px;
}
.userinfo {
    height: 65px;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}
.userprof img{
    float: left;
    border-radius: 50%;
    margin-right: 15px;
}

.borders {
    width: 19px;
    height:19px; 
    margin: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius:50%;
    background-color: #6C757D;
    border-color: white;
    border: 5px solid white;
    outline: 1px solid white;
    transition: all .2s ease-in;
}
.borders:hover {
    outline: 1px solid #fc6736;
    background-color: #fc6736;
}

/* For JS */
div.borders.selected {
    outline: 1px solid #fc6736;
    background-color: #fc6736;
}

div.borders.default {
    outline: 1px solid #fc6736;
    background-color: #fc6736;
}
/* ================================ */
.radios {
    display: flex;
    justify-content: center;
}
.hidden {display: none;}
/* =========================================================== */
/* contact */
#contact {justify-content: flex-start; padding: 0 48px;}
.contacting {
    display: flex;
    margin-top: 48px;
}
.followMe {
    flex: 1;
    line-height: 1.8;
    margin-right: 24px;
    color: #4c4d4d;
}
.followMe h2,#contact h2 {
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 21px;
    color: #1c1c1c;
}
/* social media icons */
#contact .socials {
    justify-content: flex-start;
}
#contact .socials i {font-size: 24px;}
/* form */
.Form {
    flex: 3;
    display: flex;
    flex-direction: column;
}
.inputs{
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.inputs input {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid #fc6736;
    color: #656565;
    border-radius: 6px;
    font-size: 16px;
    font-family: "Poppins";
}
.inputs input:focus {box-shadow: 0 0 3px 1px #fc6736; outline: none;}
textarea {
    min-height: 150px;
    padding: 13px 16px;
    border: 1px solid #fc6736;
    color: #656565;
    border-radius: 6px;
    font-size: 16px;
    font-family: "Poppins";
}
textarea:focus {box-shadow: 0 0 3px 1px #fc6736; outline: none;}
/* Send button */
#contact a.btn {
    margin: 25px auto 0 auto;
    background-color: #fd7e14;
    color: #fff;
    transition: all .3s ease-in-out;
}
#contact a.btn:hover {
    background-color: #fc6736;
}
/* ================================================= */
/* Media Queries */

@media (max-width:1200px) {
    .inputs {flex-direction: column;}
    .inputs input {width: 100%;}
}

@media (max-width:991px) {
    #sidebar {
        display: none;
    }
    #nav {
        display: flex;
    }
    .section:not(:first-of-type) {padding: 100px 0 0 0;}
    .textbox {padding-top: 0;}

    .about-info {flex-direction: column; margin: 0; align-items: center;}
    .about-me {text-align: center; display: flex; flex-direction: column; align-items: center; padding: 0; width: 90%;}
    .contact-me {margin-top: 48px; width: 90%;}
    .contact-me ul{padding-left: 12px;}
    .contact-me .btn {margin-left: 12px;}
    .about-me p {max-inline-size: 92vw;}
}
@media (max-width:769px) {
    #stats {display: grid;grid-template-columns: repeat(2, 1fr);}
    #stats div {padding: 20px 0;}
    #stats > div:nth-of-type(1),#stats :nth-of-type(2) {border-bottom: 1px solid #eaeaea;}
    .cardsC {flex-direction: column;align-items: center;}
    .card {width: 100%; justify-content: center;}
    .resumeEduEx {flex-flow: column wrap;}
    .col {width: 100%;}
    .Skills {flex-flow: column wrap;}
    #portfolio {padding-bottom: 24px;}
    #testimonial {padding: 0 12px;}
    #testimonial .lower {font-size: calc(1.9rem + 6vw);}
    #user1 {width: 80%;}
    #user2 {display:none;}
    .hidden {display: inline;}
    #contact {padding: 0 24px;}
    .contacting {flex-direction: column-reverse; text-align: center; margin-top: 12px;}
    .followMe {margin: 42px 0 0 0;}
    #contact .socials {justify-content: center;}
}