/*
    This file is a part of Saviru's Portfolio
    Copyright (C) 2024 Saviru Kashmira Atapattu

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Slab:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

html { 
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

/*Background animations*/
#container {
    display: grid;
    grid-template-columns: repeat(var(--rescol),50px);
    grid-gap: 2px;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

#container span {
    position: relative;
    width: 50px;
    height: 50px;
    background: #111;
    z-index: 10;
}

#cursor {
    position: fixed;
    width: 250px;
    height: 250px;
    background: #0f0;
    transform: translate(-50%, -50%);
    z-index: 1;
    border-radius: 50%;
    animation: animate 4s linear infinite;
}

#cursor::before, #cursor::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0;
    border-radius: 50%;
}

@keyframes animate {
    0% {
        filter: hue-rotate(0deg) blur(50px);
    }

    50% {
        filter: hue-rotate(180deg) blur(100px);
    }

    100% {
        filter: hue-rotate(360deg) blur(50px);
    }

}

.smoothtransform {
    transition: all 250ms ease-in-out; 
}

/*Navigation Bar*/
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-family: "Poppins", sans-serif;
    transition: all 250ms ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .025);
    backdrop-filter: blur(20px);
    z-index: -1;
}

.logo {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: all 250ms ease-in-out;
}

.url {
    cursor: pointer;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 2.5rem;
    transition: all 250ms ease-in-out;
}

.url:hover{
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 2.5rem;
    transition: all 100ms ease-in-out;
}

.active {
    font-size: 1.2rem;
    cursor: default;
    text-decoration: none;
    font-weight: 700;
    margin-left: 2.5rem;
    background: linear-gradient(90deg, blue, purple, pink, aqua);
    background-size: 300%;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: navanimate 10s linear infinite;
} 

@keyframes navanimate {
    0% {
        background-position: 0%;
    }

    50% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
    transform: all 250ms ease-in-out;
}

#menu-icon {
    animation-iteration-count: 0.45;
}

#close-icon {
    animation-iteration-count: 0.45;
}

/* Glass effect */
#Home {
    width: 100%;
    height: 25rem;
    display: flex;
    position: absolute;
    top: 0;
    margin-top: 100px;
    z-index: 50;
    font-family: "Poppins", sans-serif;
    left: 0;
    right: 0;
    text-align: center;
     
}

.window {
    position: absolute;
    width: 500px;
    height: 350px;
    right: 0;
    top: 0;
    margin-top: 2rem;
    margin-right: 25rem;
    transition: all 250ms ease-in-out;
}


.glassbox {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.37);
}

/* Animated text */
#names {
    top: 1;
    left: 0;
    margin-top: 4rem;
    color: #fff;
    font-size: 3em;
    padding: 0 10px;
    font-weight: 600; 
    margin-left: 25rem;
    transition: all 250ms ease-in-out; 
}

#names span{
    position: relative;
    color: rgba(255, 255, 255, 0.1);
    animation: displaytext 9s infinite;
    animation-delay: calc(-3s * var(--i));
}

@keyframes displaytext {
    0% {
        display: inline-block;
    }
    33.33%, 100% {
        display: none;
    }
}

