/* Общие сбросы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

.more-link a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-shadow:
    0 0 5px #00ffff55;
  transition: color 0.3s ease;
}

.more-link a:hover {
  color: #0ff;
  text-shadow:
    0 0 8px #0ff,
    0 0 12px #0ff;
}

h1, h2, h3, h4 {
  color: #00ffff;
  font-weight: 800;
  text-shadow:
    0 0 5px #00ffff,
    0 0 10px #00ffff,
    0 0 20px #00ffff;
}

/* Hero секция с анимациями */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  color: #fff;
  text-shadow: none;
  font-size: 4rem;
  opacity: 0;
  animation: fadeInDown 1s ease forwards;
}

.hero p {
  font-size: 1.5rem;
  color: #888;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

.bounce {
  margin-top: 2rem;
  font-size: 2rem;
  color: #555;
  opacity: 0;
  animation: fadeIn 1s ease forwards, bounce 2s infinite;
  animation-delay: 1s;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Сетки */
.skills, .projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Карточки */
.card, .project-card {
  background: #111;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow:
    0 0 15px #00ffff22,
    inset 0 0 5px #00ffff33;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, max-width 0.5s ease;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

/* При наведении у обоих одинаково */
.card:hover, .project-card:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px #00ffffaa,
    inset 0 0 10px #00ffffbb;
}

/* Заголовки в project-card теперь как в card */
.project-card .project-title {
  font-size: 1.5rem;
  transition: font-size 0.5s ease;
  margin-bottom: 0.5rem;
  color: #00ffff;
  font-weight: 800;
  text-shadow:
    0 0 4px #00ffff88,
    0 0 8px #00ffff55;
}

/* Описание — меняем с ярко-голубого на сероватый, как у статичных */
.project-card .project-shortdesc {
  color: #ccc; /* был #0ff — сделал нейтральнее */
  font-weight: 500;
  transition: opacity 0.5s ease;
}

.project-fulldesc {
  margin-top: 1rem;
  color: #ccc;
  line-height: 1.4;
  display: none;
  transition: opacity 0.5s ease;
}

.project-image {
  margin-top: 1rem;
  width: 100%;
  border-radius: 0.8rem;
  display: none;
  box-shadow:
    0 0 15px #00ffffaa;
  transition: opacity 0.5s ease;
}

/* Раскрытое состояние */
.project-card.expanded {
  max-width: 700px;
  background: #111; /* оставляем серый фон */
  color: #fff; /* белый текст */
  box-shadow:
    0 0 25px #00ffffaa,
    inset 0 0 15px #00ffffaa;
  transition: transform 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

.project-card.expanded .project-title {
  font-size: 2.5rem;
  color: #00ffff;
  font-weight: 800;
  text-shadow:
    0 0 4px #00ffff88,
    0 0 8px #00ffff55;
  transition: font-size 0.5s ease, color 0.5s ease;
}

.project-card.expanded .project-shortdesc {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-card.expanded .project-fulldesc,
.project-card.expanded .project-image {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* LET'S TALK и футер */
footer.footer {
  padding: 2rem;
  border-top: 1px solid #222;
  color: #666;
  text-align: center;
}

section > h2.neon {
  margin-bottom: 2rem; /* отступ снизу у заголовков секций с классом neon */
}

.icons a {
  color: #00ffff;
  font-size: 1.8rem;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.icons a:hover {
  color: #0ff;
}

.icon-white {
  filter: brightness(0) invert(1);
}

.icons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrapper {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.icon-wrapper:hover {
  transform: scale(1.2);
}

.popup {
  display: none;
  background: #111;
  border-radius: 1rem;
  box-shadow: 0 0 20px #00ffff66;
  padding: 1.5rem;
  text-align: center;
  animation: fadeInUp 0.4s ease forwards;
}

.popup img {
  display: block;
  margin: 0 auto 1rem;
}

.popup p {
  font-size: 1.2rem;
  color: #0ff;
  font-weight: 600;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
