@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');

:root {
    --background1: #151518;
    --background2: #222222;
    --background3: #393939;
    --color1: #fff;
    --color2: #c2ff3f;
    --homebgshade: rgba(0, 0, 0, 0.5);
}

.light-theme {
    --background1: #fefefe;
    --background2: #f0f0f0;
    --background3: #e0e0e0;
    --color1: #1a1a1a;
    --color2: #007bff;
    --homebgshade: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Forum", serif;
    font-weight: bold;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

section {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 30px;
    background: var(--background1);
    box-sizing: border-box;
    overflow-x: hidden;
}

@media(max-height: 520px) and (min-width: 520px) {
    section {
        height: auto;
    }
}

/*---------------HEADER START---------------*/

#logo {
    display: block;
    position: fixed;
    width: 45px;
    height: auto;
    top: 0;
    left: 0;
    margin-top: 25px;
    margin-left: 25px;
}

header {
    position: fixed;
    bottom: 30px;
    width: 100%;
    height: 70px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: var(--color1);
    box-sizing: border-box;
}

#navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    height: 60px;
    width: 420px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: var(--background2);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 40px;
    border-right: 3px solid var(--color2);
    border-left: 3px solid var(--color2);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

#navbar.hide {
    opacity: 1;
    transform: translateY(100px);
    pointer-events: none;
}

#navbar a {
    color: var(--color1);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px
}

#menuicon {
    font-size: 40px;
    color: var(--color1);
    display: none;
}

.icons {
    display: none;
}

/*dropdown button */
.dropbtn {
    background-color: transparent;
    border: none;
    color: var(--color1);
    font-size: 24px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.dropbtn:hover {
    color: var(--color2);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    bottom: 40px;
    background-color: var(--background2);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    height: 50px;
    width: 150px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
}

.dropdown-content a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color2);
    text-decoration: none;
    width: 100%;
}

.dropdown-content:hover {
    background-color: var(--background3);
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--background3);
    border-radius: 30px;
    border: 2px solid var(--color2);
    cursor: pointer;
    transition: background-color 0.4s ease;
    outline: none;
    color: var(--color2);
}

#themebutton1 {
    display: block;
    position: relative;
}

#themebutton2 {
    display: none;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 25px;
    height: 25px;
    background-color: var(--color1);
    border-radius: 50%;
    transform: translateX(29.5px);
    transition: transform 0.4s ease;
}

body.light-theme .theme-toggle::before {
    transform: translateX(0);
}

#themebuttondiv {
    display: none;
}


@media (min-width: 993px) {

    #navbar a:hover .icontext,
    #navbar a.active .icontext {
        color: var(--color2);
    }


}

@media (max-width: 992px) {
    #logo {
        width: 35px;

    }

    header {
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 70px;
        justify-content: flex-end;
        z-index: 5;
        color: var(--color1);
    }

    #menuicon {
        display: block;
        padding-right: 15px;
        z-index: 10;
    }

    #navbar {
        flex-direction: column;
        align-items: flex-start;
        height: fit-content;
        width: 30vw;
        background-color: var(--background2);
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        border: 0;
        position: absolute;
        top: 70px;
        right: -200%;
        transition: 0.75s ease;
        padding: 15px;
        border-radius: 0;
        border-bottom-left-radius: 10px;
        border-top-left-radius: 10px;
        margin: 0;
        gap: 10px;
    }

    #navbar.active {
        right: 0;
        transition: 0.5s ease;
    }

    #navbar a {
        display: flex;
        width: 80%;
        height: 35px;
        font-size: 14px;
        color: var(--color1);
        margin-right: 0;
        align-items: center;
        padding: 2px;
        padding-left: 15px;
        padding-right: 5px;
        border-radius: 10px;
    }

    #navbar a:hover,
    #navbar a.active {
        background: var(--background3);
    }

    .icons {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        width: 25px;
        font-size: 18px;
        padding-right: 25px;
    }

    .icontext {
        margin-bottom: 5px;
        margin-top: 5px;
    }

    #themebutton2 {
        display: block;
        height: 25px;
        width: 55px;
    }

    .dropdown {
        display: none;
    }

    #themebutton1 {
        display: none;
    }

    .theme-toggle::before {
        width: 20px;
        height: 20px;
        background-color: var(--color1);
        border-radius: 50%;
        transition: transform 0.4s ease;
    }

    #themebuttondiv {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
    }

    #themebuttondiv .dark-theme-text {
        color: var(--color1);
        font-size: 14px;
        margin-right: 10px;
    }

}

