@font-face {
  font-family: "Odin Bold";
  src: url("../fonts/Odin-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "ZTGatha";
  src: url("../fonts/ZTGatha-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "BAHNSCHRIFT";
  src: url("../fonts/Bahnschrift.woff2") format("woff2");
}

/* =============================================
   RESET & GLOBAL STYLES
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Bahnschrift", sans-serif;
  scroll-behavior: smooth;
  background-color: #fafaff;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Bahnschrift", sans-serif;
}

section {
  width: 100%;
  overflow: hidden;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #141e46;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 120px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(109, 103, 228, 0.3);
  border-top-color: #6d67e4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside card grids */
.animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #6d67e4;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(109, 103, 228, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #554dc0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(109, 103, 228, 0.5);
}

/* =============================================
   UNIFIED BUTTON SYSTEM
   ============================================= */
.btn {
  display: inline-block;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-size: 14px;
  font-family: "ZTGatha", sans-serif;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn--primary {
  background: linear-gradient(135deg, #6d67e4, #8b86f0);
  color: #fff;
  box-shadow: 0 4px 15px rgba(109, 103, 228, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #554dc0, #6d67e4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 103, 228, 0.4);
}

.btn--secondary {
  background: #d9f4e9;
  color: #141e46;
}

.btn--secondary:hover {
  background: #b1a7fc;
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #6d67e4;
  border: 2px solid #6d67e4;
}

.btn--outline:hover {
  background: #6d67e4;
  color: #fff;
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 36px;
  font-size: 16px;
}

/* =============================================
   NAVIGATION (Sticky with blur)
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 0.5rem 2.5rem;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(250, 250, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#navbar .logo img {
  max-width: 80px;
  height: auto;
}

#navbar ul.navbar {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

#navbar ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid #141e46;
  border-radius: 20px;
  background-color: transparent;
  color: #141e46;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#navbar ul li a:hover,
#navbar ul li a.active {
  background-color: #6d67e4;
  color: #fff;
  border-color: #6d67e4;
}

/* Hamburger icon (hidden on desktop) */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 10001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #141e46;
  transition: 0.3s;
  border-radius: 2px;
}

/* =============================================
   HOME SECTION
   ============================================= */
#home {
  background-image: url("../images/backgrounds/background_18.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  padding: 80px 0 0 0; /* Only top offset for fixed navbar */
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.home-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.home-text {
  width: 55%;
  color: #141e46;
}

#home h1 {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: left;
  line-height: 1.4;
  margin-bottom: 20px;
}

#home p {
  font-size: 1.15rem;
  text-align: left;
  line-height: 1.7;
  margin-bottom: 30px;
  font-family: "ZTGatha", sans-serif;
}

.home-image img {
  width: 90%;
  height: auto;
  border-radius: 10px;
  max-width: 600px;
}

/* =============================================
   SOFTWARES SECTION
   ============================================= */
#softwares {
  background-color: #fafaff;
  padding: 80px 20px;
  text-align: center;
  color: #141e46;
}

#softwares h2 {
  color: #141e46;
  font-size: 48px;
  text-align: center;
  margin-bottom: 10px;
}

#softwares .section-subtitle {
  color: #6d67e4;
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  font-family: "ZTGatha", sans-serif;
}

.software-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  width: 340px;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 30px 24px;
  padding-bottom: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card h3 {
  color: #141e46;
  font-size: 22px;
  margin-bottom: 12px;
  text-align: center;
}

.card p {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
  font-family: "ZTGatha", sans-serif;
  line-height: 1.7;
}

.software-icon img {
  width: 80px;
  height: auto;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(109, 103, 228, 0.15);
}

.card:hover .software-icon img {
  transform: scale(1.1);
}

.card .btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

/* =============================================
   MATERIALS SECTION
   ============================================= */
#materials {
  width: 100%;
  min-height: 100vh;
  padding: 80px 60px;
  background-image: url("../images/backgrounds/background_18.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#materials h2 {
  font-size: 48px;
  color: #141e46;
  margin-bottom: 30px;
}

