* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--font-color);
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    font-display: swap;
}

/*=============== VARIABLES CSS ===============*/
:root {
    --font-color: #0f0f0f;
    /* --bg-secondary: snow;
    --bg-secondary-hover: rgb(216, 216, 216); */
    --bg-secondary: #f4f4f4;
    --bg-secondary-hover: #d7d7d7;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --gradient-color: linear-gradient(90deg, var(--bg-secondary), var(--bg-secondary-hover), var(--bg-secondary));
    /* --gradient-color: var(--bg-secondary-hover); */
    --black-color: hsl(225, 15%, 6%);
    --reflection-color: hsla(0, 0%, 100%, 0.3);
}

[data-theme="dark"] {
    --font-color: #fefefe;
    /* --bg-secondary: #32004b;
    --bg-secondary-hover: #aa00ff; */
    --bg-secondary: #0d0d0d;
    --bg-secondary-hover: #444444;

    #skills .card img {
        filter: invert(1);
    }

    .button img {
        filter: invert(1);
    }

    
}

::selection {
    color: var(--bg-secondary-hover);
    background: var(--font-color);
}

.switch {
    height: 100px;
    position: fixed;
    right: .5rem;
    top: .98rem;
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--bg-secondary-hover);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "🌞";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

input:checked+.slider:before {
    background-color: var(--bg-secondary);
    content: "🌙";
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.headings {
    font-family: "Rowdies", sans-serif;
    font-weight: 400;
    margin: 0;
}

#preloader {
    background: snow;
    background-size: 30%;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Utility classes */

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Baloo 2", sans-serif;
    font-weight: 400;
    background: var(--bg-secondary);
    color: var(--font-color);
}

/* Navbar CSS Starts */

nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: start;
    align-items: center;
    padding: .3rem 0rem;
    background: var(--bg-secondary);
    list-style: none;
    transition: all 0.3s ease-in-out;
    border-bottom: 2px solid var(--font-color);
}

.navbar li {
    margin: 0 2rem;
}

.navbar li a {
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.2s ease-in-out;
    color: var(--font-color);
    opacity: .6;
    font-family: "Rowdies", sans-serif;
    font-weight: 700;
}

.navbar li .nav-active {
    opacity: 1;
    text-shadow: .1rem .1rem 20px var(--font-color);
    color: var(--font-color);
}

.navbar li a:hover {
    opacity: 1;
    color: var(--font-color);
}

.hamburger {
    position: fixed;
    top: .1rem;
    left: .3rem;
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--font-color);
    z-index: 1000;
    font-weight: bold;
}

/* Navbar CSS Ends */



/* home section css starts */

#home {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5.2rem;
    width: 100%;
}

#home .container img {
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

#home .container #main-img {
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: floatAnimation 2s ease-in-out infinite;
    border: 2px solid var(--font-color);
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

#home .container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}


#home .container p {
    font-size: 1.5rem;
}

#home .container h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

#home .container h2 a {
    font-size: 1.7rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

#scrollToTopBtn {
    position: fixed;
    bottom: .1rem;
    right: .3rem;
    z-index: 1000;
    background: var(--bg-secondary);
    color: var(--font-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 10px;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
    border: 2px solid var(--font-color);
    opacity: 0;
    transform: translateY(30rem);
}

#scrollToTopBtn:hover {
    background: var(--bg-secondary-hover);
}

/* Add this CSS for the animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(1rem);
    }

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




/*=============== BUTTON ===============*/
.btn-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

