* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #2C3333;
    /* background: #3F4E4F; */
    /* background: #2E4F4F; */
    /* background: #395B64; */
    /* background: #0F3D3E; */
    /* background: #345B63; */
    color: #fff;
}

#header {
    max-width: 100%;
    height: 100vh;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #57C5B6;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* .header-text {
    margin-top: 20%;
    font-size: 30px;
    width: 60%;
} */

/* .header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #57C5B6;
} */

/* ------------------------ about ------------------------ */
#about {
    padding: 40px 0;
    color: #fff;
    max-width: 100%;
}

.row {
    display: flex;
    gap: 80px;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: fit-content;
}

.about-col-1 {
    flex-basis: 30%;
}

.about-col-1 img {
    width: 110%;
}

.about-col-2 {
    flex-basis: 60%;
}

.description {
    font-family: 'Hind', sans-serif;
    font-size: 16px;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: inline;
    transition: 0.7s;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-titles p {
    font-weight: bold;
}

.tab-titles p:hover {
    transition: 0.25s ease-in;
    font-size: 1.25em;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #57C5B6;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li span {
    color: #15ae99;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents li{
    line-height: 35px;
}

#experience a {
    text-decoration: none;
}

.tab-contents.active-tab {
    display: block;
}

.tab-contents.active-tab span {
    font-size: 18px;
    font-weight: bold;
}

/* experiences */
#experiences {
    padding: 30px 0;
}

#experiences .sub-title:hover {
    text-decoration: underline;
    font-size: 50px;
}

@media only screen and (max-width: 370px) {
    #experiences .sub-title:hover {
        font-size: 45px;
    }
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

.services-list div h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'Hind', sans-serif;
    font-weight: bold;
    text-align: center;
}

.services-list li {
    font-family: 'Hind', sans-serif;
}


.services-list div a {
    text-decoration: none;
    columns: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: #57C5B6;
    transform: translateY(-10px);
}


/* portfolio */
#portfolio {
    padding: 50px 0;
    max-width: 100%;
}

#portfolio .sub-title:hover {
    text-decoration: underline;
    font-size: 50px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
    width: 100%;
}

.work {
    width: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.work img {
    max-width: 100%;
    border-radius: 20px;
    display: inline-block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #57C5B6);
    border-radius: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: 0.5s;
}

.layer h3 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Sigmar';
}

.layer p,
b {
    font-family: 'Hind', sans-serif;
}

.layer a {
    margin-top: 20px;
    color: #57C5B6;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #fff;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: #57C5B6;
    border: none;
}


/* contact */

#contact {
    max-width: 100%;
}

