

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}


/* Header */
header {
  background: #1a73e8;
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header-bg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-bg h1 {
  margin: 0;
  font-size: 26px;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffd700;
}

/* Hero Section */
.hero {
  background: url('your-hero-background.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero .btn {
  background: #ff9800;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #e38900;
}

/* Courses Section */
.courses-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.courses-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #1a73e8;
}

.course-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.course-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 300px;
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h3 {
  color: #1a73e8;
  margin: 15px 0 10px;
}

.course-card p {
  padding: 0 15px 20px;
  font-size: 15px;
}

/* About Section */
.about-section {
  background: #f1f1f1;
  padding: 60px 20px;
  text-align: center;
}

.about-section h2 {
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 20px;
}

.about-section p {
  max-width: 800px;
  margin: auto;
  font-size: 17px;
}

/* Contact Section */
.contact-section {
  padding: 60px 20px;
  background-color: #fff;
}

.contact-section h2 {
  font-size: 32px;
  color: #1a73e8;
  margin-bottom: 40px;
  text-align: center;
}

.contact-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-form,
.contact-info {
  flex: 1 1 350px;
  background: #fafafa;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn.submit {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn.submit:hover {
  background: #1558b0;
}

.contact-info p {
  margin: 10px 0;
}

.map-container {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 15px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 28px;
  }

  .header-bg {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .contact-flex {
    flex-direction: column;
  }

  .course-grid {
    flex-direction: column;
    align-items: center;
  }
}
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background-color: #333;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 0;
  z-index: 9999;
  transition: all 0.4s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}
/* === Scroll Animation Classes === */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === Hero Load Animation === */
@keyframes heroSlideIn {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero h2,
.hero p,
.hero .btn {
  animation: heroSlideIn 1s ease forwards;
  opacity: 0;
}

.hero h2 {
  animation-delay: 0.2s;
}
.hero p {
  animation-delay: 0.4s;
}
.hero .btn {
  animation-delay: 0.6s;
}

/* === Wavy Underline for Navigation === */
nav ul li a {
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffd700;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

/* === Ripple Button Effect === */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 1;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* === Glowing Button Hover === */
.btn.primary,
.btn.submit {
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease-in-out;
}

.btn.primary:hover,
.btn.submit:hover {
  box-shadow: 0 0 10px #1a73e8, 0 0 20px #1a73e8, 0 0 40px #1a73e8;
}

/* === Toast Update === */
.toast {
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: translateX(-50%) scale(0.9);
}

.toast.show {
  transform: translateX(-50%) scale(1);
}

/* === Section Animations === */
section.fade-in-up,
.course-card.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

section.fade-in-up.visible,
.course-card.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