.button {
    position: relative;
    transition: transform .4s;
    width: 20%;
    font-size: 1.3rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.button__content {
    position: relative;
    background: var(--gradient-color);
    padding: 1.25rem 3rem;
    border-radius: 4rem;
    border: 2px solid var(--font-color);
    color: var(--font-color);
    display: flex;
    align-items: center;
    column-gap: .5rem;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.button__text {
    font-weight: 700;
}

.button__icon {
    font-size: 1.5rem;
}

.button__text,
.button__icon {
    position: relative;
    z-index: 2;
}

/* Reflection shapes */
.button__reflection-1,
.button__reflection-2 {
    width: 8px;
    height: 120px;
    rotate: 30deg;
    background-color: var(--reflection-color);
    position: absolute;
    inset: 0;
    top: 0;
    left: -180%;
    margin: auto;
    transition: left .6s cubic-bezier(.2, .5, .2, 1.2);
}

.button__reflection-1::after {
    content: "";
    width: 26px;
    height: 100%;
    background-color: var(--reflection-color);
    position: absolute;
    top: -1rem;
    left: 1.25rem;
}

.button__reflection-2::after {
    content: "";
    width: 40px;
    height: 100%;
    background-color: var(--reflection-color);
    position: absolute;
    top: -1rem;
    left: .8rem;
}

/* Moving geometric shapes */
.button img {
    position: absolute;
    opacity: 0;
    transition: transform .5s, opacity .5s;
}

.button__star-1 {
    top: -14px;
    left: -16px;
    transform: rotate(48deg) scale(.1);
}

.button__star-2 {
    right: -10px;
    top: -4px;
    transform: rotate(-48deg) scale(.1);
}

.button__circle-1 {
    top: -8px;
    left: 58px;
    transform: scale(.1);
}

.button__circle-2 {
    right: 34px;
    bottom: -8px;
    transform: scale(.1);
}

.button__diamond {
    top: -18px;
    right: 62px;
    transform: scale(.1);
}

.button__triangle {
    left: 15px;
    bottom: -16px;
    transform: rotate(-48deg) scale(.1);
}

/* Gradient shadow */
.button__shadow {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient-color);
    padding: 1.25rem 3rem;
    border-radius: 4rem;
    border: 2px solid var(--font-color);
    z-index: -1;
    transition: transform .3s;
}

/* View shadow gradient */
.button:hover .button__shadow {
    transform: translate(-.5rem, .5rem);
}

/* Move reflection */
.button:hover .button__reflection-1 {
    left: 120%;
}

.button:hover .button__reflection-2 {
    left: -70%;
}

/* View geometric shapes */
.button:hover {
    transform: rotate(-4deg) scale(1.1);
}

.button:hover img {
    opacity: 1;
}

.button:hover .button__star-1 {
    transform: scale(1.1);
    transition-delay: .1s;
}

.button:hover .button__star-2 {
    transform: scale(1.1);
}

.button:hover .button__circle-1 {
    transform: translateY(-8px) scale(1.1);
    transition-delay: .1s;
}

.button:hover .button__circle-2 {
    transform: translate(-20px, 20px) scale(1.1);
}

.button:hover .button__diamond {
    transform: translateY(7px) rotate(-24deg) scale(1.1);
}

.button:hover .button__triangle {
    transform: rotate(-12deg) scale(1.1);
}

@media screen and (max-width: 768px) {
    .btn-container {
        flex-direction: column;
    }

    .button {
        margin: 1rem 0;
    }
}

/* home section css ends */

/* about section css starts */
#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#about .container {
    margin-top: 5rem;
}

.container h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

#about .container p {
    font-size: 1.5rem;
    padding: 0 5rem;
    text-align: justify;
    line-height: 1.8rem;
}

/* about section css ends */

/* skills section css starts */
#skills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#skills .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

#skills h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

#skills .box {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    margin: .1rem 0;
    margin-bottom: 2rem;
}

#skills .container .card {
    background: var(--bg-secondary);
    border-radius: 81% 16% 84% 19% / 17% 83% 15% 85%;
    transition: all ease-in-out 0.3s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 180px;
    width: 12%;
    border: 2px solid var(--font-color);
}

#skills .container .card h4 {
    display: none;
    color: var(--font-color);
    font-size: .9rem;
    text-align: center;
    margin: 0;
    font-family: "baloo 2", sans-serif;
    font-weight: bold;
}

#skills .container .card i,
#skills .container .card img {
    font-size: 6rem;
    padding: 0;
    margin: 1rem;
    transition: transform ease-in-out 1s;
}

#skills .container .card:hover {
    background: var(--bg-secondary-hover);
    border-radius: 17% 83% 15% 85% / 81% 16% 84% 19%;
    box-shadow: 0px 0px 10px 1px var(--font-color);

    h4 {
        display: block;
    }

    i {
        transform: rotateY(360deg) scale(1.05);
    }

    img {
        transform: rotateY(360deg) scale(1.05);
    }
}

#skills ul {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    font-size: 1.3rem;
    /* font-weight: bold; */
}

/* Style the tab */
.tab {
    overflow: hidden;
    background-color: var(--bg-secondary);
    margin: 1rem 0;
    border: 2px solid var(--font-color);
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 1.1rem;
    opacity: .7;
    font-family: "Baloo 2", sans-serif;
    font-weight: bold;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: var(--bg-secondary-hover);
    animation: glow 1.5s linear infinite;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: var(--bg-secondary-hover);
    opacity: 1;
}

