@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #222;
  line-height: 1.6;
  padding-top: 130px;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* top bar */
.topnav {
  background: #062e57;
  color: #fff;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;

  
}

.topnav-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 42px;
}

.top-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* navbar */
.navmenu {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 42px; /* below top bar */
  left: 0;
  width: 100%;
  z-index: 1000;
}

.menunavtext {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  gap: 20px;
  position: relative;
}

.logo img {
  max-height: 58px;
  width: auto;
}

.menuright ul {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menuright ul li a {
  color: #062e57;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s ease;
}

.menuright ul li a:hover,
.menuright ul li a.active {
  color: #1fb35e;
}

.menu-toggle {
  display: none;
  background: #062e57;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 24px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-close {
  display: none;
}

/* hero slider */
.hero-slider {
  position: relative;
  height: calc(100vh - 130px);
  min-height: 620px;
  background: url("../images/quantum-skill-computer-institute.jpg.jpeg") center
    center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  height: calc(100vh - 130px);
  min-height: 620px;
  background: linear-gradient(
    90deg,
    rgba(6, 46, 87, 0.9) 0%,
    rgba(6, 46, 87, 0.72) 48%,
    rgba(6, 46, 87, 0.18) 100%
  );
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 450px;
  align-items: center;
  gap: 30px;
}

.hero-text {
  max-width: 620px;
  color: #fff;
  padding: 40px 0 70px;
  z-index: 2;
}

.hero-text h1 {
  font-size: 50px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #eef5fb;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-student {
  width: 100%;
  max-width: 450px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-left: auto;
}

.hero-student img {
  width: 100%;
  max-width: 450px;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  object-position: bottom center;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.slider-dots .dot {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.3s ease;
}

.slider-dots .dot.active {
  background: #1fb35e;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background: #1fb35e;
  color: #fff;
}

.btn-primary:hover {
  background: #168c49;
}

.btn-secondary {
  background: #ffffff;
  color: #062e57;
}

.btn-secondary:hover {
  background: #e9f1f7;
}

/* section */
.section-space {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 34px;
  color: #062e57;
  margin-bottom: 10px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

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

.feature-box {
  background: #fff;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.feature-box h3 {
  color: #062e57;
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-box p {
  color: #555;
  font-size: 15px;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.course-card h3 {
  color: #062e57;
  margin-bottom: 12px;
  font-size: 22px;
}

.course-card p {
  color: #555;
}

/* CTA */
.cta-box {
  text-align: center;
  background: #062e57;
  color: #fff;
  padding: 50px 25px;
  border-radius: 18px;
}

.cta-box h2 {
  font-size: 34px;
  margin-bottom: 14px;
}

.cta-box p {
  max-width: 700px;
  margin: 0 auto 24px;
  color: #dce9f5;
}

/* footer */
.site-footer {
  background: #031f3a;
  padding: 22px 0;
}

.footer-content {
  text-align: center;
  color: #fff;
  font-size: 15px;
}

/* overlay for mobile menu */
.menu-overlay {
  display: none;
}

/* ===============================
   TABLET
================================= */
@media (max-width: 992px) {
  .features,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 650px;
  }

  .hero-overlay {
    min-height: 650px;
  }

  .hero-content {
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: end;
  }

  .hero-text {
    max-width: 100%;
    padding: 30px 0 60px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-student {
    max-width: 360px;
  }

  .hero-student img {
    max-width: 360px;
    max-height: 480px;
  }
}

/* ===============================
   MOBILE
================================= */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    padding-top: 118px;
  }

  .container {
    width: 94%;
  }

  /* top bar */
  .topnav {
    font-size: 12px;
  }

  .topnav-inner {
    justify-content: center;
    padding: 3px 0;
    min-height: auto;
  }

  .top-contact {
    flex-direction: column;
    gap: 1px;
    text-align: center;
  }

  /* navbar */
  .navmenu {
    top: 42px;
  }

  .menunavtext {
    min-height: 72px;
  }

  .logo img {
    max-height: 44px;
  }

  .menu-toggle {
    display: block;
    padding: 6px 10px;
    font-size: 22px;
  }

  /* left menu */
  .menuright {
    position: fixed;
    top: 35px;
    left: -100%;
    width: 260px;
    max-width: 85%;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    transition: 0.35s ease;
    z-index: 2000;
  }

  .menuright.show {
    left: 0;
  }

  .menuright ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 30px;
  }

  .menuright ul li,
  .menuright ul li a {
    width: 100%;
  }

  .menuright ul li a {
    padding: 8px 0;
    font-size: 16px;
  }

  .menu-close {
    display: block;
    background: none;
    border: none;
    font-size: 34px;
    color: #062e57;
    margin-left: auto;
    cursor: pointer;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
  }

  .menu-overlay.show {
    display: block;
  }

  /* hero */
  .hero-slider {
    min-height: auto;
  }

  .hero-overlay {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    padding-top: 0;
  }

  .hero-text {
    max-width: 100%;
    padding: 55px 0 10px;
  }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 15px;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-student {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-student img {
    max-width: 280px;
    max-height: 373px;
  }

  .slider-dots {
    bottom: 14px;
  }

  /* spacing */
  .section-space {
    padding: 50px 0;
  }

  .section-title h2,
  .cta-box h2 {
    font-size: 28px;
  }
}

/* ===============================
   SMALL MOBILE
================================= */
@media (max-width: 480px) {
  body {
    padding-top: 112px;
  }

  .container {
    width: 95%;
  }

  .logo img {
    max-height: 40px;
  }

  .hero-text {
    padding: 45px 0 8px;
  }

  .hero-text h1 {
    font-size: 25px;
  }

  .hero-text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-student {
    max-width: 220px;
  }

  .hero-student img {
    max-width: 220px;
    max-height: 293px;
  }

  .btn {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 400;
  }

  .feature-box,
  .course-card,
  .cta-box {
    padding: 22px 16px;
  }
}
