*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #0d1217;
  color: #f0f2f4;
}

body.light-mode {
  background-color: #ffffff;
  color: #0d1217;
}

main {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

h1 {
  color: #d35400;
  font-size: 3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 0 15px;
}

/* Logo Styles */
.logo-container {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 75px;
  width: auto;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* CTA Buttons */
.cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
}

.cta-buttons a {
  text-decoration: none;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #d35400;
  color: #f0f2f4;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
  min-width: 200px;
  justify-content: center;
}

.cta-buttons a:hover {
  background-color: #dcb81b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-buttons a:active {
  transform: translateY(0);
}

.cta-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-buttons a:hover .cta-icon {
  transform: scale(1.1);
}

/* Footer */
footer {
  width: 100%;
  padding: 20px 0;
  background-color: #161b22;
  color: #f0f2f4;
  text-align: center;
  transition: background-color 0.3s ease;
}

body.light-mode footer {
  background-color: #f0f0f0;
  color: #0d1217;
}

footer .logo-img {
  height: 30px;
  margin: 0 5px;
}

.contact-email {
  color: #dcb81b;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 25px;
  border-radius: 25px;
  font-size: 1rem;
  display: inline-block;
  margin: 30px auto;
  letter-spacing: 0.5px;
}

.contact-email::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  background: #dcb81b;
  opacity: 0.1;
  transform: scale(0.9);
  transition: all 0.3s ease;
  pointer-events: none;
}

.contact-email:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(220, 184, 27, 0.8);
  letter-spacing: 1px;
}

.contact-email:hover::before {
  transform: scale(1.05);
  opacity: 0.25;
  box-shadow: 0 0 30px rgba(220, 184, 27, 0.6);
}

body.light-mode .contact-email {
  color: #d35400;
}

body.light-mode .contact-email::before {
  background: #d35400;
}

body.light-mode .contact-email:hover {
  color: #d35400;
  text-shadow: 0 0 10px rgba(211, 84, 0, 0.4);
}

/* Toggle Switch */
.switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: inline-block;
  width: 60px;
  height: 34px;
  -webkit-tap-highlight-color: transparent;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #161b22;
  transition: 0.4s;
  border-radius: 34px;
  border: 1px solid #2f363d;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 3px;
  background-color: #f0f2f4;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #dcb81b;
  border-color: #dcb81b;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Canva Embed */
.canva-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 0;
  padding-top: 56.25%;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  will-change: transform;
  border: 1px solid #2f363d;
}

body.light-mode .canva-embed {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e1e4e8;
}

.canva-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
  padding: 0;
  margin: 0;
}

/* Canva Attribution */
.canva-attribution {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.canva-attribution:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .switch {
    top: 10px;
    right: 10px;
  }

  .content-container {
    padding-top: 50px;
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
    gap: 10px;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .logo-img {
    height: 40px;
  }

  p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 25px;
  }

  .cta-buttons a {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media screen and (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
    gap: 8px;
  }

  .logo-img {
    height: 35px;
  }
}
