:root {
  --accent: #0b61ff;
  --accent-2: #ff7a18;
  --muted: #6b7280;
  --bg: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  --card: #ffffff;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-family: 'Inter', sans-serif;
  img {
   image-rendering: -webkit-optimize-contrast;
   image-rendering: crisp-edges;
  }

}

/* ========== Base ========== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #0f1724;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 20px 40px;
}

/* ========== Header ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: background 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background: var(--accent);
  transition: 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta:hover {
  background: var(--accent-2);
}

.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
}

/* ========== Hero Section ========== */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 30px;
  padding: 40px 0;
  animation: fadeIn 0.6s ease;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 15px;
}

.hero img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ========== Stats Cards ========== */
.stats .stat {
  flex: 1;
  text-align: center;
  background: var(--card);
  padding: 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stats .stat:hover {
  transform: translateY(-5px);
}

/* ========== Courses ========== */
#courses h2 {
  font-size: 28px;
  text-align: center;
  margin-top: 40px;
  color: var(--accent);
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.course {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.course:hover {
  border-top: 3px solid var(--accent);
  transform: translateY(-5px);
}

.course h3 {
  color: #0f1724;
  font-size: 18px;
  margin-bottom: 6px;
}

.course p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.course span {
  font-weight: 700;
  color: var(--accent);
}

/* ========== Trainers ========== */
#trainers h2 {
  text-align: center;
  color: var(--accent);
  margin-top: 50px;
}

.feature {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
}

/* ========== Testimonials ========== */
.testimonials {
  background: linear-gradient(135deg, #eaf2ff, #ffffff);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.testimonial {
  margin-top: 12px;
  font-style: italic;
  color: #333;
}

/* ========== Forms ========== */
form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: border 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(11, 97, 255, 0.1);
}

button {
  cursor: pointer;
  border: none;
  transition: background 0.3s ease;
}

/* ========== Footer ========== */
footer {
  margin-top: 50px;
  padding: 18px 0;
  border-top: 1px solid #eef2ff;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 880px) {
  nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 10px;
    padding: 14px;
    box-shadow: var(--shadow);
    border-radius: 8px;
  }

  nav a {
    padding: 8px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero img {
    margin: 0 auto;
  }

  .actions {
    justify-content: center;
  }
}
/* ---------- Testimonials ---------- */
.testimonials {
  text-align: center;
  margin: 60px 0;
}

.testimonials h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f1724;
  margin-bottom: 24px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.testimonial-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 24px;
  max-width: 340px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.student-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 16px;
  border: 4px solid var(--accent);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.testimonial-card strong {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f1724;
}

.testimonial-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* Responsive Testimonials */
@media (max-width: 768px) {
  .testimonial-list {
    flex-direction: column;
    align-items: center;
  }

  .student-photo {
    width: 130px;
    height: 130px;
  }

  .testimonial-card {
    max-width: 90%;
  }
}

.testimonial-card img {
  transition: transform 0.3s ease;
}
.testimonial-card:hover img {
  transform: scale(1.05);
}
/* ===== Contact Section Layout ===== */
#contact .card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

#contact form {
  flex: 1 1 60%;
  min-width: 320px;
}

#contact iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px;
}

#contact .card > div:last-child {
  flex: 0 0 35%;
  min-width: 280px;
}

/* Responsive - stack on small screens */
@media (max-width: 768px) {
  #contact .card {
    flex-direction: column;
  }
  #contact .card > div:last-child {
    width: 100%;
  }
}