#names span::before {
    content: attr(data-text);
    position: absolute;
    background: linear-gradient(70deg, #ffe100, #ff00dd);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    width: 100%;
    overflow: hidden;
    border-right: 4px solid red;
    filter: drop-shadow(0 0 20px #ff00dd) drop-shadow(0 0 25px #ffe100);
    animation: indicator 3s linear infinite;
}

@keyframes indicator {
    0%, 10%, 100% {
        width: 0;
    }
    70%, 90% {
        width: 100%;
    }
    
}


/*About code*/
.codename {
    position: absolute;
    width: 400px;
    height: 300px;
    right: 0;
    top: 0;
    margin-top: 3.5rem;
    margin-right: 28.25rem;
    transition: 50ms ease-in-out;

    transform-style: preserve-3d;
    transform: 
        perspective(5000px)
        rotateY(var(--rotY))
        rotateX(var(--rotX));
}

.codename::before {
    content: '';
    position: absolute;
    transform: translateZ(-49px);
    inset: -0.5rem;
    background: repeating-conic-gradient(from var(--a), #0f0, #ff0, #0ff, #f0f, #0ff, #0f0);
    border-radius: 20px;
    animation: rotating 4s linear infinite;
}

.codename::after {
    content: '';
    position: absolute;
    inset: -0.6rem;
    background: repeating-conic-gradient(from var(--a), #0f0, #ff0, #0ff, #f0f, #0ff, #0f0);
    border-radius: 20px;
    animation: rotating 4s linear infinite;
    filter: blur(20px);
    opacity: 0.75;
    transform: translateZ(-50px);
}

.codearea {
    position: absolute;
    inset: 0rem;
    background: #222;
    border-radius: 20px;
    z-index: 1;
    transition: all 100ms ease-in-out; 
}

@property --a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotating {
   0% {
    --a: 0deg;
   } 

   100% {
    --a: 360deg;
   }
}

#python {
    position: absolute;
    inset: 4px;
    z-index: 1;
    font-family: "Fira Code", monospace;
    color: #fff;
    margin-top: 1rem;
    margin-left: .6rem;
    text-align: justify;
    transition: all 50ms ease-in-out; 
}

#python .nuberings {
    color: #353535;
}

#python .greencode {
    color: rgb(0, 133, 0);
}

#python .bluecode {
    color: #05a3d3;
}

#python .orangecode {
    color: rgb(206, 86, 30);
}

#python .pinkcode {
    color: rgb(209, 3, 182);
}

#python .bluecodeD {
    color: #0060af;
}

#python .yellowcode {
    color: rgb(255, 251, 0);
}

#python .yellowcodeL {
    color: rgb(221, 221, 153);
}

#printpy {
    text-align: justify;
}

.currnum{
    color: #fff;
}

#blinkcur {
    animation: blinking .8s infinite;
}

/*About paragraph*/
.aboutunder {
    position: absolute;
    width: 450px;
    top: 1;
    left: 0;
    margin-top: 9rem;
    color: #fff;
    margin-left: 25.5rem;
    text-align: left;
    transition: all 250ms ease-in-out;
}

#childtext {
    color: #a5a5a5;
    transition: all 250ms ease-in-out; 
}


@keyframes blinking {
    0%, 50% {
        color: #fff;
    }

    80%, 100% {
        color: #222;
    }

}

/*Buttons*/
.spbuttons {
    display: flex;
    position: absolute;
    top: 0;
    margin-top: 20rem;
    left: 0;
    margin-left: 25.7rem;
    gap: 2rem;
    transition: all 250ms ease-in-out;
    cursor: pointer;
}

#ctmbutton {
    position: relative;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 300;
    font-size: large;
    cursor: pointer;
}

#ctmbutton #ctme {
    position: relative;
    cursor: pointer;
}

#ctmbutton::before {
    content: "";
    position: absolute;
    inset: 2px;
    background: #222;
    border-radius: 10px;
    transition: all 50ms ease-in-out;
}


#ctmbutton:hover::before{
    inset: 3px;
    background: linear-gradient(180deg, rgba(63, 63, 63, 0.7), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

#ctmbutton:hover {
    font-weight: 500;
    background: linear-gradient(315deg, #0ce39a, #69007f, #fc0987);
}

#ctmbutton::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(315deg, #0ce39a, #69007f, #fc0987);
    border-radius: 9px;
    transition: 0.3s;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
}

#ctmbutton:hover::after {
    opacity: 1;
}

#cvbutton {
    position: relative;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 300;
    font-size: large;
    transition: all 50ms ease-in-out;
}

#cvbutton #cvdown {
    position: relative;
}

#cvbutton::before {
    content: "";
    position: absolute;
    border-radius: 10px;
    inset: 2px;
    background: linear-gradient(180deg, rgba(63, 63, 63, 0.7), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

#cvbutton:hover::before {
    inset: 3px;
}

