/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Background animation (stars) */
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  background: #0d0d1a;
}

.stars, .stars2, .stars3 {
  position: absolute;
  width: 200%;
  height: 200%;
  background: transparent;
  box-shadow: 
    1000px 200px #fff, 500px 1000px #fff, 700px 600px #fff,
    300px 300px #fff, 900px 900px #fff;
  animation: moveStars 100s linear infinite;
}

.stars2 {
  box-shadow: 
    200px 500px #fff, 400px 800px #fff, 600px 200px #fff;
  animation-duration: 150s;
}

.stars3 {
  box-shadow: 
    100px 400px #fff, 300px 700px #fff, 500px 100px #fff;
  animation-duration: 200s;
}

@keyframes moveStars {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-1000px) translateX(-500px); }
}

/* Container */
.container {
  display: flex;
  flex-direction: column; /* Добавить */
  justify-content: flex-start; /* Сверху */
  align-items: center;
  padding: 20px;
  padding-top: 90px;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  color: #fff;
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Logo */
.logo {
  width: 120px;
  margin-bottom: 20px;
}

/* Titles */
h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.8;
}

/* Contacts */
.contacts p {
  margin: 6px 0;
  font-size: 14px;
}

.contacts a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.contacts a:hover {
  color: #00ffff;
}

/* Social icons */
.socials {
  margin-top: 20px;
}

.socials a {
  margin: 0 10px;
  display: inline-block;
}

.socials img {
  width: 30px;
  transition: transform 0.3s;
}

.socials img:hover {
  transform: scale(1.2);
}

.project-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* текст сверху, кнопки снизу */
  flex-grow: 1; /* занимает оставшееся место */
  padding: 15px 20px 25px;
}

.project-info h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.project-info p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 15px;
}

.project-buttons {
  margin-top: auto; /* выталкиваем вниз */
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-btn {
  background: rgba(0,255,255,0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.platform-btn:hover {
  background: rgba(0,255,255,0.35);
  color: #00ffff;
}

/* Навигационные кнопки */
.nav-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.nav-btn {
  display: inline-block;
  padding: 10px 25px;
  margin: 0 10px;
  border-radius: 25px;
  background: rgba(0,255,255,0.15);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-btn:hover {
  background: rgba(0,255,255,0.35);
  color: #00ffff;
  transform: translateY(-2px);
}

/* Portfolio page */
.page-title {
  text-align: center;
  margin: 30px 0 40px;
  font-size: 36px;
  color: #fff;
  width: 100%; /* чтобы центрирование работало */
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px 50px;
}

/* Card styles (glassmorphism) */
.portfolio-card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  color: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,255,255,0.3);
}

/* Навигация сверху */
.top-nav {
  width: 100%;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.top-nav .nav-btn {
  padding: 10px 25px;
  border-radius: 25px;
  background: rgba(0,255,255,0.15);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.3s, transform 0.3s;
}

.top-nav .nav-btn:hover {
  background: rgba(0,255,255,0.35);
  color: #00ffff;
  transform: translateY(-2px);
}

/* Активная кнопка */
.top-nav .nav-btn.active {
  background: rgba(0,255,255,0.35);
  color: #00ffff;
  border: 1px solid rgba(0,255,255,0.4);
  transform: translateY(0);
}

/* Overlay под основное содержимое */
.overlay {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}