:root {
    --bg-color: #0f0c1f;
    --text-color: #ffffff;
 
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: white;
    user-select: none;
}
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  text-align: center;
}
.intro-img {
  width: 80vw;
  max-width: 400px;
  height: auto;
  z-index: 1;
  animation: appear 0.5s ease-out forwards,
             strongMove 3s ease-in-out 0.5s 1,
             fadeOut 1s ease 3.8s forwards;
  opacity: 0;
  transform: scale(0.8) rotate(0deg);
  margin: 0 auto;
  border-radius: 18px;
}
@keyframes appear {
  to {
    opacity: 1;
    transform: scale(0.8);
  }
}
@keyframes strongMove {
  0% {
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(2deg);
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.7) rotate(0deg);
  }
}
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #1c1c1e, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}
@keyframes breathe {
  0%, 100% { filter: brightness(1.05); }
  50% { filter: brightness(1.3); }
}
.tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  z-index: 2;
}
.tile {
  background: #000;
  animation: tileDisappear 1s ease-out forwards;
}
@keyframes tileDisappear {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}
.navbar-custom {
    background-color: #111;
    padding: 20px 0;
}

.navbar-custom .nav-link {
    color: white;
    margin: 0 12px;
    font-weight: 500;
    font-size: 16px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    text-decoration: underline;
}

.consult-btn {
    background: linear-gradient(90deg, #f72585 0%, #7209b7 100%);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.consult-btn:hover {
    opacity: 0.85;
}

.consult-text {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    max-width: 200px;
}

.navbar-brand img {
    height: 40px;
}
.navbar-custom {
    background-color: #111;
    padding: 20px 0;
}

.navbar-custom .nav-link {
    color: white;
    font-weight: 500;
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
    color: white;
    text-decoration: underline;
}

.consult-btn {
    background: linear-gradient(90deg, #f72585 0%, #7209b7 100%);
    padding: 18px 25px;
    font-size: 16px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    width: max-content;
    max-width: 100%;
}

.consult-text {
    font-size: 10px;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    max-width: 270px;
}
@keyframes infinite-scroll-left {
    0% {
        transform: translateX(0);
      }
    100% {
        transform: translateX(-50%);
      }
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

footer .row {
    min-height: 100px;
}
footer button {
    background: #0a192f;
    padding: 15px 25px;
    border-radius: 36px;
    color: #0F00B3;
    border: 0;
    font-size: 19px;
    font-weight: 500;
}
footer button:hover {
    background-color: #E6EEFF;
    color: #001F6E;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.01);
}
footer button {
  animation: pulseSoft 5s ease-in-out infinite;
  transition: all 0.3s ease;
}
@keyframes pulseSoft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  
    font-size: 1.4rem;
    text-align: left;
}
.mobile-menu nav a {
    display: block;
    color: white;
    text-decoration: none;
}
.mobile-header-text {
    font-size: 22px;
    font-family: var(--benzin-medium);
    font-weight: 400;
}
.consult-wrapper {
    padding-left: 109px;
}
.mobile-logo {
    height: 48px;
    width: auto;
}
.burger {
    width: 28px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}
.burger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;
}
.burger span {
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.burger span:nth-child(1) {
    transform: translateY(-10px);
}
.burger span:nth-child(2) {
    transform: translateY(0);
}
.burger span:nth-child(3) {
    transform: translateY(10px);
}
.burger.open span:nth-child(1) {
    transform: rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: rotate(-45deg);
}
.burger.burger-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15), transparent 100%);
  z-index: 0;
}
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid white;
  border-radius: 2rem;
  text-decoration: none;
  color: white;
  font-size: 1rem;
  opacity: 1;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover {
  background: white;
  color: black;
}
.fancy-btn {
  position: relative;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid white;
  border-radius: 2rem;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}
.fancy-btn .btn-text {
  display: inline-block;
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease-out;
  pointer-events: none;
}
.fancy-btn .btn-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0;
  border-radius: 100%;
}
.fancy-btn:hover .btn-light {
  opacity: 1;
}
.main-content {
  transition: opacity 0.3s ease;
  z-index: 1;
  position: relative;
}
body.menu-open .main-content {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}
.mobile-menu.active {
    right: 0;
}
body.menu-open .main-content {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.custom-cursor {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(0,123,255,0.3), rgba(0,123,255,0.9), rgba(0,123,255,0.3));
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: pulseGradient 1.5s ease-in-out infinite;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
}
@keyframes pulseGradient {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.4;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.8);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animated-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  animation: riseLetter 0.5s ease forwards;
}

