/* ================================
   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 slideInDown {
  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;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 255, 136, 0.8);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* ============================
   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;
  }
}
/* ================================
   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);
}


/* ================================
   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;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.nav-logo img {
  height: 38px;
  animation: slideInLeft 0.6s ease-out;
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  color: rgba(230,255,230,0.8);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 0.1s;
  transition: color 0.3s ease;
}

.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;
  animation: slideInRight 0.3s ease;
}

/* CTA */
.nav-cta {
  display: flex;
  align-items: center;
  animation: slideInRight 0.6s ease-out;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  animation: slideInRight 0.6s ease-out;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #9affc6;
  transition: all 0.3s ease;
}

/* ===============================
   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 {
  background: transparent;
  transition: all 0.3s ease;
}

/* When scrolled */
.malachite-navbar.scrolled {
  background: rgba(0, 35, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 12px 0;
}

/* ===============================
   BLOG HERO SECTION
================================ */

.blog-hero {
  min-height: 80vh;
  display: flex;
  margin-top: -180px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
}

.blog-hero-inner {
  max-width: 900px;
  width: 100%;
}

/* Title */
.blog-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.blog-title span {
  color: #00ff8a;
}

/* Subtitle */
.blog-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.3s both;
}

/* Search */
.blog-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 32px;
  animation: scaleUp 0.6s ease-out 0.4s both;
}

.blog-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.blog-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter {
  padding: 10px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.filter:hover {
  border-color: #00ff8a;
  color: #00ff8a;
}

.filter.active {
  background: rgba(0, 255, 138, 0.15);
  border-color: #00ff8a;
  color: #00ff8a;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 600px) {
  .blog-subtitle {
    font-size: 16px;
  }

  .blog-search {
    max-width: 100%;
  }
}

.blog-section {
  padding: 120px 20px;
  color: #fff;
}

.blog-container {
  max-width: 1300px;
  margin: auto;
}

.blog-header {
  text-align: center;
  margin-bottom: 60px;
  animation: slideInUp 0.6s ease-out;
}

.blog-header h2 {
  font-size: 56px;
  font-weight: 800;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.blog-header h2 span {
  color: #22ff88;
}

.blog-header p {
  margin-top: 14px;
  color: #aaa;
  font-size: 18px;
}

.blog-filters {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-filters button {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid #333;
  color: #ccc;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-filters button.active {
  border-color: #22ff88;
  color: #22ff88;
  animation: glow 2s infinite;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: #0a0a0a;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34,255,136,0.15);
  animation: slideInUp 0.6s ease-out both;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(34,255,136,0.4);
  box-shadow: 0 15px 40px rgba(34,255,136,0.15);
}

.blog-thumb {
  position: relative;
  height: 220px;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: #22ff88;
  color: #000;
}

.blog-content {
  padding: 24px;
}

.blog-date {
  font-size: 13px;
  color: #888;
}

.blog-content h3 {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 700;
}

.blog-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #b5b5b5;
}

.blog-content a {
  display: inline-block;
  margin-top: 14px;
  color: #22ff88;
  font-weight: 600;
}

.blog-load {
  text-align: center;
  margin-top: 60px;
}

.blog-load button {
  padding: 14px 34px;
  background: transparent;
  border: 1px solid #22ff88;
  color: #22ff88;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header h2 {
    font-size: 40px;
  }
}


/* =========================
   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;
  }
}
