/* ================================
   RESET
================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

/* ================================
   MODERN ANIMATIONS & KEYFRAMES
================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ============================
   MOBILE + TABLET OVERFLOW FIX
   ============================ */

/* =====================
   TABLET & BELOW
===================== */
@media (max-width: 1024px) {

  /* Hard stop horizontal overflow */
  html, body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  /* Prevent grid + flex children from exceeding viewport */
  .hero-wrap,
  .hero-left,
  .hero-right,
  .mx-services,
  .mx-services-wrap,
  .mx-services-carousel {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Reduce massive desktop gaps */
  .hero-wrap {
    gap: 40px !important;
  }

  /* Reviews causing sideways scroll */
  .form-reviews {
    flex-wrap: wrap !important;
    max-width: 100%;
  }

  /* Prevent buttons & cards stretching viewport */
  button,
  .btn,
  .review-card,
  .figma-card,
  .feature-card {
    max-width: 100%;
  }

  /* Images & SVG safety */
  img,
  svg {
    max-width: 100%;
    height: auto;
  }
}

/* =====================
   MOBILE ONLY
===================== */
@media (max-width: 427px) {

  /* Stack carousel cards (NO overflow) */
  .mx-services-carousel {
    height: auto !important;
    padding-bottom: 40px;
  }

  .mx-service-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto 24px;
    pointer-events: auto;
  }

  /* Kill absolute carousel positions */
  .mx-pos-1,
  .mx-pos-2,
  .mx-pos-3,
  .mx-pos-4,
  .mx-pos-5 {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =====================
   VERY SMALL DEVICES
===================== */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 425px) {

  /* Space from right edge */
  .nav-toggle {
    margin-right: 40px;
  }
}
@media (max-width: 360px) {
  .nav-toggle {
    margin-right: 18px;
  }
}


/* ================================
   GLOBAL BACKGROUND
================================ */
body {
  background: url("../assets/images/WhatsApp\ Image\ 2026-02-12\ at\ 11.36.50\ AM\ copy.webp") no-repeat center top;
  background-size: cover;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #eaffea;
  overflow-x: hidden;
}

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3, h4, h5, h6 {
  color: #eaffea;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: white;
  line-height: 1.7;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================
   IMAGES
================================ */
img {
  max-width: 100%;
  display: block;
}

/* ================================
   CONTAINER
================================ */
.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* ================================
   GLASS UI (for cards later)
================================ */
.glass {
  background: rgba(0, 40, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 255, 120, 0.12);
  box-shadow: 0 0 40px rgba(0, 255, 120, 0.08);
  border-radius: 14px;
}

/* ================================
   BUTTON BASE
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00ff8a, #00b65f);
  color: #001a0d;
  box-shadow: 0 0 25px rgba(0, 255, 138, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 138, 0.7);
}

.btn-outline {
  border: 1px solid rgba(0,255,140,0.4);
  color: #9affc6;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0,255,140,0.12);
}

/* ================================
   FORM BASE
================================ */
input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,140,0.25);
  background: rgba(0, 40, 0, 0.55);
  color: #eaffea;
  outline: none;
}

input::placeholder {
  color: rgba(200,255,200,0.4);
}

input:focus {
  border-color: #00ff8a;
  box-shadow: 0 0 15px rgba(0,255,140,.35);
}
/* ===============================
   MALACHITE NAVBAR
================================ */

.malachite-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* Logo */
.nav-logo img {
  height: 38px;
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 34px;
}

.nav-menu a {
  color: rgba(230,255,230,0.8);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #00ff8a;
}

/* underline glow */
.nav-menu a.active::after,
.nav-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #00ff8a;
  box-shadow: 0 0 10px #00ff8a;
}

/* CTA */
.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #9affc6;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 30, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 22px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}
/* ===== GLASS EFFECT ON SCROLL ===== */

.malachite-navbar{
}

/* When scrolled */
.malachite-navbar.scrolled{
  background: rgba(0, 35, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.ai-hero {
  min-height: 80vh;
  display: flex;
  margin-top: -20px;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  text-align: center;
  color: #eafff2;
}

.ai-hero-inner {
  max-width: 900px;
  width: 100%;
}

/* Badge */
.ai-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 255, 140, 0.1);
  color: #00ff8a;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Title */
.ai-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.ai-title span {
  color: #00ff8a;
}

/* Description */
.ai-desc {
  max-width: 700px;
  margin: 0 auto 48px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(230, 255, 240, 0.75);
}

/* Buttons */
.ai-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  background: #00ff8a;
  color: #052116;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary:hover {
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 30px;
  border-radius: 999px;
  color: #eafff2;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Trust logos */
.ai-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  opacity: 0.35;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-desc {
    font-size: 16px;
  }

  .ai-trust {
    gap: 24px;
    flex-wrap: wrap;
  }
}

