body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

header {
  background: #e4e4e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  transition: background 0.3s ease;
}

.logo img {
  height: 50px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  padding-bottom: 4px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #000;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #555;
}

nav a:hover::after {
  width: 100%;
}

.switch-container {
  margin-left: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  background-color: #ccc;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch::before {
  content: "\f186";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 50%;
  transform: translateY(-48%);
  background-color: #2c3e50;
  border-radius: 50%;
  transition: transform 0.3s ease, content 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .switch {
  background-color: #666;
}

input[type="checkbox"]:checked + .switch::before {
  content: "\f185";
  color: #f1c40f;
  background-color: #111;
  transform: translate(20px, -48%);
}

main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  transition: background 0.3s ease;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.icon-link:hover {
  transform: translateY(-5px);
}

.icon-label {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
  transition: color 0.3s ease;
}

.icon-box {
  width: 160px;
  height: 160px;
  border-radius: 25px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  overflow: hidden;
}

.icon-link:hover .icon-box {
  background: #e4e4e4;
  border-color: #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.maiIcon {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-link:hover .icon-img {
  transform: scale(1.1);
}

.dot {
  width: 20px;
  height: 20px;
  background-color: #000;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

footer {
  padding: 20px;
  display: flex;
  justify-content: center;
  background: #e4e4e4;
  transition: background 0.3s ease;
}

footer .socials {
  display: flex;
  gap: 25px;
}

footer .socials a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .socials i {
  font-size: 18px;
  transition: color 0.3s ease;
}

footer .socials a:hover i {
  color: #555;
}

body.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

body.dark-mode header {
  background: #1e1e1e;
}

body.dark-mode nav a {
  color: #f5f5f5;
}

body.dark-mode nav a::after {
  background-color: #f5f5f5;
}

body.dark-mode .switch {
  background-color: #666;
}

body.dark-mode main {
  background: #121212;
}

body.dark-mode .icon-box {
  background: #2a2a2a;
}

body.dark-mode .icon-link:hover .icon-box {
  background: #333;
  border-color: #f5f5f5;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

body.dark-mode .dot {
  background-color: #f5f5f5;
}

body.dark-mode footer {
  background: #1e1e1e;
}

body.dark-mode footer .socials a {
  color: #f5f5f5;
}

body.dark-mode footer .socials a:hover i {
  color: #999;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  nav a {
    margin: 5px 0;
    font-size: 16px;
  }

  .switch-container {
    margin-left: 0;
    margin-top: 10px;
  }

  .icon-container {
    gap: 50px;
    flex-direction: column;
  }

  .dot {
    display: none;
  }

  .icon-box {
    width: 140px;
    height: 140px;
  }

  .icon-label {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .icon-container {
    gap: 40px;
  }

  .icon-box {
    width: 120px;
    height: 120px;
  }

  .icon-label {
    font-size: 16px;
  }

  nav a {
    font-size: 14px;
  }
  
  footer .socials {
    gap: 20px;
  }
  
  footer .socials i {
    font-size: 18px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.icon-link:hover .icon-box {
  animation: float 2s ease-in-out infinite;
}