body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-y: none;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;    /* Firefox */
  }
  
  /* Chrome, Safari, Edge */
  body::-webkit-scrollbar {
    display: none;
  }
  
  .scroll-container {
    height: calc(var(--vh, 1vh) * 100);
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE */
    scrollbar-width: none;    /* Firefox */
  }
  
  .scroll-container::-webkit-scrollbar {
    display: none; /* Chrome */
  }
  
  
  .scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background: linear-gradient(90deg, #a48fff, #ffffff);
    box-shadow: 0 0 8px rgba(164, 143, 255, 0.4);
    z-index: 1;
    border-radius: 0 4px 4px 0;
    transition: width 0.15s ease-out;
  }



.navbar {
    width: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    animation: fadeIn 1.5s ease-out;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #ffffff, #a48fff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    background-size: 200% auto;
    background-position: -100% center;
    animation: shineText 4s infinite ease-in-out;
}

@keyframes shineText {
    0% {
        background-position: -100% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 100% center;
    }
}



.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 40px;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.nav-glow:hover {
    color: #ffffff;
    text-shadow: 0 0 12px #a48fff;
}

.nav-links a.nav-glow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #a48fff, #ffffff);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-links a.nav-glow:hover::after {
    transform: scaleX(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a.nav-glow.active::after {
  transform: scaleX(1);
}








.projects-section {
    padding: 50px 5%;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: stretch;
}

.project-card-wrapper {
    width: 100%;
    height: 100%;
    max-width: 700px;
    animation: fade-in-up 0.8s forwards ease-out;
    will-change: transform;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    box-shadow: 0 0 0 transparent;
    --mouse-x: 50%;
    --mouse-y: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.project-card:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff00cc, #3333ff, #00ffee);
    border-radius: 22px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.project-card:hover::before {
    opacity: 0.6;
    animation: glowPulse 3s infinite ease-in-out;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.249),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 2;
}


.project-card:hover::after {
    opacity: 1;
}



@keyframes glowPulse {
    0%, 100% { filter: blur(10px); opacity: 0.6; }
    50% { filter: blur(18px); opacity: 0.9; }
}


.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-info p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 20px;
}

.project-btn {
    text-decoration: none;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffffff0d, #ffffff05);
    padding: 10px 25px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
    display: inline-block;
    font-size: 0.9rem;
}

.project-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 10px white;
}

/* Анимация появления */
@keyframes fade-in-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.background-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: #000;
}




.footer {
  margin-top: 120px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 5% 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;/* важно: центрируем всё по вертикали */
  padding: 0 20px;
  min-height: 120px; /* немного увеличим высоту */
  position: relative;
}


.footer-left .footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  background: linear-gradient(120deg, #ffffff, #a48fff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  background-position: -100% center;
  animation: shineText 6s infinite ease-in-out;
}

.footer-slogan {
  margin: 10px 0 10px;
  line-height: 1; /* Жестко задаём */
  color: rgba(255, 255, 255, 0.4);
}



.footer-lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 120px;
  height: 44px; /* немного выше, чтоб встало на один уровень с текстом слева */
  box-sizing: border-box;
}


.lang-option {
  flex: 1;
  text-align: center;
  font-weight: 600;
  z-index: 2;
  line-height: 44px; /* чтобы текст был по центру */
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.lang-option.active {
  color: #0a0a0a;
}

.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 50%;
  height: 40px;
  background: linear-gradient(135deg, #a48fff, #866fff);
  border-radius: 10px;
  z-index: 1;
  transition: left 0.3s ease;
  box-shadow: 0 0 10px rgba(164, 143, 255, 0.4);
}


.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}






/* Кнопка-гамбургер */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Анимация крестика */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-close {
  display: none;
  font-size: 2rem;
  color: white;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1001;
  cursor: pointer;
}

@keyframes fadeInLink {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}




@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(8, 8, 12, 0.96);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
        z-index: 1000;
        gap: 20px;
        padding-bottom: 60px;
    }


    .nav-links.show {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 600;
        text-transform: uppercase;
        color: white;
        opacity: 0;
        text-decoration: none;
        transition: color 0.3s ease;
        padding: 0;
        margin: 5px 0;
    }


    .nav-links a:nth-child(1) { animation-delay: 0.2s; }
    .nav-links a:nth-child(2) { animation-delay: 0.4s; }
    .nav-links a:nth-child(3) { animation-delay: 0.6s; }
    .nav-links a:nth-child(4) { animation-delay: 0.8s; }

    .nav-links a:hover {
        color: #a48fff;
        text-shadow: 0 0 10px #a48fff;
    }

    .nav-links a.active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #a48fff, #ffffff);
        box-shadow: 0 0 6px rgba(164, 143, 255, 0.6);
    }


    .nav-close {
        display: block;
        position: fixed;
        top: 20px;
        right: 24px;
        font-size: 2.5rem;
        color: white;
        z-index: 1001;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .nav-close:hover {
        transform: rotate(90deg);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        width: 24px;
        background: white;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }


    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        justify-items: center;
    }





    .footer-container {
        padding: 0 10px;
    }

    .footer-left .footer-logo {
        font-size: 1.4rem;
    }


    .footer-lang-switch {
        width: 100px;
        height: 44px;
    }

    .lang-option {
        font-size: 0.75rem;
    }

    .lang-slider {
        top: 1px;
        /* width: 49%;
        height: 38px; */
    }


    .footer-slogan{
        font-size: 0.8rem;
        max-width: 200px;
    }

    .footer-bottom {
        font-size: 0.65rem;
        margin-top: 20px;
    }

}

