:root {
    --raw-seinna: hsl(206, 74%, 58%);
    --sizzling-sunrise: hsl(51, 95%, 54%);
    --scarlet: hsl(13, 96%, 47%);
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);

    --ff-poppins: 'Poppins', sans-serif;
    --fs-1: 2rem;
    --fs-2: calc(1.813rem + 1vw);
    --fs-3: calc(1.313 +1vw);
    --fs-4: 1.4rem;
    --fs-5: 1rem;
    --fs-6: 0.813rem;
    --fs-7: 0.75rem;
    --fw-400: 400;
    --fw-700: 700;

    --transition-1: 0.25s ease-in-out;
    --section-padding: 80px;
    --radius-4: 4px;
    --radius-12: 12px;

}

body.dark_theme {
    --bg-primary: hsl(0, 0%, 12%);
    --bg-secondary: rgba(0, 0%, 19%, .5);
    --color-primary: hsl(0, 0%, 100%);
    --color-secondary: hsl(0, 0, 62%);
    --card-shadow: hsl(0, 0%, 0%, 0.4);
    --input-bg: hsl(0, 0%, 16%);
    --shadow-1: 10px 10px 40px var(--card-shadow);
    background: url('/images/picture1.jpg') no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: repeat;
}

.badge-new {
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    color: white;
    font-size: 0.75em;
    padding: 4px 12px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);}
}

.project-page {
    padding: 150px 0 80px;
}

.project-page-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.project-page-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0,212,255,0.4);
}

.project-page-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.project-page-version {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 8px;
}

.project-page-section {
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 20px;
}

.project-page-subtitle {
    color: #00D4FF;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,212,255,0.2);
}

.project-page-text {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 1rem;
    margin-left: -70px;
}

.project-page-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-page-screenshot {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0,212,255,0.2);
    transition: transform 0.3s ease;
}

.project-page-screenshot:hover {
    transform: scale(1.02);
}

.project-page-tips {
    color: rgba(255,255,255,0.8);
    padding-left: 20px;
    line-height: 2.2;
}

.project-page-tips {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.project-page-tips li {
    padding: 6px 0 6px 35px;
    position: relative;
}

.project-page-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #00D4FF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.project-page-back {
    display: inline-block;
    color: #00D4FF;
    margin-top: 20px;
    font-size: 1rem;
    transition: gap 0.3s ease;
}

.project-page-back:hover {
    letter-spacing: 1px;
}

*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

li{ list-style: none;}

a{ text-decoration: none;}

a, 
img, 
time, 
span, 
input, 
label, 
select, 
button, 
textarea, 
ion-icon { display: block;}

input, 
button, 
select, 
textarea {
    background: none;
    border: none;
    font: inherit;
}

button, 
select{
    cursor: pointer;
}


input, 
textarea{
    width: 100%;
}

/*ion-icon { pointer-events: none;}*/
ion-icon{
    width: 50px;
    height: 50px;
    /*background: var(--color-primary);*/
    place-items: center;
    font-size: 20px;
    color: var(--color-primary);
    /*border: solid var(--color-primary);*/
    border-radius: 50%;
    opacity: 1;
    z-index: 2;
}
:is(a, button, select){
    outline-color: var(--scarlet);
    outline-offset: 3px;
}

::selection {
    background: var(--color-primary);
    color: var(--bg-primary);
}

html{
    font-family: var(--ff-poppins);
    scroll-behavior: smooth;
}

body{
    transition: var(--transition-1);
    height: 200vh;
}

body.active{
    overflow: hidden;
}

.container{
    padding-inline: 10px;
}

.h1{
    font-size: var(--fs-1);
    line-height: 1.2;
}

.h2,
.h3,
.h4{
    color: var(--color-primary);
    font-family: var(--ff-poppins);
    line-height: 1;
}

.h2{
    font-size: var(--fs-2);
}

.h3{
    font-size: var(--fs-3);
}

.h4{
    font-size: var(--fs-5);
}

