* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #f9fafb;
  color: #1f1f1f;
  line-height: 1.6;
}

/* Splash */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash img {
  max-width: 80%;
  height: auto;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 600;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #007BFF;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  width: 100%;
  height: 3px;
  background: #007BFF;
  position: absolute;
  bottom: -6px;
  left: 0;
}

/* Hero Section */
.hero {
  background: url("../images/study-session.jpg") center/cover no-repeat;
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.hero h1, .hero .subtitle {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.25rem;
}

/* Why Section */
.why {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  padding: 4rem 2rem;
  gap: 2rem;
}
.why-left, .why-right {
  flex: 1 1 300px;
}
.why-left h2 {
  color: #007BFF;
  font-size: 2rem;
}
.why-right p {
  font-size: 1rem;
}
.first-letter::first-letter {
  font-size: 200%;
  color: #007BFF;
}

/* Subjects / Services Section */
.services {
  padding: 4rem 2rem;
}
.services h2 {
  color: #007BFF;
  text-align: center;
  margin-bottom: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.subject-card {
  background: #f1f1f1;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
}
.subject-card:hover {
  background: #dceeff;
  transform: scale(1.05);
}
.subject-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  padding: 4rem 2rem;
}
.contact h2 {
  color: #007BFF;
  text-align: center;
  margin-bottom: 2rem;
}
form {
  max-width: 600px;
  margin: auto;
}
form label {
  font-weight: 600;
}
form input, form textarea {
  width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form input[type="submit"],
form input[type="reset"] {
  background: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
  width: auto;
  padding: 0.6rem 1.2rem;
}
form input[type="submit"]:hover,
form input[type="reset"]:hover {
  background: #0056b3;
}

/* Footer */
footer {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 590px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-direction: column;
  }
  .why {
    flex-direction: column;
  }
}

@media screen and (min-width: 591px) and (max-width: 790px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 791px) {
  body {
    max-width: 790px;
    margin: auto;
  }
}
@media screen and (max-width: 600px) {
  #splash img {
    max-width: 60%;
  }
}
.radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.radio-group label {
  font-weight: 400;
}