html{
    scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
  color: #333;
}

header {
  background: linear-gradient(135deg, #614caf, #3c2e7d);
  color: white;
  padding-bottom: 40px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

nav .logo {
  font-size: 1.5em;
  font-weight: 700;
}

nav .nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav .nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav .nav-links li a:hover {
  color: #FFEB3B;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #FFEB3B;
  transform: scale(1.2);
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.profile-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

.intro h1 {
  margin: 0;
  font-size: 2.5em;
}

.intro p {
  margin-top: 10px;
  font-size: 1.2em;
}



main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
}

h2 {
  border-bottom: 3px solid #614caf;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-size: 1.8em;
}

#skills {
  padding: 60px 20px;
  background-color: #f2f2f2;
  text-align: center;
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #3c2e7d;
}

.skills-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.skill-circle {
  position: relative;
  width: 150px;
  height: 150px;
}

.skill-circle canvas {
  width: 100%;
  height: 100%;
}

.skill-circle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  color: #614caf;
  text-align: center;
}

.skill-circle::after {
  content: attr(data-skill);
  position: absolute;
  width: 100%;
  bottom: -30px;
  left: 0;
  font-weight: 600;
  color: #333;
}

.skills {
  margin-top: 20px;
}

.skills span {
  display: inline-block;
  background-color: #614caf;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 5px 5px 0 0;
  font-size: 0.9em;
}

.projects .project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background-color: white;
  flex: 1 1 calc(33% - 20px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.card h3 {
  margin-top: 0;
}

.card button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background-color: #614caf;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card button:hover {
  background-color: #3c2e7d;
}

#contact {
  padding: 60px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #3c2e7d;
}

.contact-items {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #614caf;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-link svg {
  flex-shrink: 0;
}

.contact-link:hover {
  color: #3c2e7d;
}

.contact-link:hover svg {
  fill: #3c2e7d;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #614caf;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #3c2e7d;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #614caf;
  color: white;
}

/* Responsive */
@media(max-width: 900px) {
  .projects .project-cards {
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
  }

  .header-content {
    flex-direction: column;
  }
}


#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none; /* спочатку ховаємо */
  background-color: #614caf;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #3c2e7d;
  transform: scale(1.2);
}
#testimonials {
  background-color: #f2f2f2;
  padding: 60px 20px;
  text-align: center;
}

#testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #3c2e7d;
}

.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
  color: #333;
}

.testimonial h4 {
  font-weight: 600;
  color: #614caf;
}
/* Hamburger іконка */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #614caf; /* твій основний колір */
  transition: 0.3s;
}

/* Анімація при відкритті */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px; /* трохи нижче хедера */
    right: 0;
    background-color: #614caf;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* щоб меню було поверх всього */
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }
}
