/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --first-color: #069C54;
  --first-color-alt: #048654;
  --title-color: #393939;
  --text-color: #707070;
  --text-color-light: #A6A6A6;
  --body-color: #FBFEFD;
  --container-color: #FFFFFF;
  --accent-green: #019C53;
  --accent-dark-bg: #23272f;
  --accent-dark-border: #222;
  --accent-dark-text: #e0e0e0;
  --accent-dark-highlight: #4fd18b;
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --font-medium: 500;
  --font-semi-bold: 600;
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== DARK THEME VARIABLES ==========*/
body.dark-theme {
  --title-color: #F1F3F2;
  --text-color: #C7D1CC;
  --body-color: #1D2521;
  --container-color: #27302C;
  --accent-green: #4fd18b;
}

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*========== CLASS CSS ==========*/
.section {
  padding: 4rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-3);
}

.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 960px;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav {
  max-width: 1024px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-weight: var(--font-medium);
  color: var(--text-color);
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav__logo:hover {
  color: var(--first-color);
}

.nav__logo-img {
  width: 48px;
  height: auto;
  margin-right: 0.5rem;
  max-width: 100%;
  object-fit: contain;
}

.nav__logo-text {
  display: inline;
}

.nav__menu {}

.nav__list {
  display: flex;
  align-items: center;
  gap: 15px;
  /* ADJUSTED FOR MENU SPACING */
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  margin: 0;
  /* REMOVED LEFT MARGIN FOR EVEN GAP */
  padding: 0;
}

.nav__link,
.nav__logo,
.nav__toggle {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav__link:hover,
.active-link {
  color: var(--first-color);
}

.nav__toggle {
  font-size: 1.3rem;
  cursor: pointer;
}

.show-menu {
  top: var(--header-height);
}

.scroll-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }

  .nav__logo-img {
    width: 36px;
  }

  .nav__logo {
    font-size: 1rem;
  }

  .nav__logo-text {
    display: none;
  }
}

/* Top bar and socials */
.nav__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 10px;
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.nav__icon {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.nav__icon:hover {
  color: #007bff;
}

body.dark-theme .nav__icon {
  color: #ddd;
}

.nav__icon i {
  font-size: 1.25rem;
}

@media screen and (max-width: 768px) {
  .nav__icon i {
    font-size: 1rem;
  }

  .nav__top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav__socials {
    justify-content: flex-start;
    gap: 12px;
  }
}

.nav__button {
  background-color: #4CAF50;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

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

body.dark-theme .nav__button {
  background-color: #4CAF50;
  color: white;
}

/*========== SCROLL TOP ==========*/
.scrolltop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: rgba(6, 156, 84, .5);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover {
  background-color: var(--first-color-alt);
}

.scrolltop__icon {
  font-size: 1.8rem;
  color: var(--body-color);
}

.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container {
  height: calc(100vh - var(--header-height));
  align-content: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.home__subtitle {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}

.home__img {
  width: 300px;
  justify-self: center;
}

/*========== BUTTONS ==========*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

/*========== ABOUT ==========*/
.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-3);
}

.about__img {
  width: 280px;
  border-radius: .5rem;
  justify-self: center;
}

/*========== SERVICES ==========*/
.services__container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.services__content {
  text-align: center;
}

.services__img {
  width: 64px;
  height: 64px;
  fill: var(--first-color);
  margin-bottom: var(--mb-2);
}

.services__title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-1);
}

.services__description {
  padding: 0 1.5rem;
}

/*========== MENU ==========*/
.menu__container {
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
}

.menu__content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: .5rem;
  box-shadow: 0 2px 4px rgba(3, 74, 40, .15);
  padding: .75rem;
}

.menu__img {
  width: 100px;
  align-self: center;
  margin-bottom: var(--mb-2);
}

.menu__name,
.menu__preci {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.menu__name {
  font-size: var(--normal-font-size);
}

.menu__detail,
.menu__preci {
  font-size: var(--small-font-size);
}

.menu__detail {
  margin-bottom: var(--mb-1);
}

.menu__button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: .625rem .813rem;
  border-radius: .5rem 0 .5rem 0;
}

/*========== APP ==========*/
.app__data {
  text-align: center;
}

.app__description {
  margin-bottom: var(--mb-5);
}

.app__stores {
  margin-bottom: var(--mb-4);
}

.app__store {
  width: 120px;
  margin: 0 var(--mb-1);
}

.app__img {
  width: 230px;
  justify-self: center;
}

/*========== CONTACT ==========*/
.contact__container {
  text-align: center;
}

.contact__description {
  margin-bottom: var(--mb-3);
}

.contact__socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media screen and (min-width: 768px) {
  .contact__socials {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-green);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: 500;
}

.contact__social-btn:hover {
  background-color: #017d44;
}

/*========== FOOTER ==========*/
.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__logo {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.footer__description {
  display: block;
  font-size: var(--small-font-size);
  margin: .25rem 0 var(--mb-3);
}

.footer__social {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
}

.footer__title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}

