html, body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;

  min-height: 100%;
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  transition: background 0.1s linear;
  
}

body {
  display: block;
  overflow-x: hidden;
  
}

.main {
  width: 100%;
  max-width: 100%;
  padding: 2rem;    
  background: transparent;
}

.content {
    max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.content span {
  background: linear-gradient(
    270deg,
    #ffdd57,
    #ff9966,
    #ff66cc,
    #ff9966,
    #ffdd57
  );
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

input, textarea {
  width: 100%;
  max-width: 800px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  min-height: 30vh;
  border: none;
  outline: none;
  margin-bottom: 1rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.9);
  transition: 0.2s ease-in-out;
}

input:focus, textarea:focus {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,1);
}

.language-selection {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 1.5rem;
}

.language-selection div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-selection span {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.language-selection button {
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  padding: 0.4rem;
}

.language-selection button:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Активная кнопка с плавным градиентом */
.language-selection button.active {
  background: linear-gradient(135deg, #ffdd57, #ff9966);
  color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(255,221,87,0.8);
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.about {
  max-width: 800px;
  margin: 10vh auto;
  padding: 2rem 3rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: left;
  line-height: 1.8;
}

.about h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

.about p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.myself {
  background-color: #060d0c; 
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: center;   
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem;
  text-align: center;
}

.myself img {
  width: 220px;
  height: 220px;
  border-radius: 50%; 
  object-fit: cover;
  border: 4px solid #fff; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.myself .first h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.myself .first p {
  margin: 0.3rem 0;
  font-size: 1.1rem;
  opacity: 0.85; 
}

.myself .first p:last-child {
  font-style: italic; 
  color: #ff9966;     
}

.myself a{
    color: whitesmoke;
}

* {
  box-sizing: border-box;
}


@media (max-width: 768px) {

  .myself {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .myself img {
    width: 150px;
    height: 150px;
  }

  .myself .first h1 {
    font-size: 1.5rem;
  }

  .myself .first p {
    font-size: 1rem;
  }

  .about {
    padding: 1.5rem 1rem;
    margin: 5vh 1rem;
  }

  .content h1 {
    font-size: 2rem;
  }

  input, textarea {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .language-selection {
    flex-direction: column;
    gap: 1rem;
  }

  .language-selection div {
    justify-content: center;
  }
}


@media (max-width: 1024px) and (min-width: 769px) {
  .myself {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .myself img {
    width: 180px;
    height: 180px;
  }

  .myself .first h1 {
    font-size: 1.8rem;
  }

  .myself .first p {
    font-size: 1rem;
  }

  .about {
    padding: 2rem 2rem;
    margin: 7vh 2rem;
  }

  .content h1 {
    font-size: 2.5rem;
  }

  input, textarea {
    padding: 0.9rem 1.2rem;
    font-size: 0.98rem;
  }

  .language-selection {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}