
:root {
  --primary-color: #512da8;
  --secondary-color: #311b92;
  --bg-light: #f3f2fd;
  --text-dark: #222;
  --text-light: #fff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #f8f9fa;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #512da8;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* spacing between logo and text */
  text-decoration: none;
  color: #512da8;
  font-weight: bold;
  font-size: 1.25rem;
  background: white;
  border-radius: 5px;
  padding-left: 5px;
  padding-right: 5px;
}

.logo img {
  height: 40px;  /* adjust this value if still too big */
  width: auto;
  display: block;
}

/*Default Desktop*/
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffca28;
}

/* Hide hamburger by default */
.menu-toggle {
  display: none;
}

/* Hide menu on small screens */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #512da8;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block !important;
    cursor: pointer;
    font-size: 24px;
    color: #222;
  }
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #ffffff, #ede7f6);
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 50%;
  padding-right: 2rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero-content h1 span {
  color: #512da8;
}

.hero-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.hero-content ul li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #555;
}

.hero-content ul li i {
  color: #4caf50;
  margin-right: 0.5rem;
}

.cta-btn {
  background-color: #512da8;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-btn:hover {
  background-color: #311b92;
}

/* Hero Image */
.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar {
    flex-direction: column;
  }
}

/* Courses Section */
.courses-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.courses-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #512da8;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.course-card {
  background-color: #f3f2fd;
  border-radius: 10px;
  padding: 2rem 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.course-card i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #512da8;
}

.course-card p {
  font-weight: 600;
  font-size: 1.05rem;
  color: #333;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* New Batches Section */
.batches-section {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  text-align: center;
}

.batches-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #512da8;
}

.table-container {
  overflow-x: auto;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.batches-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.batches-table th,
.batches-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

.batches-table thead {
  background-color: #512da8;
  color: white;
}

.batch-btn {
  background-color: #4caf50;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.batch-btn:hover {
  background-color: #388e3c;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .batches-table th,
  .batches-table td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
}

/* Training Modes Section */
.training-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.training-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #512da8;
}

.training-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.training-card {
  background-color: #f3f2fd;
  border-radius: 10px;
  padding: 2rem;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card i {
  font-size: 2.5rem;
  color: #512da8;
  margin-bottom: 1rem;
}

.training-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.training-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive layout */
@media (max-width: 768px) {
  .training-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Placements Section */
.placements-section {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  text-align: center;
}

.placements-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #512da8;
}

.placement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.placement-card {
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.student-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.placement-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.placement-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

.company-logo {
  width: 80px;
  height: auto;
  margin: 0.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #4caf50;
  color: white;
  font-size: 0.8rem;
  border-radius: 20px;
  margin-top: 0.5rem;
}

/* About Section */
.about-section {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #512da8;
}

.about-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text ul li {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: #333;
}

.about-text ul li i {
  color: #4caf50;
  margin-right: 0.5rem;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
  }

  .about-text ul {
    text-align: left;
    display: inline-block;
    margin: 0 auto;
  }
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background-color: #f3f2fd;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #512da8;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1 1 300px;
  text-align: left;
  font-size: 1rem;
  color: #444;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info i {
  color: #512da8;
  margin-right: 0.6rem;
}

/* Form */
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  background-color: #512da8;
  color: white;
  padding: 0.75rem;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #311b92;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: left;
  }

  .contact-form {
    width: 100%;
  }
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #512da8;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

#backToTop:hover {
  background-color: #311b92;
}

/* Footer */
.footer {
  background-color: #311b92;
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-brand h3 {
  margin-bottom: 0.2rem;
}

.footer-links a {
  color: white;
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-socials a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Smooth transitions on hover */
.course-card,
.placement-card,
.training-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.placement-card:hover,
.training-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn,
.batch-btn {
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover,
.batch-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

.ambassador-section {
  background: white;
  padding: 4rem 1rem;
  text-align: center;
}

.ambassador-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3f3d56; /* Your website heading color */
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ambassador-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ambassador-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 320px;
  flex: 1 1 280px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.ambassador-card .emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ambassador-card h3 {
  color: #3f3d56; /* Website's text heading color */
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ambassador-card p {
  font-size: 0.95rem;
  color: #555;
}

.apply-button-wrap {
  text-align: center;
}

.apply-button {
  background-color: #512da8; 
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.apply-button:hover {
  background-color: #311b92; /* Slightly darker on hover */
}

.nav-ambassador {
  position: relative;
  color: #ffa726;
  font-weight: bold;
  text-shadow: 0 0 5px #ffa726, 0 0 10px #ffb74d;
  animation: pulseZoom 2s infinite, glow 1.5s infinite alternate;
  overflow: hidden;
}

/* Zoom effect */
@keyframes pulseZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Glow effect */
@keyframes glow {
  from {
    text-shadow: 0 0 5px #ffa726, 0 0 10px #ffb74d;
  }
  to {
    text-shadow: 0 0 10px #ffb74d, 0 0 20px #ffc107;
  }
}

/* Shine effect */
.nav-ambassador::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  transform: skewX(-25deg);
}

.nav-ambassador:hover::before {
  animation: shine 1.2s ease forwards;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}


.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 20px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