.rows {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-left {
    flex-basis: 30%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
    color: #fff
}

.contact-left p i {
    color: #fff;
    margin-right: 25px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    color: #fff;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    /* color: #57C5B6; */
    transform: translateY(-8px);
}

.btn.btn2 {
    display: inline-block;
    background: #57C5B6;
    border: none;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

/* css for smaller screens */
nav .dropbox {
    display: none;
}

@media only screen and (max-width: 900px) {
    nav ul li {
        margin: 9px 9px;
    }

    nav ul li a {
        font-size: 17px;
    }
}

@media only screen and (max-width: 812px) {
    nav ul li {
        margin: 7px 7px;
    }

    nav ul li a {
        font-size: 15px;
    }
}

@media only screen and (max-width: 317px) {
    .contact-left p i {
        margin-right: 3px;
        font-size: 15px;
    }
}

@media only screen and (max-width: 273px) {
    .contact-left p {
        margin-right: 2px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 346px) {

    #header,
    #contact {
        width: 100vh;
        height: 100vh;
    }
}

@media only screen and (max-width: 329px) {
    .work-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .layer a {
        margin-top: 15px;
        font-size: 14px;
        line-height: 40px;
        width: 40px;
        height: 40px;
    }

    .layer p {
        font-size: 12px;
    }

    .layer h3 {
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 306px) {
    .layer a {
        margin-top: 10px;
        font-size: 11px;
        line-height: 28px;
        width: 30px;
        height: 30px;
    }

    .layer p {
        font-size: 10px;
    }

    .layer h3 {
        margin-bottom: 11px;
    }
}

@media only screen and (max-width: 680px) {
    .header-text {
        /* margin-top: 50%; */
        font-size: 30px;
    }

    .header-text h1 {
        font-size: 40px;
    }

    nav .dropbox {
        display: block;
    }

    nav ul {
        background: #228073;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .dropbox {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 60%;
    }

    .about-col-1 {
        height: 50%;
        width: 50%;
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .copyright {
        font-size: 14px;
    }
}

#msg {
    color: #61b752;
    margin-top: -40px;
    display: block;
}

.leetcode {
    height: 40px;
    width: 40px;
    background: url("images/leetcode-white.svg");
}


.contact-details p:hover {
    transition: 0.9s ease-out;
    transform: rotateY(15deg);
    font-size: 1.1em;
    transition: 0.6s ease-out
}


/* ---------------------------- header text --------------------------------------- */

.header-text p {
    text-shadow: 0 0 7px rgba(255, 255, 255, .3), 0 0 3px rgba(255, 255, 255, .3);
    display: flex;
    font-size: 40px;
    text-transform: uppercase;
    font-family: 'Sigmar', cursive;
    /* align-items: center; */
    margin-top: 24%;
    margin-bottom: 10px;
    /* justify-content: center; */
}

.initial {
    color: #e5e5e5;
    font-size: 50px;
    text-transform: uppercase;
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
}

@media only screen and (max-width: 679px) {
    .animation {
        font-size: 30px;
    }
    .header-text p {
        margin-top: 55%;
    }
}
@media only screen and (max-width: 480px) {
    .header-text p {
        margin-top: 75%;
    }
}
@media only screen and (max-width: 420px) {
    .animation {
        font-size: 20px;
    }
}
@media only screen and (max-width: 285px) {
    .animation {
        font-size: 17px;
    }
    .header-text p {
        font-size: 35px;
    }
}
@media only screen and (max-width: 245px) {
    .animation {
        font-size: 15px;
    }
    .header-text p {
        font-size: 30px;
    }
}


.animation {
    height: 50px;
    overflow: hidden;
    font-family: 'Hind', sans-serif;
    font-weight: 400;
    /* margin-left: 1rem; */
}

.first {
    color: #57C5B6;
}

.animation>div>div {
    padding: 0.25rem 0;
    height: 3rem;
    margin-bottom: 2.81rem;
    display: inline-block;
}

.animation div:first-child {
    animation: text-animation 9s infinite;
}

@keyframes text-animation {
    0% {
        margin-top: 0;
    }

    10% {
        margin-top: 0;
    }

    20% {
        margin-top: -5.62rem;
    }

    30% {
        margin-top: -5.62rem;
    }

    40% {
        margin-top: -11.24rem;
    }

    60% {
        margin-top: -11.24rem;
    }

    70% {
        margin-top: -5.62rem;
    }

    80% {
        margin-top: -5.62rem;
    }

    90% {
        margin-top: 0;
    }

    100% {
        margin-top: 0;
    }
}




/* ------------------------------------------- bouncing about text -----------------------------------------*/

.bouncing-text {
    position: relative;
    display: flex;
    font-family: arial black;

    font-size: 60px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

@keyframes bounce {
    0% {
        transform: scale(1, 1) translateY(0);
    }

    20% {
        transform: scale(1.1, .9) translateY(0);
    }

    40% {
        transform: scale(.9, 1.1) translateY(-35px);
    }

    50% {
        transform: scale(1.05, .95) translateY(0);
    }

    58% {
        transform: scale(1, 1) translateY(-7px);
    }

    65% {
        transform: scale(1, 1) translateY(0);
    }

    100% {
        transform: scale(1, 1) translateY(0);
    }
}

.a {
    animation: bounce 2s ease infinite;
}

.b {
    animation: bounce 2s ease infinite .1s;
}

.o {
    animation: bounce 2s ease infinite .2s;
}

.u {
    animation: bounce 2s ease infinite .3s;
}

.t {
    animation: bounce 2s ease infinite .4s;
}

.m {
    animation: bounce 2s ease infinite .5s;
}

.e {
    animation: bounce 2s ease infinite .6s;
}


/* --------------------------------typing effect contact me------------------------------ */

.typeWriter {
    display: block;
}

.typed {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid;
    width: 0;
    animation: typing infinite 4s steps(30, end) forwards, blinking 1s infinite;

    font-size: 60px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

@keyframes typing {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes blinking {
    0% {
        border-right-color: transparent
    }

    50% {
        border-right-color: #15ae99
    }

    100% {
        border-right-color: transparent
    }
}