body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 2rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.menu li a {
  font-weight: 500;
  transition: color 0.3s;
}
.menu li a:hover {
  color: #2a6aca;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero-text {
  flex: 1;
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-text h2 {
  font-size: 2rem;
  color: #2a6aca;
  margin-bottom: 1rem;
}

.hero-text p {
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: #2a6aca;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}
.btn:hover { background: #1f4d96; }

.hero-img img {
  height: 100%;
  width: auto;
  max-height: 60vh;
}

.about, .skills, .projects, .contact {
  padding: 6rem 0;
  text-align: center;
}

.skills .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.skills h3 {
  margin-bottom: 1rem;
  color: #2a6aca;
}

.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  padding: 2rem;
  
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
  position: relative; 
  overflow: hidden;   
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.7); 
  z-index: 0;
}



.project-card h3,
.project-card p {
  position: relative;
  z-index: 1; 
}

.project-card.hover-effect:hover {
  transform: translateY(-5px);
}


.contact-items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.contact-item img {
  width: 24px;
  height: 24px;
}
.contact-item a, .contact-item p {
  font-size: 1rem;
  font-weight: 500;
}

.project-github {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(42, 106, 202, 0.8);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 2;
  transition: background 0.3s;
}
.project-github:hover { background: #1f4d96; }


.notification {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #48a526;
  color: white;
  width: auto;
  max-width: 300px;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    padding: 0;
  }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text h2 { font-size: 1.5rem; }
  .hero-img img { max-height: 40vh; margin-top: 2rem; }

  .nav {
    display: flex;
    justify-content: center;   /* Центрируем */
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .menu {
    display: flex;
    justify-content: flex-start;   /* Чтобы список был по центру */
    flex: 0 1 auto;            /* Убираем растяжение */
    gap: 1.5rem;               /* Расстояние между пунктами */
    padding: 0;
  }

  .logo {
    display: none;             /* Скрываем лого */
  }
}


