@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
  --header-height: 3rem;

  --hue-color: 250;
  --first-color: hsl(var(--hue-color), 69%, 61%); /* #6e57e0 */
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 53%); /* #7d6bd6 */
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%); /* #c2b6fc */
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);
  --pagination-bullet-bg-color: rgba(0, 0, 0, 0.9) ;

  --body-font: "Poppins", sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  --font-medium: 500;
  --font-semi-bold: 600;

  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* tailwind logo */
  --logo-size: 1.5rem;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;

    /* tailwind logo */
    --logo-size: 2.25rem;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,h2,h3,h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

/* REUSABLE CLASS */
.section {
    /* padding: 2.5rem 0 2rem; */
    padding: 3rem 0 2rem;
}

.button-flex {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.text-center {
    text-align: center;
}

/* DEFAULT SETTING */
a {
    text-decoration: none;
}

ul {
    list-style: none;
}


/* #wrapper {
    transform-style: preserve-3d;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
} */

.header {
    overflow: hidden;
    background-color: var(--body-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-fixed);
}

nav {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 968px;
    margin: 0 auto;
    height: calc(var(--header-height) + 1.5rem);
}

nav a:hover {
    color: var(--first-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right ul {
    display: flex;
    gap: 2rem;
}

.nav-heading {
    color: var(--title-color);
    font-weight: var(--font-medium);
}


.nav_link {
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.nav_link:hover {
    color: var(--first-color);
}

.icons {
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--title-color);
}

.icons:hover {
    color: var(--first-color);
}

.nav-btns {
    display: flex;
    column-gap: 1rem;
}

#apps, #sun {
    display: none;
}

.show-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: -500px;
    background-color: var(--body-color);
    padding: 3rem 1.5rem 2rem;
    box-shadow: 0 -6px 0 #fff, 0 1px 6px  rgba(0, 0, 0, 0.15);
    border-radius: 0 0 1.5rem 1.5rem ;
    transition: all 0.5s ease-out;
}


/*used for listeners js files  */
.show {
    top: 0px;
}

#cross {
    position: absolute;
    right: 1rem;
    top: 0.8rem;
}

.menu-icons {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--title-color);
}

.menu-para {
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    text-align: center;
}

.menu-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.menu-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-bar a:hover i {
    color: var(--first-color);
}
.menu-bar a:hover p {
    color: var(--first-color);
}

/* Active Link */
.active-link {
    color: #6e57e0 ;
}


/* HEADER SHADOW ON SCROLL */
.scroll-header {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

/* SOCIAL APPS */
.social-home {
    display: grid;
    grid-template-columns: max-content;
    gap: 1rem;
}

.social-home a {
    font-size: 1.25rem;
    color: var(--first-color);
}

.social-home a:hover {
    color: var(--first-color-alt);
}

/* HOME SECTION */
.section-content {
    width: 90%;
    max-width: 768px;
    margin: 0 auto;
}

.section-content-grid {
    display: grid;
}

.section-content-gap {
    gap: 1.5rem;
}

.top-content {
    display: grid;
    align-items: center;
    grid-template-columns: 0.5fr 3fr;
    gap: 1.5rem;
    padding-top: 5.5rem;
}


/* description */
.description {
    order: 1;
    grid-column: 1/3;
}

.desc-heading {
    font-size: var(--big-font-size);
}

.desc-sub-heading {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.desc-para {
    margin-bottom: var(--mb-2);
}

.button {
    /* display: inline-block; */
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    font-family: inherit;
}

.button:hover {
    background-color: var(--first-color-alt);
}

/* BLOB IMG */
.home_img {
    width: 200px;
    /* transition: all linear 200ms; */
}

.home_blob {
    fill: var(--first-color);
    width: 200px;
}

.home_blob-img {
    /* width: 170px; */
    /* width: 185px; */
    width: 200px;
}

/* SCROLL BUTTON */
.bottom-content {
    display: none;
}

.scroll-button {
    margin-left: 3rem;
    color: var(--first-color);
    transition: 0.3s;
}

.scroll-button:hover {
    cursor: pointer;
    transform: translateY(0.25rem);
}

.scroll-mouse {
    font-size: 2rem;
}

.scroll-name {
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-25);
}

.scroll-arrow {
    font-size: 1.25rem;
}

/* ABOUT */
.about-heading {
    font-size: var(--h1-font-size);
}

.intro-heading {
    margin-bottom: var(--mb-3);
    font-size: var(--small-font-size);
}

.bio {
    text-align: center;
    margin-bottom: var(--mb-1-5);
}

.bio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my-profile-img {
    max-width: 100%;
    width: 200px;
    justify-self: center;
    align-self: center;
    aspect-ratio: 1;
    border-radius: 0.8rem;
}

/* SCROLL UP BUTTON */
.scroll-up-btn {
    background-color: var(--first-color);
    opacity: 0.8;
    padding: 0 0.3rem;
    border-radius: 0.4rem;
    position: fixed;
    right: 1rem;
    /* bottom: 5rem; */
    bottom: -20%;
    transition: 0.5s;
}

.scroll-up-icon {
    font-size: 1.5rem;
    color: #fff;
}

.show-scroll-up-btn {
    bottom: 4rem;
}

/* SKILLS */
.uil-sort::before {
    transform: rotateZ(90deg);
}

.skill-sec-grid {
    grid-template-columns: 1fr;
    column-gap: 1.5rem;
}

.skills-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--mb-2-5);
    cursor: pointer;
}

