* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f5f7;
  min-height: 100vh;
}

nav {
  background: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  padding: 0.7rem 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  background: #ffffff;
  color: #374151;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.btn-secondary {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #374151;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
  margin-top: 70px;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9),
    rgba(118, 75, 162, 0.9)
  );
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2832&q=80")
    center/cover;
  opacity: 0.3;
  z-index: -1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary {
  background: white;
  color: #3b82f6;
  border-color: white;
}

.hero-btn.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn.primary:hover {
  background: #f8fafc;
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.about {
  padding: 4rem 2rem;
  background: #ffffff;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 600;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.about-card:hover {
  transform: translateY(-2px);
}

.about-card h3 {
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.team {
  padding: 4rem 2rem;
  background: #f9fafb;
}

.team h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1a1a1a;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.team-member:hover {
  transform: translateY(-2px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

.team-member h4 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.team-member p {
  color: #6b7280;
  font-weight: 500;
}

.registration {
  padding: 4rem 2rem;
  background: #f9fafb;
  text-align: center;
}

.registration h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 600;
}

.registration-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  text-align: left;
  font-weight: 600;
}

.form-container .subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 2rem;
  text-align: left;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  background: #ffffff;
  font-family: inherit;
  color: #1a1a1a;
}

.form-container input:focus,
.form-container select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-container input::placeholder {
  color: #9ca3af;
}

.form-container input.error,
.form-container select.error {
  border-color: #ef4444;
}

.error-text {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 400;
}

.file-input-wrapper {
  position: relative;
  width: 100%;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: block;
  padding: 0.75rem;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.file-input-label:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.section-title {
  display: none;
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 1.5rem;
}

.submit-button:hover {
  background: #2563eb;
}

.submit-button:active {
  background: #1d4ed8;
}

.login-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.login-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

footer {
  background: #1a1a1a;
  color: #d1d5db;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.alert {
  padding: 0.875rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.9rem;
}

.alert.success {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}

.alert.error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert.warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-overlay.active {
  display: flex;
}

.spinner {
  margin: 0 auto;
  width: 70px;
  text-align: center;
}

.spinner > div {
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 100%;
  display: inline-block;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  margin: 0 3px;
}

.spinner .bounce1 {
  animation-delay: -0.32s;
}

.spinner .bounce2 {
  animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-buttons {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-buttons.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    margin-top: 80px;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .registration h2,
  .about h2,
  .team h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 1rem;
  }

  .nav-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .logo {
    height: 40px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }
}

.nav-links {
  display: flex;
  margin-right: 2rem;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #3b82f6;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    margin-right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-buttons {
    position: fixed;
    top: calc(70px + 160px);
    right: -100%;
    width: 250px;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    border-top: 1px solid #f3f4f6;
  }

  .nav-buttons.active {
    right: 0;
  }

  .nav-btn {
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    display: block;
  }

  .hamburger {
    display: flex;
  }
}