/* Style the tab content */
.tabcontent {
    width: 100%;
    display: none;
    padding: 6px 12px;
    border-top: none;
}

.tabcontent {
    animation: fadeEffect 1s;
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#skills .container img {
    padding: 1.8rem;
}

/* skills section css ends */

/* projects section css starts */

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#projects .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

#projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

#projects .card {
    display: flex;
    width: 90%;
    max-height: 400px;
    flex-direction: row;
    margin: 1rem 10rem;
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
    background: var(--bg-secondary);
    /* border: 2px solid var(--font-color); */
    overflow: scroll;
    box-shadow: 0px 0px 10px 1px var(--font-color);
}

#projects .card .pic {
    overflow: hidden;
    width: 39%;
    cursor: pointer;
}

#projects .card img {
    border-radius: 0px;
    padding: 0;
    margin: 0;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    transition: all ease-in-out 0.5s;
    overflow: hidden;
}

#projects .card img:hover {
    transform: scale(1.2);
}

#projects .card .desc {
    width: 70%;
    margin: .5rem 1rem;
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#projects .card .desc h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

#projects .card .desc p {
    text-align: justify;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#projects .card .desc h2 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

#projects .card .desc a {
    width: 25%;
    text-align: center;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--font-color);
    font-weight: bold;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary-hover);
    border: 2px solid var(--font-color);
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

#projects .card .desc a:hover {
    color: var(--font-color);
    background: var(--bg-secondary);
    border: 2px solid var(--font-color);
    box-shadow: 0px 0px 10px 1px var(--font-color);
}

/* projects section css ends */

/* education section css starts */

#education .container {
    position: relative;
    max-width: 100%;
    margin: 100px auto;
    margin-bottom: 5rem;
    top: 5rem;
}

#education .card {
    padding: 10px 50px;
    position: relative;
    width: 50%;
}

#education .textbox {
    box-shadow: 0px 0px 10px 1px var(--font-color);
    padding: 20px 10px;
    position: relative;
    background: var(--bg-secondary-hover);
    border-radius: 6px;
}

#education h3 {
    font-size: 1.4rem;
    margin-bottom: .5rem;
}

#education small {
    font-size: 1.1rem;
}

#education p {
    font-size: 1.2rem;
    font-weight: bold;
}

#education .left-card {
    left: 0;
}

#education .right-card {
    left: 50%;
}

#education .container img {
    position: absolute;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
    background: var(--bg-secondary-hover);
}

#education .right-card img {
    left: -20px;
}

#education .container::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 90%;
    background: var(--bg-secondary-hover);
    top: 70px;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    box-shadow: 0px 0px 10px 1px var(--font-color);
}

.left-card-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--bg-secondary-hover);
    right: -15px;
    filter: drop-shadow(0 0 0.5rem var(--font-color));
}

.right-card-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--bg-secondary-hover);
    left: -15px;
}

/* education section css ends */

/* certification section css starts */

#certification {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#certification .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

#certification h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

#certification .box {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    margin: .1rem 0;
}

#certification .box a {
    color: var(--font-color);
    text-decoration: none;
}

#certification .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    margin: 1rem;
    border-radius: 20px;
    transition: all ease-in-out 0.3s;
    cursor: zoom-in;
    overflow: hidden;
    /* border: 2px solid var(--font-color); */
    box-shadow: 0px 0px 10px 1px var(--font-color);
}

#certification .card:hover {
    transform: scale(1.03);
    background: var(--bg-secondary-hover);
}

#certification .card img {
    margin: 1rem;
}

#certification .card h3 {
    margin: .1rem;
}

#certification .card p {
    margin: .2rem;
}

/* certification section css ends */

/* contact section css starts */

#contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}


#contact .form {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Baloo 2", sans-serif;
}

#contact .form form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contact .form form input {
    width: 100%;
    outline: none;
    border: 2px solid var(--font-color);
    background: var(--bg-secondary);
    border-radius: 50px;
    margin: .5rem 0;
    font-size: 1.2rem;
    color: var(--font-color);
    padding: .6rem;
    font-family: "Baloo 2", sans-serif;
}

#contact input::placeholder {
    color: var(--font-color);
}

