/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

/* ---------- THEME COLORS ---------- */
:root {
  --bg: #ffffff;
  --text: #171616;
  --nav-bg: #f4f4f4;
  --btn-bg: #111111;
  --btn-text: #ffffff;
}

/* Dark Mode Variables */
#theme-toggle:checked ~ * {
  --bg: #f2f7ff;
  --text: #8de3fd;
  --nav-bg: #161b22;
  --btn-bg: #e6e6e6;
  --btn-text: #0d1117;
}

/* ---------- THEME TOGGLE BUTTON ---------- */
/* ---------- THEME VARIABLES ---------- */
:root {
  --bg: #ffffff;
  --text: #111111;
  --nav-bg: #f4f4f4;
  --btn-bg: #111111;
  --btn-text: #ffffff;
}

/* Dark Mode */
#theme-toggle:checked ~ * {
  --bg: #0d1117;
  --text: #e6e6e6;
  --nav-bg: #161b22;
  --btn-bg: #e6e6e6;
  --btn-text: #0d1117;
}

/* ---------- THEME TOGGLE BUTTON ---------- */
.toggle-btn {
  position: fixed;
  top: 15px;
  right:-5px;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 1000;
  transition: 0.3s;
}

.toggle-btn .moon {
  display: none;
}

#theme-toggle:checked + .toggle-btn .sun {
  display: none;
}

#theme-toggle:checked + .toggle-btn .moon {
  display: inline-block;
}

/* Apply Theme Variables */
body {
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
}

.navbar {
  background: var(--nav-bg);
  color: var(--text);
}

.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: 0.3s;
}

.btn:hover {
  background: #00bfff;
  color: #fff;
}


/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--nav-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 500;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover {
  color: #00bfff;
}

/* ---------- HERO SECTION ---------- */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #00bfff40, transparent);
}

.hero h1 {
  font-size: 3rem;
}

.hero h1 span {
  color: #00bfff;
}

.hero p {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
}

.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #00bfff;
  color: #fff;
}


/* ---------- ABOUT SECTION ---------- */
.about {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.about h2 {
  font-size: 2rem;
  color: #00bfff;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  line-height: 1.6;
}
.instructor img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}


/* ---------- COURSES SECTION ---------- */
.courses {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--nav-bg);
}

.courses h2 {
  color: #00bfff;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

/* Grid Layout */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}



/* Individual Course Box */
.course-box {
  background: var(--bg);
  color: var(--text);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.course-box h3 {
  color: #00bfff;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.course-box p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.course-box img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    object-fit: cover;
    height: 120px;
    }


/* ---------- COURSE QUERY SECTION ---------- */
.course-query {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.course-query h2 {
  color: #00bfff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.course-query p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Query Form Styling */
.query-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.query-form input,
.query-form select,
.query-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border 0.3s, box-shadow 0.3s;
}

.query-form input:focus,
.query-form select:focus,
.query-form textarea:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 10px rgba(0,191,255,0.3);
}

.query-form button {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.query-form button:hover {
  background: #00bfff;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .query-form input,
  .query-form select,
  .query-form textarea {
    width: 100%;
  }
}

/* Contact us  */
/* ---------- CONTACT SECTION ---------- */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.contact h2 {
  color: #00bfff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact h3 {
  font-size: 1.8rem;
  color: #00bfff;
  margin: 2rem 0 1rem;
}

.contact p {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: var(--text);
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: none;
  transition: border 0.3s, box-shadow 0.3s;
  background: var(--bg);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 10px rgba(0,191,255,0.3);
}

.contact-form button {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #00bfff;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
}


/* Hover Effect */
.course-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 25px rgba(0, 191, 255, 0.3);
}

/* Fade-up Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--nav-bg);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}