* {
    border: 0;
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-primary-color: #191919;
    --bg--secondary-color: #232323;
    --bg-tertiary-color: #292A2B;
    --text-color: #f8f8f8;
    --primary-color: #0fe;
    --secondary-color: #ee0290;
}

::selection {
   background-color: #535050;
   color: var(--text-color);
}

html {
    font-size: 62.5%;
}

body {
    background-color: var(--bg-primary-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* ------------------------------------------------------------ */
/* -----------------------Scroll-Bar--------------------------- */
/* ------------------------------------------------------------ */

::-webkit-scrollbar {
    width: 0.9em;
}

::-webkit-scrollbar-track {
    background-color: #f8f8f8;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(238, 2, 144);
}

/* ------------------------------------------------------------ */
/* -------------------------NavBar----------------------------- */
/* ------------------------------------------------------------ */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 9%;
    background-color: var(--bg-primary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    background-color: var(--bg--secondary-color);
}

.nav-bar {
    list-style-type: none;
}

.menu {
    display: flex;
    gap: 4rem;
}

.menu li a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.5s;
    font-size: 1.6rem;
}

.menu li a:hover {
    color: var(--secondary-color);
}

.open-menu , .close-menu {
    position: absolute;
    color: var(--text-color);
    cursor: pointer;
    font-size: 2.8rem;
    display: none;
}

.open-menu {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.close-menu {
    top: 20px;
    right: 20px;
}

#check {
    display: none;
}

.nav-logo {
    width: 2.5rem;
}

/* ------------------------------------------------------------ */
/* ----------------------Home-Section-------------------------- */
/* ------------------------------------------------------------ */

.home-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 4em;
}

.profile-img {
    height: 35rem;
    width: 35rem;
    border-radius: 0.3em;
    transition: 0.4s;
    background-image: url(./assets/images/vivek.jpeg);
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;  
    position: relative;
}

.profile-img::before {
    content: "";
    display: block;
    position: absolute;
    background-color: transparent;
    height: 34em;
    width: 34em;
    border-radius: 0.3em;
    border: 2px solid var(--primary-color);
    top: 6%;
    left: 6%;
    z-index: -2;
    transition: transform 0.4s;
}

.profile-img:hover::before {
    transform: translate(-3%, -3%);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 3px;
}

.home-content h3 {
    letter-spacing: 1px;
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3 span {
    color: var(--primary-color);
    transition: 0.5s linear;
}

.home-content h3 span:hover {
    color: var(--secondary-color);
}

.cv-btn {
    display: inline-block;
    margin-top: 2rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 0.2em;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: 500;
    transition: 0.5s ease-in-out , transform 0.2s;
}

.cv-btn:hover {
    color: #000000;
    box-shadow: inset 0px -25px 0px var(--primary-color) , inset 0px 25px 0px var(--primary-color);
}

.cv-btn:active {
    transform: translateY(2px);
}

.social-icon {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 40rem;
}

.social-icon a {
    position: relative;
    height: 5rem;
    width: 5rem;
    display: block;
    background-color: transparent;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 5.5rem;
    transition: 0.3s;
}

.social-icon a:hover {
    background-color: var(--primary-color);
    transform: rotate(135deg);
    box-shadow: 0 0 5px var(--primary-color) , 0 0 10px var(--primary-color);
}

.social-icon a::after {
    content: "";
    height: 40px;
    width: 40px;
    background-color: #929498;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
}

.social-icon a i {
    font-size: 2rem;
    color: #000000;
    transition: 0.3s;
}

.social-icon a:hover i {
    transform: rotate(225deg);
    color: var(--primary-color);
}

/* ------------------------------------------------------------ */
/* -----------------------Tech-Skill--------------------------- */
/* ------------------------------------------------------------ */

.tech-skill {
    position: relative;
}

.tech-skill h1 {
    text-align: center;
    letter-spacing: 1px;
    word-spacing: 2px;
    font-size: 4.5rem;
}

.tech-skill h1 span {
    color: var(--primary-color);
    transition: 0.5s linear;
}

.tech-skill h1 span:hover {
    color: var(--secondary-color);
}

.skill-cards {
    margin: 0 auto;
    padding: 4rem 2rem;
    margin-top: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
    max-width: 60rem;
}

.skill-card {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 14rem;
    width: 14rem;
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    background-color: #2D2D2D;
    border-radius: 0.5em;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
    transition: all ease 0.5s;
}

.skill-card:hover  {
    transform: translateY(-5px);
    color: var(--secondary-color);
    box-shadow: 0px 10px 20px 2px rgba(0, 0, 0, 0.25), inset 0px -50px #000000;
}

.skill-card i {
    font-size: 5rem;
}

/* ------------------------------------------------------------ */
/* --------------------Project-Section------------------------- */
/* ------------------------------------------------------------ */

.project-section h1 {
    text-align: center;
    color: var(--secondary-color);
    letter-spacing: 1px;
    word-spacing: 2px;
    font-weight: 700;
    font-size: 4.5rem;
}

.project-section h1 span {
    color: var(--primary-color);
}

.project-section h3 {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 5rem 0;
}

.project-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3em;
    flex-wrap: wrap;
}