#contact .form form button {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 30%;
    color: var(--font-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    height: 3rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--font-color);
    transition: all 0.3s ease-in-out;
    font-family: "Rowdies", sans-serif;
    font-weight: 200;
}

#contact .form form button:hover {
    background: var(--bg-secondary-hover);
    border: 2px solid var(--bg-secondary);
    animation: glow 1.5s linear infinite;
}

#contact .form form button:active {
    background: var(--bg-secondary);
    border: 2px solid var(--bg-secondary-hover);
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 0.2rem var(--font-color));
    }

    25% {
        filter: drop-shadow(0 0 0.4rem var(--font-color));
    }

    50% {
        filter: drop-shadow(0 0 0.6rem var(--font-color));
    }

    75% {
        filter: drop-shadow(0 0 0.4rem var(--bg-secondary-hover));
    }

    100% {
        filter: drop-shadow(0 0 0.2rem var(--font-color));
    }
}

#contact .box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#contact .box .card {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    margin: 1rem;
    height: 120px;
    width: 120px;
    transition: all ease-in-out 0.3s;
}

#contact .box .card:hover {
    background: rgb(100, 100, 100);
    filter: invert(1);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* contact section css ends */

/* footer section css starts */

footer {
    font-family: "Rowdies", sans-serif;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    padding: 1rem;
    border-top: 2px solid var(--bg-secondary-hover);
    width: 100%;
}

footer .box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

footer .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 3rem;
}

footer .card-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 3rem;
}

footer .card-links a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: .6rem;
    margin: 0 .4rem;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

footer .card-links a:hover {
    filter: drop-shadow(0 0 0.5rem var(--font-color));
}

footer .card-links i {
    font-size: 2rem;
    color: inherit;
    margin: 0 .1rem;
}



footer .card-links span {
    width: 100%;
    text-align: center;
    color: inherit;
}

footer .card h2 {
    font-family: 'baloo 2', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0;
}

footer p {
    text-align: center;
    font-size: 1.5rem;
    font-family: 'baloo 2', sans-serif;
    font-weight: bold;

}

/* footer section css ends */


/* Mobile Responsive */