@keyframes riseLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.float-pulse {
  display: inline-block;
  animation: floatAndPulse 3s ease-in-out infinite;
}

@keyframes floatAndPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.06);
  }
}
.float-text {
  display: inline-block;
  animation: floatLoop 3s ease-in-out infinite;
}

@keyframes floatLoop {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.border-line {
  width: 100%;
  max-width: 100%;
  height: 3px;
  margin: 50px auto 0;
  background: linear-gradient(90deg, rgba(0,123,255,0.3), rgba(0,123,255,0.9), rgba(0,123,255,0.3));
  border-radius: 5px;
  animation: glowLine 3s infinite ease-in-out;
  filter: blur(0.8px);
}

@keyframes glowLine {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 6px rgba(0,123,255,0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(0,123,255,0.8);
  }
}
.border-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-color: #111;
}

.border-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}


.modal-content {
  border-radius: 8px;
  box-shadow: 0 0 20px #00f0ff;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}


.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

.close:hover {
  color: #bbb;
}
.projects{
  font-family: 'Monument Extended', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: white;
}
.border-image {
  overflow: hidden;
  border-radius: 10px;
  background-color: #111;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.border-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.border-image:hover img {
  transform: scale(1.06);
}

.footer-social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #21488b;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(33, 72, 139, 0.4);
  animation: neonPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-btn i {
  font-size: 18px;
}

.social-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  color: white;
}
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(33, 72, 139, 0.4),
                0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 20px rgba(33, 72, 139, 0.6),
                0 0 35px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
  }
}
.telegram:hover {
  background-color: #229ED9;
}

.email:hover {
  background-color: #D44638;
}

.github:hover {
  background-color: #333;
}
.language-switcher {
  text-align: right;
  padding: 10px;
}
.language-switcher button {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 25px;
  transition: 0.3s ease;
}
.language-switcher button:hover {
  background: white;
  color: black;
}
.skills-section {
  padding: 40px 20px;
  text-align: center;
}

.skills-container {
  display: inline-block;
  padding: 40px 60px;
  border: 2px solid #00f0ff;
  border-radius: 20px;
  box-shadow: 0 0 20px #00f0ff, 0 0 40px #00f0ff60;
  max-width: 600px;
  margin: 0 auto;
  animation: neonPulse 3s ease-in-out infinite;
}

.skills-container h2 {
  color: #fff;
  font-family: 'Benzin', 'Orbitron', sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 0 0 5px #00f0ff;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  color: #fff;
  font-family: 'Benzin', sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 5px;
}

.skills-list li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, #00f0ff, #0af);
  transition: width 0.4s ease;
}

.skills-list li:hover::after {
  width: 100%;
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 20px #00f0ff, 0 0 40px #00f0ff60;
  }
  50% {
    box-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff90;
  }
}
.head-text .headline {
  font-family: 'Monument Extended', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #fff;
  text-shadow: 0 0 10px #00f0ff;
}

.head-text .name {
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff80;
}

.neon-btn {
  border: 2px solid #00f0ff;
  color: #00f0ff;
  padding: 12px 28px;
  font-family: 'Monument Extended', sans-serif;
  font-size: 1rem;
  border-radius: 30px;
  margin-top: 30px;
  text-shadow: 0 0 10px #00f0ff;
  box-shadow: 0 0 15px #00f0ff60;
  transition: all 0.3s ease-in-out;
}

.neon-btn:hover {
  background-color: #00f0ff;
  color: #000;
  box-shadow: 0 0 30px #00f0ff, 0 0 60px #00f0ff;
}
.head-text .headline {
  font-family: 'Monument Extended', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  color: white;
  text-align: left;
  max-width: 900px;
  margin-bottom: 2rem;
}

.head-text #greeting {
  display: inline-block;
  margin-right: 0.5rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.head-text .name {
  color: #00f0ff;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}
.head-text .description {
  font-family: 'Monument Extended', sans-serif;
  font-size: 1.6rem;
  max-width: 720px;
  color: #e0f7ff;
  margin: 0 auto;
  padding: 20px 30px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  text-align: left;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(8px);
  animation: fadeInGlow 1.5s ease forwards;
}
@keyframes fadeInGlow {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}




