/* ===========================================
   INDEX / HOME PAGE STYLES
   =========================================== */

/* Hero System Section */
.system {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
}

@media (max-width: 767px) {
  .system {
    height: 100vh;
    background-position: 80% center;
  }
}

/* Top Bar */
.top-bar {
  width: 100%;
  padding: 16px 0;
  position: relative;
  z-index: 100;
}

.top-bar-content {
  max-width: 100%;
  padding: 0 63px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .top-bar-content {
    padding: 0 16px;
  }
}

/* Logo */
.logo {
  padding: 10px;
}

.logo img {
  width: 100px;
}

@media (max-width: 768px) {
  .logo img {
    width: 90px;
  }
}

/* Categories Navigation */
.categories-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 24px;
  margin-left: 32px;
}

.categories-nav.d-none.d-lg-flex {
  display: none;
}

@media (min-width: 992px) {
  .categories-nav.d-none.d-lg-flex {
    display: flex !important;
  }
}

.category-link {
  font-family: var(--font-tertiary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 400;
  transition: opacity var(--transition-fast);
}

.category-link:hover {
  opacity: 0.8;
  color: var(--color-white);
}

/* System Container */
.system-container {
  width: 100%;
  max-width: 1500px;
  padding: 0 63px;
  margin: 75px auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1919px) {
  .system-container {
    margin-top: 0;
  }
}

@media (max-width: 1147px) {
  .system-container {
    margin-top: 10px;
    align-items: center;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .system-container {
    height: 76vh;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* System Text */
.system-text {
  width: 85%;
  margin-top: 50px;
  z-index: 10;
}

@media (max-width: 1919px) {
  .system-text {
    margin-top: 40px;
  }
}

@media (max-width: 1365px) {
  .system-text {
    width: 65%;
    margin-top: 60px;
  }
}

@media (max-width: 767px) {
  .system-text {
    width: 100%;
    padding-left: 1rem;
    margin-top: 0;
  }
}

.system-title {
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-white);
}

@media (max-width: 1919px) {
  .system-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  .system-title {
    font-size: 1.5rem;
  }
}

.system-word {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-white);
}

.system-word::after {
  content: '|';
  animation: blink 0.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* System Type (Character Image) */
.system-type {
  width: 600px;
  height: calc(100% - 24px);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 130%;
  position: absolute;
  bottom: 0;
  right: 63px;
  z-index: 1;
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

@media (max-width: 1147px) {
  .system-type {
    width: 100%;
    height: 80%;
    right: 0;
    background-size: 100%;
    background-position: top center;
  }
}

@media (max-width: 767px) {
  .system-type {
    height: 100%;
    background-size: 150%;
    background-position: bottom center;
  }
}

/* Section Form (Contact) */
.section-form {
  background-image: url('../../images/online-programming-course-cta-section-bg.svg');
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: cover;
}

/* About Us Section */
.about-us {
  background-position: top right 170px;
  background-repeat: no-repeat;
}

/* Counter Section */
.counter-number {
  font-weight: 600;
  font-size: 3rem;
  color: var(--color-primary-lighter);
}

@media (max-width: 991px) {
  .counter-number {
    font-size: 2rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-fast);
  background: #25d366;
  width: 56px;
  height: 56px;
  right: 1rem;
  bottom: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  z-index: 9997;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
}

@media (min-width: 992px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    right: 2.5rem;
    bottom: 2.5rem;
  }
}

/* Section Spacing */
.section-spacing {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .section-spacing {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}