@media(max-width: 678px) {
    #navbar {
        width: 40vw;
    }

    #navbar .theme-toggle {
        height: 20px;
        width: 50px;
    }

    .theme-toggle::before {
        width: 15px;
        height: 15px;
    }
}

@media(max-width: 520px) {
    #logo {
        width: 30px;
    }

    #navbar {
        width: 70vw;
    }

    #navbar .theme-toggle {
        height: 20px;
        width: 50px;
    }

    .theme-toggle::before {
        width: 15px;
        height: 15px;
    }
}

/*--------------HEADER-END---------------*/

/*===========================================================================================================*/

/*-----------HOME SECTION START-----------*/

#home {
    display: flex;
    background-color: var(--homebgshade);
}

#homeleft {
    width: 50%;
    height: 100%;
    color: var(--color1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
}

.content {
    font-size: 40px;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.content.in-view {
    opacity: 1;
    transform: translateX(0);
}

.home-name {
    font-size: 100px;
}

#hometext {
    font-size: 40px;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
    transition-delay: 0.2s;
}

#hometext.in-view {
    opacity: 1;
    transform: translateX(0);
}

.typing-text {
    color: var(--color2);
}

/*---ABOUTBUTTON---START---*/

#button {
    margin-top: 25px;
    margin-bottom: 25px;
    background-color: var(--color2);
    border-radius: 20px;
    font-size: 20px;
    width: 140px;
    align-items: center;
    display: flex;
    justify-content: center;
    height: 40px;
    color: var(--background1);
    text-decoration: none;
    font-weight: bolder;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
    transition-delay: 0.4s;
}

#button.in-view {
    opacity: 1;
    transform: translateX(0);
}

.buttontext {
    align-items: center;
    display: flex;
    justify-content: center;
    transform: translateX(0);
    transition: 0.5s ease;

}

#button:hover .buttontext {
    transform: translateX(10px);
    transition: 0.5s ease;

}

#arrow {
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
    transition-delay: 0;
}

@keyframes fadeOutAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#button:hover #arrow {
    animation: fadeOutAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
    transition-delay: 0;
}

@keyframes fadeOutAnimation {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/*---ABOUTBUTTON---END---*/

.contacts {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
    transition-delay: 0.6s;
}

.contacts.in-view {
    opacity: 1;
    transform: translateX(0);
}

.contacts a {
    border: 2px solid var(--color2);
    width: 40px;
    height: 40px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color2);
    border-radius: 50%;
}

.contacts a i {
    font-size: 20px;
}

.contacts a:hover {
    color: var(--background1);
    background-color: var(--color2);
    transition: 0.25s;
    transform: scale(1.2);
}

#homeright {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#myimage {
    height: 400px;
    width: auto;
    margin: 40px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.9) 0px 5px 15px;

}

.myimage {
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.myimage.in-view {
    opacity: 1;
    transform: translateX(0);
}

.myimage::after,
.myimage::before {
    position: absolute;
    width: 80px;
    height: 80px;
    content: "";
}

.myimage::before {
    left: 0;
    top: 0;
    border-left: 7px solid var(--color2);
    border-top: 7px solid var(--color2);
}

.myimage::after {
    right: 0;
    bottom: 0;
    border-right: 7px solid var(--color2);
    border-bottom: 7px solid var(--color2);
}

/*-----------HOME SECTION RESPONSIVE-----------*/

@media (max-width: 1200px) {
    .home-name {
        font-size: 90px;
    }

    .content {
        font-size: 35px;
    }

    #hometext {
        font-size: 35px;
    }

    #myimage {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .home-name {
        font-size: 80px;
    }

    .content {
        font-size: 30px;
    }

    #hometext {
        font-size: 30px;
    }

    #myimage {
        height: 300px;
    }

    #button {
        height: 37px;
        width: 130px;
        font-size: 18px;
    }
}