.footer__link {
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== REVIEWS ==========*/
.reviews__scroll {
  padding-top: 0.5rem;
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 170px;
  margin-top: 1.5rem;
  background: #fcfcfc;
  display: flex;
  align-items: center;
}

.reviews__container {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  gap: 0;
  padding-bottom: 10px;
}

.review__item {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 1.2rem 1.7rem;
  min-width: 340px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 1.08rem;
  display: inline-block;
  margin-right: 36px;
  white-space: normal;
  vertical-align: top;
  transition: box-shadow 0.2s;
}

.review__item:last-child {
  margin-right: 0;
}

.review__item span {
  color: var(--accent-green);
  font-weight: 600;
}

@media screen and (max-width: 600px) {
  .review__item {
    min-width: 90vw;
    padding: 1rem 0.5rem;
    font-size: 1rem;
  }

  .reviews__scroll {
    height: 150px;
  }
}

/*========== BLOG ==========*/
.blog__container {
  background: var(--container-color);
}

.blog__post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog__post h3 {
  color: var(--accent-green);
}

/*========== MEDIA QUERIES ==========*/
@media screen and (min-width: 576px) {

  .home__container,
  .about__container,
  .app__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .about__data,
  .about__initial,
  .app__data,
  .app__initial,
  .contact__container,
  .contact__initial {
    text-align: initial;
  }

  .about__img,
  .app__img {
    width: 380px;
    order: -1;
  }

  .contact__container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }

  .contact__button {
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 3.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__item {
    margin: 0;
    /* REMOVED LEFT MARGIN FOR EVEN GAP */
    padding: 0;
  }

  .nav__toggle {
    display: none;
  }

  .change-theme {
    position: initial;
    margin-left: var(--mb-2);
  }

  .home__container {
    height: 100vh;
    justify-items: center;
  }

  .services__container,
  .menu__container {
    margin-top: var(--mb-6);
  }

  .menu__container {
    grid-template-columns: repeat(3, 210px);
    column-gap: 4rem;
  }

  .menu__content {
    padding: 1.5rem;
  }

  .menu__img {
    width: 130px;
  }

  .app__store {
    margin: 0 var(--mb-1) 0 0;
  }
}

@media screen and (min-width: 960px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    width: 500px;
  }

  .about__container,
  .app__container {
    column-gap: 7rem;
  }
}

@media screen and (min-height: 721px) {
  .home__container {
    height: 640px;
  }
}


/* Show hamburger icon for screens <= 1024px */
@media screen and (max-width: 1024px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0 1rem;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    border-radius: 0 0 1rem 1rem;
    z-index: var(--z-fixed);
  }

  .nav__list {
    flex-direction: column;
    gap: 18px;
  }
}

/* Hide hamburger icon on desktop */
@media screen and (min-width: 1025px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    box-shadow: none;
    background: none;
    padding: 0;
  }

  .nav__list {
    flex-direction: row;
    gap: 20px;
  }
}


/*========== ANIMATION ==========*/
.brand-blink {
  color: var(--accent-green);
  animation: blink-animation 1.2s infinite;
}

@keyframes blink-animation {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/*========== DARK MODE ==========*/
/* Section backgrounds */
body.dark-theme .reviews.section,
body.dark-theme .reviews__scroll,
body.dark-theme .reviews__container,
body.dark-theme .blog.section,
body.dark-theme .blog__container {
  background: var(--accent-dark-bg) !important;
}

/* Card backgrounds and text */
body.dark-theme .review__item,
body.dark-theme .blog__post {
  background: var(--accent-dark-bg) !important;
  color: var(--accent-dark-text) !important;
  border: 1px solid var(--accent-dark-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Accent colors for headings and highlights */
body.dark-theme .review__item span,
body.dark-theme .blog__post h3,
body.dark-theme #blog-modal-body h2,
body.dark-theme #course-modal-body h2,
body.dark-theme #course-modal-body table td[style*="font-weight:600"] {
  color: var(--accent-green) !important;
}

/* Blog and course popups */
body.dark-theme #blog-modal-content,
body.dark-theme #course-modal-content {
  background: var(--accent-dark-bg) !important;
  color: var(--accent-dark-text) !important;
}

/* Table text in course popup */
body.dark-theme #course-modal-body table td {
  color: var(--accent-dark-text) !important;
}

body.dark-theme #blog-modal-content {
  background: var(--accent-dark-bg) !important;
  color: var(--accent-dark-text) !important;
}

body.dark-theme #blog-modal-body h2 {
  color: var(--accent-green) !important;
}

.blog__post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.blog__thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #eee;
}

.blog__tags {
  margin-bottom: 0.7rem;
}

.blog__tag {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 2px 10px;
  margin-right: 6px;
  margin-bottom: 2px;
  font-weight: 500;
}

body.dark-theme .blog__post {
  background: var(--accent-dark-bg) !important;
  color: var(--accent-dark-text) !important;
}

body.dark-theme .blog__tag {
  background: var(--accent-dark-highlight);
  color: #222;
}

/* Add scroll offset for anchor navigation */
section {
  scroll-margin-top: 1.5rem;
  /* Adjust to your header height */
}

/*========== END ==========*/