@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playpen+Sans:wght@100..800&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&family=Roboto+Slab:wght@100..900&display=swap');

:root {
    --bg1: #36b3eb; 
    --bg2: #483fbf;
    --bg3: #d529c4;
    --menu: linear-gradient(90deg, rgba(39, 201, 210, 0.4) 0%, rgba(112, 147, 218, 0.4) 70%);
    --accent: #00f58d;
    --pill: #21b6de;
    --text-main: #ff00a5;
    --overlay-color: rgba(0, 0, 0, 0.8);
    --menu-speed: 0.4s;
}

*
{
	margin: 0;
	padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playpen Sans";
    margin: 0;
    min-height: 100vh;
    background: #000;
    color: #ffffff;
    word-wrap: break-word;
    user-select: none;
}

.menu-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}
  
.menu-wrap .toggler {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1002;
    cursor: pointer;
    width: 50px;
    height: 50px;
    opacity: 0;
}
  
.menu-wrap .hamburger {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 60px;
    height: 60px;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-wrap .hamburger > div {
    position: relative;
    flex: none;
    width: 100%;
    height: 3px;
    border-radius: 50px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.menu-wrap .hamburger > div::before,
.menu-wrap .hamburger > div::after {
    content: '';
    position: absolute;
    z-index: 1001;
    top: -10px;
    width: 100%;
    height: 3px;
    border-radius: 50px;
    background: inherit;
}

.menu-wrap .hamburger > div::after {
    top: 10px;
}
  

.menu-wrap .toggler:checked + .hamburger > div {
    transform: rotate(135deg);
    background: #00FF26;
}
  

.menu-wrap .toggler:checked + .hamburger > div:before,
.menu-wrap .toggler:checked + .hamburger > div:after {
    top: 0;
    transform: rotate(90deg);
}
  
.menu-wrap .toggler:checked:hover + .hamburger > div {
    transform: rotate(225deg);
}
  

.menu-wrap .toggler:checked ~ .menu {
    visibility: visible;
}
  
.menu-wrap .toggler:checked ~ .menu > div {
    transform: scale(1);
    transition-duration: var(--menu-speed);
}
  
.menu-wrap .toggler:checked ~ .menu > div > div {
    opacity: 1;
    transition:  opacity 0.4s ease 0.4s;
}
  
.menu-wrap .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.menu-wrap .menu > div {
    background: rgba(5, 5, 68, 0.733);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 200vw;
    height: 200vw;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: all 0.5s ease;
}
  
.menu-wrap .menu > div > div {
    text-align: center;
    max-width: 90vw;
    max-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease;
}
  
.menu-wrap .menu > div > div > ul > li {
    list-style: none;
    font-family: "Roboto Mono", monospace;
    color: rgb(5, 248, 29);
    font-size: 1.5rem;
    font-weight: 400;
    padding: 1rem;
}
  
.menu-wrap .menu > div > div > ul > li > a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
}



header {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    margin-left: 5vw;
    margin-top: 1em;
    width: 90vw;
    height: 5rem;
    border-radius: 30px;
    background: rgba(8, 8, 40, 0.5);
    position: fixed;
    z-index: 1000;
    top: 0;
    backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 
    0 0 40px rgba(0, 255, 255, 0.15);
}

header a {
    text-decoration: none;
    color: #04ffff;
}

nav {
    display: flex;
    align-items: center;
    font: bold 150% serif;
    font-family: "Roboto Mono", monospace;
    gap: 10em;
    
}

nav a{
    transition: 0.4s, color 0.3s;
}

nav a:hover {
    color:#00ff44;
    transform: scale(120%)
}

nav a:active {
    color: #0800ff;
    transform: scale(80%)
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    letter-spacing: -50px;
    color: #00FF26;
    font: Bold 1200% serif;
    font-family: "Playpen Sans";
    padding: 80px;
    cursor: default;
}

/*.descr {
    margin-top: -1em;
    display: flex;
    padding: 20px 50px 20px 50px;
    align-items: center;
    text-align: center;
    color: #0900FF;
    background: #36b2ebc5; 
    border-radius: 30px;
    font: bold 20px serif;
    font-family: "Playpen Sans";
    cursor: default;
}
*/
/*.glow-on-hover {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: rgb(19, 35, 221);
    background: linear-gradient(180deg, #00FF1E 38%, #01FFF2 75%);    
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-family: "Playpen Sans";
    font: bold 30px serif;
    text-decoration: none;
    margin-top: 3em;
    padding-top: 0.4em;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:hover {
    color:#e100ff;
}

.glow-on-hover:active {
    color: rgb(15, 255, 2)
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(40deg, #00FF1E 38%, #01FFF2 75%);
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}
*/
.name_anime {
	width: 100%;
	margin: auto;
	font-weight: 600;
    font-family: "Montserrat", sans-serif;
	text-transform: uppercase;
	text-align: center;
	padding: 0 0 7rem;
    cursor: default;
}

.animate {
    font-size: clamp(1em, 0.9vw + 1.5em, 4em);
}

.animate span {
	display: inline-block;
}
  
.animate span:nth-of-type(2) {
    animation-delay: .05s;
}
.animate span:nth-of-type(3) {
    animation-delay: .1s;
}
.animate span:nth-of-type(4) {
    animation-delay: .15s;
}
.animate span:nth-of-type(5) {
    animation-delay: .2s;
}
.animate span:nth-of-type(6) {
    animation-delay: .25s;
}
.animate span:nth-of-type(7) {
    animation-delay: .3s;
}
.animate span:nth-of-type(8) {
    animation-delay: .35s;
}
.animate span:nth-of-type(9) {
    animation-delay: .4s;
}
.animate span:nth-of-type(10) {
    animation-delay: .45s;
}
.animate span:nth-of-type(11) {
    animation-delay: .5s;
}
.animate span:nth-of-type(12) {
    animation-delay: .55s;
}
.animate span:nth-of-type(13) {
    animation-delay: .6s;
}
.animate span:nth-of-type(14) {
    animation-delay: .65s;
}
.animate span:nth-of-type(15) {
    animation-delay: .7s;
}
.animate span:nth-of-type(16) {
    animation-delay: .75s;
}
.animate span:nth-of-type(17) {
    animation-delay: .8s;
}
.animate span:nth-of-type(18) {
    animation-delay: .85s;
}
.animate span:nth-of-type(19) {
    animation-delay: .9s;
}
.animate span:nth-of-type(20) {
    animation-delay: .95s;
}

.seven span {
	color:rgb(12, 229, 34);
    text-shadow: 0 3px 30px #00ff44;
	opacity: 0;
	transform: translate(-150px, 0) scale(.3);
}

.seven.active span {
    animation: leftRight .6s forwards;
}

@keyframes leftRight {
	40% {
		transform: translate(50px, 0) scale(.7);
		opacity: 1;
		color: #e600ff;
	}

	60% {
		color: #0004ff;
	}

	80% {
		transform: translate(0) scale(2);
		opacity: 0;
	}

	100% {
		transform: translate(0) scale(1);
		opacity: 1;
	}
}

.cards_grid {
    display: grid;
    grid-template-columns: repeat();
    grid-template-areas: 
    "card1 card2 card2 card3"
    "card4 card4 card5 card5";
    gap: 40px;
    margin:0 20px;
    margin-bottom: 8em;
}

#card_1 {
    grid-area: card1;
}

