/* ========================================
   MIAD TECH — Design System
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0510;
  --bg-secondary: #0d071a;
  --accent: #8b5cf6;
  --accent2: #7c3aed;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(139, 92, 246, 0.1);
  --radius: 12px;
  --nav-h: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Glass Card --- */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.glass:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1EBE5A;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 5, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
}

.nav-logo span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.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(5px, -5px);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10, 5, 16, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--card-border);
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(139, 92, 246, 0.08);
  color: var(--accent);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-1 {
  top: 10%;
  left: -10%;
  background: var(--accent);
}

.hero-glow-2 {
  bottom: 10%;
  right: -5%;
  background: var(--accent2);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(139, 92, 246, 0);
  }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-img-wrap {
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.hero-img-glow {
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: rgba(139, 92, 246, 0.15);
  filter: blur(40px);
  z-index: -1;
}

.hero-status {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(10, 5, 16, 0.8);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-status .dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-dot 2s infinite;
}

/* ========================================
   SERVICES / ACCORDION
   ======================================== */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion-num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.accordion-title {
  font-size: 18px;
  font-weight: 700;
}

.accordion-chevron {
  color: var(--accent);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(90deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-body {
  max-height: 800px;
}

.accordion-inner {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
}

.accordion-inner p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.accordion-inner ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-inner li {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

/* Portfolio placeholder cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.portfolio-card {
  position: relative;
  height: 100px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card .overlay {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   B2C CARDS
   ======================================== */
.b2c-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.b2c-card {
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.b2c-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.b2c-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.b2c-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee-section {
  padding: 48px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.marquee-mask {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.marquee-track img {
  flex-shrink: 0;
  margin-right: 64px;
  height: 40px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.marquee-track img:hover {
  opacity: 1;
}

.marquee-mask::before,
.marquee-mask::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-mask::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-mask::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* ========================================
   PRODUCT CATALOGUE
   ======================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.product-img {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--card-border);
}

.product-img i {
  font-size: 40px;
  color: rgba(139, 92, 246, 0.25);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-info .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-info .price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.product-info .btn {
  font-size: 12px;
  padding: 10px 16px;
  width: 100%;
  justify-content: center;
}

/* ========================================
   ARTICLES
   ======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  padding: 28px;
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  overflow: hidden;
}

.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-q i {
  color: var(--accent);
  transition: transform 0.3s;
  font-size: 12px;
}

.faq-item.active .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-a {
  max-height: 300px;
}

.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  padding: 60px 40px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ========================================
   B2B / SOLUTIONS
   ======================================== */
.b2b-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.diff-card {
  padding: 28px;
  text-align: center;
  transition: transform 0.3s;
}

.diff-card:hover {
  transform: translateY(-4px);
}

.diff-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin: 0 auto 16px;
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}

.diff-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sector-card {
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.sector-card:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.2);
}

.sector-card i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.sector-card span {
  font-size: 14px;
  font-weight: 600;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.package-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.package-card:hover {
  transform: translateY(-4px);
}

.package-card.featured {
  border-color: var(--accent);
}

.package-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: 16px;
  right: -28px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  text-transform: uppercase;
}

.package-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.package-card .pkg-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.package-card ul {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-card li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-card li i {
  color: var(--accent);
  font-size: 12px;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  transition: all 0.3s;
}

.checkbox-label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.08);
}

.checkbox-label input {
  accent-color: var(--accent);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand .accent {
  color: var(--accent);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  font-size: 16px;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-copy {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   FLOATING WHATSAPP
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
  animation: float-bob 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes float-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* B2B Hero heading */
.b2b-heading {
  font-size: 48px;
}

/* ========================================
   RESPONSIVE — Preserve desktop layout at all sizes
   ======================================== */

/* Tablet: minor scale adjustments, keep all columns */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .b2c-grid {
    gap: 12px;
  }

  .products-grid {
    gap: 16px;
  }

  .packages-grid {
    gap: 16px;
  }

  .footer-grid {
    gap: 24px;
  }

  .diff-grid {
    gap: 14px;
  }
}

/* Mobile: scale everything down proportionally, KEEP multi-column grids */
@media (max-width: 768px) {
  :root {
    --nav-h: 44px;
  }

  .container {
    padding: 0 10px;
  }

  /* NAV — two-row: logo top-left, links bottom-right */
  .navbar {
    height: auto;
    padding: 4px 0;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0 10px;
    height: auto;
  }

  .nav-logo {
    padding: 2px 0;
  }

  .nav-logo span {
    font-size: 13px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 0 3px;
  }

  .nav-links a {
    font-size: 7px;
    letter-spacing: 0.03em;
    padding: 2px 0;
  }

  .nav-links a::after {
    height: 1.5px;
  }

  .hamburger {
    display: none;
  }

  /* SECTIONS — tighter spacing */
  .section {
    padding: 32px 0;
  }

  .section-label {
    font-size: 8px;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .section-sub {
    font-size: 10px;
  }

  /* HERO — keep 2 columns */
  .hero {
    min-height: 50vh;
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 24px;
  }

  .hero-grid {
    gap: 16px;
  }

  .hero h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 10px;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-badge {
    font-size: 7px;
    padding: 3px 8px;
    margin-bottom: 12px;
    gap: 4px;
  }

  .hero-badge .dot {
    width: 5px;
    height: 5px;
  }

  .hero-img-wrap img {
    border-radius: 12px;
  }

  .hero-img-glow {
    inset: -10px;
  }

  .hero-status {
    padding: 4px 8px;
    font-size: 7px;
    bottom: 8px;
    left: 8px;
    gap: 4px;
    border-radius: 6px;
  }

  .hero-status .dot-green {
    width: 5px;
    height: 5px;
  }

  .hero-glow {
    width: 200px;
    height: 200px;
    filter: blur(60px);
  }

  /* BUTTONS — scale proportionally */
  .btn {
    padding: 8px 14px;
    font-size: 9px;
    gap: 4px;
    border-radius: 8px;
  }

  /* B2C GRID — keep 4 columns */
  .b2c-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .b2c-card {
    padding: 12px;
  }

  .b2c-card h3 {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .b2c-card p {
    font-size: 8px;
  }

  /* MARQUEE */
  .marquee-section {
    padding: 20px 0;
  }

  .marquee-track img {
    height: 20px;
    margin-right: 32px;
  }

  /* ACCORDION / SERVICES — keep layout */
  .services-grid {
    gap: 8px;
  }

  .accordion-header {
    padding: 12px;
  }

  .accordion-num {
    width: 24px;
    height: 24px;
    font-size: 8px;
    border-radius: 5px;
  }

  .accordion-title {
    font-size: 11px;
  }

  .accordion-header-left {
    gap: 8px;
  }

  .accordion-chevron {
    font-size: 9px;
  }

  .accordion-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 12px;
    padding-top: 12px;
  }

  .accordion-inner p {
    font-size: 8px;
    margin-bottom: 6px;
  }

  .accordion-inner li {
    font-size: 8px;
    gap: 4px;
  }

  .accordion-inner li i {
    font-size: 8px;
  }

  .accordion-img {
    height: 80px;
    border-radius: 8px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
  }

  .portfolio-card {
    height: 50px;
    border-radius: 5px;
  }

  .portfolio-card .overlay {
    font-size: 7px;
  }

  /* PRODUCT CATALOGUE — keep 3 columns */
  .filter-tabs {
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    justify-content: flex-start;
  }

  .filter-tab {
    padding: 5px 10px;
    font-size: 8px;
    white-space: nowrap;
    border-radius: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .product-img {
    height: 80px;
  }

  .product-img i {
    font-size: 20px;
  }

  .product-info {
    padding: 8px;
  }

  .product-info h3 {
    font-size: 9px;
    margin-bottom: 2px;
  }

  .product-info .desc {
    font-size: 7px;
    margin-bottom: 4px;
  }

  .product-info .price {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .product-info .btn {
    font-size: 7px;
    padding: 5px 6px;
  }

  /* ARTICLES — keep 2 columns */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .article-card {
    padding: 12px;
  }

  .article-tag {
    font-size: 7px;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .article-card h3 {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .article-card p {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .article-date {
    font-size: 8px;
  }

  .article-meta .btn {
    padding: 4px 8px;
    font-size: 8px;
  }

  /* FAQ */
  .faq-list {
    gap: 6px;
  }

  .faq-q {
    padding: 12px 14px;
    font-size: 10px;
  }

  .faq-q i {
    font-size: 8px;
  }

  .faq-a-inner {
    padding: 0 14px 12px;
    font-size: 9px;
  }

  /* CTA BANNER */
  .cta-banner {
    padding: 24px 16px;
  }

  .cta-banner h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .cta-banner p {
    font-size: 10px;
    margin-bottom: 12px;
  }

  /* B2B / SOLUTIONS */
  .b2b-hero {
    min-height: 40vh;
  }

  .b2b-heading {
    font-size: 22px;
  }

  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .diff-card {
    padding: 12px;
  }

  .diff-card .icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .diff-card h3 {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .diff-card p {
    font-size: 8px;
  }

  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .sector-card {
    padding: 12px;
  }

  .sector-card i {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .sector-card span {
    font-size: 9px;
  }

  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .package-card {
    padding: 14px;
  }

  .package-card h3 {
    font-size: 12px;
  }

  .package-card .pkg-desc {
    font-size: 9px;
    margin-bottom: 10px;
  }

  .package-card ul {
    margin-bottom: 12px;
    gap: 4px;
  }

  .package-card li {
    font-size: 8px;
    gap: 4px;
  }

  .package-card li i {
    font-size: 8px;
  }

  .package-card.featured::before {
    font-size: 7px;
    padding: 2px 24px;
    top: 10px;
    right: -30px;
  }

  /* FORMS — keep 2 columns */
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-label {
    font-size: 8px;
    margin-bottom: 4px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 8px 10px;
    font-size: 10px;
    border-radius: 8px;
  }

  .form-textarea {
    min-height: 60px;
  }

  .checkbox-group {
    gap: 6px;
  }

  .checkbox-label {
    font-size: 8px;
    padding: 5px 8px;
    border-radius: 5px;
    gap: 4px;
  }

  /* FOOTER — keep 3 columns */
  .footer {
    padding: 28px 0 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .footer-brand h3 {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .footer-brand p {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .social-links {
    gap: 6px;
  }

  .social-link {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 6px;
  }

  .footer-copy {
    font-size: 8px;
    padding-top: 10px;
  }

  /* FLOATING WHATSAPP — smaller */
  .whatsapp-float {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 12px;
    right: 12px;
  }
}

/* Very small screens (< 480px): further scale */
@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }

  .nav-inner {
    padding: 0 8px;
  }

  .nav-links a {
    font-size: 6px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-logo span {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .hero p {
    font-size: 9px;
  }

  .b2b-heading {
    font-size: 16px;
  }

  .btn {
    padding: 6px 10px;
    font-size: 8px;
  }

  .section-title {
    font-size: 15px;
  }

  .section-label {
    font-size: 7px;
  }

  .b2c-card h3 {
    font-size: 10px;
  }

  .b2c-card p {
    font-size: 7px;
  }

  .accordion-title {
    font-size: 9px;
  }

  .product-info h3 {
    font-size: 8px;
  }

  .product-info .price {
    font-size: 9px;
  }

  .product-info .btn {
    font-size: 6px;
    padding: 4px 4px;
  }

  .article-card h3 {
    font-size: 9px;
  }

  .packages-grid {
    gap: 6px;
  }

  .package-card {
    padding: 10px;
  }

  .package-card h3 {
    font-size: 10px;
  }

  .package-card li {
    font-size: 7px;
  }

  .diff-card h3 {
    font-size: 8px;
  }

  .diff-card p {
    font-size: 7px;
  }

  .footer-brand h3 {
    font-size: 11px;
  }

  .footer-brand p {
    font-size: 7px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 6px 8px;
    font-size: 9px;
  }
}

/* ========================================
   CART SYSTEM
   ======================================== */

/* --- Cart Icon in Navbar --- */
.nav-cart {
  position: relative;
  cursor: pointer;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background .3s
}

.nav-cart:hover {
  background: rgba(139, 92, 246, .12)
}

.nav-cart svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.nav-cart .cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: scale(0);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1)
}

.nav-cart .cart-badge.show {
  transform: scale(1)
}

/* --- Product Card Buttons --- */
.product-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto
}

.btn-cart-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: all .3s;
  width: 100%
}

.btn-cart-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 92, 246, .08)
}

.btn-cart-add svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.btn-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: none;
  color: #fff;
  background: #25D366;
  cursor: pointer;
  transition: all .3s;
  width: 100%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .3)
}

.btn-buy-now:hover {
  background: #1EBE5A;
  transform: translateY(-2px)
}

/* --- Toast Notification --- */
.cart-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  transform: translateX(120%);
  background: rgba(15, 10, 30, .95);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  border-left: 4px solid #25D366;
  backdrop-filter: blur(10px);
  white-space: nowrap
}

.cart-toast.show {
  transform: translateX(0);
  opacity: 1
}

/* --- Cart Sidebar --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #0f0a1e;
  border-left: 1px solid var(--card-border);
  z-index: 5001;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column
}

.cart-overlay.open+.cart-sidebar,
.cart-sidebar.open {
  transform: translateX(0)
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--card-border)
}

.cart-header h2 {
  font-size: 20px;
  font-weight: 800
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all .3s
}

.cart-close:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 15px
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  align-items: flex-start
}

.cart-item-details {
  flex: 1;
  min-width: 0
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cart-item-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.cart-item-qty button:first-child {
  border-radius: 6px 0 0 6px
}

.cart-item-qty button:last-child {
  border-radius: 0 6px 6px 0
}

.cart-item-qty button:hover {
  background: rgba(139, 92, 246, .15);
  border-color: var(--accent)
}

.cart-item-qty span {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, .02)
}

.cart-item-subtotal {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 6px
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
  flex-shrink: 0
}

.cart-item-remove:hover {
  color: #ef4444
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--card-border)
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px
}

.cart-total span:last-child {
  color: var(--accent)
}

.cart-footer-btns {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.cart-footer-btns .btn {
  width: 100%;
  justify-content: center
}

/* --- Checkout Modal --- */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 6000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: auto
}

.checkout-modal {
  background: #0f0a1e;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.9);
  transition: transform .3s;
  padding: 32px
}

.checkout-overlay.open .checkout-modal {
  transform: scale(1)
}

.checkout-modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px
}

.checkout-modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 0;
  border-top: 1px solid var(--card-border);
  margin-top: 8px
}

.checkout-summary-total span:last-child {
  color: var(--accent)
}

.checkout-form .form-group {
  margin-bottom: 14px
}

.checkout-form .form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 6px
}

.checkout-form .form-input,
.checkout-form .form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .3s
}

.checkout-form .form-input:focus,
.checkout-form .form-select:focus {
  outline: none;
  border-color: var(--accent)
}

.checkout-form .form-input.error,
.checkout-form .form-select.error {
  border-color: #ef4444
}

.checkout-form .form-select option {
  background: #1a1a2e;
  color: #fff
}

.checkout-error {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  display: none
}

.checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all .3s
}

.checkout-close:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff
}

.checkout-modal {
  position: relative
}

/* --- Mobile overrides --- */
@media(max-width:768px) {
  .cart-sidebar {
    width: 100%
  }

  .checkout-overlay {
    padding: 0
  }

  .checkout-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100%
  }

  .nav-cart {
    margin-left: 8px
  }
}
