/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Colors */
:root {
  --dark-blue: #0a1f44;
  --blue: #0d47a1;
  --light-blue: #e3f2fd;
  --white: #ffffff;
}

/* Base */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--white);

  /* Full-page math background */
  background-image: url('math.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  min-height: 100vh;
}

/* Full-page overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(10, 31, 68, 0.8);
  z-index: -1;
}

/* Welcome banner */
.welcome-banner {
  background-color: var(--blue);
  overflow: hidden;
  padding: 0.6rem 0;
  text-align: center;
}

.welcome-banner p {
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-text 15s linear infinite;
  font-weight: 500;
}

@keyframes scroll-text {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem;
}

.logo {
  max-width: 140px;
  margin-bottom: 1rem;
}

.tagline {
  color: #cfd8dc;
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: auto;
  background: rgba(0,0,0,0.0);
  border-radius: 6px;
}

.section.dark {
  background-color: rgba(8, 22, 47, 0.8);
  border-radius: 6px;
}

/* Services - Diamond bullets */
.services {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.services li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.services li::before {
  content: "◆";
  color: #0d47a1;  /* matching your brand blue */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Subjects & Professional Services Section */
.section.subjects-section {
  min-height: 400px;
  padding: 4rem 1.5rem;
  border-radius: 6px;
  position: relative;
  color: #fff;
  margin-top: 2rem;
}

/* Subjects checkboxes */
.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.subjects label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--light-blue);
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  cursor: pointer;
  color: #000;
  font-weight: 500;
}

.subjects input[type="checkbox"] {
  accent-color: var(--blue);
}

/* Professional Services */
.professional-services {
  margin-top: 2rem;
}

.professional-services h3 {
  margin-bottom: 1rem;
  color: black;  /* CHANGED from blue to black */
}

.prof-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--light-blue);
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  color: #000;
  transition: transform 0.3s, box-shadow 0.3s;
}

.prof-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.prof-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.2rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background-color: var(--blue);
  color: var(--white);
}

.btn.primary:hover {
  background-color: #08306b;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(5, 15, 36, 0.9);
  border-radius: 6px;
  margin-top: 2rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--white);
  color: #000;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 6px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

input,
textarea {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
}