#cvbutton:hover {
    font-weight: 500;
    background: linear-gradient(315deg, #0ce39a, #69007f, #fc0987);
}

#cvbutton::after {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(315deg, #0ce39a, #69007f, #fc0987);
    border-radius: 9px;
    transition: 0.3s;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
}

#cvbutton:hover::after {
    opacity: 1;
}


/*Skills progress*/
#Skills {
    z-index: 50;
    top: 0;
    margin-top: 35rem;
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
}

#hr0 {
    height: 2.5rem;
    color: rgba(0, 0, 0, 0);
    border-width: 0;
}



.skillcontainer {
    font-family: "Poppins", sans-serif;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-flow: wrap;
    gap: 20px;
    left: 0;
    right: 0;
}

.skillcontainer .skillbox {
    position: relative;
    padding: 40px 0;
    width: 240px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 50px;
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    transition: all 250ms ease-in-out; 
}

.skillcontainer .skillbox .skillcircle {
    position: relative;
    width: 150px;
    height: 150px;
    background: conic-gradient(from 0deg, var(--clr) 0%, var(--clr) 0% var(--b), #333 var(--b), #333 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 250ms ease-in-out;
}


.skillcontainer .skillbox .skillcircle::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: #111;
    border-radius: 50%;
    backdrop-filter: blur(20px);
    transition: all 250ms ease-in-out; 
}

.skillcontainer .skillbox .skillcircle2 {
    content: '';
    position: absolute;
    inset: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 50%;
    transition: all 250ms ease-in-out; 
}

.skillcontainer .skillbox .skillpre {
    position: relative;
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-top: 25%;
    border-radius: 20px;
    transition: all 250ms ease-in-out; 
}


.skillcontainer .skillbox .skillpre small {
    font-size: 0.5rem;
    font-weight: 300;
    transition: all 250ms ease-in-out; 
}

.skillcontainer .skillbox .skilltx {
    color: #fff;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.1rem;
    transition: all 250ms ease-in-out; 
}

/*Go to top*/
.to-top {
    background: #fff;
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 50;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #000;
    text-decoration: none;
    transition: all .4s; 
}

/*Random letters glitch effect*/
.ranlets {
    font-family: 'Space Mono', monospace;
}
  
.ranlets:hover {
    background-color: white;
    color: black;
}

/*Glitch effect*/

.titles {
    position: relative;
    z-index: 55;
    color: white;
    left: 0;
    right: 0;
    text-align: center;
}

.glitch {
    font-family: "Exo 2", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;

    text-shadow:
        0.05em 0 0 rgba(255, 0, 0, .75),
        0.05em 0 0 rgba(0, 255, 0, .75),
        0.05em 0 0 rgba(0, 0, 255, .75);

    animation: glitch 500ms infinite;
}

.glitch span {
    position: absolute;
    left: 0;
    right: 0;
}
  
.glitch span:first-child {
    animation: glitch 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    /* color: green; */
    opacity: 0.8;
}
  
.glitch span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    /* color: red; */
    opacity: 0.8;
}


  
@keyframes glitch {
    0% {
      text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
        -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
      text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
        -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
      text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
        0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
        -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
      text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
        0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
        -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
      text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
        0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
      text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
        0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
      text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}
  
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
      animation-delay: -1ms !important;
      animation-duration: 1ms !important;
      animation-iteration-count: 1 !important;
      background-attachment: initial !important;
      scroll-behavior: auto !important;
      transition-duration: 0s !important;
      transition-delay: 0s !important;
    }
}

/*Education skills*/
.gledu {
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
}

.glbox {
    left: 0;
    right: 0;
    position: relative;
    transition: all 1s ease-in-out;
}

.glcont {
    position: relative;
    width: 400px;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 250ms ease-in-out; 
}

.gltxedu {
    color: #fff;
    position: relative;
    padding: 60px;
    text-align: left;
    transition: all 250ms ease-in-out; 
}

.glbox .glsqu {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    animation: glanim 10s linear infinite;
    animation-delay: calc(-1s * var(--gl));
}

