body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23e3f2fd" fill-opacity="0.1" d="M0,160L48,186.7C96,213,192,267,288,266.7C384,267,480,213,576,192C672,171,768,181,864,186.7C960,192,1056,192,1152,181.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E') repeat;
}
header {
  background: linear-gradient(135deg, #1e3a8a, #004aad);
  color: white;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: color 0.3s, transform 0.2s;
}
nav a:hover {
  color: #f97316;
  transform: scale(1.1);
}
.hero {
  background: url('https://images.unsplash.com/photo-1516321310766-78a795089b1e') no-repeat center/cover fixed;
  text-align: center;
  padding: 6rem 1rem;
  color: white;
  position: relative;
  background-blend-mode: overlay;
  background-color: rgba(0, 74, 173, 0.7);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}
.hero p {
  font-size: 1.4rem;
  margin: 1rem 0;
  position: relative;
  z-index: 2;
}
.math-graphics {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.math-icon {
  position: absolute;
  fill: white;
  opacity: 0.2;
  animation: float 10s ease-in-out infinite;
}
.math-icon.equation1 { top: 20%; left: 10%; width: 100px; animation-delay: 0s; }
.math-icon.equation2 { top: 60%; right: 15%; width: 120px; animation-delay: 2s; }
.math-icon.graph { top: 30%; left: 70%; width: 80px; animation-delay: 4s; }
.math-icon.shape { bottom: 20%; left: 30%; width: 90px; animation-delay: 6s; }
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}
.cta-button {
  background: #f97316;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  display: block;
  margin: 1.5rem auto;
  z-index: 10;
}
.cta-button:hover {
  background: #ffca28;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: pulse 0.5s;
}
.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.cta-button:hover::after {
  width: 200px;
  height: 200px;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1.05); }
}
#subjects-preview .cta-button {
  margin-top: 2rem;
}
.why-choose-us, .testimonials, .subjects, .about, .contact, .faq, .how-we-teach, .map-placeholder {
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(to bottom, #e3f2fd, #f4f2f4);
}
.about {
  background: linear-gradient(to bottom, #e3f2fd 0%, #f4f2f4 100%);
}
.why-choose-us h2, .testimonials h2, .subjects h2, .about h2, .contact h2, .faq h2, .how-we-teach h2, .map-placeholder h2 {
  font-family: 'Poppins', sans-serif;
  color: #1e3a8a;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.why-grid, .subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.why-card, .subject-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s, display 0.3s;
  display: block;
  opacity: 1;
}
.why-card:nth-child(1), .subject-card:nth-child(1) { transition-delay: 0.1s; }
.why-card:nth-child(2), .subject-card:nth-child(2) { transition-delay: 0.2s; }
.why-card:nth-child(3), .subject-card:nth-child(3) { transition-delay: 0.3s; }
.subject-card:nth-child(4) { transition-delay: 0.4s; }
.subject-card:nth-child(5) { transition-delay: 0.5s; }
.subject-card:nth-child(6) { transition-delay: 0.6s; }
.subject-card:nth-child(7) { transition-delay: 0.7s; }
.why-card:hover, .subject-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.why-card h3, .subject-card h3 {
  font-family: 'Poppins', sans-serif;
  color: #f97316;
}
.subject-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}
.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.testimonial {
  display: none;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease-in-out;
}
.testimonial.active {
  display: block;
  animation: slideIn 0.5s ease-in-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.slider-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.slider-nav button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  min-width: 120px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.slider-nav button:hover {
  background: #f97316;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.slider-nav button[aria-label="Previous"]::before {
  content: '← ';
}
.slider-nav button[aria-label="Next"]::after {
  content: ' →';
}
.section-divider {
  width: 100%;
  height: 80px;
  background: linear-gradient(45deg, #e3f2fd 50%, #f4f2f4 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
  margin-top: 2rem;
}
footer {
  background: #1e3a8a;
  color: white;
  text-align: center;
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
}
footer a {
  color: #f97316;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: #ffca28;
}
footer p {
  margin: 0.5rem 0;
}
[data-animate] {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s;
}
.sticky-cta:hover {
  transform: scale(1.1);
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  position: relative;
}
.modal-content form {
  display: flex;
  flex-direction: column;
}
.modal-content input, .modal-content textarea {
  margin: 0.5rem 0;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
}
.modal-content input:focus, .modal-content textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
  outline: none;
}
.modal-content button {
  background: #f97316;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.modal-content button:hover {
  background: #ffca28;
}
.modal-content button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-button {
  background: #004aad;
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}
.filter-button.active, .filter-button:hover {
  background: #f97316;
  transform: scale(1.05);
}
.faq-item {
  max-width: 800px;
  margin: 1rem auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  overflow: hidden;
}
.faq-item h3 {
  color: #f97316;
  font-family: 'Poppins', sans-serif;
  padding: 1rem;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item p {
  padding: 0 1rem 1rem;
  margin: 0;
  display: none;
  text-align: left;
  padding-left: 1.5rem;
}
.faq-item.active p {
  display: block;
}
.faq-item h3::after {
  content: '+';
  font-size: 1.2rem;
}
.faq-item.active h3::after {
  content: '−';
}
.parallax {
  background-attachment: fixed;
  background-position: center;
}
.contact .form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.contact form {
  display: grid;
  gap: 1rem;
}
.contact .form-group {
  position: relative;
}
.contact input, .contact textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.contact input:focus, .contact textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
  outline: none;
}
.contact label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #666;
  transition: all 0.2s;
  pointer-events: none;
  font-family: 'Open Sans', sans-serif;
}
.contact input:focus + label,
.contact input:not(:placeholder-shown) + label,
.contact textarea:focus + label,
.contact textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: #f97316;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0.2rem;
}
.contact button {
  background: #f97316;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}
.contact button:hover {
  background: #ffca28;
  transform: scale(1.05);
}
.contact button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.contact p {
  max-width: 800px;
  margin: 1rem auto 2.5rem;
}
.tutor-profile {
  padding: 3rem 1rem 2rem;
}
.tutor-profile .profile-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.tutor-profile img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: block;
  animation: zoomIn 0.6s ease-out;
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.tutor-profile p {
  max-width: 800px;
  margin: 1rem auto;
}
.map-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.map-placeholder .map-container {
  max-width: 600px;
  margin: 1rem auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.map-placeholder p {
  max-width: 800px;
  margin: 0 auto;
}
.mission-banner {
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  text-align: center;
}
.mission-banner .mission-icon {
  width: 40px;
  height: 40px;
  fill: #f97316;
  margin: 0 auto 1rem;
  display: block;
}
.mission-banner h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}
.mission-banner p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #333;
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  .math-icon { width: 50px !important; }
  .math-icon.equation1 { top: 15%; left: 5%; }
  .math-icon.equation2 { top: 65%; right: 5%; }
  .math-icon.graph { top: 25%; left: 80%; }
  .math-icon.shape { bottom: 15%; left: 20%; }
  nav a { display: block; margin: 0.5rem 0; }
  .cta-button {
    padding: 0.6rem 1.5rem;
    min-width: 150px;
  }
  .cta-button:hover {
    transform: scale(1.05);
  }
  .slider-nav { flex-wrap: wrap; gap: 0.8rem; }
  .slider-nav button { padding: 0.6rem 1.5rem; min-width: 100px; }
  .filter-buttons { flex-wrap: wrap; }
  .sticky-cta { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .contact .form-container, .map-placeholder .map-container { padding: 1.5rem; }
  .tutor-profile { padding: 2rem 1rem 2rem; }
  .tutor-profile .profile-container { max-width: 90%; }
  .tutor-profile img { width: 200px; height: 200px; }
  .mission-banner { padding: 2rem; margin: 2rem auto; max-width: 90%; }
  .mission-banner .mission-icon { width: 30px; height: 30px; }
  .mission-banner h3 { font-size: 1.8rem; }
  .mission-banner p { font-size: 1rem; }
  .faq-item p { padding-left: 1rem; }
}