.project-img-container {
    overflow-x: hidden;
    height: 18rem;
    min-width: 36rem;
}

.project-img-container::-webkit-scrollbar {
    width: 0.2em;
}

.project-img-container::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary-color);
}

.project-img {
    width: 36rem;
}

.project-card {
    color: var(--text-color);
    background-color: var(--bg-tertiary-color);
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.2em;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.5), 0px -5px 5px 0px rgba(0, 0, 0, 0.5);
    transition: 0.4s linear;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h2 {
    font-weight: 500;
    letter-spacing: 1.2px;
}

.project-link-container {
    display: flex;
    gap: 2em;
}

.project-live-link , .project-source-code {
    border: 2px solid rgb(0, 255, 238, 0.6);
    border-radius: 50%;
    height: 2em;
    width: 2em;
    text-align: center;
    line-height: 2em;
    text-decoration: none;
    color: rgb(0, 255, 238, 0.6);
    font-size: 1.6em;
    transition: 01s;
}

.project-live-link:hover , .project-source-code:hover {
    box-shadow: inset 0px -60px 0px rgb(0, 255, 238, 0.6);
    color: #000000;
}

/* ------------------------------------------------------------ */
/* --------------------Contact-Section------------------------- */
/* ------------------------------------------------------------ */

.contact-section h1 {
    text-align: center;
    letter-spacing: 1px;
    word-spacing: 2px;
    font-weight: 700;
    font-size: 4.5rem;
}

.contact-section h1 span {
    color: var(--primary-color);
    transition: 0.5s linear;
}

.contact-section h1 span:hover {
    color: var(--secondary-color);
}

.contact-form {
    margin: 6rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.6em;
    background-color: var(--bg-tertiary-color);
    max-width: 70rem;
    border-radius: 0.5em;
    padding: 2.5rem 2rem;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.5), 0px -5px 5px 0px rgba(0, 0, 0, 0.5);
}

.contact-form-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.contact-form-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

input[type="text"] , input[type="email"] , textarea {
    border-radius: 0.2em;
    padding: 1rem 1.8rem;
    font-size: 1.6rem;
    width: 100%;
    background-color: #242424;
    color: var(--text-color);
    margin-top: 0.5em;
    caret-color: var(--primary-color);
}

textarea {
    resize: none;
    height: 25vh;
}

input::placeholder , textarea::placeholder {
    font-weight: 300;
    font-size: 1.6rem;
}

input:focus , textarea:focus {
    transition: 0.8s;
    box-shadow: inset 0px -2px var(--primary-color) , inset 0px 2px var(--primary-color);
}

.submit-btn {
    align-self: flex-end;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.4rem;
    border-radius: 0.3em;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: not-allowed;
    transition: 0.4s ease-in-out , transform 0.2s;
}

.submit-btn:hover {
    border: 1px solid var(--secondary-color);
    filter: opacity(0.5);
    color: var(--text-color);
    box-shadow: inset 50px 0px 0px var(--secondary-color) , inset -50px 0px 0px var(--secondary-color);
}

.submit-btn:active {
    transform: translateY(2px);
}

/* ------------------------------------------------------------ */
/* --------------------------Footer---------------------------- */
/* ------------------------------------------------------------ */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 1.6rem;
    font-size: 1.6rem;
    letter-spacing: 1px;
    background-color: var(--bg--secondary-color);
}

/* ------------------------------------------------------------ */