:root {
  --primary-color: #4361ee;
  --primary-hover: #3f37c9;
  --secondary-color: #f8fafc;
  --accent-color: #f72585;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px -12px rgba(67, 97, 238, 0.15);
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --bg-body: #0b1120;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --nav-bg: rgba(11, 17, 32, 0.9);
  --secondary-color: #0f172a;
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.4s ease;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.navbar .container a {
  text-decoration: none;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition);
  padding: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .theme-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd700;
}

.theme-btn:hover {
  transform: rotate(15deg);
  background: var(--primary-color);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 5px;
}

.bar {
  width: 26px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 10px;
  transition: var(--transition);
}

#slider-section {
  height: 90vh;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6)
  );
}

.slide1 {
  background-image: url("img/slider1.webp");
}
.slide2 {
  background-image: url("img/slider2.avif");
}
.slide3 {
  background-image: url("img/slider3.avif");
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 5;
  padding: 0 20px;
  max-width: 800px;
}

.slide-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
}

.slider-btn {
  display: inline-block;
  padding: 16px 45px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 30px -5px rgba(67, 97, 238, 0.4);
  transition: var(--transition);
  border: 2px solid transparent;
}

.slider-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -5px rgba(67, 97, 238, 0.6);
  background: transparent;
  border-color: white;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

#arrow-left {
  left: 30px;
}
#arrow-right {
  right: 30px;
}

#stats-section {
  padding: 80px 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 5;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: var(--transition);
}

.stat-item:hover .icon-box {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

.counter-wrapper {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.cards-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;

  margin-bottom: 50px;

  color: var(--primary-color);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

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

.card-image {
  width: 100%;
  height: 200px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 10px;
}

.bar {
  width: 28px;

  height: 3px;

  background-color: var(--primary-color);

  border-radius: 10px;

  transition: var(--transition);
}

.card-title {
  padding: 20px;
}

.card-desc {
  padding: 0 20px 20px;

  color: var(--text-secondary);
}

.card-cta {
  display: inline-block;

  margin: 0 20px 20px;

  padding: 8px 20px;

  background: var(--primary-color);

  color: white;

  text-decoration: none;

  border-radius: 5px;
}

#testimonials {
  padding: 100px 0;
  background: var(--secondary-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 30px;
  font-style: italic;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.student-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.student-name {
  font-weight: 700;
  color: var(--text-primary);
}

.student-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-section {
  padding: 100px 0;
  background: var(--bg-card);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer p {
  padding-bottom: 25px;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.contact-section {
  padding: 100px 0;
  background: var(--bg-body);
}

.contact-wrapper {
  background: var(--bg-card);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
}

.contact-info {
  background: var(--primary-color);
  padding: 60px;
  color: white;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  opacity: 0.8;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 50px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: white;
  color: var(--primary-color);
}

.contact-form {
  padding: 60px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: var(--bg-body);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

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

.submit-btn {
  padding: 15px 40px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 20px;
  display: block;
}

.footer-links h3,
.footer-newsletter h3 {
  color: white;
  margin-bottom: 25px;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .contact-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 40px;
  }
  .contact-form {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: none;
    z-index: 1050;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .theme-btn {
    margin-top: 20px;
    transform: scale(1.5);
    background: rgba(0, 0, 0, 0.05);
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .slide-content h2 {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}