@keyframes glanim {
    0%, 100% {
        transform: translateY(-40px);
    }
    50% {
        transform: translateY(40px);
    }
    
}

.glbox .glsqu:nth-child(1) {
    top: -50px;
    right: -60px;
    width: 100px;
    height: 100px;
}

.glbox .glsqu:nth-child(2) {
    top: 150px;
    left: -100px;
    width: 120px;
    height: 120px;
    z-index: 2;
}

.glbox .glsqu:nth-child(3) {
    bottom: 50px;
    right: -60px;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.glbox .glsqu:nth-child(4) {
    bottom: -80px;
    right: 100px;
    width: 50px;
    height: 50px;
}

.glbox .glsqu:nth-child(5) {
    top: -80px;
    left: 140px;
    width: 60px;
    height: 60px;
}


/*Projects*/
.prjs {
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
}

.pjglbox {
    display: flex;
    overflow-y: visible;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.37);
    flex-wrap: wrap;
    justify-content: center;
    flex-flow: wrap;
    gap: 1px;
    left: 0;
    right: 0;
}

.pjbox {
    text-decoration: none;
    font-family: "Roboto Slab", serif;
    position: relative;
    display: flex;
    align-items: center;
    text-align: justify;
    flex-direction: column;
    margin: 20px;
    width: 250px;
    height: 250px;
    background: repeating-conic-gradient(from var(--a), #ff2770 0%, #ff2770 5%, transparent 5%, transparent 40%, #ff2770 50%);
    animation: rotating 4s linear infinite;
    border-radius: 20px;
}

.pjbox::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(from var(--a), #45f3ff 0%, #45f3ff 5%, transparent 5%, transparent 40%, #45f3ff 50%);
    animation: rotating 4s linear infinite;
    animation-delay: -1s;
    border-radius: 20px;
}

.pjbox:hover .pjtext {
    margin: 10px;
}

.pjbox:hover .pjsmtext {
    margin-left: 10px;
    margin-right: 10px;
    opacity: 1;
    z-index: 1;
}

.pjbox::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: #333;
    border-radius: 15px;
}

.pjimg {
    margin-top: 10px;
    height: 120px;
    width: 80%;
    border-radius: 10px;
    z-index: 1;
}

.pjtext {
    color: #000;
    text-decoration: none;
    margin-left: 10px;
    margin-right: 10px;
    z-index: 1;
    margin-top: 40px;
}

.pjsmtext {
    text-decoration: none;
    color: #bbb;
    margin-left: 10px;
    margin-right: 10px;
    z-index: -1;
    opacity: 0;
}

/*Contact me*/
.contmediv {
    position: relative;
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: 20rem;
}

.contactmail {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(17px);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(17px);
    font-family: "Nunito", sans-serif;

}

.contactgroup {
    margin-top: 2.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
    position: relative;
    width: 370px;
    text-align: left;
    transition: 0.25s;
}

.lastcont {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.contactgroup .inputcont {
    position: relative;
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 3px solid #999;
    color: #fff;
    letter-spacing: 0.05em;
    font-size: 1.2em;
    transition: 0.5s;
}

.contactgroup .inputcont:focus ~ .contlabel {
    color: #0f0;
}

.contactgroup .contlabel {
    position: absolute;
    left: 0;
    padding: 10px 0;
    font-size: 1.2em;
    pointer-events: none;
    color: #666;
    user-select: none;
}

.contactgroup .contlabel .inputword {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    font-size: 1.2em;
    letter-spacing: 0.05em;
    transition: 0.25s cubic-bezier(0.5, 1, 0.5, 1.5);
}

.contactgroup .inputcont:focus ~ .contlabel .inputword,
.contactgroup .inputcont:valid ~ .contlabel .inputword {
    color: #0f0;
    text-shadow: 0 0 5px #0f0,
                0 0 15px #0f0,
                0 0 30px #0f0;
    transform: translateY(-30px);
}
.contactgroup .inputcont:focus,
.contactgroup .inputcont:valid {
    border-bottom: 2px solid #fff;
}


.contactgroup .inputcont:user-invalid {
    border-bottom: 2px solid red;
    transition: border 0.5s ease-in-out;
}


.contactgroup #email:user-invalid ~ .contlabel .inputword {
    color: #0f0;
    text-shadow: 0 0 5px #0f0,
                0 0 15px #0f0,
                0 0 30px #0f0;
    transform: translateY(-30px);
}

