/* Base Styles */
:root {
  --primary-color: #4a6bff;
  --secondary-color: #ff6b6b;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --footer-bg: #2c3e50;
  --footer-text: #f8f9fa;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-link-hover: #4a6bff;
}

[data-theme="dark"] {
  --primary-color: #5d7eff;
  --secondary-color: #ff7b7b;
  --dark-color: #f8f9fa;
  --light-color: #2c3e50;
  --text-color: #f8f9fa;
  --text-light: #b0b0b0;
  --bg-color: #1a1a2e;
  --card-bg: #16213e;
  --border-color: #2a2a3a;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --footer-bg: #1a1a2e;
  --footer-text: #f8f9fa;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-link-hover: #5d7eff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #3a5aed;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 107, 255, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 107, 255, 0.3);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
}

.section-title span {
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header.scrolled {
  background-color: rgba(26, 26, 46, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo span {
  color: var(--primary-color);
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-right: 30px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  width: 100%;
}

/* Theme Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
}

.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.theme-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-color);
}

.theme-icon i {
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: none;
}

.mobile-menu-toggle:hover {
  color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--card-bg);
  z-index: 1001;
  transition: var(--transition);
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.mobile-logo span {
  color: var(--text-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  color: var(--primary-color);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 5px;
  transition: var(--transition);
  color: var(--text-color);
}

.mobile-nav-link:hover {
  background-color: rgba(74, 107, 255, 0.1);
  color: var(--primary-color);
}

.mobile-nav-link.active {
  background-color: rgba(74, 107, 255, 0.2);
  color: var(--primary-color);
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.main-content {
  margin-top: 80px;
}

/* Hero Section */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, rgba(74, 107, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(74, 107, 255, 0.1) 0%, rgba(26, 26, 46, 0) 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  animation: fadeIn 1.5s ease;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: translateY(-10px);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(74, 107, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-list {
  margin-top: 15px;
}

.service-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
}

.service-list li::before {
  content: '•';
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Courses Section */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.course-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.course-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(74, 107, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.course-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.course-duration {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.course-features {
  margin-bottom: 25px;
  flex-grow: 1;
}

.course-features li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
  color: var(--text-light);
}

.enroll-btn {
  margin-top: auto;
  width: 100%;
}

.course-benefits {
  margin-top: 60px;
  text-align: center;
}

.course-benefits h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.benefit-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-item p {
  font-weight: 500;
}

/* About Section */
.about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  animation: fadeInLeft 1s ease;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-content {
  flex: 1;
  animation: fadeInRight 1s ease;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-services {
  margin-bottom: 30px;
}

.about-services li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-services li i {
  color: var(--primary-color);
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 50px;
  align-items: center;
}

.contact-info {
  flex: 1;
}

.contact-image {
  flex: 1;
  text-align: center;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(74, 107, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-light);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 0;
  transition: var(--transition);
}

.footer .logo {
  color: var(--footer-text);
}

.footer .logo span {
  color: var(--secondary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-about .social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-about .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  transition: var(--transition);
}

.footer-about .social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--footer-link-hover);
  padding-left: 5px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  width: 20px;
  color: var(--primary-color);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid var(--footer-border);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--footer-text);
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
      opacity: 0;
      transform: translateX(-30px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
      opacity: 0;
      transform: translateX(30px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
      flex-direction: column;
  }
  
  .about .container {
      flex-direction: column;
  }
  
  .contact-container {
      flex-direction: column;
  }
  
  .hero-content, .hero-image, .about-image, .about-content {
      width: 100%;
  }
  
  .hero-title {
      font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
      font-size: 2rem;
  }
  
  .nav-links {
      display: none;
  }
  
  .mobile-menu-toggle {
      display: block;
  }
  
  .theme-switch-wrapper {
      margin-right: 15px;
  }
  
  .theme-icon {
      display: none;
  }
  
  .header.scrolled {
      padding: 5px 0;
  }
  
  .header-content {
      padding: 15px 0;
  }
  
  .stats {
      flex-direction: column;
      gap: 20px;
  }
  
  .hero-buttons {
      flex-direction: column;
      gap: 15px;
  }
  
  .btn {
      width: 100%;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .courses-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  section {
      padding: 60px 0;
  }
  
  .hero-title {
      font-size: 2rem;
  }
  
  .hero-subtitle {
      font-size: 1rem;
  }
  
  .service-card, .course-card {
      padding: 20px;
  }
  
  .footer-contact p {
      font-size: 0.9rem;
  }
}