/* Base Reset & Fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0e1a2b;
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(14, 26, 43, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideInDown 0.6s ease-out forwards;
}

@keyframes slideInDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.logo {
  width: 80px;
  height: auto;
  border-radius: 19%;
}

.logo-text {
  color: #40E0D0	;
  padding-left: 20px;
  padding-top: 25px;
  font-size: 25px;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo-container {
  display: flex;
  text-align: center;
  justify-content: center;
  margin-top: -15px;
}


nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li {
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

nav ul li:hover {
  color: #00d9ff;
}

nav ul li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #00d9ff;
  transition: width 0.3s ease-in-out;
}

nav ul li:hover::after {
  width: 100%;
}

/* Dropdown Menu */
nav ul li.dropdown {
  position: relative;
}

nav ul li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: rgba(14, 26, 43, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 12px rgba(0, 206, 209, 0.15);
  z-index: 1000;
}

nav ul li.dropdown:hover .dropdown-menu {
  display: block;
}

nav ul li.dropdown .dropdown-menu li {
  padding: 10px 16px;
  white-space: nowrap;
  transition: background 0.3s;
}

nav ul li.dropdown .dropdown-menu li:hover {
  background-color: rgba(0, 217, 255, 0.1);
}

nav ul li.dropdown .dropdown-menu li a {
  display: block;
  color: white;
}

/* Form Container */
.container {
  max-width: 600px;
  margin: 9% auto 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Translucent card */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px); /* Glass effect */
  color: #ffffff;
  animation: fadeInUp 1s ease forwards;
}

.container h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #00CED1;
  animation: fadeIn 1.2s ease forwards;
}

/* Form Elements */
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #e4e9ed;
  animation: fadeIn 1.3s ease forwards;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1.4s ease forwards;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #00d9ff;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
  outline: none;
}

form textarea {
  height: 120px;
  resize: vertical;
}

.note {
  font-size: 0.9rem;
  color: #d14242;
  margin-bottom: 15px;
  animation: fadeIn 1.5s ease forwards;
}

/* Button */
button[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  animation: fadeIn 1.6s ease forwards;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #0056b3;
  transform: scale(1.05);
  outline: none;
}

/* Footer */
footer {
  background-color: #002147;
  color: #E8EEF3;
  text-align: center;
  padding: 25px 20px;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(0, 206, 209, 0.2);
  animation: fadeIn 1.8s ease forwards;
}

footer a {
  color: #00CED1;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: #00a2a3;
  text-decoration: underline;
  outline: none;
}

footer p:last-child {
  margin-top: 20px;
  font-style: italic;
  font-weight: 500;
}

footer a img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

footer a:hover img,
footer a:focus img {
  transform: scale(1.15);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    margin: 12% 15px 40px;
    padding: 20px;
  }

  button[type="submit"] {
    padding: 14px 0;
  }
}
