/* Base Styles */
:root {
  --primary-color: #007bff; /* A vibrant blue for main actions */
  --secondary-color: #6c757d; /* A subtle grey for secondary text */
  --dark-color: #212529; /* Dark text and background */
  --light-color: #f8f9fa; /* Light backgrounds */
  --white: #ffffff;
  --font-family: "Poppins", sans-serif;
  --border-radius: 5px; /* Standard professional radius */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  scroll-behavior: smooth;
}

/* Utility Class */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header & Navigation */
header {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.3s, background-color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* CTA Button Styling */
.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://via.placeholder.com/1920x800.png?text=Coding+Background")
      center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* General Section Styling */
section {
  padding: 4rem 0;
}

section h3 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

/* Courses Section */
.courses {
  background-color: var(--white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.course-card .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.course-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--dark-color);
}

.details-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Trainers Section */
.trainers {
  background-color: #f1f1f1;
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trainer-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.trainer-image {
  width: 100px;
  height: 100px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
}

.trainer-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.trainer-card p {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

/* About Section */
.about {
  background-color: #f1f1f1;
}

.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-text {
  max-width: 800px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.about ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
}

.about ul li {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Contact Section & Form */
.contact {
  background: var(--white);
}

.contact p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-family);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.contact button {
  width: 100%;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
    padding: 1rem 5%;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
    display: none;
    padding: 1rem 0;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    padding: 1rem;
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section h3 {
    font-size: 2rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .about ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  footer .container {
    flex-direction: column;
  }
}
