/* Light Mode (Default) */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  background-color: #F0F0F0;
  background-image: linear-gradient(45deg, #62BAE8, #56CCF2, #62BAE8, #56CCF2);
  background-size: 600% 100%;
  animation: gradient 15s ease infinite;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1C1C1C;
  color: #E0E0E0;
  background-image: none;
}

header, main, footer {
  color: #FFFFFF;
}

.dark-mode header, .dark-mode main, .dark-mode footer {
  color: #E0E0E0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

header {
  text-align: center;
  padding: 3rem 0;
}

h1, h2, h3 {
  margin: 0;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Roboto', sans-serif;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3 {
  color: #E0E0E0;
  text-shadow: none;
}

h1 {
    font-size: 3rem;
}

#countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

#countdown > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: .5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  min-width: 10rem;
  max-width: 15rem;
}

.dark-mode #countdown > div {
  background-color: rgba(34, 34, 34, 0.8);
}

#countdown > div > span {
  font-size: 2.5rem;
  font-weight: bold;
  color: #62BAE8;
  text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.2);
}

.dark-mode #countdown > div > span {
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

#countdown > div > span.countdown-label {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #62BAE8;
  text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.2);
}

.dark-mode #countdown > div > span.countdown-label {
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

#newsletter {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode #newsletter {
  background-color: rgba(34, 34, 34, 0.9);
}

#newsletter .form-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-bottom: 1rem;
}

#newsletter input[type="text"],
#newsletter input[type="email"],
#newsletter input[type="tel"] {
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #62BAE8;
  border-radius: 5px;
  outline: none;
  width: 30%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode #newsletter input[type="text"],
.dark-mode #newsletter input[type="email"],
.dark-mode #newsletter input[type="tel"] {
  background-color: #2C2C2C;
  color: #E0E0E0;
  border: 2px solid #62BAE8;
}

#newsletter button {
  padding: 1rem;
  font-size: 1rem;
  border: none;
  background-color: #62BAE8;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#newsletter button:hover {
  background-color: #56CCF2;
  transform: scale(1.02);
}

#thank-you-message {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #62BAE8;
  text-align: center;
}

form label {
  display: none;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  margin-top: 3rem;
}

.dark-mode footer {
  background-color: rgba(34, 34, 34, 0.8);
}

footer p {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
}

.dark-mode footer p {
  color: #E0E0E0;
}

.social-icons {
  margin-top: 1rem;
}

.social-icon {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-icon.facebook {
  color: #3b5998;
}

.social-icon.facebook:hover {
  color: #2d4373;
}

.social-icon.twitter {
  color: #62BAE8;
}

.social-icon.twitter:hover {
  color: #56CCF2;
}

.social-icon.instagram {
  color: #e4405f;
}

.social-icon.instagram:hover {
  color: #d81b60;
}

.social-icon.tiktok {
  color: #000000;
}

.social-icon.tiktok:hover {
  color: #1c1c1c;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  main {
    padding: 3rem 1rem;
  }

  #countdown {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
  }

  #countdown > div {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  #countdown > div > span {
    font-size: 2rem;
  }

  #countdown > div > span.countdown-label {
    font-size: 1.2rem;
    margin-top: 0;
    margin-left: 0.5rem;
  }

  footer p {
    font-size: 1rem;
  }

  #newsletter .form-row {
    flex-direction: column;
    align-items: center;
  }

  #newsletter input[type="text"],
  #newsletter input[type="email"],
  #newsletter input[type="tel"] {
    width: 100%;
    margin-bottom: 1rem;
    max-width: 300px;
  }
}

.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.icon-link {
  display: block;
  margin: 10px;
  font-size: 24px;
  color: #62BAE8;
  background-color: #fff;
  padding: 10px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.icon-link:hover {
  color: #fff;
  background-color: #4A90E2;
  transform: scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}

.dark-mode .modal-content {
  background-color: #2C2C2C;
  color: #E0E0E0;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.dark-mode .close-button:hover,
.dark-mode .close-button:focus {
  color: white;
}

/* Dark Mode Switch */
.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.theme-switch input {
  display: none;
}

.theme-switch label {
  background-color: #fff;
  border: 2px solid #62BAE8;
  border-radius: 20px;
  cursor: pointer;
  height: 20px;
  position: relative;
  width: 40px;
  margin-right: 10px;
}

.theme-switch label::after {
  background-color: #62BAE8;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 2px;
  position: absolute;
  top: 2px;
  width: 16px;
  transition: 0.3s;
}

input:checked + label::after {
  transform: translateX(20px);
}

.theme-switch-text {
  font-size: 1rem;
  color: #333;
}

.dark-mode .theme-switch-text {
  color: #E0E0E0;
}