.skills-sub-div {
    display: flex;
    align-items: center;
    column-gap: var(--mb-0-75);
}

.skills-icon {
    font-size: 2rem;
    font-weight: bolder;
    color: var(--first-color);
    transition: 0.5s;
}

.skill-title {
    font-size: var(--h3-font-size);
    color: var(--title-color); 
    margin-bottom: 0.2rem;
}

.skill-subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.skill-sub-icon {
    color: var(--first-color);
    font-size: var(--h1-font-size);
}

.skill-name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.skill-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar {
    height: 5px;
    border-radius: 0.25rem;
    background-color: var(--first-color);
}

.skills-list {
    /* display: grid; */
    display: none;
    row-gap: 1.5rem;
    margin-left: 2.7rem;
    margin-bottom: var(--mb-2-5);
    transition: 0.5s;
}

.skills-list-grid {
    display: grid;
    align-items: baseline;
}

.skill-box-container {
    row-gap: 0.7rem;
    display: flex;
    flex-direction: column;
}

.tailwind-logo {
    width: var(--logo-size);
}

.rotate-arrow {
    transform: rotateZ(-180deg);
}

/* QUALIFICATION */
.qualification-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    margin-bottom: var(--mb-2);
    column-gap: 0.5rem;
}

.qualification-group {
    display: flex;
    align-items: center;
    column-gap: 0.3rem;
    /* margin: 0 var(--mb-1) */
}

.qualification-icon {
    font-size: 1.8rem;
    margin-right: var(--mb-0-25);
}

.qualification-btn {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    /* color: var(--first-color); */
    cursor: pointer;
}

.education-btn, .work-btn {
    justify-self: center;
}

.qualification-detail {
    /* display: grid; */
    display: none;
    grid-template-columns: 1fr max-content 1fr;
    justify-content: center;
    column-gap: 1.5rem;
}

.qualification-show {
    display: grid;
}

.qualification-btn-color {
    color: var(--first-color);
}

.progress-bar {
    display: flex;
    position: relative;
}

.progress-bar-circle {
    width: 13px;
    height: 13px;
    background-color: var(--first-color);
    border-radius: 50%;
}
.progress-bar-line {
    width: 1.3px;
    height: 100%;
    background-color: var(--first-color);

    position: absolute;
    left: 50%;
    /* right: 50%; */
    transform: translateX(-50%)
}

.qualification-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.qualification-subtitle {
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
}

.qualification-calender {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
}

/* PROJECT */
.swiper-content-position {
    position: relative;
}
.swiper {
    position: unset;
    /* border: 1px solid black; */
}

.swiper-wrapper {
    margin-bottom: 3.5rem;
}

.project-img {
    width: 256px;
    border-radius: 1rem;
}

.swiper-slide-detail {
    display: grid;
    /* grid-template-columns: 0.8fr 1fr; */
    justify-items: center;
    /* column-gap: 1.7rem; */
    gap: 1.7rem;
    padding: 0 3rem;
}

.project-title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
}

.project-para {
    margin-bottom: var(--mb-0-75);
}

#checkout-btn i {
    transition: 0.3s;
}

#checkout-btn:hover i {
    transform: translateX(7px);
}

.swiper-button-prev {
    left: 0rem;
    top: 40%;
}

.swiper-button-next {
    right: 0rem;
    top: 40%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-project-icon {
    font-size: 2rem;
    color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}


.swiper-pagination-bullet {
   background-color: var(--pagination-bullet-bg-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--first-color);
}

/* CONTACT ME */

.contact-sub-sections {
    display: flex;
    margin-bottom: var(--mb-2);
}

.contact-icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-right: var(--mb-0-75);
}

.contact-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-25);
}

.contact-subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.send-btn {
    outline: none;
    border: none;
    justify-self: flex-start;
    cursor: pointer;
}

.send-btn-icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: 0.3s;
}

.form-content-gap {
    gap: 1.5rem;
}

