@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

html {
    scroll-behavior: smooth;
}

*,
*::after,
*::before{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --maintext-color: #f0e6f8;
    --subtext-color: #ba71f7;
    --text-heading-color: #a743c0;
    --background-color: #201629;
    --accent-color: #7d1c9bdc;
}
/* 
#e4f1fe
#8dc6ff
#22313f
#34495e */


html {
    font-size: 62.5%;
}

body{
    font-family: "Poppins", sans-serif;
    background: #000;
    /* perspective: 1000px; */
}

.bgcontainer{
    overflow: hidden;
    z-index: -10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.container-background {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #000;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none; 
}

.container-background:hover::after,
.container-background.hover-active::after {
    opacity: 0.5;
    z-index: 1;
    overflow: hidden;
}

.container-background::after {
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(178, 13, 228, 0.836),
        transparent 40%
    );
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1d111f;
    transition: opacity 500ms;
    overflow: hidden;
}

.row{
    display: inline-flex;
    margin-top: -30px;
    margin-left: -50px;
}

.row:nth-child(even){
    margin-left: 1px;
}

.row .box{
    position: relative;
    width: 100px;
    height: 110px;
    background: #0c0c0c;
    margin: 2px;
    transition: 2s;
    clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
} 

.row .box:hover{
    transition: 0s;
    background: rgba(0, 128, 0,0.8);
} 

.row .box:active{
    transition: 0s;
    background: rgba(0, 128, 96, 0.8);
} 

.container{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}


.navbar input[type='checkbox'],
.navbar .hamburger-lines{
    display: none;
}