@media (max-width: 799px) {
    #home {
        height: 100%;
        width: 100%;
        flex-direction: column-reverse;
    }

    #homeleft,
    #homeright {
        width: 100%;
        height: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #homeleft {
        align-items: flex-start;
        padding-left: 0;
    }

    #homeleftdiv {
        align-items: flex-start;
        width: 50%;
        padding-left: 10%;
    }

    .home-name {
        font-size: 60px;
    }

    .content a {
        font-size: 25px;
    }

    #hometext {
        font-size: 25px;
    }

    #myimage {
        height: 250px;
        margin: 20px auto;
    }

    .contacts a {
        width: 35px;
        height: 35px;
        margin-right: 3px;
    }

    .contacts a i {
        font-size: 18px;
    }

    #imgdiv {
        width: 250px;
        height: 310px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 90px;
    }

    .myimage::after,
    .myimage::before {
        position: absolute;
        width: 60px;
        height: 60px;
        content: "";
    }

    #button {
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    #homeleftdiv {
        align-items: flex-start;
        width: 100%;
        padding-left: 5%;
    }

    .home-name {
        font-size: 50px;
    }

    .content a {
        font-size: 20px;
    }

    #hometext {
        font-size: 20px;
    }

    #myimage {
        height: auto;
        width: 85%;
        border-radius: 2px;
    }

    #imgdiv {
        width: 210px;
        height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
    }

    .myimage::after,
    .myimage::before {
        display: none;
    }

    #button {
        width: 120px;
        height: 35px;
        font-size: 18px;
    }

    .contacts a {
        width: 30px;
        height: 30px;
        margin-right: 2px;
    }

    .contacts a i {
        font-size: 16px;
    }
}

@media (max-height: 640px) and (max-width: 520px) {
    #homeleft {
        padding-top: 30px;
    }

    #home {
        height: auto;
        min-height: 100%;
    }
}

@media(max-height: 520px) and (min-width: 520px) {
    #home {
        height: 100%;
        flex-direction: row;
        overflow-x: hidden;
        justify-content: center;
        align-items: center;
    }

    #homeleft,
    #homeright {
        width: 50%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    #homeleftdiv {
        align-items: center;
        padding-left: 0;
        width: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    .home-name {
        font-size: 50px;
    }

    .content {
        font-size: 20px;
        text-align: center;
    }

    #hometext {
        font-size: 20px;
        text-align: center;
    }

    #myimage {
        height: auto;
        height: 200px;
        width: auto;
        margin: 0;
    }

    #imgdiv {
        width: auto;
        height: auto;
        margin-top: 10px;
        padding: 25px;
    }

    .myimage::after,
    .myimage::before {
        display: none;
    }

    #button {
        width: 120px;
        height: 35px;
        font-size: 18px;
    }

    .contacts a {
        width: 30px;
        height: 30px;
        margin-right: 2px;
    }

    .contacts a i {
        font-size: 16px;
    }
}

@media (max-width: 299px) {
    #hometextdiv {
        height: 50px;
    }
}

/*-----------HOME SECTION END-----------*/

/*===========================================================================================================*/

/*====HEADINGS====*/

.heading {
    font-size: 50px;
    color: var(--color1);
    text-align: center;
    margin: 0;
    padding: 0;
    padding-top: 30px;
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.heading.in-view {
    opacity: 1;
    transform: translateX(0);
}

@media(max-width: 768px) {
    .heading {
        font-size: 40px;
    }
}

@media(max-width: 520px) {
    .heading {
        font-size: 30px;
    }
}

/*====HEADINGS====*/

/*===========================================================================================================*/

/*-----------ABOUT SECTION START-----------*/

#about {
    display: flex;
    flex-direction: column;
}

#aboutdiv {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    padding-top: 20px;
}

#aboutleft {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aboutimg {
    width: auto;
    height: 400px;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.7) 0px 5px 15px;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

#aboutimg.in-view {
    opacity: 1;
    transform: translateX(0);
}

#aboutright {
    display: flex;
    width: 60%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding-right: 30px;
}

#aboutright container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: fit-content;
    width: fit-content;
    border-radius: 5px;
    background-color: var(--background3);
    color: var(--color1);
    font-size: 18px;
    font-weight: 400;
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

#aboutright container.in-view {
    opacity: 1;
    transform: translateX(0);
}

#containerpara {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
    transition-delay: 0.15s;
}

#containerpara.in-view {
    opacity: 1;
    transform: translateX(0);
}

.details {
    color: var(--color2);
}

#detailsdiv{
    width: 100%;
}

.d1 {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
    transition-delay: 0.3s;
}

.d1.in-view {
    opacity: 1;
    transform: translateX(0);
}

.d2 {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
    transition-delay: 0.45s;
}

.d2.in-view {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1200px) {
    #aboutimg {
        height: 350px;
    }
}

