/* GLOBAL STYLES */
:root {
  --primary: rgba(255, 241, 239, 1);
  --accent: #8dadce;
  --background: #FFFFFC;
  --gray: #666;
  --font-light: #fff;
  --font-dark: #333;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Georgia', serif;
  margin: 0;
  background: var(--background);
  color: var(--font-dark);
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  z-index: 1000;
  font-family: 'Roboto';
}

.logo {
  color: var(--font-dark);
  img {
    width: 50px;
  }
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
}

.navbar a {
  text-decoration: none;
  color: var(--font-dark);
  font-weight: 400;
  transition: color 0.2s;
}

.navbar a:hover {
  color: #ccc;
}

/* MOBILE MENU (hidden by default) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--font-dark);
  border-radius: 2px;
}

/* HERO */
.hero {
  height: 100vh; /* full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;

  /* background image settings */
  background-image: url("../assets/img/home-bg-2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--font-light);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay for text readability */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
  margin-top: 20px;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 10s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: var(--font-dark);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: var(--primary) solid 2px;
  font-family: 'Roboto';
}

.btn:hover {
  transition: 0.4s;
  background: var(--background);
}

/* SECTIONS */
.section {
  padding: 6rem 2rem;
  text-align: center;
}

.section.alt {
  background: #f9f9f9;
}

.section.imp {
  padding-left: 10px;
  padding-right: 10px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.course-images {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-images img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
}

/* ABOUT */
.about-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.about-content p {
  padding: 1rem;
  text-align: left;
  flex: 1;
  align-self: flex-start;
  max-width: 100%;
  font-size: 20px;
  line-height: 1.8rem;
}

.about-content img {
  display: flex;
  flex: 1;
  height: auto;
  width: auto;
  max-width: 531px;
  max-height: 720px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--font-dark);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .logo img{
    width: 40px;
  }
  .navbar ul {
    display: none;
    position: absolute;
    top: 70px;
    right: 1.5rem;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar a {
    color: var(--font-dark);
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 1rem 0rem;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .course-images img {
    max-width: 90%;
  }

  .about-content img {
    max-width: 266px;
    max-height: 360px;
  }
  .hero {
    background-image: url("../assets/img/home-bg-mobile.webp");
    background-attachment: scroll; /* prevents janky scrolling on mobile */
    background-position: center top;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .navbar {
    padding: 1rem;
  }

  .about-content img {
    max-width: 133px;
    max-height: 180px;
  }
}
