* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: #000000;
  color: #eee;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.nav-pill {
  display: flex;
  gap: 20px;
  padding: 12px 28px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}

.nav-pill a {
  color: #eee;
  text-decoration: none;
  opacity: 0.7;
  font-size: 14px;
}

.nav-pill a:hover {
  opacity: 1;
}

/* HERO */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.35);
}


.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo {
  font-size: 42px;
  opacity: 0.8;
}

.hero h1 {
  font-size: 64px;
  margin-top: 10px;
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.8) 70%,
    #000 100%
  );

  z-index: 2;
}

.hero p {
  margin-top: 8px;
  opacity: 0.7;
}

/* SECTIONS */
section {
  padding: 120px 12%;
}
#hero {
  padding: 0;
}

h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

/* LANGUAGES */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.lang-card {
  width: 260px; /* фиксированная ширина */
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-height: 220px;
  text-align: center;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lang-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.85;
  margin-bottom: 12px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.lang-card:hover .lang-icon {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.lang-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.lang-card p {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
}

.lang-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(255,255,255,0.15);
}

.lua:hover {
  box-shadow: 0 0 30px rgba(0,170,255,0.35);
}

.python:hover {
  box-shadow: 0 0 30px rgba(255,215,0,0.35);
}

.csharp:hover {
  box-shadow: 0 0 30px rgba(170,0,255,0.35);
}




/* PROJECTS */
#projects {
  display: grid;
  gap: 60px;
}

.project {
  position: relative;
  height: 70vh;
  border-radius: 28px;
  overflow: hidden;
  background: black;
}

/* Video */
.project video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.1);
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: radial-gradient(
    circle at bottom left,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.2)
  );
}

.project-overlay h3 {
  font-size: 36px;
  margin: 0;
}

.project-overlay p {
  opacity: 0.8;
  max-width: 500px;
}

.project-tags {
  margin-top: 16px;
}

.project-tags span {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 12px;
  backdrop-filter: blur(6px);
}

/* HOVER EFFECT */
.project-card:hover video {
  filter: brightness(0.6);
  transform: scale(1.05);
}

.project-card:hover .project-overlay p {
  opacity: 1;
}

/* TERMS */
#terms {
  position: relative;
  padding: 140px 12%;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255,255,255,0.04),
      transparent 60%
    );
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.term-card {
  padding: 32px;
  border-radius: 22px;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.term-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.term-card p {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
}
/* CONTACTS */
#contacts {
  padding: 120px 12%;
  text-align: center;
  color: #eee;
}

.contacts-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.contact-card {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contact-card img {
  width: 48px;
  height: 48px;
  filter: brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 2;
  position: relative;
}

.contact-card.github:hover img {
  filter: brightness(1) drop-shadow(0 0 8px #bbbbbb);
}

.contact-card.discord:hover img {
  filter: brightness(1) drop-shadow(0 0 8px #7289da);
}

.contact-card.email:hover img {
  filter: brightness(1) drop-shadow(0 0 8px #4ade80);
}

.contact-card:hover {
  transform: scale(1.15);
}


.contact-info {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: #f5f5f5;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.contact-card:hover .contact-info {
  opacity: 1;
  bottom: 75px;
}

.page-end-effect {
  position: relative;
  height: 250px;
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
}

.page-end-effect::before,
.page-end-effect::after,
.page-end-effect::nth-child(3) {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at bottom center, rgba(80,80,80,0.25), rgba(0,0,0,0) 80%);
  filter: blur(60px);
  animation: pulseGradient 12s ease-in-out infinite;
}

.page-end-effect::after {
  background: radial-gradient(circle at bottom right, rgba(50,50,50,0.15), rgba(0,0,0,0) 80%);
  filter: blur(50px);
  animation-duration: 14s;
}

.page-end-effect::nth-child(3) {
  background: radial-gradient(circle at bottom left, rgba(60,60,60,0.2), rgba(0,0,0,0) 80%);
  filter: blur(55px);
  animation-duration: 16s;
}

@keyframes pulseGradient {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-15px) scale(1.05); opacity: 0.6; }
}

