/* Root Variables */
:root {
  --primary-color: #4e54c8;
  --accent-color: #ff4b2b;
  --background-gradient: linear-gradient(120deg, #4e54c8, #8f94fb);
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --transition: 0.3s ease;
  --font-main: 'Poppins', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: var(--background-gradient);
  color: var(--text-dark);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* Header */
.top-header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  max-height: 85px;
  width: auto;
}

.red {
  color: red;
  font-weight: 900;
}

.dark {
  color: var(--text-dark);
  font-weight: 800;
}

.slogan {
  color: red;
  font-size: 14px;
  margin-top: 3px;
  font-weight: bold;
}

.contact-info {
  display: flex;
  gap: 30px;
  font-size: 14px;
  flex-wrap: wrap;
  color: var(--text-dark);
}

/* Navigation */
.main-nav {
  position: sticky;
  top: 95px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-bottom: 20px;
}

.nav-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: flex-start !important;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: flex-start !important;
}

.nav-links li a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.nav-right {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all var(--transition);
}

.btn.login {
  background-color: #ff6f6f;
}

.btn.join {
  background-color: #56d47b;
}

.btn:hover {
  transform: scale(1.05);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #003b73;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px 0;
  min-width: 200px;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: white;
  padding: 10px 20px;
  display: block;
  transition: background var(--transition);
}

.dropdown-menu li a:hover {
  background-color: #005a9c;
}

/* Form */
.form-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #333;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(78, 84, 200, 0.5);
}

button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

button:hover {
  background: #3b3fc0;
}

.note {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-top: 10px;
}

/* Form Messages */
.form-message {
  margin-top: 15px;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  text-align: center;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
  text-align: center;
}

/* Footer */
.footer {
  background: #330000;
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo h2 {
  font-size: 28px;
  color: var(--accent-color);
}

.footer-logo p {
  font-weight: 300;
  color: #ccc;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: white;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact p {
  margin: 8px 0;
  font-size: 14px;
}

.social-icons a {
  color: white;
  margin-right: 15px;
  font-size: 18px;
  transition: transform var(--transition), color var(--transition);
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

.footer-top, .footer-nav {
  background-color: #2a0000;
  text-align: center;
  padding: 15px 0;
}

.footer-nav .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav .footer-links li a {
  color: white;
  font-weight: bold;
  transition: color var(--transition), transform var(--transition);
}

.footer-nav .footer-links li a:hover {
  color: red;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .nav-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .nav-center {
    position: static;
    transform: none;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .nav-right {
    margin-top: 15px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}