/*  import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(246, 248, 226, 0.91);
    /* Set the background color of the loader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Make sure the loader stays on top of other elements */
}

/* #loader::after {
    content: 'Please wait while loading...';
    padding: 0 15px;
    font-size: 20px;
} */

.loader-icon {
    background: #fff url(/images/loader_gif.gif) no-repeat center center;
    background-size: 30%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* custom scroll bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* all similar content styling codes */
section {
    padding: 250px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.about,
footer {
    font-family: 'Poppins', sans-serif;
}

.about .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

section .title::before {
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}

section .title::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: crimson;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* navbar styling */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
    background: #9ccd62;
}

.navbar.sticky {
    padding: 15px 0;
    background: #9ccd62;
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: #f6f8e2;
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo .avatar {
    vertical-align: middle;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    mix-blend-mode: darken;
}

.navbar .logo a span {
    color: #3c3d42;
    transition: all 0.3s ease;
}

.navbar.sticky .logo a span {
    color: #3c3d42;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    color: #f6f8e2;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: #3c3d42;
}

.navbar.sticky .menu li a:hover {
    color: #fff;
}

/* menu btn styling */
.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

.navbar .media-icons a {
    color: crimson;
    font-size: 18px;
    margin: 0 6px;
}

nav.sticky .media-icons a {
    color: #FFF;
}

.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: #9ccd62;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #3c3d42;
    z-index: 9999;
    font-size: 30px;
    border-radius: 6px;
    border-bottom-width: 2px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.scroll-up-btn:hover {
    filter: brightness(90%);
}

/* about section styling */

.about {
    background-color: #f6f8e2;
}

.about .title::after {
    background: #f6f8e2;
    content: "who i am";
    color: #9ccd62;
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 14px;
    -webkit-box-shadow: 10px 10px 32px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 10px 32px -7px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 10px 32px -7px rgba(0, 0, 0, 0.75);
}

.about .about-content .right {
    width: 55%;
}

.about .about-content .right .text {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right .text span {
    color: crimson;
}

.about .about-content .right p {
    text-align: justify;
}

/* .about .about-content .right a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
} */

.about .about-content .right a:hover {
    color: crimson;
    background: none;
}

/* footer section styling */
footer {
    background: #111;
    padding: 15px 23px;
    color: #fff;
    text-align: center;
}

footer span a {
    color: #9ccd62;
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

/* responsive media query start */
@media (max-width: 1104px) {
    .about .about-content .left img {
        height: 350px;
        width: 350px;
    }

    /* Style the dropdown menu */

    nav ul ul {
        display: none;
        position: absolute;
        top: 60px;
        padding: 10px;
        justify-content: space-around;
        align-items: center;
        /* the height of the main nav */
    }

    /* Display Dropdowns on Hover */
    nav ul li:hover>ul {
        display: flex;
        flex-wrap: wrap;
    }

    /* Fisrt Tier Dropdown */
    nav ul ul li {
        width: 160px;
        float: none;
        /* display: flex; */
        position: relative;
        background-color: #000000;
    }

    /* Second, Third and more Tiers	*/
    nav ul ul ul li {
        position: relative;
        top: -60px;
        left: 170px;
    }
}

@media (max-width: 991px) {
    .max-width {
        padding: 0 50px;
    }

    /* Style the dropdown menu */

    nav ul ul {
        display: none;
        position: absolute;
        top: 60px;
        padding: 10px;
        justify-content: space-around;
        align-items: center;
        /* the height of the main nav */
    }

    /* Display Dropdowns on Hover */
    nav ul li:hover>ul {
        display: flex;
        flex-wrap: wrap;
    }

    /* Fisrt Tier Dropdown */
    nav ul ul li {
        width: 160px;
        float: none;
        /* display: flex; */
        position: relative;
        background-color: #000000;
    }

    /* Second, Third and more Tiers	*/
    nav ul ul ul li {
        position: relative;
        top: -60px;
        left: 170px;
    }
}

@media (max-width: 947px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active:before {
        content: "\f00d";
    }

    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .navbar .menu.active {
        left: 0;
    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    .home .home-content .text-2 {
        font-size: 70px;
    }

    .home .home-content .text-3 {
        font-size: 35px;
    }

    .home .home-content a {
        font-size: 23px;
        padding: 10px 30px;
    }

    .max-width {
        max-width: 930px;
    }

    .about .about-content .column {
        width: 100%;
    }

    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about-content .right {
        flex: 100%;
    }

    .services .serv-content .card {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }

    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }

    /* Style the dropdown menu */

    nav ul ul {
        display: none;
        position: absolute;
        top: 14ch;
        left: 30ch;
        padding: 10px;
        font-size: 16px;
        justify-content: space-around;
        align-items: center;
        /* the height of the main nav */
    }

    /* Display Dropdowns on Hover */
    nav ul li:hover>ul {
        display: flex;
        flex-wrap: wrap;
    }

    /* Fisrt Tier Dropdown */
    nav ul ul li {
        width: 160px;
        float: none;
        /* display: flex; */
        position: relative;
        background-color: #000000;
    }

    /* Second, Third and more Tiers	*/
    nav ul ul ul li {
        position: relative;
        top: -60px;
        left: 170px;
    }
}

@media (max-width: 768px) {

    .max-width {
        padding: 0 23px;
    }

    input {
        width: 13.7rem;
    }
}

@media (max-width: 320px) {

    .max-width {
        padding: 0 23px;
    }

    input {
        width: 13.7rem;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 50px;
    }

    .home .home-content .text-3 {
        font-size: 27px;
    }

    .about .about-content .right .text,
    .skills .skills-content .left .text {
        font-size: 19px;
    }

    .contact .right form .fields {
        flex-direction: column;
    }

    .contact .right form .name,
    .contact .right form .email {
        margin: 0;
    }

    .right form .error-box {
        width: 150px;
    }

    .scroll-up-btn {
        right: 15px;
        bottom: 15px;
        height: 38px;
        width: 35px;
        font-size: 23px;
        line-height: 38px;
    }
}