#message {
    max-width: 370px;
    min-width: 370px;
    min-height: 100px;
    max-height: 100px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 500px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

#fthr {
    height: 1px;
    border-color: #33333399;
}

/*Social media */
.socialm {
    font-family: "Poppins", sans-serif;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-flow: wrap;
    flex-direction: row;
    width: 100%;
    height: 20rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-top: 1px solid #6d6d6d8d;
    transition: all 250ms ease-in-out;
}

.footerd {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: right;
    justify-items: center;
    align-content: right;
    width: 50%;
    height: 100%;
    transition: all 250ms ease-in-out;
}

.footerd2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    justify-items: left;
    align-content: center;
    width: 50%;
    height: 100%;
    transition: all 250ms ease-in-out;
}

.hoverbox {
    top: 0;
    position: relative;
}

.smblk  {
    display: flex;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
    height: 100%;
    width: 50%;
}

.hvul {
    position: relative;
    transform: skewY(-25deg);
}

.hvul .hvli {
    position: absolute;
    top: 0;
    transform: translate(calc(var(--cb) * 40px), calc(var(--cb) * 40px));
    list-style: none;
    width: 100px;
    padding: 15px;
    background: #383838;
    transition: 0.5s;
    cursor: pointer;
}

.hvul .hvli:hover {
    top: -54px;
    background: var(--colr);

}

.hvul .hvli::before {
    content: "";
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 100%;
    background: #2f2f30;
    transform-origin: right;
    transform: skewY(45deg);
    transition: 0.5s;
}

.hvul .hvli:hover::before {
    background: var(--colr);
    filter: brightness(0.8);
}

.hvul .hvli::after {
    content: attr(data-text);
    position: absolute;
    top: -39px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #3e3e3e;
    transform-origin: bottom;
    transform: skewX(45deg);
    box-shadow: -120px 120px 20px rgba(0, 0, 0, 0.25);
    transition: 0.5s;
    display: flex;
    align-items: center;
    left: 0.05em;
    padding-left: 15px;
    box-sizing: border-box;
    color: var(--colr);
    font-size: 0.9rem;
}

.hvul .hvli:hover::after {
    filter: brightness(0.9);
    background: var(--colr);
    color: #fff;
    box-shadow: -170px 170px 20px rgba(0, 0, 0, 0.25);
}

.hvul .hvli .hva {
    text-decoration: none;
    color: transparent;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: 0.5s;
    text-align: left;
    font-size: 0.8em;
}


.hvul .hvli:hover .hva { 
    color: #000;
    font-size: 0.57rem;
    font-weight: bolder;
}

.hvul .hvli .hva .hvspan {
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    text-align: center;
    height: 100%;
    color: var(--colr);
    transform-origin: right;
    transform: skewY(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.hvul .hvli:hover .hva .hvspan {
    color: #fff;
}

.fttxt {
    text-align: left;
    height: 100%;
    width: 50%;
    align-content: center;
    justify-content: center;
    color: #fff;
    transition: all 250ms ease-in-out;
}

/*Notification bar*/

.toastnt {
    font-family: "Roboto Slab", serif;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    border-radius: 15px;
    background: #444;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-left: 6px solid var(--ntclrind);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.toastnt.ntact {
    transform: translateX(calc(0%));
}

.toastnt .ntcont {
    display: flex;
    align-items: center;
}

.ntcont .ntcheck {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    color: #0060af;
    font-size: 30px;
}

.ntmsg .nttxt {
    font-size: 20px;
    font-weight: 400;
    color: #bababa;
}

.ntmsg .nttxt.nttxt1 {
    font-weight: 600;
    color: #fff;
}

.ntcont .ntmsg {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.toastnt .ntclose {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toastnt .ntclose:hover {
    opacity: 1;
}

.toastnt .ntprog {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #444;
}

.toastnt .ntprog::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--ntclrind);
}

.ntprog.ntact::before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }

}