.form-content {
    background-color: var(--input-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem 0.25rem;
    border: var(--first-color) 2px solid;
}

.invalid {
    border: #ff4500 2px solid;
}

.valid {
    border: #7fff00 2px solid;
}

label {
    display: block;
    width: 100%;
    font-size: var(--smaller-font-size);
    color: var(--title-color);
    cursor: pointer;
}

.form-input {
    width: 100%;
    background-color: var(--input-color);
    color: var(--text-color) ;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    border: none;
    outline: none;
    padding: 0.25rem 0.5rem 0.5rem 0;
}

textarea {
    resize: vertical;
}

/* ALert after submitting form */
.alert_style {
    text-align: center;
    padding: 10px;
    font-size: var(--small-font-size);
    background-color: var(--first-color);
    color: #fff;
    border-radius: 0.5rem;
    display: none;
}

footer {
    background-color: var(--first-color-second);
    margin-top: 2rem;
}

.footer {
    padding-top: 3rem;
    max-width: 768px;
    width: 92%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 3.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.footer-links .footer_nav_link {
    font-size: var(--normal-font-size);
    color: #fff;
    transition: 0.3s;
}

.footer_nav_link:hover {
    color: var(--first-color-lighter);
}

.footer-title {
    font-size: var(--h1-font-size);
    margin-bottom: var(--mb-0-25);
    color: #fff;
}

.footer-subtitle {
    font-size: var(--small-font-size);
    color: #fff;
}

.footer-social {
    font-size: 1.25rem;
    margin-right: var(--mb-1-5);
    color: #fff;
    transition: 0.3s;
}

.footer-social:hover {
    color: var(--first-color-lighter);
}

.footer-copyright {
    font-size: var(--smaller-font-size);
    text-align: center;
    color: #fff;
    margin-top: 4.5rem;
    padding-bottom: 2rem;
}

/* SCROLL BAR */
::-webkit-scrollbar {
    width: 0.6rem;
    background-color: var(--scroll-bar-color);
    border-radius: 0.5rem;
}
  
::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-color);
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color-light);
}

@media screen and (max-width:768px) {
    nav {
        height: var(--header-height);
    }

    .nav-right ul {
        display: none;
    }

    #apps {
        display: inline-block;
    }

    .project-img {
        max-width: 100%;
    }
}

@media screen and (max-width:350px) {
    .show-menu {
        padding: 2rem 0.5rem 2rem;
    }

    .menu-bar {
        margin-top: 1rem;
        column-gap: 0;
    }

    .home_img, .home_blob {
        width: 180px;
    }
    
    .qualification-detail {
        column-gap: 0.5rem;
    }
}

@media screen and (max-width:260px) {
    .desc-heading {
        font-size: 1.93rem;
    }

    form {
        width: 95%;
    }
}

@media screen and (min-width:568px) {
    .top-content {
        grid-template-columns: max-content 1.03fr 1fr;
    }

    .description {
        order: 0;
        grid-column: initial;
    }

    .home_img {
        justify-self: center;
    }

    .nav, .section-content {
        width: 92%;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .show-scroll-up-btn {
        bottom: 5rem;
    }

    .qualification-detail {
        /* grid-template-columns: max-content max-content max-content; */
        grid-template-columns: 0.3fr max-content 0.3fr;
    }

    .qualification-type {
        grid-template-columns: 0.3fr 0.3fr;
        column-gap: 1.5rem;
    }

    .education-btn {
        justify-self: end;
    }

    .work-btn {
        justify-self: start;
    }

    .bottom-margin {
        margin-bottom: var(--mb-1-5);
    }

    .swiper-slide-detail {
        grid-template-columns: 0.8fr 1fr;
        padding: 0 4rem;
    }

    .swiper-button-prev {
        left: 0.5rem;
    }
    .swiper-button-next {
        right: 0.5rem;
    }

    .contact-sub-sections {
        margin-right: var(--mb-2);
    }

    .contact-me-grid {
        grid-template-columns: 1fr 1fr ;
        gap: 1.5rem;
    }

    .footer {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-copyright {
        padding-bottom: 3.5rem;
    }
}

@media screen and (min-width:768px) {
    .section {
        padding: 6rem 0 2rem;
    }

    .top-content {
        column-gap: 2rem;
    }
    
    .section-content-gap {
        gap: 5rem;
    }

    .show-menu {
        top: -500px;
    }

    .home_img, .home_blob {
        width: 270px;
    }

    .bottom-content {
        display: block;
    }

    .my-profile-img {
        width: 350px;
    }

    .intro-heading {
        margin-bottom: 4rem;
    }

    .bio {
        text-align: initial;
    }

    .bio-section {
        display: block;
    }

    .skill-sec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-img {
        width: 300px;
    }

    .footer {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1.5rem;
    }

    .footer-links {
        flex-direction: row;
        column-gap: 1rem;
    }

    .footer-apps {
        justify-self: end;
    }
}

@media screen and (min-width:1024px) {
    .social-home {
        transform: translateX(-6rem);
    }

    .home_img, .home_blob {
        width: 320px;
    }

    .swiper-slide-detail {
        /* column-gap: 4rem; */
        gap: 4rem;
    }

    .swiper-project-icon {
        font-size: 3.5rem;
    }  
    
    .swiper-button-prev {
        left: -3rem;
    }

    .swiper-button-next {
        right: -3rem;
    }

    .contact-me-grid {
        grid-template-columns: max-content 1fr ;
    }
    
    .form-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}