/* ===============================
   INFONIX TECH – DARK TECH THEME
================================= */

/* -------- RESET -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #0b0f2a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------- CONTAINER -------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* -------- SCROLL PROGRESS -------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #1f4bff, #9c4dff);
  z-index: 9999;
}

/* -------- NAVBAR -------- */
.navbar {
  position: fixed;
  width: 100%;
  padding: 20px 0;
  transition: 0.3s ease;
  z-index: 1000;
  background: transparent;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------- BRAND -------- */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 55px;
  width: auto;
  padding: 1.5px;
  background: #111638;
  /* darker contrast box */
  filter: brightness(1.2);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(31, 75, 255, 0.3);
  transition: 0.3s ease;
}

.company-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #1f4bff, #9c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------- NAV MENU -------- */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #c7c9e0;
  font-weight: 500;
  position: relative;
  transition: 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #1f4bff;
  transition: 0.3s ease;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* -------- HERO -------- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: auto;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #1f4bff, #9c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 20px 0 30px;
  color: #c7c9e0;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow background */
.hero::before {
  content: "";
  position: absolute;
  width: 90vw;
  height: 90vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle,
      rgba(31, 75, 255, 0.15) 0%,
      transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* -------- BUTTONS -------- */
.btn-primary {
  background: #1f4bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  margin: 5px;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  box-shadow: 0 0 15px #1f4bff;
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid #1f4bff;
  color: #1f4bff;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  margin: 5px;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: #1f4bff;
  color: #fff;
  box-shadow: 0 0 10px #1f4bff;
}

/* -------- SECTIONS -------- */
section {
  padding: 100px 0;
}

section h2 {
  font-size: 40px;
  margin-bottom: 40px;
  text-align: center;
}

/* -------- CARDS -------- */
.plan-card,
.erp-card,
.feature,
.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: 0.3s ease;
  backdrop-filter: blur(12px);
}

.plan-card:hover,
.erp-card:hover,
.feature:hover,
.step:hover {
  transform: scale(1.03);
  border-color: #1f4bff;
  box-shadow: 0 0 15px rgba(31, 75, 255, 0.4);
}

/* -------- GRIDS -------- */
.plans-grid,
.erp-grid,
.features-grid,
.process-steps {
  display: grid;
  gap: 30px;
}

.plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.erp-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.process-steps {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* -------- PREMIUM -------- */
.premium {
  border: 2px solid #9c4dff;
  position: relative;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffc857;
  color: #000;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 20px;
}

.plan-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.price {
  font-weight: 600;
  margin-bottom: 15px;
  color: #c7c9e0;
}

.plan-features {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

.plan-features li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #a0a5d6;
}

.plan-card {
  text-align: left;
}

.plan-card h3 {
  margin-bottom: 10px;
}


.erp-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.erp-card h3 {
  margin-bottom: 10px;
}

.erp-desc {
  font-size: 14px;
  color: #A0A5D6;
  margin-bottom: 15px;
}

.erp-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.erp-features li {
  margin-bottom: 6px;
  font-size: 13px;
  color: #C7C9E0;
}

.erp-card {
  text-align: left;
}



/* -------- CTA -------- */
.cta-banner {
  background: #121633;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 20px;
}


/* ===== WHY SECTION (DARK SAAS STYLE) ===== */

.why-us-dark {
  background: #0B0F2A;
  padding: 100px 0;
}

.why-us-dark h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #FFFFFF;
}


.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 30px 20px;
  /* reduced from 40px */
  text-align: center;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.why-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  /* slightly smaller */
  color: #FFFFFF;
}

.why-card p {
  font-size: 13px;
  /* smaller description */
  color: #C7C9E0;
  line-height: 1.6;
}


.why-card:hover {
  transform: translateY(-6px);
  border-color: #1F4BFF;
  box-shadow: 0 0 25px rgba(31, 75, 255, 0.3);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1F4BFF, #9C4DFF);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(31, 75, 255, 0.4);
}

/* ===== PROCESS SECTION DARK ===== */

.process-dark {
  background: #0B0F2A;
  padding: 100px 0;
}

.process-dark h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #FFFFFF;
}

.process-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.process-card {
  width: 300px;
}


/* Make last two centered */
.process-card:nth-child(4) {
  grid-column: 1 / 2;
}

.process-card:nth-child(5) {
  grid-column: 3 / 4;
}


.process-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s ease;
  backdrop-filter: blur(10px);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: #1F4BFF;
  box-shadow: 0 0 20px rgba(31, 75, 255, 0.3);
}

.process-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #1F4BFF, #9C4DFF);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin: 0 auto 18px;
  box-shadow: 0 0 15px rgba(31, 75, 255, 0.4);
}

.process-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.process-card p {
  font-size: 13px;
  color: #C7C9E0;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card:nth-child(4),
  .process-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== CTA SECTION DARK ===== */

.cta-dark {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg,
      rgba(42, 85, 253, 0.05),
      rgba(165, 94, 252, 0.05));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-dark h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.cta-dark p {
  color: #C7C9E0;
  font-size: 16px;
  margin-bottom: 30px;
}


/* ===== SAAS STYLE DARK FOOTER ===== */

.footer-saas-dark {
  background: #0A0F25;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

/* Brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 45px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
}

.footer-brand p {
  font-size: 14px;
  color: #A0A5D6;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Social */
.footer-social a {
  margin-right: 10px;
  font-size: 16px;
  text-decoration: none;
  color: #8B90C0;
  transition: 0.3s ease;
}

.footer-social a:hover {
  color: #1F4BFF;
}

/* Columns */
.footer-column h4 {
  font-size: 15px;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 14px;
  color: #8B90C0;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-column a:hover {
  color: #1F4BFF;
  padding-left: 4px;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #8B90C0;
  font-size: 13px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}



/* -------- HAMBURGER -------- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 2000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: 0.3s ease;
}

/* -------- MOBILE MENU -------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b0f2a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 1500;
  }

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
    list-style: none;
    text-align: center;
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .brand img {
    height: 45px;
  }

  .company-name {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 36px;
  }

  section h2 {
    font-size: 28px;
  }

  .brand img {
    height: 40px;
    padding: 6px;
  }

}

/* -------- HAMBURGER ANIMATION -------- */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


@media (max-width: 768px) {

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    /* brand full width */
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand p {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .footer-column h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-column li {
    margin-bottom: 6px;
  }

  .footer-column a {
    font-size: 13px;
  }

  .footer-saas-dark {
    padding-top: 50px;
  }

  .footer-bottom {
    padding: 15px 0;
    font-size: 12px;
  }
}

/* ========= ANIMATION EFFECTS ========= */

.plans-hero {
  animation: fadeUp 1s ease forwards;
  position: relative;
  overflow: hidden;

}

.plans-hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 75, 255, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
}

.plan-card {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.plan-card:nth-child(1) {
  animation-delay: 0.2s;
}

.plan-card:nth-child(2) {
  animation-delay: 0.4s;
}

.plan-card:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Glow Animation */
.plans-cta {
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 20px rgba(31, 75, 255, 0.4);
  }

  to {
    box-shadow: 0 0 40px rgba(156, 77, 255, 0.6);
  }
}