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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a111a, #101824, #000000);
  color: #e0e7ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.nav {
  background: rgba(40, 100, 240, 0.7);
  backdrop-filter: blur(12px) brightness(1.1);
  -webkit-backdrop-filter: blur(12px) brightness(1.1);
  padding: 1rem 3rem;
  display: flex;
  gap: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(30, 90, 220, 0.6);
  border: 1px solid rgba(140, 180, 255, 0.2);
  width: 100%;
  max-width: 720px;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  user-select: none;
  transition: all 0.4s ease;
}

.nav:hover {
    background: rgba(40, 100, 240, 0.85);
    box-shadow: 0 12px 40px rgba(30, 90, 220, 0.8);
}

.nav a {
  color: #e0e7ff;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #79a1f0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover,
.nav a.active {
  color: #bfdbfe;
  transform: translateY(-1px);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(25, 60, 180, 0.7);
  border: 1px solid rgba(140, 180, 255, 0.15);
  max-width: 690px;
  width: 100%;
  padding: 2rem 2.5rem;
  animation: fadeInUp 1s ease forwards;
  text-align: center;
  position: relative;
}

h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  font-weight: 900;
  color: #e0e7ff;
  text-shadow: 0 4px 12px rgba(25, 60, 180, 0.8);
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #9bbdfc;
    text-shadow: 0 1px 4px rgba(155, 189, 252, 0.4);
}

p, ul {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #cdd5e6;
  font-weight: 500;
}

ul {
  text-align: left;
  padding-left: 1.6rem;
}

ul li {
    margin-bottom: 0.7rem;
}

button {
  font-size: 1.3rem;
  background: linear-gradient(135deg, #3a7cfc, #2a5ddf);
  border: none;
  padding: 0.9rem 3rem;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.75);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

button:hover::before {
  left: 100%;
}

button:hover {
  background: linear-gradient(135deg, #5b9bfd, #3c77e8);
  box-shadow: 0 16px 45px rgba(59, 130, 246, 0.95);
  transform: translateY(-5px);
}

footer {
  font-size: 0.95rem;
  color: #9da8bc; 
  margin-top: 3rem;
  user-select: none;
 
}

.footer-link {
    text-decoration: none;
    color: #cad8f0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #9bbdfc;
}

.social-icon-link {
    color: #cad8f0; 
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
   
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.social-icon-link .fab {
    font-size: 1.25em;
    margin-right: 5px;
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: none;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
  transition: background-color 0.3s ease, outline-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

input::placeholder,
textarea::placeholder {
  color: #aebacd;
}

input:focus, textarea:focus {
  outline: 3px solid #3b82f6;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.7);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-alert {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.alert-content {
  background: #1e293b;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.7);
  max-width: 90%;
  width: 400px;
  text-align: center;
  color: #f1f5f9;
  font-family: 'Poppins', sans-serif;
}

#alert-close {
  margin-top: 1.5rem;
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#alert-close:hover {
  background: #93c5fd;
}

.thm-badge-container {
  width: 100%;
  max-width: 100; 
  margin: 0 auto 2rem; 
  aspect-ratio: 4 / 1; 
  border-radius: 12px;
  overflow: hidden;
  
}


.thm-badge-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  body {
    padding: 2rem 1rem;
  }
@media (max-width: 768px) {
  .thm-badge-container {
    max-width: 350px;
    aspect-ratio: 4 / 1;
  }
}
  .nav {
    padding: 0.75rem 1rem;
    gap: 1rem;
    font-size: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .nav a {
      padding: 0.25rem 0;
  }

  .nav a::after {
      height: 2px;
      bottom: -5px;
  }

  .container {
    padding: 1.8rem 1.5rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  p, ul {
    font-size: 1.1rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }

  button {
    padding: 0.7rem 2rem;
    font-size: 1.1rem;
  }

  input, textarea {
    font-size: 1rem;
    padding: 0.75rem 0.4rem;
    margin-bottom: 1.5rem;
    max-width: 90%; 
  }

  .alert-content {
      padding: 2rem 3rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
 .thm-badge-container {
    max-width: 280px;
    aspect-ratio: 4 / 1;
  }
  .nav {
    font-size: 0.95rem;
    gap: 0.8rem;
  }

  .nav a {
      padding: 0.25rem 0;
  }

  button {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  p, ul {
    font-size: 1rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }

  footer {
    margin-top: 3rem;
    font-size: 0.95rem;
    
  }
}