/* BREAKPOINTS */
@media (max-width: 3840px) {
    #names {
        margin-left: 70rem;
    }

    .window {
        margin-right: 70rem;
    }

    .codename {
        margin-right: 73.2rem;
    }

    .aboutunder {
        margin-left: 70.7rem;
    }

    .spbuttons {
        margin-left: 70.7rem;
    }
}


@media (max-width: 3310px) {
    #names {
        margin-left: 60rem;
    }

    .window {
        margin-right: 60rem;
    }

    .codename {
        margin-right: 63.2rem;
    }

    .aboutunder {
        margin-left: 60.7rem;
    }

    .spbuttons {
        margin-left: 60.7rem;
    }
}

@media (max-width: 2930px) {
    #names {
        margin-left: 50rem;
    }

    .window {
        margin-right: 50rem;
    }

    .codename {
        margin-right: 53.2rem;
    }

    .aboutunder {
        margin-left: 50.7rem;
    }

    .spbuttons {
        margin-left: 50.7rem;
    }
}

@media (max-width: 2610px) {
    #names {
        margin-left: 30rem;
    }

    .window {
        margin-right: 30rem;
    }

    .codename {
        margin-right: 33.2rem;
    }

    .aboutunder {
        margin-left: 30.7rem;
    }

    .spbuttons {
        margin-left: 30.7rem;
    }
}


@media (max-width: 1970px) {
    #names {
        margin-left: 20rem;
    }

    .window {
        margin-right: 20rem;
    }

    .codename {
        margin-right: 23.2rem;
    }

    .aboutunder {
        margin-left: 20.7rem;
    }

    .spbuttons {
        margin-left: 20.7rem;
    }
}

@media (max-width: 1630px) {
    #names {
        margin-left: 15rem;
    }

    .window {
        margin-right: 15rem;
    }

    .codename {
        margin-right: 18.2rem;
    }

    .aboutunder {
        margin-left: 15.7rem;
    }

    .spbuttons {
        margin-left: 15.7rem;
    }
}

@media (max-width: 1460px) {
    #names {
        margin-left: 10rem;
    }

    .window {
        margin-right: 10rem;
    }

    .codename {
        margin-right: 13.2rem;
    }

    .aboutunder {
        margin-left: 10.7rem;
    }

    .spbuttons {
        margin-left: 10.7rem;
    }
}

@media (max-width: 1290px) {
    #names {
        margin-left: 5rem;
    }

    .window {
        margin-right: 5rem;
    }

    .codename {
        margin-right: 8.2rem;
    }

    .aboutunder {
        margin-left: 5.7rem;
    }

    .spbuttons {
        margin-left: 5.7rem;
    }
}

@media (max-width: 1130px) {
    #names {
        margin-left: 2rem;
    }

    .window {
        margin-right: 2rem;
    }

    .codename {
        margin-right: 5.2rem;
    }

    .aboutunder {
        margin-left: 2.7rem;
    }

    .spbuttons {
        margin-left: 2.7rem;
    }
}

