/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --secondary: #f59e0b;
  --dark: #1e1b3a;
  --gray: #6b7280;
  --light-bg: #f8f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
}

.section-title.left { text-align: left; }

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: 40px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.full-width { width: 100%; }

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray);
}

.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
  padding: 80px 0;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-text h1 span { color: var(--primary); }

.hero-text p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats h3 {
  font-size: 2rem;
  color: var(--primary);
}

.hero-stats p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card, .why-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 40px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  width: 100%;
  animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ================= ABOUT ================= */
.about {
  padding: 90px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--light-bg);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.about-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.about-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

/* ================= COURSES ================= */
.courses {
  padding: 90px 0;
  background: var(--light-bg);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.course-card:hover {
  transform: translateY(-6px);
}

.course-card .course-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.course-card h3 {
  margin-bottom: 10px;
}

.course-card p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.course-card .price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ================= WHY US ================= */
.why-us {
  padding: 90px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-list li {
  margin-bottom: 14px;
  color: var(--dark);
  font-weight: 500;
}

.why-text .btn { margin-top: 20px; }

/* ================= FACULTY ================= */
.faculty {
  padding: 90px 0;
  background: var(--light-bg);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.faculty-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faculty-card:hover { transform: translateY(-6px); }

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 1.1rem;
}

.faculty-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.faculty-card span { color: var(--gray); font-size: 0.85rem; }

/* ================= TESTIMONIALS ================= */
.testimonials {
  padding: 90px 0;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: var(--white);
  text-align: center;
}

.testimonials .section-title { color: var(--white); }

.testimonial-box {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-box p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 16px;
  min-height: 80px;
}

.testimonial-box h4 {
  font-weight: 600;
  margin-bottom: 20px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonial-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots span.active {
  background: var(--white);
  width: 26px;
  border-radius: 6px;
}

/* ================= CONTACT ================= */
.contact {
  padding: 90px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info p {
  margin: 14px 0;
  color: var(--gray);
}

.contact-form {
  background: var(--light-bg);
  padding: 32px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcf0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #dc2626;
}

.error-msg {
  color: #dc2626;
  font-size: 0.8rem;
  display: block;
  min-height: 16px;
  margin-top: 4px;
}

.form-success {
  display: none;
  margin-top: 16px;
  background: #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.form-success.show { display: block; }

.form-error {
  display: none;
  margin-top: 16px;
  background: #fee2e2;
  color: #991b1b;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.form-error.show { display: block; }

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--dark);
  color: #cfcbe8;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer h3, .footer h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer ul li { margin-bottom: 10px; }

.footer a:hover { color: var(--secondary); }

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top:hover { background: var(--primary-dark); }
.back-to-top.show { display: flex; }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .about-grid, .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image, .why-image { order: -1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger { display: flex; }

  .hero-text h1 { font-size: 2.1rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }

  .about-grid, .courses-grid, .faculty-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