@media (max-width: 992px) {
    #aboutdiv {
        flex-direction: row;
        align-items: center;
    }

    #aboutimg {
        height: 300px;
    }

    #aboutright container {
        width: 90%;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #about {
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    #aboutdiv {
        flex-direction: column;
        align-items: center;
        min-width: 100%;
        max-height: fit-content;
        padding-top: 40px;
    }

    #aboutleft {
        width: 100%;
        height: 50%;
        align-items: center;
        justify-content: center;
        padding: 0;
        padding-bottom: 40px;
    }

    #aboutright {
        width: 100%;
        height: 50%;
        align-items: center;
        justify-content: center;
        padding: 0;
        padding-bottom: 30px;
    }

    #aboutimg {
        height: 250px;
    }

    #aboutright container {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    #about {
        height: auto;
    }

    #aboutimg {
        height: 225px;
    }

    #aboutright container {
        font-size: 16px;
    }
}

@media (max-width: 376px) {
    #aboutright container {
        font-size: 14px;
    }
}

@media(max-height: 520px) and (min-width: 520px) {
    #about {
        height: auto;
    }

}

/*----------------ABOUT END----------------*/

/*===========================================================================================================*/

/*----------------SKILLS-------------------*/

#skillmaindiv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 30px;
}

.skillbox-grid {
    display: flex;
    gap: 75px;
    margin: 0 0 1.5rem 0;
    position: relative;
    scrollbar-gutter: always;
    padding: 3rem 0 3rem 2rem;
    overflow-x: scroll;
    scrollbar-color: var(--background3) var(--background2);
}

.skillbox-grid::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.skillbox-grid::-webkit-scrollbar-thumb {
    background: #434343;
    border-radius: 10px;
    box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.25),
        inset -2px -2px 2px rgba(0, 0, 0, 0.25);
}

.skillbox-grid::-webkit-scrollbar-track {
    background: linear-gradient(to right,
            #434343,
            #434343 1px,
            #262626 1px,
            #262626);
}

.skillbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    width: 200px;
    height: 250px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--background3);
    color: var(--color1);
    flex-shrink: 0;
}

.skilltitle img {
    width: 75px;
    height: auto;
}

.skilltitle h3 {
    margin: 0;
    font-size: 16px;
    padding: 5px;
    text-align: center;
}

.skillbox:hover {
    transform: translateY(-15px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border: 3px solid var(--color2);
}

.skillbox:hover~.skillbox {
    transform: translateX(110px);
}

.skillbox:hover:first-child {
    transform: translate(-0.5rem, -1rem);
}

.skillbox:not(:first-child) {
    margin-left: -117px;
    box-shadow: -3rem 0 3rem -2rem black;
}

@media (max-width: 1200px) {
    #skillmaindiv {
        padding-top: 90px;
    }

    .skillbox {
        width: 190px;
        height: 237px;
    }

    .skillbox:not(:first-child) {
        margin-left: -130px;
    }

    .skillbox:hover {
        transform: translate(0, -1rem);
    }

    .skillbox:hover~.skillbox {
        transform: translateX(70px);
    }
}

@media (max-width: 768px) {
    .skillbox {
        width: 185px;
        height: 210px;
    }

    .skillbox:not(:first-child) {
        margin-left: -150px;
    }

    .skillbox:hover {
        transform: translateY(-20px);
    }

    .skillbox:hover~.skillbox {
        transform: translateX(70px);
    }

    .skillbox-grid {
        gap: 77px;
    }
}

@media (max-width: 520px) {
    #skillmaindiv {
        padding-top: 60px;
    }

    .skillbox-grid {
        gap: 60px;
    }

}

@media (max-width: 520px) and (max-height: 650px) {
    #skillmaindiv {
        padding-top: 40px;
    }
}

@media(max-height: 520px) and (min-width: 520px) {
    #skillmaindiv{
        padding-top: 50px;
        padding-bottom: 50px;
    }

}
/*----------------SKILLS END----------------*/

/*===========================================================================================================*/

/*----------------EDUCATION START---------------*/

#educationdiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5%;
    height: auto;
    width: 100%;
}

.edu {
    font-size: 30px;
    color: var(--color1);
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.edu.in-view {
    opacity: 1;
    transform: translateX(0);
}

.p1 {
    font-size: 24px;
    font-weight: 400;
    color: var(--color2);

}

.p2 {
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 10px;
}

#inst1 {
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
}

#inst2 {
    margin-top: 30px;
    width: 70%;
    height: auto;
    display: flex;
    flex-direction: column;
}

#inst1:hover .status1 {
    color: var(--color2);
    transition: 0.25s;
}

#inst2:hover .status2 {
    color: var(--color2);
    transition: 0.25s;
}

.institute {
    width: 100%;
    height: auto;
    padding: 25px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--background2);
    border: 2px solid var(--color2);
    border-radius: 15px;
    text-decoration: none;
    color: var(--color1);
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.institute.in-view {
    opacity: 1;
    transform: translateX(0);
}