.navbar{
    box-shadow: 0px 5px 10px 0px rgba(112, 45, 129, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #431152ee;
    color: var(--text-heading-color);
    z-index: 999;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items{
    order: 2;
    display: flex;
}

.logo {
    font-family:"Dancing Script", serif;
    order: 1;
    font-size: 3rem;
}

.menu-items li{
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.8rem;
    padding: 1rem;
}

.navbar a{
    color: var(--maintext-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}


.underline{
    position: relative;
}

.underline::after{
    content: '';
    position: absolute;
    height: 2px;
    left: 0;
    bottom: 0;
    width: 0;
    background: rgb(148, 28, 184);
    transition: width .2s;
}

.underline:hover::after{
    width: 100%;
}

.navbar a:hover{
    color: rgb(148, 28, 184);
}

header {
    padding-top: 60px;
}

.header-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90vh;
    height: auto;
    color: var(--maintext-color);
    padding: 1rem;
}

.main-content{
    position: relative;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    width: 50%;
    height: 40vh;
    padding: 0 1rem 0 5rem;
    margin-right: auto;
}

.main-title{
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.main-title span{
    font-size: 7rem;
    font-family:"Dancing Script", serif;
    letter-spacing: 4px;
    color: var(--subtext-color);
}

.sub-title{
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.sub-title span{
    font-weight: 400;
    letter-spacing: 1px;
    margin-left: 5px;
    color: var(--subtext-color);
}

.clickarea {
    position: relative;
    margin: auto;
    width: 50vw;
    max-width: 500px; 
    height: 50vw;
    max-height: 500px;
    min-width: 250px;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.clickarea::before,
.clickarea::after{
    position: absolute;
    width: 200px;
    height: 200px;
    content: "";
}

.clickarea::before{
    left: 0;
    top: 0;
    border-left: 10px solid rgb(135, 35, 182);
    border-top: 10px solid rgb(135, 35, 182);
}

.clickarea::after{
    right: 0;
    bottom: 0;
    border-right: 10px solid rgb(135, 35, 182);
    border-bottom: 10px solid rgb(135, 35, 182);
}


.big-cube {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    position: absolute;
    transition: transform 0.1s ease-out;
}

.mini-cube {
    position: absolute;
    width: 30px;
    height: 30px;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgb(32, 2, 66);
    opacity: 0.8;
}

.front { background: rgba(148, 14, 238, 0.5); transform: rotateY(0deg) translateZ(15px); }
.back { background: rgba(148, 14, 238, 0.5); transform: rotateY(180deg) translateZ(15px); }
.left { background: rgba(148, 14, 238, 0.5); transform: rotateY(-90deg) translateZ(15px); }
.right { background: rgba(148, 14, 238, 0.5); transform: rotateY(90deg) translateZ(15px); }
.top { background: rgba(148, 14, 238, 0.5); transform: rotateX(90deg) translateZ(15px); }
.bottom { background: rgba(148, 14, 238, 0.5); transform: rotateX(-90deg) translateZ(15px); }

.about{
    padding:  80px 3rem 3rem 3rem;
    min-height: 90vh;
    height: auto;
}

.right-about{
    /* border: 1px solid blue; */
    padding: 2rem;
}

.right-about h1{
    color: var(--text-heading-color);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-decoration: underline;
}

.right-about .about-para{
    display: flex;
    flex-direction: column;
    color: var(--maintext-color);
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.about-para span{
    margin-bottom: 10px;
}

.right-about .cv-d{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.cv-d h1{
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    padding-bottom: 20px;
}

.cv-d .button{
    width: 150px;
    background: var(--accent-color);
    color: var(--maintext-color);
    border: none;
    padding: 10px 20px;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color), 0 0 15px var(--accent-color), 0 0 20px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color), 0 0 25px var(--accent-color), 0 0 30px var(--accent-color);
    }
    100% {
        box-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color), 0 0 15px var(--accent-color), 0 0 20px var(--accent-color);
    }
}

.cv-d button:hover{
    background: #8b1baddc;
    transform: scale(1.05);
    animation: glow 2s infinite;
}

.cv-d button:active{
    background: var(--text-heading-color);
    transform: scale(0.95);
}

.skills-section{
    padding: 7rem 3rem 3rem 3rem;
    min-height: 90vh;
    height: auto;
}

.skills-section{
    color: var(--maintext-color);
}

.skills-section h1{
    color: var(--text-heading-color);
    text-decoration: underline;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .skills{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 50px 50px 10px 50px;
    background-color: #201629af;
    min-height: 50rem;
    height: auto;
    min-width: 30rem;
}

.skills ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.skills ul li{
    position: relative;
    list-style: none;
    margin: 10px;
    padding: 30px;
    height: 150px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.skills p{
    text-align: center;
    font-size: 1.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.skills-cube .cube {
    display: flex;
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(20deg);
    transition: transform 0.3s ease-in-out, translate 0.3s ease-in-out;
}


.cube div i{
    color: rgb(124, 11, 199);
    font-size: 30px;
}

.skills-cube .face {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgb(57, 4, 92);
    background: var(--maintext-color);
}

.skills-cube .face.front { transform: rotateY(0deg) translateZ(25px); }
.skills-cube .face.back { transform: rotateY(180deg) translateZ(25px); }
.skills-cube .face.left { transform: rotateY(-90deg) translateZ(25px); }
.skills-cube .face.right { transform: rotateY(90deg) translateZ(25px); }
.skills-cube .face.top { transform: rotateX(90deg) translateZ(25px); }
.skills-cube .face.bottom { transform: rotateX(-90deg) translateZ(25px); }

.face {
    transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
  
i {
   transition: color 0.3s ease-out;
}

.skills ul li .skills-cube {
    position: static; 
    margin-top: 10px; 
}

.contact-section{
    position: relative;
    padding: 10rem 3rem 3rem 3rem;
    min-height: 70vh;
    height: auto;
}

.contact-container h1{
    color: var(--text-heading-color);
    text-decoration: underline;
    font-size: 3rem;
    font-weight: 600;
}

.contact-list{
    margin-top: 20px;
    border-radius: 10px;
    font-size: 1.5rem;
    background-color: rgba(167, 67, 192, 0.568);
    list-style: none;
    padding: 5px 30px 30px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-list li{
    min-width: 30rem;
    margin-top: 30px;
    display: flex;
    padding-bottom: 10px;
    position: relative;
    color: var(--maintext-color);
    align-items: center;
}

.contact-list li span {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 50px;
    height: 50px;
    border: 2px solid var(--maintext-color);
    border-radius: 50px;
    font-size: 30px;
    font-weight: 600;
    margin: 0 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.contact-list li a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s;
    color: var(--maintext-color);
}

.contact-list li a i {
    color: var(--maintext-color);
}

.contact-list li span:hover {
    color: var(--subtext-color);
    background-color: var(--maintext-color);
}

.contact-list li span:hover i,
.contact-list li span:hover a {
    color: var(--subtext-color);
} 

.contact-list li h2{
    color: var(--maintext-color);
}

.contact-list li p{
    color: var(--maintext-color);
}

footer {
    background-color: rgba(0, 0, 0, 0.76);
    text-align: center;
    padding: 1rem 0;
    position: relative;
    font-size: 1.2rem;
}

footer p{
    color: var(--maintext-color);
}

footer p span{
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1.5rem;
}

@media (max-width: 850px){
    .navbar{
        opacity: 0.95;
    }
    .navbar-container input[type='checkbox'],
    .navbar-container .hamburger-lines{
        display: block;
    }
    .navbar-container{
        display: block;
        position: relative;
        height: 64px;
    }

    .navbar-container input[type='checkbox']{
        position: absolute;
        display: block;
        height: 32px;
        width: 20px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
    }

    .logo{
        padding-top: 5px;
    }

    .navbar-container .hamburger-lines{
        display: block;
        height: 32px;
        width: 40px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .navbar-container .hamburger-lines .line{
        display: block;
        height: 4px;
        width: 100%;
        background: var(--text-heading-color);
        border-radius: 10px;
    }
    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
    .navbar-container .hamburger-lines .line2{
        transition: transform 0.4s ease-in-out;
    }
    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .navbar .menu-items{
        padding-top: 100px;
        background:  #431152ee;
        height: 150vh;
        max-width: 300px;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        box-shadow: 0px 5px 10px 0px rgba(112, 45, 129, 0.5);
    }
    .navbar .menu-items li{
        margin-bottom: 3rem;
        font-size: 2rem;
        font-weight: 500;
    }
    .logo{
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 3rem;
        z-index: -1;
    }
    .navbar-container input[type='checkbox']:checked ~ .menu-items{
        transform: translate(0);
    }
    .navbar-container input[type='checkbox']:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }
    .navbar-container input[type='checkbox']:checked ~ .hamburger-lines .line2{
        transform: scaleY(0);
    }   
    .navbar-container input[type='checkbox']:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }
    .header-container{
        flex-direction: column;
    }

    .main-content{
        width: 100%;
        padding: 3rem 1rem 0 5vw;
    }

    .main-title{
        font-size: 5vw;
    }

    .main-title span{
        font-size: 10vw;
    }

    .sub-title{
        font-size: 4vw;
    }

    .clickarea::before,
    .clickarea::after{
        width: 100px;
        height: 100px;
    }

    .clickarea::before{
        border-left: 8px solid rgb(135, 35, 182);
        border-top: 8px solid rgb(135, 35, 182);
    }
    
    .clickarea::after{
        border-right: 8px solid rgb(135, 35, 182);
        border-bottom: 8px solid rgb(135, 35, 182);
    }

    .cv-d h1{
        font-size: 1.5rem;
    }
    
    .skills ul{
        display: grid;
        grid-template-columns: repeat(2 , 1fr);
    }

    .contact-section{
        padding: 3rem 3rem 3rem 3rem;
    }
    .contact-list{
        grid-template-columns: repeat(1, 1fr);
    }
    footer{
        font-size: 1rem;
    }
    footer p span{
        padding-left: 0;
        padding-right: 0;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .skills ul li {
        flex-wrap: wrap;
        height: auto;
    }

    .skills ul li .skills-cube {
        position: static;
        margin-top: 10px;
    }
}

@media (max-width: 357px) {
    * {
      min-width: 0 !important;
    }
  
    body {
      transform: scale(0.9);
      transform-origin: top left;
      width: 111%;
    }
  }