@media (max-width: 1020px) {
    #Skills {
        margin-top: 50rem;
    }

    #names {
        text-align: center;
        left: 50%;
        display: block;
        position: absolute;
        transform: translate(-58%, 0);
    }

    .window {
        margin-top: 250px;
        right: 50%;
        display: block;
        position: absolute;
        transform: translate(55.4%, 0);
    }

    .codename {
        margin-right: 0;
        margin-top: 17.15rem;
        left: 50%;
        display: block;
        position: absolute;
        transform: translate(-51.6%);
    }

    .codename::before {
        inset: -0.6rem;
    }

    .aboutunder {
        margin-top: 42rem;
        text-align: center;
        left: 50%;
        display: block;
        position: absolute;
        transform: translate(-61%);

    }

    #Skills {
        margin-top: 67rem;
    }

    .spbuttons {
        margin-top: 55rem;
        left: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        justify-content: center;
        justify-items: center;
        text-align: center;
    }
    
    .socialm {
        display: grid;
        height: 40rem;
        transition: all 250ms ease-in-out;
    }

    .footerd {
        width: 100%;
        justify-content: center;
        justify-items: center;
        align-items: center;
        align-content: center;
        transition: all 250ms ease-in-out;
    }

    .footerd2 {
        width: 100%;
        justify-content: center;
        justify-items: center;
        align-items: center;
        align-content: center;
        transition: all 250ms ease-in-out;
    }

    .fttxt {
        text-align: center;
        transition: all 250ms ease-in-out;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media (max-width: 768px) {
    .icons {
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, .025);
        backdrop-filter: blur(20px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .025);
        transition: .3s ease-in;
        overflow: hidden;
    }

    #check:checked~.navbar {
        height: 17.7rem;
    }

    .url {
        display: block;
        opacity: 0;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateX(-100px);
        transition: .3s ease;
    }

    #check:checked~.navbar .url {
        opacity: 100;
        transform: translateX(0);
        transition-delay: calc(.15s * var(--i));
    }

    ::-webkit-scrollbar {
        width: 0;
    }

}

@media (max-width: 625px) {
    .glcont {
        width: 300px;
        min-height: 300px;
    }

    .window {
        margin-right: 1.8rem;
    }

    .codename {
        margin-left: 0.25rem;
    }

    .aboutunder {
        margin-left: 3rem;
    }

    .hoverbox {
        margin-right: 1rem;
    }
}

@media (max-width: 515px) {
    .glbox .glsqu:nth-child(1) {
        top: -40px;
        right: -40px;
        width: 70px;
        height: 70px;
    }
    
    .glbox .glsqu:nth-child(2) {
        top: 140px;
        left: -70px;
        width: 90px;
        height: 90px;
    }
    
    .glbox .glsqu:nth-child(3) {
        bottom: 40px;
        right: -30px;
        width: 50px;
        height: 50px;
    }
    
    .glbox .glsqu:nth-child(4) {
        bottom: -50px;
        right: 130px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }
    
    .glbox .glsqu:nth-child(5) {
        top: -50px;
        left: 110px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 550px) {
    .skillcontainer .skillbox {
        width: 215px;
    }

    .skillcontainer {
        gap: 27px;
    }
}

@media (max-width: 510px) {
    .window {
        width: 450px;
        height: 300px;
        transform: translate(56.3%, 0);
    }

    .codename {
        width: 350px;
        height: 250px;
        transform: translate(-51.3%);
    }

    #python {
        font-size: 87.37%;
        margin-top: 1rem;
        margin-left: .6rem;
    }

    .aboutunder {
        margin-top: 37rem;
        font-size: 90%;
    }

    #skills {
        margin-top: 57rem;
    }

    .skillcontainer {
        gap: 25px;
    }

    .skillcontainer .skillbox {
        width: 200px;
    }

    .spbuttons {
        margin-top: 45rem;
    }
}