.institute:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9);
    transform: scale(1.02);
    transition: 0.3s ease;
}

@media (max-width: 1200px) {
    .edu {
        font-size: 30px;
    }

    .p1,
    .p3 {
        font-size: 25px;
    }

    .p2 {
        font-size: 20px;
    }

    #inst1,
    #inst2 {
        width: 70%;
        height: auto;
    }

    .institute {
        height: auto;
        width: auto;
    }
}

@media (max-width: 992px) {
    #inst1 {
        margin-top: 10px;
    }

    #education {
        margin-top: -40px;
    }

    .edu {
        font-size: 25px;
        padding-bottom: 15px;
        padding-top: 20px;
    }

    .p1 {
        font-size: 20px;
        padding-bottom: 10px;
    }

    .p3 {
        font-size: 20px;
    }

    .p2 {
        font-size: 18px;
    }

    #inst1,
    #inst2 {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .edu {
        font-size: 25px;
        padding-bottom: 15px;
        padding-top: 20px;
    }

    .p1,
    .p3 {
        font-size: 20px;
    }

    .p2 {
        font-size: 18px;
    }

    #inst1,
    #inst2 {
        width: 95%;
    }
}

@media (max-width: 520px) {
    #education {
        margin-top: -30px;
    }

    .edu {
        font-size: 20px;
        padding-bottom: 10px;
        padding-top: 15px;
    }

    .p1 {
        font-size: 18px;
        padding-bottom: 8px;
    }

    .p3 {
        font-size: 16px;
    }

    .p2 {
        font-size: 16px;
    }

    #inst1,
    #inst2 {
        width: 100%;
    }
}

@media (max-height: 700px) {
    #education {
        height: auto;
    }
}

/*----------------EDUCATION-END----------------*/

/*===========================================================================================================*/

/*----------------CERTIFICATE-SECTION-START----------------*/

.certificates-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 100px;
}

.certificate-box {
    position: relative;
    width: 300px;
    margin: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: var(--background2);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}
    
.certificate-box.visible {
    opacity: 1;
    transform: translateY(0);
}
    

.certificate-box img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.certificate-info {
    padding: 20px;
}

.certificate-info h3 {
    font-size: 20px;
    color: var(--color1);
    margin-bottom: 10px;
    font-weight: bolder;
}

.certificate-info p {
    color: var(--color1);
    font-size: 16px;
    font-weight: 400;
}

.certificate-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.certificate-box:hover img {
    transform: scale(1.05);
}

.certificate-box:hover .certificate-info p {
    color: var(--background3);
}

.certificate-box {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.modal-content:hover {
    transform: scale(1.02);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color1);
    cursor: pointer;
    transition: color 0.2s;
}

.close-icon {
    height: 50px;
    width: auto;
}

@media (max-width: 1100px) {
    #certificate {
        height: auto;
    }
}

@media (max-width: 520px) {
    .certificates-container {
        margin-top: 30px;
    }

    .certificate-info h3 {
        font-size: 18px;
    }

    .certificate-info p {
        font-size: 16px;
    }
}

/*----------------CERTIFICATE-SECTION-END----------------*/

/*===========================================================================================================*/


/*-----------------FOOTER-----------------*/

footer {
    height: auto;
    background: var(--background2);
    box-sizing: border-box;
    color: var(--color1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 30px;
    justify-content: center;
    position: relative;
    z-index: 999;
    gap: 20px;
    font-size: 16px;
}

#footersec1 {
    height: auto;
    display: flex;
    gap: 80px;
}

#footersec2 {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Initial state of #line */
#line {
    width: 0;
    border-top: 2px solid var(--color2);
    transition: width 1s ease-in-out;
}

/* Animated state */
#line.visible {
    width: 100%;
}


#footerlinks {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

#footerlinks a {
    height: 28px;
    width: 28px;
    padding: 0;
    margin: 0;
}

#footerlinks a i {
    font-size: 14px;
}

#n {
    font-size: 18px;
}

#n a {
    color: var(--color2);
}

#locationlogo {
    padding-left: 2px;
    padding-right: 1px;
}

@media (max-width: 992px) {
    #footersec1 {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    footer {
        font-size: 14px;
    }

    #n {
        font-size: 16px;
    }

    #footersec1 {
        gap: 40px;
    }
}

@media (max-width: 520px) {
    #footersec1 {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    #footerlinks a {
        height: 24px;
        width: 24px;
    }

    #footerlinks a i {
        font-size: 12px;
    }
}

/*-----------------FOOTER-END-----------------*/