/* Base Styles */
:root {
    --primary-color: #9333EA;
    --primary-hover: #7E22CE;
    --secondary-color: #5b21b6;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --gray-color: #6B7280;
    --success-color: #10B981;
    --error-color: #EF4444;
    --border-color: #E5E7EB;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    border: none;
  }
  
  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
  }
  
  .btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
  }
  
  .btn-outline:hover {
    background-color: var(--light-color);
    border-color: var(--gray-color);
  }
  
  .btn-full {
    width: 100%;
  }
  
  /* Header */
  .header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
  }
  
  .logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .logo {
    height: 3rem;
    width: auto;
  }
  
  .nav-menu ul {
    display: flex;
    gap: 2rem;
  }
  
  .nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-image img {
    max-width: 80%;
    height: auto;
  }
  
  .hero-diagonal {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 16.666667%;
    background-color: var(--primary-color);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
  }
  
  /* Challenges Section */
  .challenges {
    padding: 4rem 0;
    background-color: #F3F4F6;
  }
  
  .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    width: fit-content;
  }
  
  .section-header i {
    font-size: 1.25rem;
  }
  
  .challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .challenge-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .challenge-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
  
  .challenge-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
  }
  
  /* Footer */
  .footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
  }
  
  .footer-column ul li {
    margin-bottom: 0.75rem;
  }
  
  .footer-column a {
    color: #9CA3AF;
    transition: color 0.3s ease;
  }
  
  .footer-column a:hover {
    color: white;
  }
  
  .footer-logo {
    height: 3rem;
    margin-bottom: 1rem;
  }
  
  .footer-column p, .contact-info li {
    color: #9CA3AF;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9CA3AF;
  }
  
  /* Form Styles */
  .main-content {
    padding: 2rem 0 4rem;
    background-color: white;
    min-height: calc(100vh - 5rem - 5rem); /* Subtract header and footer heights */
  }
  
  .back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
  }
  
  .back-link i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
  }
  
  .back-link:hover {
    text-decoration: underline;
  }
  
  .page-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .page-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
  }
  
  .form-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
  }
  
  .form-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .form-header p {
    color: var(--gray-color);
  }
  
  .challenge-form {
    padding: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
  }
  
  textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
  }
  
  small {
    display: block;
    color: var(--gray-color);
    margin-top: 0.5rem;
    font-size: 0.875rem;
  }
  
  .error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
  }
  
  .file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .file-upload i {
    font-size: 2rem;
    color: var(--gray-color);
  }
  
  .file-info {
    font-size: 0.75rem;
    color: var(--gray-color);
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }
  
  /* Success Page */
  .success-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 5rem - 5rem);
    padding: 2rem 0;
  }
  
  .success-content {
    text-align: center;
    max-width: 500px;
  }
  
  .success-icon {
    font-size: 6rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
  }
  
  .success-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .success-content p {
    color: var(--gray-color);
    margin-bottom: 2rem;
  }
  
  .success-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .nav-menu {
      display: none;
    }
  
    .hero-content {
      grid-template-columns: 1fr;
    }
  
    .hero-text {
      order: 1;
    }
  
    .hero-image {
      order: 0;
    }
  
    .form-row {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .hero-diagonal {
      display: none;
    }
  }
  
  @media (max-width: 480px) {
    .hero-text h1 {
      font-size: 2.5rem;
    }
  
    .hero-buttons {
      flex-direction: column;
    }
  
    .form-actions {
      flex-direction: column;
    }
  
    .success-buttons {
      flex-direction: column;
    }
  }

  /* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}