#card_2 {
    grid-area: card2;
}

#card_3 {
    grid-area: card3;
}

#card_4 {
    grid-area: card4;
}

#card_5 {
    grid-area: card5;
}

.card {
    padding: 28px;
    background: rgba(0, 38, 255, 0.25);
    border-radius: 70px;
    box-shadow: 0 10px 30px rgba(7, 209, 27, 0.86);
    text-align: center;
    font-size: clamp(14px, 0.9vw + 8px, 18px);
    font-weight: 400;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
    cursor: default;
}

.cards_proj {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin:  20px 20px 30px 20px;
}

.project {
    padding: 28px;
    background: rgba(4, 0, 255, 0.25);
    border-radius: 70px;
    box-shadow: 0 10px 30px rgb(0, 255, 238);
    text-align: center;
    font-size: clamp(14px, 0.9vw + 8px, 18px);
    font-weight: 400;
    line-height: 1.6;
    cursor: default;
    
}

img {
    width: 23vw;
    border-radius: 35px;
}

.h {
    font: bold 150% serif;
    font-family: "Roboto Slab";
    color: #FB00BC;
}

.name {
    text-align: center;
}


section {
    scroll-margin-top: 150px;
}

.projects .section_heading_card {
    text-align: center;
    width: 25%;
}