.w-100{
    position: relative;
    width: 100%;
    left: 350px;
}

.btn{
    max-width: max-content;
    color: var(--color-primary);
    font-weight: var(--fw-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 25px;
    border: 1px solid transparent;
    border-radius: var(--radius-4);
    transition: var(--transition-1);
}

.btn-primary{
    border-color: var(--color-primary);
}

.btn-primary:is(:hover, :focus){
    background: var(--color-primary);
    color: var(--bg-primary);
}

.btn-secondary{
    background: var(--raw-seinna);
    border-color: var(--raw-seinna);
    color: var(--black);
}

.btn-secondary:is(:hover, :focus){
    --raw_seinna: hsl(24, 74%, 64%);
}

.header{
    padding: 15px;
    position: fixed;
    width: 100%;
    transition: var(--transition-1);
    z-index: 4;
}

.header.active{
    padding-block: 12px;
    background: var(--bg-secondary); 
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(15px);
}

.header .container{
    margin-top: -8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    position: relative;
    min-width: 77px;
    z-index: 2;
}

.logo a{
    margin-top: -15px;
    color: var(--color-primary);
    font-family: var(--ff-poppins);
    font-weight: 750;
}

.logo span {
    display: inline-block;
    color: var(--raw-seinna);
}

.navbar-actions{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.navbar-actions select{
    color: var(--color-primary);
    width: 45px;
}

.navbar-actions option{
    background: var(--bg-primary);
    color: var(--color-primary);
}

.theme-btn{
    padding: 4px;
    width: 48px;
    background: var(--bg-secondary);
    border-radius: 100px;
    transition: var(--transition-1);
}

.header.active .theme-btn{
    background: var(--bg-primary);
}

.theme-btn .icon{
    position: relative;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    box-shadow: inset 9px -6px var(--color-primary);
    transition: var(--transition-1);
}

.theme-btn.active .icon{
    left: 20px;
    box-shadow: inset 20px -20px var(--sizzling-sunrise);
}

.nav-toggle-btn{
    position: relative;
    transform: rotate(-55deg);
    transition: var(--transition-1);
    z-index: 2;
}

.nav-toggle-btn.active{
    transform: rotate(-45deg);
}

.nav-toggle-btn span{
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px;
    transition: var(--transition-1);
}

.nav-toggle-btn :is(.one, .three){
    width: 10px;
}

.nav-toggle-btn .one{
    margin-left: auto;
    transform-origin: left;
}

.nav-toggle-btn .three{
    transform-origin: right;
}

.nav-toggle-btn.active .one{
    transform: rotate(90deg) translateX(-3px);
}

.nav-toggle-btn.active .three{
    transform: rotate(90deg) translateX(3px);
}

.navbar{
    position: fixed;
    background: var(--bg-secondary);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    visibility: hidden;
    /*transition: 5s cubic-bezier(0.71, 0.01, 0.24, 0.99);*/
    z-index: 1;
}

.navbar.active{
    top: 0;
    visibility: visible;
    transition-delay: 0s;
}

.navbar-link > li{
    margin-block: 20px;
    padding-inline: 50px;
    overflow: hidden;
}

.navbar-link{
    position: relative;
    width: max-content;
    margin-inline: auto;
    color: var(--color-primary);
    font-family: var(--ff-poppins);
    font-weight: 700;
    padding: 10px;
    transform: translateY(50px);
    transition: 0s cubic-bezier(0.68, -0.55, 0.27, 2);
}
.navbar-link.active{
   /* color: var(--raw-seinna); */
   color: #00D4FF;
}
.navbar.header.active .navbar-link{
    transform: translateY(0);
    /*transition-delay: 0.5s;*/
}

.navbar-link::before{
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 5px;
    width: 0;
    background: var(--raw_seinna);
    transition: var(--transition-1);
}

.navbar-link:hover{
    color: var(--raw-seinna);
}

.navbar-link:is(:hover, :focus)::before{
    width: 100%;
}

main {
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 115px;
    margin-bottom: var(--section-padding);
    /*transition: 10s cubic-bezier(0.71, 0.01, 0.24, 0.99);*/
}

.hero-banner {
    max-width: 500px;
    width: 125%;
    margin-bottom: 30px;
}

.hero-social-list {
    display: flex;
    /*position: absolute;*/
    justify-content: center;
    align-items: center;
    /*width: 40px;*/
    width: auto;
    bottom: 4rem;
}

.hero-social-list a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
}

.hero-social-list::after{
    content: " ";
    position: absolute;
    bottom: -20px;
    background: var(--color-secondary);
    /*transform: rotate(90deg);*/
}

.hero-social-list img{
    width: 48px;
    height: 48px;
}

.hero-social-link{
    position: relative;
    color: var(--color-secondary);
    margin-block: 5px;
    padding: 5px;
    font-size: 18px;
    transition: var(--transition-1);
}


.hero-content{
    max-width: 500px;
}

.hero-main-title{
    /*text-align: center;*/
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 3rem;
}

.hero-title{
    /*text-align: center;*/
    margin-bottom: 16px;
    line-height : 1.6;
    font-size: 0.96rem;
}

.hero .btn-primary{
    margin-inline: auto;
}

.footer{
    background: var(--bg-secondary);
    padding-block: 20px;
    text-align: center;
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(15px);
}

.footer .logo{
    margin-bottom: 15px;
}

.copyright{
    color: var(--color-primary);
    line-height: 1.6;
}

.copyright a{
    display: inline-block;
    color: var(--raw-seinna);
}

.go-top{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(10px);
    transition: var(--transition-1);
    backdrop-filter: blur(15px);
    z-index: 2;
}

.go-top.active{
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.projects {
  padding: var(--section-padding);
  margin-top: -250px;
  padding-bottom: 50px;
  padding-top: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.card-img-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 0 20px -10px;
  margin-top: -50px;
  overflow: hidden;
  /*border: 2px solid rgba(0, 212, 255, 0.4);*/
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card-tag {
  color: #00D4FF;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 15px;
}

.card-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #00D4FF;
  border-radius: 50px;
  color: #00D4FF;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: #00D4FF;
  color: #000;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.contact-input {
  width: 100%;
  background: rgba(200, 200, 200, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 15px;
  backdrop-filter: blur(4px);
  transition: border 0.3s ease;
}

.contact-input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.8);
}

.contact-textarea {
  height: 120px;
  resize: vertical;
}

.contact-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-discord {
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  background: rgba(200, 200, 200, 0.1);
  backdrop-filter: blur(4px);
}

.contact-discord-text {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.contact-discord-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #00D4FF;
  font-size: 1.1rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-textarea {
  height: 200px;
}

.contact-input {
  width: 100%;
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  /*margin-bottom: 45px;*/
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #00D4FF;
  border-radius: 3px;
}

.lab {
    padding-top: 20px;
}

.lab-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.lab-card {
  background: rgba(200, 200, 200, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.lab-card:hover {
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.lab-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.lab-card-title {
  color: #00D4FF;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.lab-list {
  list-style: none;
  padding: 0;
}

.lab-list li {
  color: rgba(255,255,255,0.8);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

.lab-list li em {
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.contact {
    padding-top: 40px;
}

.master {
    padding-bottom: 70px; 
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 999;
}

.modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 95%;
  max-width: 1000px; /* était 700px */
  max-height: 90vh; /* était 85vh */
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}

.modal-content {
  background: rgba(5, 15, 30, 0.97);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: none;
  border: none;
  color: #00D4FF;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.modal-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(0,212,255,0.4);
}

.modal-title {
  color: white;
  font-size: 1.8rem;
}

.modal-screenshots {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-bottom: 25px;
  overflow-x: auto;
}

.modal-screenshot {
  width: 100%;
  /*max-width: 300px;*/
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.2);
}

.modal-subtitle {
  color: #00D4FF;
  margin: 20px 0 10px;
}

.modal-desc {
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 15px;
}

.modal-tips {
  color: rgba(255,255,255,0.8);
  padding-left: 20px;
  margin-bottom: 25px;
  line-height: 2;
}

.modal.active,
.modal-overlay.active {
  display: block;
}

.modal::-webkit-scrollbar {
  display: none; /* Chrome, Vivaldi */
}

@media(min-width: 550px){
.container{
    max-width: 550px;
    margin-inline: auto;
}
.section-title{
    max-width: 380px;
}

.project-list{
    column-count: 2;
    column-gap: 25px;
}

.project_list > li:first-child {
    column-span: all;
}

}

@media(min-width: 768px){
.container{
    max-width: 720px;
}

.section-title{
    color: var(--raw-seinna);
    font-family: var(--ff-poppins);
    font-weight: 750;
    max-width: 430px;
}

.stats-list{
    grid-template-columns: 1fr 1fr;
}

.btn-group{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.about .btn{
    max-width: max-content;
}

.about .btn-secondary{
    margin-bottom: 0;
}

.contact-form{
    max-width: 750px;
}









}

@media(min-width: 992px){
:root{
    --fs-2: 3rem;
    --section-padding: 100px;
}

.container{
    max-width: 980px;
}

.section-content{
    position: relative;
    padding-left: 40px;
}

.section-subtitle{
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(0.75turn) translateX(-100%);
    transform-origin: left top;
    margin-bottom: 0;
}

.section-subtitle::after{
    top: 8px;
    left: auto;
    right: calc(100% + 20px);
}

.header{
    padding-block: 30px;
}

.header.active{
    padding-block: 15px;
}

.navbar-actions{
    order: 1;
    margin-left: 0;
}

.theme-btn{
    background: var(--bg-secondary);
}

.nav-toggle-btn{
    display: none;
}

.navbar{
    all: unset;
}

.navbar-link{
    transform: translateY(0);
    font-size: unset;
    padding-inline: 5px;
}

.navbar-list > li {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.navbar-link::before{
    height: 2px;
}

.hero{
    position: relative;
    padding-top: 100px;
    height: 100vh;
}

.hero-banner{
    max-width: unset;
    height: 100%;
    margin-bottom: 0;
}

.hero img{
    height: 100%;
    width: auto;
    margin-inline: auto;
}

.hero-content{ 
    /*--color-primary: var(--white);*/
    position: absolute;
    top: 25%;
    left:25px;
    /*font-size: 1.2rem;
    line-height: 1.4;
    filter: drop-shadow(2px 4px 12px var(--color-primary));*/
}

.hero .btn-primary:is(:hover, :focus){
    color: hsl(0, 0%, 12%);
}

.hero-social-list{
    display: block;
    /*position: absolute;*/
    bottom: 92px;
    left: 0px;
}

.hero-social-list::after{
    content: "";
    position: absolute;
    bottom: -20px;
    left: 13px;
    width: 4px;
    height: 30px;
    background: var(--color-secondary);
    transform: rotate(90deg);
}

.hero-social-link{
    position: relative;
    color: var(--color-secondary);
    margin-block: 5px;
    padding: 5px;
    font-size: 18px;
    transition: var(--transition-1);
}

.hero-social-link:is(:hover, :focus){
    color: var(--color-primary);
}

.hero-social-link .tooltip{
    --trans-x: 10px;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(var(--trans-x));
}

.hero-social-link:is(:hover, :focus) .tooltip{
    --trans-x: 0;
    opacity: 1;
}

.footer .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .logo{
    margin-bottom: 0;
}


}

@media(min-width: 1200px){
.container{
    max-width: 1150px;
}

.section-title{
    max-width: 460px;
}

.hero-social-list{
    left: 0px;
}

.scroll-down{
    right: -80px;
}

.about-banner{
    max-width: 450px;
}







}