#materials p,
#materials span {
  font-family: "ZTGatha", sans-serif;
}

#materials p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.materials-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.materials-image {
  flex: 0 0 auto;
  margin-right: 40px;
}

.materials-image img {
  max-width: 500px;
  height: auto;
}

.materials-text h2 {
  text-align: left;
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  max-width: 800px;
}

.icon-item span {
  font-size: 13px;
}

.icon-item img {
  width: 20px;
  height: auto;
  margin-right: 8px;
}

.icons-with-text {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.icon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =============================================
   REFERENCES SECTION (Seamless logo slider)
   ============================================= */
#references {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

#references h2 {
  font-size: 48px;
  color: #141e46;
  margin-bottom: 10px;
}

#references p {
  font-family: "ZTGatha", sans-serif;
  font-size: 1.2rem;
  text-align: center;
  margin: 10px auto 30px;
  color: #555;
}

.logo-container {
  overflow: hidden;
  background-color: #141e46;
  padding: 30px 0;
  width: 100%;
  position: relative;
}

/* Fade edges */
.logo-container::before,
.logo-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logo-container::before {
  left: 0;
  background: linear-gradient(to right, #141e46, transparent);
}

.logo-container::after {
  right: 0;
  background: linear-gradient(to left, #141e46, transparent);
}

.logos {
  display: flex;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}

.logos img {
  width: 90px;
  height: 90px;
  margin: 0 30px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: 8px;
  transition: transform 0.3s ease;
}

.logos img:hover {
  transform: scale(1.15);
}

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

/* =============================================
   SUCCESS / STATS SECTION
   ============================================= */
#success-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa, #eee8ff);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 30px;
}

.success-item {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 30px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}

.success-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(109, 103, 228, 0.15);
}

.icon-container {
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon {
  max-width: 100%;
  height: auto;
}

.success-text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.success-text h3 {
  font-size: 42px;
  margin: 0;
  color: #6d67e4;
  font-family: "Bahnschrift", sans-serif;
}

.success-text p {
  font-size: 14px;
  margin: 4px 0 0;
  color: #555;
  font-family: "ZTGatha", sans-serif;
}

/* =============================================
   ABOUT US SECTION
   ============================================= */
#about {
  padding: 80px 20px;
  background-image: url("../images/backgrounds/background_18.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#about h2 {
  font-size: 48px;
  color: #141e46;
  text-align: center;
  margin-bottom: 30px;
}

#about .about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#about .about-logo {
  flex: 0 0 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#about .about-logo img {
  max-width: 70%;
  height: auto;
}

#about .about-text {
  flex: 0 0 60%;
  padding-left: 30px;
}

#about .about-text p {
  margin: 0;
  font-size: 1.1rem;
  text-align: left;
  font-family: "ZTGatha", sans-serif;
  line-height: 1.8;
  color: #333;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
#contact-section {
  background-color: #fafaff;
  padding: 80px 20px;
  width: 100%;
}

.contact-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 40px;
  color: #141e46;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.contact-left iframe {
  display: block;
  width: 550px;
  height: 350px;
  border: 8px solid #141e46;
  border-radius: 12px;
  max-width: 100%;
}

.map-bottom-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 12px;
}

.map-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #141e46;
  font-family: "ZTGatha", sans-serif;
}

.info-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.contact-right {
  flex: 1;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  font-family: "ZTGatha", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 100%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background-color: #141e46;
  color: #b1a7fc;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: "ZTGatha", sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6d67e4;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8b86f0;
}

#enterprise-type option[value=""] {
  color: #8b86f0;
}

.contact-form .btn {
  align-self: flex-end;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-container {
  background-color: #141e46;
  color: #ccffe5;
  padding: 50px 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-family: "ZTGatha", sans-serif;
  width: 100%;
  position: relative;
}

.footer-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 15px;
}

