/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
}

/* Header styles */
.header {
  height: 100px;
  background-color: #1a1d24;
  padding: 1rem 2rem;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.header-brand {
  display: flex;
  flex-direction: column;
  margin-left: 0.7rem;
}

.logo {
  max-width: 50px; /* Максимальная ширина логотипа */
  max-height: 50px; /* Максимальная высота логотипа */
  width: auto;
  height: auto;
}

.brand-title {
  font-size: 2rem;
  font-weight: 500;
}

.brand-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

/* Navigation styles */
.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin-left: 35vw;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(17, 159, 230, 0.486);
}

.nav-link.active {
  background-color: #0ea5e9;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}

.about-team-section {
  padding: 50px 0;
  background-color: #f4f4f4;
}

.about-team-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.team-description {
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
}

/* Main content styles */
.main-content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.weather-section {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.general-container {
  display: flex;
  height: 30rem;
  margin: 0 auto;
  max-width: 55vw;
  width: 55vw;
  gap: 1rem; /* Added gap between cards */
  justify-content: center; /* Center content */
  margin-top: 50px;
  margin-bottom: 150px;
}

.radio {
  display: none;
}

.content {
  background: transparent;
  background-image: url("https://images.unsplash.com/photo-1729271387795-835e9089e332?q=80&w=1932&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 3rem;
  cursor: pointer;
  flex: 1;
  margin-right: 0.8rem;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.05, 0.6, 0.39, 0.94);
}

.content::before {
  background: inherit;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.content > * {
  position: relative;
  z-index: 1;
}

.content:hover {
  box-shadow: 0.7rem 0.7rem 0.5rem rgba(0, 0, 0, 0.3);
  transform: scale(1.05); /* Slight increase on hover */
  transition: all 0.3s ease-in-out;
}

.content:nth-of-type(2) {
  background: transparent;
  background-image: url("https://images.unsplash.com/photo-1727014588962-0bba80d5959e?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.content:nth-of-type(3) {
  background: transparent;
  background-image: url("https://images.unsplash.com/photo-1728140161956-3cf6462f2f12?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.content:nth-of-type(4) {
  background: transparent;
  background-image: url("https://images.unsplash.com/photo-1726672458981-b4882850d020?q=80&w=2070&auto=format&fit=crop&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.card-title {
  bottom: 1.2rem;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  left: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  position: absolute;
  transform: translateX(2rem);
  transition: 290ms cubic-bezier(0.05, 0.62, 0.4, 0.95) 300ms;
  transition-property: opacity, transform;
  user-select: none;
  white-space: nowrap;
}

.title-card {
  top: 2rem;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  left: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  position: absolute;
  transform: translateX(2rem);
  transition: 290ms cubic-bezier(0.05, 0.6, 0.42, 0.94) 300ms;
  transition-property: opacity, transform;
  user-select: none;
  white-space: nowrap;
}

.subtitle {
  font-size: 1rem;
}

.subsubtitle {
  font-size: 0.85rem;
}

.paddT {
  padding-left: 3rem;
  padding-right: 3rem;
}

.radio:checked + .content {
  border-radius: 2rem;
  box-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.3);
  flex: 9;
  transform: scale(1.05); /* Slight increase on card check */
  transition: all 0.3s ease;
}

.radio:checked + .content > .card-title {
  opacity: 1;
  transform: translateX(0);
}

.radio:checked + .content > .title-card {
  opacity: 1;
  transform: translateX(0);
}

.marg-bott {
  margin-bottom: 1.5rem;
}

.content .additional-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: white;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0; 
  transform: translateY(2rem) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;  max-width: 90%;
  background: linear-gradient(
    145deg,
    rgba(50, 50, 50, 0.9),
    rgba(0, 0, 0, 0.7)
  ); 
  border-radius: 1rem;
  padding: 1.2rem;
  z-index: 1;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px); 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  font-family: 'Poppins', sans-serif;
}

.content:hover .additional-info {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1; /* Постоянная видимость */
}

.content .additional-info a {
  color: #38bdf8; 
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(56, 189, 248, 0.5); 
}

.content .additional-info a:hover {
  color: #0ea5e9; 
  text-shadow: 0 4px 8px rgba(14, 165, 233, 0.7); 
  text-decoration: underline;
}

.additional-info ul {
  list-style-type: none; 
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.additional-info li {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: transform 0.3s ease, color 0.3s ease;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.additional-info li::before {
  content: "✔"; 
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  color: #38bdf8; 
  transition: transform 0.3s ease, color 0.3s ease;
}

.additional-info li:hover::before {
  transform: scale(1.2); 
  color: #0ea5e9; 
}

.additional-info li:hover {
  transform: translateX(5px); 
  color: #facc15; 
}

/* Footer styles */
.footer {
  background: #000;
  color: gray;
  padding: 50px 0;
  font-family: 'Play', sans-serif;
  text-align: center;
}

.footer .row {
  margin: 10px 0;
  font-size: 0.8em;
}

.footer .row a {
  text-decoration: none;
  color: gray;
  transition: color 0.5s;
}

.footer .row a:hover {
  color: #fff;
}

.footer .row ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .row ul li {
  display: inline-block;
  margin: 0 30px;
}

.footer .row a i {
  font-size: 2em;
  margin: 0 1%;
}

/* Quote block styles */
#random-phrase {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 15px;
  color: #fff;
}

#author {
  font-size: 1rem;
  margin-top: 10px;
  font-weight: bold;
  color: #ccc;
}

#next-quote {
  padding: 10px 20px;
  background-color: #00b4d8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

#next-quote:hover {
  background-color: #008a9d;
}

/* GitHub link styles */
.github-link {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  color: gray;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.github-link i {
  font-size: 1.5em;
  margin-right: 5px;
}

.github-link:hover {
  color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    margin-left: 15vw;
  }

  .logo {
    max-width: 40px; /* Уменьшаем размер логотипа на мобильных устройствах */
    max-height: 40px;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1d24;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    z-index: 10;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .title-card {
    font-size: 1rem;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .subtitle,
  .subsubtitle {
    font-size: 0.7rem;
  }
  .footer {
    padding: 20px;
    text-align: left;
  }

  .footer .row ul li {
    display: block;
    margin: 10px 0;
  }

  .footer .row a i {
    margin: 0 3%;
  }
  .github-link {
    color: white; /* Цвет текста */
    font-size: 24px; /* Размер значка */
    text-decoration: none;
    padding: 10px;
  }
  
  .github-link:hover {
    color: #333; /* Цвет при наведении */
  }
}
