* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-image: url("../img/image\ \(4\).png");
  color: white;
  padding: 15% 0;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.r {
  background-color: #00000094;
  padding: 3%;
  border-radius: 20px;
  margin-inline: 25%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Navigation */
nav {
  background: #1d9895;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #93c5fd;
}

nav a.active {
  color: #93c5fd;
  font-weight: 700;
  border-bottom: 2px solid #93c5fd;
  padding-bottom: 2px;
}

/* Main Content */
main {
  padding: 3rem 0;
}

.section {
  margin-bottom: 4rem;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
  color: #1d9895;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section h3 {
  color: #1d9895;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
}

.section p {
  margin-bottom: 1rem;
  text-align: justify;
}

.section-image {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-camp-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.community-image {
  width: 100%;
  max-width: 700px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Study Stages */
.stage {
  background: #f1f5f9;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 4px solid #edaf5b;
}

.stage h4 {
  color: #1d9895;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.age-range {
  color: #6b7280;
  font-style: italic;
  margin-bottom: 1rem;
}

/* App Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.feature h4 {
  color: #1d9895;
  margin-bottom: 0.5rem;
}

/* App Download Buttons */
.app-downloads {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #333;
}

.download-btn.android {
  background: #34a853;
}

.download-btn.android:hover {
  background: #2d8f47;
}

/* Footer */
footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #3b82f6;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.footer-links a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  color: #9ca3af;
}

/* Contact Form Styles */
.contact-form-container h3,
.contact-info h3 {
  color: #1d9895;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1d9895;
  box-shadow: 0 0 0 3px rgba(29, 152, 149, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: #1d9895;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #167a77;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled:hover {
  background: #9ca3af;
  transform: none;
}

/* Contact Information Styles */
.contact-info {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  min-width: 2rem;
  text-align: center;
}

.contact-item h4 {
  color: #1d9895;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  color: #1d9895;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #1d9895;
  border-radius: 6px;
  transition: all 0.3s;
}

.social-link:hover {
  background: #1d9895;
  color: white;
}

/* Legal Pages Styles */
.legal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.legal-content h1 {
  color: #1d9895;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.legal-content h2 {
  color: #1d9895;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  text-align: left;
}

.legal-content h3 {
  color: #1d9895;
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
  text-align: left;
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.8;
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .r {
    background-color: #00000094;
    padding: 3%;
    border-radius: 20px;
    margin-inline: 0%;
  }

  .logo {
    font-size: 2rem;
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  .section {
    padding: 1.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  .app-downloads {
    flex-direction: column;
    align-items: center;
  }

  .hero-image,
  .section-image,
  .community-image {
    height: 200px;
  }

  /* Contact form responsive */
  #contact .section>div {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }
}
