/* Base Styles */
body {
  font-family: Arial, sans-serif;
  padding: 0;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space out logo, nav, and header-right */
  background: #333;
  color: white;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  width: 90px;
  height: 90px;
  padding: 5px;
  transform: scale(1); /* Use transform for scaling */
}

header nav {
  display: flex;
  justify-content: center; /* Center the nav content */
  flex: 1; /* Take up remaining space */
}

nav {
  position: relative;
  margin-right: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
  justify-content: center;
  white-space: nowrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
  position: relative;
}

nav a.active {
  color: #a7d8ff;
}

nav a:hover {
  color: #a7d8ff;
}

nav a.active:hover {
  color: #ffffff;
}



.underline {
  position: absolute;
  bottom: -5px;
  height: 2px;
  background-color: #6e8ca4;
  transition: all 0.3s ease-in-out;
}

.header-right {
  display: grid;
  margin-right: 10px;
  word-break: keep-all;
}

.header-right a {
  margin: 0;
  padding: 0;
}

.header-right a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.header-right a:hover {
  color: #6e8ca4;
}

footer {
  background: #333;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.phone-box {
  padding: 10px 10px;
  border-radius: 8px;
  width: 40;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}


.phone-box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #fff;
}

.flag {
  width: 20px;
  height: auto;
}

.social-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-line {
  width: 20%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover Effects for Social Icons */
.social-icon:hover {
  color: #fff;
  border-color: #fff;
}

.social-icon.facebook:hover {
  background: #1877f2; /* Facebook blue */
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f58529, #d62976, #962fbf, #4f5bd5); /* Instagram gradient */
}

.social-icon.tiktok:hover {
  background: linear-gradient(45deg, #fe2c55, #04b6e0); /* TikTok gradient */
}

.social-icon.telegram:hover {
  background: #0088cc; /* Telegram color */
}

.social-icon.youtube:hover {
  background: #ff0000; /* YouTube red */
}

.social-icon.phone:hover {
  background: #25d366; /* WhatsApp green */
}

.footer-rights {
  margin-top: 10px;
  font-size: 14px;
}



.language-switcher {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.language-switcher button {
  background: none;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.language-switcher button:hover {
  background-color: #f0f0f0;
}

[data-lang] {
  display: none;
}

[data-lang="uk"] {
  display: inline;
}

.language-toggle {
  display: flex;
  gap: 10px;
  margin-right: 30px;
}

.lang-btn {
  padding: 5px 10px;
  border: 2px solid #444;
  background-color: transparent;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn.active {
  background-color: #6e8ca4;
  border-color: #6e8ca4;
}

.lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #6e8ca4;
}


.language-toggle img {
  width: 30px;
  height: 20px;
}

/* Media Queries */
@media (max-width: 1000px) {
  header {
    align-items: center;
  }

  .logo {
    height: 60px;
    width: 60px;
    transform: scale(0.8); /* Scale down the logo */
  }

  header nav {
    flex: 1; /* Take up remaining space */
    transform: scale(0.8); /* Scale down the nav */
  }

  nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for smaller screens */
    grid-template-rows: repeat(2, auto); /* Two rows */
    gap: 5px; /* Gap between items */
    justify-content: baseline; /* Align to the start on smaller screens */
  }

  .header-right a:first-child {
    grid-row: 1; /* Phone number in the first row */
  }

  .header-right a:not(:first-child) {
    grid-row: 2; /* Social media icons in the second row */
    display: flex; /* Align icons horizontally */
    justify-content: flex-start; /* Center icons horizontally */
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns for medium screens */
    gap: 20px; /* Slightly larger gap */
    transform: scale(0.9); /* Slightly larger scale */
  }

  .language-toggle img {
    width: 15px;
    height: 10px;
  }

  .language-toggle {
    display: flex;
    gap: 10px;
    margin-right: 50px;
  }

  .header-right {
    grid-template-rows: repeat(2, auto); /* Two rows */
  }

  .header-right a:first-child {
    grid-row: 1; /* Phone number in the first row */
  }

  .header-right a:not(:first-child) {
    grid-row: 1; /* Social media icons in the second row */
    display: flex; /* Align icons horizontally */
    justify-content: center; /* Center icons horizontally */
    gap: 1px; /* Add space between icons */
  }
}

@media (min-width: 1201px) {
  nav ul {
    display: flex; /* Switch back to flex for larger screens */
    transform: scale(1); /* Full scale */
  }

  .header-right {
    display: flex; /* Switch back to flex for larger screens */
    gap: 5px; /* Larger gap */
  }
}