@media (max-width: 465px) {
    .window {
        width: 400px;
        height: 250px;
        transform: translate(56.4%, 0);
    }

    .codename {
        width: 300px;
        height: 200px;
        transform: translate(-52.3%);
    }

    #python {
        font-size: 67.37%;
        margin-top: 1rem;
        margin-left: .6rem;
    }

    .aboutunder {
        margin-top: 34rem;
        font-size: 80%;
        width: 400px;
        transform: translate(-62%);
    }

    #Skills {
        margin-top: 52rem;
    }

    .skillcontainer {
        gap: 20px;
    }

    .skillcontainer .skillbox {
        width: 160px;
    }
    
    .skillcontainer .skillbox .skillcircle {
        width: 110px;
        height: 110px;
    }
    
    .skillcontainer .skillbox .skillpre {
        font-size: 2rem;
    }
    .spbuttons {
        margin-top: 41rem;
    }

    .glbox .glsqu:nth-child(1) {
        top: -40px;
        right: -25px;
        width: 40px;
        height: 40px;
    }
    
    .glbox .glsqu:nth-child(2) {
        top: 140px;
        left: -30px;
        width: 50px;
        height: 50px;
    }
    
    .glbox .glsqu:nth-child(3) {
        bottom: 40px;
        right: -20px;
        width: 30px;
        height: 30px;
    }
    
    .glbox .glsqu:nth-child(4) {
        bottom: -50px;
        right: 130px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }
    
    .glbox .glsqu:nth-child(5) {
        top: -50px;
        left: 110px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }

    .contactgroup {
        width: 300px;
    }

    #message {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 420px) {
    .window {
        width: 370px;
        height: 250px;
        transform: translate(57.5%, 0);
    }

    .codename {
        transform: translate(-52%);
    }

    .aboutunder {
        transform: translate(-62%);
    }

    .hoverbox {
        margin-right: 3rem;
    }
}

@media (max-width: 396px) {
    .window {
        width: 350px;
        height: 250px;
        transform: translate(58.5%, 0);
    }

    .aboutunder {
        width: 350px;
        transform: translate(-63.5%);
    }

    .codename {
        transform: translate(-51%);
    }
}

@media (max-width: 390px) {
    .contactgroup {
        width: 250px;
    }

    #message {
        min-width: 250px;
        max-width: 250px;
    }
}

@media (max-width: 370px) {
    .skillcontainer {
        gap: 18px;
    }

    .skillcontainer .skillbox {
        width: 140px;
    }
    
    .skillcontainer .skillbox .skillcircle {
        width: 90px;
        height: 90px;
    }
    
    .skillcontainer .skillbox .skillpre {
        font-size: 1.5rem;
    }

    .glcont {
        width: 250px;
        min-height: 200px;
    }

    .glbox .glsqu:nth-child(1) {
        top: -40px;
        right: -25px;
        width: 40px;
        height: 40px;
    }
    
    .glbox .glsqu:nth-child(2) {
        top: 140px;
        left: -30px;
        width: 50px;
        height: 50px;
    }
    
    .glbox .glsqu:nth-child(3) {
        bottom: 40px;
        right: -20px;
        width: 30px;
        height: 30px;
    }
    
    .glbox .glsqu:nth-child(4) {
        bottom: -50px;
        right: 130px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }
    
    .glbox .glsqu:nth-child(5) {
        top: -50px;
        left: 110px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }

}

/* Context Menu */
#context-menu {
    z-index: 10000;
    width: 250px;
    position: fixed;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: scale(0);
    transform-origin: top left;
}

#context-menu.visible {
    transform: scale(1);
    transition: transform 200ms ease-in-out;
}

#context-menu .item {
    text-decoration: none;
    font-family: "Nunito", sans-serif;
    padding: 8px 10px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    border-radius: inherit;
    margin-left: 6%;
    margin-right: 6%;
    margin-top: 2.5px;
    margin-bottom: 2.5px;
    background: rgba(0, 0, 0, 0);
    transition: all 150ms ease-out;
}

#context-menu .item:hover {
    background: rgba(67, 67, 67, 0.3);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    transition: all 250ms ease-in;
}

#context-menu .donect {
    color: #777;
    text-align: right;
    justify-content: right;
    right: 0;
    margin-left: 6%;
    display: none;
}

#context-menu .ctmhr {
    margin-left: 5%;
    margin-top: 2.5px;
    margin-bottom: 2.5px;
    width: 90%;
    border-radius: 20px;
    background: #555;
    height: 2px;
    border: 0;
}

/*Webkit items*/
::-webkit-scrollbar {
    width: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar:hover {
    width: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);   
}

::-webkit-scrollbar-thumb {
    background: rgba(78, 78, 78, 0.781);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(0deg, rgb(255, 0, 234), rgb(132, 0, 255), rgb(76, 0, 255));
}
