/* =========================================
   1. Foundational & Global Styles
   ========================================= */

/* Root variables for our color palette */
:root {
  --primary-color: #FFC107; /* Amber/Gold for buttons and accents */
  --secondary-color: #001f3f; /* Deep Navy for headings and footers */
  --text-color: #333333; /* Dark charcoal for body text */
  --light-text-color: #F9F9F9; /* Off-white for dark backgrounds */
  --bg-color: #FFFFFF; /* White background */
  --light-gray-bg: #f4f7f6; /* Light gray for alternating sections */
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Basic reset and font setup */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Utility class for consistent section padding */
.content-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #555;
}

/* =========================================
   2. Header & Navigation
   ========================================= */

header {
  background: var(--bg-color);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box; 
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--secondary-color);
}

.tagline {
  font-size: 0.8em;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: #666;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  min-height: 80vh; /* Takes up most of the viewport height */
  padding: 100px 20px;
  /* We'll use a gradient, but you can swap this with a background-image */
  background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-content h2 {
  font-size: 3em;
  color: white;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Main Call-to-Action Button Style */
.btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =========================================
   4. Mobile Responsiveness (Basic)
   ========================================= */
@media (max-width: 1000px) {
  .nav-toggle {
    display: block; /* Show hamburger menu */
  }

  .nav-links {
    display: none; /* Hide links by default */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 100%;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .nav-links.open {
    display: flex; /* Show menu when toggled */
  }

  .nav-links li {
    margin: 15px 0;
  }
  
  .hero-content h2 {
    font-size: 2.2em;
  }
}
/* =========================================
   5. Forms & Buttons
   ========================================= */

form {
  max-width: 600px;
  margin: 40px auto 0 auto; /* Adds space above the form */
  text-align: left; /* Aligns form content to the left */
}

/* Style for the labels */
form label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--secondary-color);
}

/* Style for text inputs and textarea */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
  transition: border-color 0.3s ease;
}

/* Highlight effect when a user clicks on a form field */
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* General style for all submit buttons */
form button[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Styling for the secondary WhatsApp contact button */
.whatsapp-contact-btn {
  margin-top: 25px;
  text-align: center;
}

.whatsapp-contact-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #25D366; /* Official WhatsApp Green */
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.whatsapp-contact-btn a:hover {
  transform: translateY(-2px);
  background-color: #128C7E; /* Darker WhatsApp Green */
}

.whatsapp-contact-btn img {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  filter: invert(100%); /* Makes the SVG icon white */
}
/* =========================================
   6. Content Card Layouts (Subjects & Why Us)
   ========================================= */

/* We'll alternate the background color for better section separation */
#about,
#testimonials,
#become-tutor {
  background-color: var(--light-gray-bg);
}

/* Styling the container of the cards */
#subjects ul,
.why-choose-us ul {
  list-style: none; /* Removes the default bullet points */
  padding: 0;
  margin-top: 40px;
  display: grid; /* We use CSS Grid for a perfect, responsive layout */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Creates responsive columns */
  gap: 25px; /* Spacing between the cards */
}

/* This is the card style for each list item */
#subjects li,
.why-choose-us li {
  background-color: var(--bg-color); /* White background for the cards */
  padding: 25px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* A subtle shadow for depth */
  border: 1px solid #eee;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--secondary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* A nice hover effect to make the cards feel interactive */
#subjects li:hover,
.why-choose-us li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Pro Tip: To add icons later, you could structure your HTML like this:
   <li>
     <img src="icon.svg" alt="" class="card-icon">
     <span>Mathematics</span>
   </li>
   And then style the icon and span accordingly.
*/
/* =========================================
   7. Testimonials Section
   ========================================= */

/* We'll use cards similar to the subjects section, but with a different layout */
.testimonial {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  margin-bottom: 20px;
  position: relative; /* Needed for the quote icon */
  text-align: left;
}

.testimonial p {
  font-style: italic;
  color: #555;
  margin: 0 0 15px 0;
}

/* Style for the author of the testimonial */
.testimonial cite {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: normal;
  color: var(--secondary-color);
}

/* Adds a large, decorative quotation mark in the background */
.testimonial::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 5em;
  color: var(--primary-color);
  opacity: 0.1;
  z-index: 1;
  line-height: 1;
}

/* =========================================
   8. Footer & Floating Button
   ========================================= */

footer {
  background-color: var(--secondary-color); /* Dark navy background */
  color: var(--light-text-color); /* Light text color */
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px; /* Space above the footer */
}

footer p {
  margin: 0;
  font-size: 0.9em;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Official WhatsApp Green */
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: invert(100%); /* Makes the SVG icon white */
}