@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* font-family: "Source Sans 3", sans-serif; */
}

:root{
    /* colors */
    --bg-color: #151515;
    --white: #ffffff;

    --blue: #46c8ff;

    --red: #f9306c;

    --yellow: #ffc400;
}

::-webkit-scrollbar{
    display: none;
}

html {
    scroll-behavior: smooth !important;
    scroll-snap-type: y mandatory;
}

body{
    background: #151515;
    width: 100%;
    overflow-x: hidden;
}

section{
    scroll-snap-align: start;
    height: 100vh;
}

/******************************************            header            ******************************************/

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px 60px;
    position: fixed;
    width: 100%;
    color: #fff;
    z-index: 99;
    font-family: "Source Sans 3", sans-serif;
}

.logo{
    font-family: "Oswald", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    transform: scale(0.8);
}

.logo::before{
    content: '';
    position: absolute;
    height: 150px;
    aspect-ratio: 1;
    background: #fff;
    filter: blur(50px);
    display: block;
    z-index: -2;
    border-radius: 50%;
}

.logo .gear img{
    height: 64px;
    animation: rotate infinite 8s linear;
    position: absolute;
    left: 38px;
    top: -26px;
    animation-delay: 250ms;
    z-index: 2;
}

.logo .gear img:nth-child(2){
    margin-left: -2px;
    z-index: 1;
}

.logo .laptop{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.logo .laptop .screen-box{
    display: block;
    height: 60px;
    width: 90px;
    background: #151515;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    padding: 5px 2px;
}

.logo .laptop .screen-box .screen{
    height: 100%;
    width: 100%;
    background: #ffc400;
    border-bottom: #fff 1px solid;
    border-right: #fff 1px solid;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo .laptop .screen-box .screen::before{
    height: 5px;
    width: 170px;
    background: #151515;
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: -2px 0 0 #ffc400;
}

.logo .laptop .screen-box .screen::after{
    height: 5px;
    width: 140px;
    background: #151515;
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 5px;
    box-shadow: -2px 0 0 #ffc400;
    margin-top: 35px;
}

.logo .laptop .screen img{
    height: 48px;
    animation: rotate-anti infinite 8s linear;
    display: block;
}

.logo .laptop .base{
    display: block;
    height: 8px;
    width: 130px;
    background: #151515;
    border-top: #ffc400 2px solid;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.logo .text h3{
    font-size: 36px;
    font-weight: 500;
    text-shadow: -2px 0 0 #ffc400;
    color: #151515;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav .button {
    background: #0002;
    backdrop-filter: blur(8px);
    border: 2px solid;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    padding: 5px 25px;
    border-radius: 5px;
    text-transform: capitalize;
    text-decoration: none;
    cursor: pointer;
}

/******************************************            aside            ******************************************/

aside{
    position: fixed;
    z-index: 999;
    right: 50px;
    height: 65vh;
    bottom: 0;
    display: flex;
    justify-content: center;
    font-family: "Source Sans 3", sans-serif;
}

aside nav ul li a{
    text-decoration: none;
    color: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    font-weight: 200;
}

aside nav ul li.active a{
    font-weight: 600;
}

aside nav ul{
    position: relative;
    border-right: 1px solid #ddd8;
}

aside nav ul li{
    position: relative;
    list-style-type: none;
    height: 50px;
    width: 50px;
    margin-bottom: 10px;
    font-weight: 400;
}

aside nav ul span.indicator{
    position: absolute;
    display: block;
    height: 50px;
    width: 3px;
    background: #fff;
    transition: transform 0.5s ease;
    z-index: 2;
    right: 0;
    top: 0;
}

.nav-list {
    position: relative;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.indicator {
    position: absolute;
    width: 100%;
    right: 0;
    height: 4px;
    background-color: red;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.nav-item:nth-child(1):hover ~ .indicator {
    transform: translateY(0);
}

.nav-item:nth-child(2):hover ~ .indicator {
    transform: translateY(60px);
}

.nav-item:nth-child(3):hover ~ .indicator {
    transform: translateY(120px);
}

.nav-item:nth-child(4):hover ~ .indicator {
    transform: translateY(180px);
}

.nav-item:nth-child(5):hover ~ .indicator {
    transform: translateY(240px);
}

/******************************************            common elements            ******************************************/

.code-blur{
    display: flex;
    gap: 20px;
    width: 400px;
    flex-wrap: wrap;
    margin-top: -60px;
}

.code-blur span{
    display: block;
    height: 12px;
    width: 100px;
    background: #fff;
    filter: blur(8px) brightness(0.6);
}

.code-blur span.yellow{
    background: #ffc400;
}

.code-blur span.blue{
    background: #46c8ff;
}

.code-blur span.red{
    background: #f9306c;
}

.code-blur span:nth-child(1),
.code-blur span:nth-child(6), 
.code-blur span:nth-child(7), 
.code-blur span:nth-child(17){
    width: 20px;
}

.code-blur span:nth-child(2),
.code-blur span:nth-child(8){
    width: 60px;
}

.code-blur span:nth-child(10), 
.code-blur span:nth-child(5), 
.code-blur span:nth-child(11){
    width: 180px;
}

.code-blur span:nth-child(13){
    width: 250px;
}

.hd-1{
    display: flex;
    flex-wrap: wrap;
    column-gap: 25px;
    color: #fff;
}

.hd-1 .hd-word span{
    transition: 0.3s ease-in;
    font-size: 60px;
    letter-spacing: -5px;
    display: inline-block;
}

.hd-1 .hd-word span:hover{
    color: #ffc400;
    transform: scale(1.5);
}