@media only screen and (max-width: 768px) {
    * {
        max-width: 100vw;
    }

    /* Utils */
    #preloader video {
        margin-bottom: 10rem;
    }


    /* Utils */

    .switch {
        top: .4rem;
        right: .4rem;
    }

    /* Navbar css starts */

    .navbar {
        display: none;
        flex-direction: column;
        padding: 1rem;
        animation: slideUp 0.5s ease-in-out forwards;
        border-bottom: 2px solid var(--font-color);
        border-left: 2px solid var(--font-color);
        border-right: 2px solid var(--font-color);
    }

    .hamburger {
        display: block;
    }

    .navbar.show {
        display: flex;
        animation: slideDown 0.5s ease-in-out forwards;
    }

    .navbar.hide {
        animation: slideUp 0.5s ease-in-out forwards;
    }

    .navbar li {
        margin: .4rem 0;
    }

    .navbar li a {
        font-size: 1.2rem;
    }

    @keyframes slideDown {
        0% {
            transform: translateY(-100%);
            opacity: 0;
        }

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

    @keyframes slideUp {
        0% {
            transform: translateY(0);
            opacity: 1;
        }

        100% {
            transform: translateY(-100%);
            opacity: 0;
        }
    }

    /* Navbar css ends */

    /* home section css starts */

    #home .container {
        margin-top: 2rem;
    }

    #home .container #main-img {
        margin-bottom: 1rem;
    }

    #home .container h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }


    #home .container p {
        font-size: 1rem;
    }

    #home .container h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    #home .container h2 a {
        font-size: 1rem;
        text-decoration: none;
        color: white;
        margin-bottom: 0rem;
    }

    .button {
        width: 67%;
    }

    /* home section css ends */

    /* about section css starts */

    #scrollToTopBtn {
        padding: 0;
        padding-top: .4rem;
        font-size: 1.5rem;
        height: 3rem;
        width: 3rem;
    }

    #about .container {
        margin-top: 2rem;
    }

    .container h2 {
        font-size: 2rem;
        margin-bottom: .1rem;
    }

    #about .container p {
        font-size: 1.1rem;
        padding: 0 1rem;
        line-height: 1.5rem;
    }

    /* about section css ends */

    /* skills section css starts */

    #skills h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #skills h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    #skills .container {
        margin-top: 2rem;
    }

    #skills .box {
        margin: 0;
        flex-wrap: wrap;
    }

    #skills .container .card {
        margin: .5rem 0;
        width: 42%;
        height: 180px;
    }

    #skills .container .card h4 {
        font-size: .8rem;
    }

    #skills .container img {
        padding: 1rem;

    }

    #skills li {
        font-size: .9rem;
        font-weight: normal;
    }

    /* skills section css ends */

    /* projects section css starts */

    #projects .container {
        width: 95%;
        margin-top: 2rem;
    }

    #projects h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #projects .card {
        width: 95%;
        max-height: none;
        flex-direction: column;
        margin: 1rem;
    }

    #projects .card .pic {
        width: 100%;
    }

    #projects .card img {
        border-top-left-radius: 30px;
        border-bottom-left-radius: 0px;
        border-top-right-radius: 30px;
    }

    #projects .card img:hover {
        transform: scale(1.1);
    }

    #projects .card .desc {
        width: 95%;
        margin: .5rem;
        padding: .5rem;
    }

    #projects .card .desc h3 {
        font-size: 1.3rem;
        margin-bottom: .5rem;
        text-align: center;
    }

    #projects .card .desc a {
        width: 60%;
    }

    /* projects section css ends */

    /* education section css starts */

    #education .container {
        margin-top: 0px auto;
        top: 2rem;
    }

    #education .container::after {
        left: 31px;
        width: 5px;
        height: 90%;
        top: 40px;
        margin-left: -10px;
    }

    #education .card {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
    }

    #education .textbox h3 {
        font-size: 1.1rem;
    }

    #education .textbox small {
        font-size: .9rem;
        margin-bottom: .2rem;
    }

    #education .textbox p {
        font-size: 1rem;
    }

    #education .right-card {
        left: 0;
    }

    #education .left-card img,
    #education .right-card img {
        left: 5px;
    }

    #education .left-card-arrow,
    #education .right-card-arrow {
        border-right: 15px solid var(--bg-secondary-hover);
        border-left: 0;
        left: -15px;
    }

    /* education section css ends */

    /* certification section css starts */

    #certification .container {
        width: 95%;
        margin-top: 2rem;
    }

    #certification h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #certification .box {
        flex-direction: column;
        justify-content: center;
    }

    #certification .card:hover {
        transform: none;
    }

    #certification .card img {
        height: 220px;
        width: 311px;
    }

    /* certification section css ends */

    /* contact section css starts */

    #contact .container {
        margin-top: 2rem;
    }

    #contact h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #contact .form {
        width: 95%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #contact .form form {
        width: 95%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #contact .form form input {
        width: 100%;
        font-size: 1rem;
    }

    #contact .form form button {
        width: 50%;
    }

    #contact .box {
        width: 95%;
        flex-wrap: wrap;
        margin: 0 0rem;
    }

    #contact .box .card {
        margin: 0.5rem;
        height: 60px;
        width: 60px;
    }

    #contact .box .card img {
        height: 50px;
        width: 50px;
    }

    /* contact section css ends */

    /* footer section css starts */

    footer {
        font-size: 1.3rem;
        padding: .5rem;
        width: 100%;
    }

    footer .box {
        flex-direction: column;
    }

    footer .card {
        margin: 1rem 0;
    }

    footer .card i {
        font-size: 2rem;
    }

    footer p {
        font-size: 1rem;
    }

    /* footer section css ends */

}


















/* Blogs Main Page CSS */

#blog-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

#blog-container h1 {
    font-size: 3rem;
}

.blog-card {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: start;
    padding: 1rem 2rem;
    margin: 1rem;
    background: var(--bg-secondary-hover);
    border-radius: 30px;
}

.blog-head {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 100%;
}

.blog-head-secondary {
    width: 100%;
    margin: 0 1rem;
}

.blog-link {
    position: relative;
    right: 0;
}

.blog-hr {
    color: var(--font-color);
    width: 100%;
    margin: 1rem auto;
    height: .1rem;
}

.blog-title {
    font-size: 1.6rem;
}

.author-logo {
    border-radius: 50%;
    border: 1px solid var(--font-color);
}

.author-link {
    font-size: .6rem;
    text-decoration: none;
    text-align: center;
    color: var(--font-color);
}

.author-link>i {
    font-size: 2rem;
}