.services-section {
  padding: 120px 6%;
  color: #dfffe9;
  margin-top: -60px;
}

.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.services-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
}

.services-header h2 span {
  color: #1aff7a;
}

.services-header p {
  margin-top: 16px;
  opacity: 0.85;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: rgba(0, 60, 40, 0.55);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid rgba(26, 255, 122, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 255, 122, 0.08), transparent, rgba(26, 255, 122, 0.03));
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: inherit;
  pointer-events: none;
}
/* ================================
   BUTTON BASE
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00ff8a, #00b65f);
  color: #001a0d;
  box-shadow: 0 0 25px rgba(0, 255, 138, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 138, 0.7);
}

.btn-outline {
  border: 1px solid rgba(0,255,140,0.4);
  color: #9affc6;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0,255,140,0.12);
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-16px) scale(1.03) rotateX(2deg);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(26, 255, 122, 0.2),
    0 0 120px rgba(26, 255, 122, 0.1),
    inset 0 0 40px rgba(26, 255, 122, 0.05);
  border-color: rgba(26, 255, 122, 0.4);
  background: rgba(0, 60, 40, 0.7);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.service-card:hover .icon-box {
  transform: translateY(-12px) scale(1.15) rotate(8deg);
  box-shadow: 
    0 20px 40px rgba(26, 255, 122, 0.5),
    0 0 60px rgba(26, 255, 122, 0.3),
    inset 0 0 20px rgba(26, 255, 122, 0.2);
  background: linear-gradient(135deg, rgba(30, 255, 150, 0.3), rgba(26, 255, 122, 0.2));
  border-color: rgba(26, 255, 122, 0.6);
}

.service-card:hover h3 {
  transform: translateY(-4px) scale(1.02);
  color: #00ff8a;
  text-shadow: 0 0 20px rgba(26, 255, 122, 0.5);
}

.service-card:hover .hover-underline-grow {
  background-image: linear-gradient(90deg, #00ff8a, #1aff7a, #00ff8a);
  background-size: 200% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.6s ease, background-position 0.6s ease;
  animation: shimmer 2s infinite;
}

.service-card:hover .hover-underline-grow {
  background-size: 100% 2px;
  background-position: right bottom;
}

@keyframes shimmer {
  0%, 100% { background-position: left bottom; }
  50% { background-position: right bottom; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(2deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.service-card:hover .icon-box {
  animation: float 3s ease-in-out infinite;
}

.service-card:hover .icon-box::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(26, 255, 122, 0.2), transparent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(30, 255, 150, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(26, 255, 122, 0.2);
  position: relative;
}

.icon-box:hover {
  background: rgba(30, 255, 150, 0.25);
  border-color: rgba(26, 255, 122, 0.4);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(26, 255, 122, 0.3);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 18px;
  transition: opacity 0.3s ease;
}

.service-card:hover p {
  opacity: 1;
}

.service-card h4 {
  font-size: 12px;
  letter-spacing: 1px;
  color: #1aff7a;
  margin-bottom: 10px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 22px;
}

.service-card ul li {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.service-card a {
  color: #1aff7a;
  font-weight: 500;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}
/* ===============================
   CTA STRIP
================================ */

.cta-strip {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.cta-box {
  max-width: 1100px;
  width: 100%;
  background: linear-gradient(180deg, #0c3f2c, #083224);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Text */
.cta-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 16px;
  color: rgba(230, 255, 240, 0.75);
}

/* Button */
.cta-btn {
  background: #00ff8a;
  color: #062218;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cta-btn:hover {
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .cta-text h3 {
    font-size: 22px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}


/* =========================
   FOOTER
========================= */

.mx-footer {
  padding: 80px 20px 20px;
  color: #eaffea;
  background: #001A00;
}

.mx-footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Top grid */
.mx-footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(0,255,120,.35);
}

/* Brand */
.mx-footer-brand img {
  max-width: 200px;
  margin-bottom: 18px;
}

.mx-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(230,255,230,.75);
}

/* Columns */
.mx-footer-col h4 {
  font-size: 18px;
  color: #00ff8a;
  margin-bottom: 18px;
  position: relative;
}

.mx-footer-col h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #00ff8a;
  margin-top: 6px;
}

.mx-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mx-footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(230,255,230,.85);
}

.mx-footer-col ul li a {
  color: inherit;
  text-decoration: none;
}

.mx-footer-col ul li a:hover {
  color: #00ff8a;
}

/* Contact */
.mx-footer-contact li {
  line-height: 1.7;
}

/* Social */
.mx-footer-social {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
  font-size: 16px;
}

.mx-footer-social a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.mx-footer-social a:hover {
  color: #00ff8a;
}

/* Bottom */
.mx-footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(230,255,230,.6);
  padding-top: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .mx-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .mx-footer-top {
    grid-template-columns: 1fr;
  }

  .mx-footer-social {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
}