.footer-left {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.footer-left::after {
  content: "";
  position: absolute;
  right: 0;
  height: 60%;
  width: 2px;
  background-color: rgba(204, 255, 229, 0.3);
  top: 50%;
  transform: translateY(-50%);
}

.footer-middle {
  width: 35%;
  padding-left: 40px;
}

.footer-right {
  width: 35%;
  padding-left: 20px;
}

.footer-heading {
  display: inline-block;
  border-bottom: 3px solid #ccffe5;
  padding-bottom: 5px;
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: "Odin Bold", sans-serif;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 14px;
}

.quick-links a {
  color: #ccffe5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
}

.quick-links a:hover {
  color: #6d67e4;
  padding-left: 5px;
}

.contact-item {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-inline {
  display: flex;
  align-items: center;
}

.phone-line {
  margin-left: calc(22px + 10px);
}

.contact-item img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.contact-item span {
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}

/* =============================================
   RESPONSIVE: TABLETS (992px)
   ============================================= */
@media (max-width: 992px) {
  #navbar {
    padding: 0.5rem 1.5rem;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  #home p {
    font-size: 1rem;
  }

  .home-content {
    padding: 0 3rem;
  }
}

/* =============================================
   RESPONSIVE: MOBILE MENU (804px)
   ============================================= */
@media (max-width: 804px) {
  #navbar ul.navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 220px;
    height: 100vh;
    gap: 1.5rem;
    background-color: rgba(250, 250, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    z-index: 10000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  }

  .hamburger {
    display: block;
  }

  #navbar ul.navbar.show {
    right: 0;
  }

  .home-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 2rem;
  }

  .home-text {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 1rem;
    text-align: center;
  }

  #home h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  #home p {
    font-size: 0.95rem;
    text-align: center;
  }

  .home-image img {
    max-width: 70%;
  }
}

/* =============================================
   RESPONSIVE: SMALL SCREENS
   ============================================= */
@media (max-width: 768px) {
  .software-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 85%;
  }

  #softwares h2 {
    font-size: 32px;
  }

  #softwares .section-subtitle {
    font-size: 15px;
  }

  /* Materials */
  #materials {
    min-height: auto;
    padding: 50px 20px;
  }

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

  .materials-image {
    margin: 0 0 20px 0;
  }

  .materials-image img {
    max-width: 80%;
  }

  .materials-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  #materials p {
    font-size: 1rem;
    text-align: center;
  }

  .icon-item {
    margin-left: 1rem;
  }

  /* Success */
  #success-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .success-item {
    width: 80%;
    max-width: none;
    flex-direction: column;
    text-align: center;
  }

  .success-text {
    align-items: center;
  }

  .icon-container {
    flex: none;
    width: 100%;
    margin-bottom: 10px;
  }

  .icon {
    max-width: 50%;
  }

  /* References */
  .logos img {
    width: 70px;
    height: 70px;
    margin: 0 15px;
  }

  /* About */
  #about .about-logo {
    display: none;
  }

  #about .about-content {
    flex-direction: column;
    padding: 10px;
  }

  #about .about-text {
    flex: 1 1 100%;
    padding-left: 0;
    text-align: center;
  }

  #about h2 {
    font-size: 32px;
  }

  #contact-section {
    padding: 60px 20px;
    width: 100%;
    overflow: hidden;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
    padding: 0;
    width: 100%;
    align-items: center;
  }

  .contact-right {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .contact-form {
    padding: 25px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form .btn {
    align-self: center;
  }

  .contact-left iframe {
    width: 100%;
    height: 250px;
    border-width: 6px;
  }

  .contact-title {
    font-size: 32px;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }

  .footer-left, .footer-middle, .footer-right {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  .footer-left::after {
    display: none;
  }

  .footer-middle, .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .quick-links {
    align-items: center;
    text-align: center;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    align-items: center;
  }

  .contact-inline {
    justify-content: center;
  }

  .phone-line {
    margin-left: 0;
  }

  .map-bottom-info {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  #home h1 {
    font-size: 1.6rem;
  }

  #home p {
    font-size: 0.9rem;
  }

  #navbar ul li a {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 400px) {
  #home h1 {
    font-size: 1.4rem;
  }

  .success-text h3 {
    font-size: 36px;
  }
}
