/* ============================================================
   GLOBAL VARIABLES + RESET
============================================================ */
:root {
  --green: #7bc043;
  --blue: #3399ff;
  --orange: #ff6a33;
  --yellow: #ffc233;
  --gray: #666;
  --light-gray: #f5f5f5;
  --dark: #353535;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
}

/* ============================================================
   CONTAINER — RESPONSIVE
============================================================ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

/* ============================================================
   ANIMATIONS
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}
.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ============================================================
   HEADER
============================================================ */
header {
  background: #ffffffee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav img {
  height: 80px;
  transition: 0.25s;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: 18px;
  transition: 0.25s;
}

@media (max-width: 768px) {
  .nav img {
    height: 80px;
  }
  .nav-links {
    display: none;
  }
}

/* ============================================================
   MOBILE MENU
============================================================ */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 999;
  font-size: 30px;
  color: var(--dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 20px 0;
  position: fixed;
  top: 100px;
  width: 100%;
  left: 0;
  z-index: 998;
  border-bottom: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav a {
  padding: 12px 20px;
  text-decoration: none;
  color: var(--dark);
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* ============================================================
   FLOATING SHAPES
============================================================ */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(2px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-30px);
  }
}

@media (max-width: 768px) {
  .floating-shape {
    display: none !important;
  }
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  padding: 120px 0 120px;
  color: #fff;
  overflow: hidden;
  background: url("../img/hero-bg.jpg") center bottom / cover no-repeat fixed;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4, 15, 30, 0.99),
    rgba(4, 15, 30, 0.7),
    rgba(4, 15, 30, 0.55)
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* Typewriter */
.typewriter-wrap {
  font-size: 22px;
  color: #e0f2ff;
  margin-bottom: 10px;
}

#typewriter {
  border-right: 2px solid #fff;
  padding-right: 3px;
  animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
  0%,
  50% {
    border-color: #fff;
  }
  51%,
  100% {
    border-color: transparent;
  }
}

.hero h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero p {
  max-width: 640px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 100px;
    background-attachment: scroll !important;
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.3;
  }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  margin-top: 15px;
  display: inline-block;
  background: var(--orange);
  padding: 12px 30px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: 0.25s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

/* ============================================================
   SECTIONS
============================================================ */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
  color: var(--dark);
  font-weight: 500;
}

#services, #about {
    background: var(--light-gray);
}

/* ============================================================
   SERVICES
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  transition: 0.3s;
}

.service-icon {
  margin-bottom: 12px;
  font-size: 34px;
  color: var(--green);
}

/* ============================================================
   SAAS
============================================================ */
.saas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.saas-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.saas-card img {
  max-width: 200px;
}

/* ============================================================
   ABOUT + CONTACT
============================================================ */
#about p,
#contact p {
  max-width: 850px;
  padding: 0 10px;
  margin: 12px auto;
  text-align: center;
  font-size: 16px;
  color: #555;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: #fafafa;
  border-top: 1px solid #ddd;
  padding: 20px 0;
  text-align: center;
  color: #555;
  font-size: 14px;
}

/* ============================================================
   SCROLL TO TOP BUTTON
============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--blue);
  color: #fff;
  padding: 5px 12px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  display: none;
  transition: 0.3s;
        width: 50px;
    height: 50px;
    text-align: center;
    line-height: 40px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover {
  background: var(--orange);
  transform: translateY(-4px);
}

/* ============================================================
   WHATSAPP FLOATING WIDGET
============================================================ */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  padding: 5px 12px;
  border-radius: 50%;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
      width: 50px;
    height: 50px;
    text-align: center;
}

.whatsapp-widget:hover {
  transform: scale(1.12);
}

/* ============================================================
   PAGE LOADER
============================================================ */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader-spinner {
  width: 55px;
  height: 55px;
  border: 6px solid #ddd;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}