footer {
    margin-top: 20vh;
}

footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

footer ul li {
    margin: 0 10px;
}

footer ul li a {
    width: 80px;
    height: 80px;
    background-color: rgb(0, 221, 255);
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    color: #262626;
    transition: all 0.5s ease;
    z-index: 1;
    box-shadow: 0 2px 30px rgb(0, 251, 255);
}

footer ul li a .icon {
    position: relative;
    color: #262626;
    transition: color 0.5s ease;
    z-index: 3;
    
}

footer ul li a:hover .icon {
    color: #fff;
}

footer ul li a:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: top 0.5s ease;
    z-index: 2;
}

footer ul li a:hover:before {
    top: 0;
}

footer ul li:nth-child(1) a:before {
    background: #19a934;
}

footer ul li:nth-child(2) a:before {
    background: #d23f1a;
}

footer ul li:nth-child(3) a:before {
    background: #27a7e7;
}

footer ul li:nth-child(4) a:before {
    background: #322db4;
}



/* фон главной страницы - космос */

#home.hero {
    position: relative;
    background: rgba(0, 0, 2) !important;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero > .logo {
    position: relative;
    z-index: 2;
    font-size: clamp(100px, 15vw, 300px);
    letter-spacing: -10px;
    color: #00ffff;
    text-shadow: 
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px #0088ff,
    0 0 120px #0044ff;
    font-weight: 900;
    margin-bottom: 3rem;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from { text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff; }
    to { text-shadow: 0 0 40px #00ffff, 0 0 80px #0088ff, 0 0 120px #0044ff; }
}

.launch-btn {
    margin-top: 4rem;
    padding: 1.2rem 3.5rem;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00ffea;
    background: rgba(0, 255, 234, 0.1);
    border: 2px solid #00ffea;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 
    0 0 30px rgba(0, 255, 234, 0.5),
    inset 0 0 20px rgba(0, 255, 234, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 6rem;
    transition: transform 0.5s;
}

.launch-btn:hover {
    transform: scale(120%);
}

.launch-btn:active {
    transform: scale(90%);
}

.descr {
    margin: 2rem 0;
    padding: 1.5rem 3rem;
    background: rgba(10, 10, 40, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50px;
    font-family: "Roboto Mono", monospace;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: #a0d8ff;
    line-height: 1.8;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}



.descr .tagline {
    display: block;
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #00ffea;
    font-weight: 700;
    text-shadow: 0 0 20px #00ffea;
    text-align: center;
}

@media (max-width: 1600px) {
    nav {
        gap: 10em;
    }
}

@media (max-width: 1430px) {
    nav {
        gap: 6em;
    }
}   

@media (max-width: 1100px) {
    .cards_proj {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards_grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: 
        "card1 card3"
        "card2 card2"
        "card4 card5";
    }

    .logo {
        margin-right: 40px;
    }
}

@media (max-width: 670px) {
    .descr {
        width: 60vw;
        font-size: 1rem;
        line-height: 1.3;
    }

    .descr .tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .cards_proj {
        grid-template-columns: 1fr;
    }

    .cards_grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
        "card1"
        "card3"
        "card2"
        "card4"
        "card5";
    }

    .menu-wrap .hamburger {
        width: 45px;
        height: 45px;
    }

    .logo {
        margin-right: 40px;
    }

    footer ul li a {
        width: 65px;
        height: 65px;
        line-height: 62px;
    }
}

@media (max-width: 500px) {
    .descr {
        width: 60vw;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .descr .tagline {
        font-size: 1.1rem;
    }
}

@media (max-width: 450px) {
    footer ul li a {
        width: 60px;
        height: 60px;
        border: 2px solid #fff;
        line-height: 58px;
    }

    .descr .tagline {
        font-size: 1.1rem;
    }
}



@media screen and (max-width: 1100px) {
    header {
      display: none; /* Прячем обычное меню */
    }
  
    .menu-wrap{
      display: block; /* Показываем меню-гамбургер */
    }

    .logo {
        margin-left: 2rem;
        margin-top: 4rem;
    }
}
  
@media screen and (min-width: 1101px) {
    .menu-wrap {
      display: none; /* Прячем гамбургер на больших экранах */
    }
}