@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@100..800&family=Syne:wght@400..800&display=swap');

:root {
  --bg-primary: #050810;
  --bg-surface: #0D1117;
  --bg-navy: #0A0F2C;
  --blue-primary: #005FFF;
  --blue-glow: #00CFFF;
  --blue-accent: #1A3AFF;
  --blue-border: rgba(0, 100, 255, 0.3);
  --text-primary: #E8EDF5;
  --text-muted: #6B7FA3;
  
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-syne: 'Syne', sans-serif;
  --font-dm: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom cursor default hide */
* {
  cursor: none;
}

/* Re-enable default cursor on touch devices */
@media (pointer: coarse) {
  * {
    cursor: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-dm);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Blueprint grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    repeating-linear-gradient(to right, rgba(0,100,255,0.06) 0, rgba(0,100,255,0.06) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(to bottom, rgba(0,100,255,0.06) 0, rgba(0,100,255,0.06) 1px, transparent 1px, transparent 60px);
  background-size: 60px 60px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--blue-primary), var(--blue-glow));
  border-radius: 4px;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue-primary), var(--blue-glow));
  z-index: 9999;
  width: 0%;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1; /* Above blueprint */
}

.section-overline {
  font-family: var(--font-mono);
  color: var(--blue-primary); /* Fallback */
  color: var(--blue-glow); /* As requested or primary */
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Adjust colors to match exactly the required (blue) */
.section-overline {
  color: var(--blue-glow); 
}

.section-title {
  font-family: var(--font-bebas);
  color: #FFFFFF;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 24px;
}

.section-subtitle {
  font-family: var(--font-dm);
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

.glow-text {
  color: var(--blue-glow);
  text-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-family: var(--font-syne);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16px);
  padding: 16px 32px;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 95, 255, 0.5);
  color: #FFFFFF;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-syne);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16px);
  padding: 16px 32px;
  text-decoration: none;
  border: 1px solid var(--blue-border);
  border-radius: 2px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-outline:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #FFFFFF;
}

a, button {
  /* Ensure cursor events apply for custom cursor hover states */
}

/* ─── Logo Image (transparent PNG version) ───────────────────────────────── */

/* Navbar logo */
.nav-logo {
  display: block;
  line-height: 0;
  transition: opacity 0.3s ease;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.nav-logo-img:hover { transform: scale(1.05); }

/* Preloader logo */
.preloader-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.preloader-logo-img {
  width: 200px;
  height: auto;
  display: block;
  opacity: 0;
  animation: logoFadeIn 0.8s 0.3s forwards ease-out;
  filter: drop-shadow(0 0 20px rgba(184,140,0,0.45));
}
@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile menu logo */
.mobile-menu-logo { margin-bottom: 32px; }
.mobile-logo-img {
  width: 160px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(184,140,0,0.3));
}

/* Footer logo */
.footer-logo-img-wrap { margin-bottom: 12px; }
.footer-logo-img {
  width: 170px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(184,140,0,0.25));
}
.footer-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 16px rgba(184,140,0,0.5));
}

/* ─── Cookie Consent Banner ────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: -200px; /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 550px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 95, 255, 0.15);
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  bottom: 24px;
}

.cookie-content h4 {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.cookie-content p {
  font-family: var(--font-dm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-btn-accept {
  background: var(--blue-primary);
  border: 1px solid var(--blue-primary);
  color: #FFF;
  font-family: var(--font-syne);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-btn-accept:hover {
  background: var(--blue-glow);
  border-color: var(--blue-glow);
  box-shadow: 0 0 10px var(--blue-glow);
}

.cookie-btn-decline {
  background: transparent;
  border: 1px solid var(--blue-border);
  color: var(--text-primary);
  font-family: var(--font-syne);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-btn-decline:hover {
  border-color: var(--text-muted);
  color: #FFF;
}

/* ─── Case Study Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 95, 255, 0.2);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--blue-border);
  color: #FFF;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  box-shadow: 0 0 15px var(--blue-glow);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 500px;
}

.modal-image-panel {
  position: relative;
  background: #030508;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.modal-details-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-category-badge {
  background: rgba(0, 95, 255, 0.1);
  color: var(--blue-glow);
  border: 1px solid var(--blue-border);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 40px;
  width: fit-content;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.modal-title {
  font-family: var(--font-bebas);
  font-size: 48px;
  color: #FFF;
  margin-bottom: 16px;
  line-height: 1;
}

.modal-section-title {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: 13px;
  color: var(--blue-primary);
  letter-spacing: 2px;
  margin-top: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.modal-desc, .modal-challenge, .modal-solution {
  font-family: var(--font-dm);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal-metric-box {
  background: rgba(0, 207, 255, 0.05);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-metric-num {
  font-family: var(--font-bebas);
  font-size: 36px;
  color: var(--blue-glow);
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.3);
  line-height: 1;
}

.modal-metric-label {
  font-family: var(--font-syne);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-details-panel {
    padding: 30px 24px;
  }
  .modal-title {
    font-size: 36px;
  }
}

/* ─── Legal Template Pages Layout ──────────────────────────────────────────── */
.legal-page-body {
  padding-top: 140px;
  padding-bottom: 80px;
}
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--blue-border);
  padding-bottom: 24px;
}
.legal-title {
  font-family: var(--font-bebas);
  font-size: 56px;
  color: #FFF;
  margin-bottom: 8px;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-glow);
}
.legal-content h3 {
  font-family: var(--font-syne);
  font-size: 20px;
  font-weight: 700;
  color: #FFF;
  margin-top: 36px;
  margin-bottom: 16px;
}
.legal-content p, .legal-content ul, .legal-content ol {
  font-family: var(--font-dm);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

/* ─── Global Responsive Overrides & Mobile Optimizations ────────────────── */
@media (max-width: 768px) {
  /* Navbar spacing & logo shrink */
  #navbar {
    padding: 12px 0 !important;
  }
  .nav-logo-img {
    height: 44px !important;
  }
  
  /* Service Card padding reduction */
  .service-card {
    padding: 32px 20px !important;
  }
  .card-arrow {
    bottom: 32px;
    right: 20px;
  }


}

/* ─── Pricing & Packages Section ────────────────────────────────────────────── */
#pricing {
  padding: 120px 24px;
  position: relative;
  background-color: var(--bg-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 60px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 48px 32px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-glow);
  box-shadow: 0 15px 40px rgba(0, 95, 255, 0.25);
}

/* Gold Package Highlight */
.pricing-card.featured {
  border: 1px solid rgba(184, 140, 0, 0.6);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.95) 0%, rgba(26, 20, 5, 0.8) 100%);
  box-shadow: 0 15px 40px rgba(184, 140, 0, 0.15);
}

.pricing-card.featured:hover {
  border-color: rgba(184, 140, 0, 1);
  box-shadow: 0 20px 50px rgba(184, 140, 0, 0.35);
}

/* Platinum Package Highlight */
.pricing-card.premium {
  border: 1px solid rgba(229, 231, 235, 0.3);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.95) 0%, rgba(20, 24, 33, 0.8) 100%);
}

.pricing-card.premium:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(0, 207, 255, 0.3);
}

/* Badges */
.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.card-badge.gold {
  background: #B88C00;
  color: #FFF;
  box-shadow: 0 0 10px rgba(184, 140, 0, 0.5);
}

.card-badge.platinum {
  background: var(--blue-primary);
  color: #FFF;
  box-shadow: 0 0 10px var(--blue-glow);
}

/* Typography Inside Cards */
.pricing-name {
  font-family: var(--font-bebas);
  font-size: 36px;
  letter-spacing: 1px;
  color: #FFF;
  margin-bottom: 8px;
}

.pricing-card.featured .pricing-name {
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.pricing-card.premium .pricing-name {
  color: #E5E7EB;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.pricing-desc {
  font-family: var(--font-dm);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price-container {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}

.price-original {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-actual {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-currency {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: 20px;
  color: #FFF;
}

.price-num {
  font-family: var(--font-bebas);
  font-size: 64px;
  line-height: 1;
  color: #FFF;
}

.pricing-card.featured .price-num {
  color: #FFD700;
}

.price-discount-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-glow);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.pricing-card.featured .price-discount-tag {
  color: #FFD700;
}

/* Features List */
.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
  border-top: 1px solid var(--blue-border);
  padding-top: 32px;
}

.pricing-card.featured .pricing-features-list {
  border-top-color: rgba(184, 140, 0, 0.25);
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-dm);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

.pricing-features-list li i {
  color: var(--blue-glow);
  font-size: 14px;
  margin-top: 2px;
}

.pricing-card.featured .pricing-features-list li i {
  color: #FFD700;
}

.pricing-card.premium .pricing-features-list li i {
  color: var(--blue-glow);
}

/* Installments Dropdown (Accordion) */
.installments-accordion {
  margin-top: 32px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.3s;
}

.pricing-card.featured .installments-accordion {
  border-color: rgba(184, 140, 0, 0.25);
}

.installments-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--font-syne);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  text-align: left;
}

.installments-header:hover {
  color: var(--blue-glow);
}

.pricing-card.featured .installments-header:hover {
  color: #FFD700;
}

.installments-header i {
  transition: transform 0.3s ease;
  font-size: 10px;
}

.installments-accordion.open .installments-header i {
  transform: rotate(180deg);
}

.installments-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.2);
}

.installments-accordion.open .installments-content {
  max-height: 200px;
}

.installments-list {
  padding: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-dm);
  font-size: 12px;
  color: var(--text-muted);
}

.installments-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.installments-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.installments-list strong {
  color: var(--text-primary);
}

/* Button */
.pricing-btn {
  margin-top: 32px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  padding: 14px 0;
}

.pricing-card.featured .pricing-btn {
  background: #B88C00;
  border-color: #B88C00;
  color: #FFF;
}

.pricing-card.featured .pricing-btn:hover {
  background: #FFD700;
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.premium {
    grid-column: span 2;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pricing-card {
    padding: 40px 24px 32px;
  }
  .pricing-card.premium {
    grid-column: span 1;
    max-width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════════════
   MOBILE & CROSS-DEVICE OPTIMIZATIONS
   Goal: compress the page vertically, kill horizontal overflow, and make
   every section legible on 360-430px phones without breaking desktop.
   ═══════════════════════════════════════════════════════════════════════ */

html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body  { overflow-x: clip; max-width: 100vw; }
img, video, canvas, svg, iframe { max-width: 100%; height: auto; }

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
  .section-title { font-size: clamp(38px, 7vw, 64px); }
  #hero h1 { font-size: clamp(56px, 9vw, 96px) !important; }
}

/* ─── Mobile (<=768px) ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { font-size: 15px; }

  .section-title {
    font-size: clamp(32px, 8.5vw, 46px);
    letter-spacing: 0.5px;
    word-break: break-word;
    margin-bottom: 16px;
  }
  .section-subtitle { font-size: 14px; line-height: 1.55; }

  /* Universal section padding: tighter vertically, comfortable sides */
  section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    padding-left: 20px;
    padding-right: 20px;
  }
  .container { padding-left: 20px; padding-right: 20px; }

  /* ── HERO ────────────────────────────────────────────────────────────── */
  #hero { height: auto !important; min-height: 100vh; padding: 100px 20px 80px !important; }
  #hero h1 { font-size: clamp(48px, 13vw, 76px) !important; margin: 12px 0 !important; }
  .hero-buttons { margin-top: 28px !important; gap: 12px !important; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { width: 100%; padding: 14px 20px; font-size: 14px; }
  .scroll-indicator { display: none; }

  /* ── PROCESS SECTION: compress giant step blocks ─────────────────────── */
  #process-section { padding: 60px 0 !important; }
  .process-header { padding: 0 20px; margin-bottom: 32px !important; }
  .process-step {
    padding: 28px 20px !important;
    min-height: 0 !important;
  }
  .step-icon { font-size: 32px !important; margin-bottom: 12px !important; }
  .step-label { font-size: 11px !important; }
  .step-title { font-size: 36px !important; margin-bottom: 8px !important; line-height: 1 !important; }
  .step-desc  { font-size: 14px !important; max-width: none !important; }
  .step-bg    { font-size: 90px !important; opacity: 0.05 !important; right: 8px !important; bottom: 8px !important; }

  /* ── PORTFOLIO ───────────────────────────────────────────────────────── */
  #portfolio { padding: 60px 20px !important; }
  .portfolio-filters { gap: 8px !important; margin-bottom: 32px !important; }
  .filter-btn { padding: 8px 14px !important; font-size: 12px !important; }

  /* Real portfolio cards with screenshots */
  .browser-body-mock {
    height: auto !important;
    aspect-ratio: 16 / 10;
    background: #0b0f18;
  }
  .card-img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #0b0f18;
  }
  .portfolio-card-hud { margin-bottom: 24px; }
  .featured-media-pane .browser-body-mock { height: auto !important; aspect-ratio: 16/10; }

  /* 3D flip gallery — flatten to simple grid on mobile, disable flip */
  .portfolio-grid { gap: 20px !important; }
  .portfolio-card-3d { aspect-ratio: 4/3; perspective: none; }
  .portfolio-card-3d .card-inner { transition: none !important; }
  .portfolio-card-3d:hover .card-inner { transform: none !important; }
  .portfolio-canvas-container { height: 320px !important; margin-top: 40px !important; }

  /* ── SERVICES cards ──────────────────────────────────────────────────── */
  .service-card, .services-grid > * { padding: 24px 20px !important; }

  /* ── PRICING ─────────────────────────────────────────────────────────── */
  .pricing-grid { gap: 24px !important; }
  .pricing-card { padding: 32px 22px 28px !important; }
  .pricing-name { font-size: 32px !important; }
  .price-num    { font-size: 48px !important; }
  .pricing-features li { font-size: 14px !important; }
  .installment-plan { padding: 18px !important; }

  /* ── STATS / MARQUEE ─────────────────────────────────────────────────── */
  .marquee-row { height: 40px; }
  .marquee-item { font-size: 13px; letter-spacing: 2px; }

  /* ── CONTACT / CTA ───────────────────────────────────────────────────── */
  #contact, #cta { padding: 60px 20px !important; }
  .contact-form input, .contact-form textarea { font-size: 15px !important; }

  /* ── FOOTER ──────────────────────────────────────────────────────────── */
  footer { padding: 48px 20px 32px !important; }

  /* ── NAVBAR ──────────────────────────────────────────────────────────── */
  .nav-logo-img { height: 44px !important; }

  /* ── LEGAL PAGES ─────────────────────────────────────────────────────── */
  .legal-title { font-size: 40px; }
  .legal-page-body { padding-top: 100px; padding-bottom: 60px; }
  .legal-container { padding: 0 20px; }
  .legal-content h2 { font-size: 20px; margin-top: 28px; margin-bottom: 12px; color: #FFF; font-family: var(--font-syne); }

  /* ── COOKIE BANNER: compact, doesn't hide content ────────────────────── */
  .cookie-banner { width: calc(100% - 24px) !important; padding: 16px !important; gap: 10px !important; }
  .cookie-content p { font-size: 12px !important; }
  .cookie-buttons { flex-wrap: nowrap; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; padding: 10px 12px !important; }
  body { padding-bottom: 160px; }

  /* Tap targets */
  .btn-primary, .btn-outline, .pricing-btn, .load-case-study-btn,
  .filter-btn, .cookie-btn-accept, .cookie-btn-decline { min-height: 44px; }

  .mobile-menu-overlay { -webkit-overflow-scrolling: touch; }
}

/* ─── Small phones (<=480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-title { font-size: clamp(28px, 9.5vw, 38px); }
  #hero h1 { font-size: clamp(42px, 13vw, 64px) !important; }
  .legal-title { font-size: 32px; }

  .card-badge { top: 14px; right: 14px; font-size: 8px; padding: 3px 10px; }

  /* Pricing further tightening */
  .pricing-card { padding: 28px 18px 24px !important; }
  .pricing-name { font-size: 28px !important; }
  .price-num    { font-size: 42px !important; }

  /* Trust logos: two per row */
  .trust-logo { min-width: 42%; }

  /* Step title never bigger than hero */
  .step-title { font-size: 30px !important; }
  .step-bg    { font-size: 72px !important; }

  /* Portfolio 3D card front headline */
  .portfolio-title-overlay { font-size: 24px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE POLISH (≤640px) — spacing, marquee, trusted logos,
   installment plan, portfolio browser chrome
   Desktop untouched.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* 1) MARQUEE — smaller text, slower speed, no edge clipping */
  .marquee-row { height: 40px !important; }
  .marquee-item {
    font-size: 13px !important;
    letter-spacing: 2px !important;
  }
  .marquee-track { animation-duration: 45s !important; }
  .marquee-track.reverse { animation-duration: 45s !important; }

  /* 2) TRUSTED-BY — 3-column compact grid, half the vertical height */
  #trusted-by { padding: 40px 16px !important; }
  .trusted-inner { gap: 20px !important; }
  .trusted-logos {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100%;
  }
  .trust-logo {
    min-width: 0 !important;
    padding: 10px 6px !important;
    opacity: 0.75;
    border-color: rgba(0,95,255,0.15) !important;
    border-radius: 6px;
  }
  .trust-logo span { font-size: 10px !important; letter-spacing: 0.5px !important; }

  /* 3) INSTALLMENT PLAN — horizontal 3-column row, override earlier stack */
  .installment-block { padding: 12px 10px !important; }
  .installment-steps {
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }
  .inst-step { flex: 1; min-width: 0; }
  .inst-divider {
    transform: none !important;
    font-size: 10px !important;
    align-self: center;
    opacity: 0.6;
  }
  .inst-amount { font-size: 12px !important; letter-spacing: 0 !important; }
  .inst-num, .inst-when { font-size: 7px !important; }

  /* 4) PORTFOLIO — slim fake browser chrome so screenshots get more room */
  .browser-header { height: 12px !important; padding: 2px 6px !important; gap: 3px !important; }
  .browser-header i { width: 4px !important; height: 4px !important; }
  .mockup-browser { width: 88% !important; height: 68% !important; }
  .card-tech-bar,
  .pricing-hud-bar {
    padding: 6px 10px !important;
    min-height: 0 !important;
  }
  .card-tech-bar .tech-title,
  .pricing-hud-bar .tech-title { font-size: 9px !important; }
  .card-tech-bar .dot,
  .pricing-hud-bar .dot { width: 6px !important; height: 6px !important; }

  /* 5) GENERAL SECTION SPACING — cut vertical padding roughly in half */
  #hero { padding: 90px 20px 60px !important; }
  #services,
  #portfolio,
  #process,
  #testimonials,
  #stats,
  #cta,
  #contact { padding: 56px 20px !important; }
  #pricing { padding: 56px 0 !important; }
  .section-header { margin-bottom: 32px !important; }

  /* 6) Tap targets ≥44px */
  .pkg-cta,
  .filter-btn,
  .btn-primary,
  .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Prevent any accidental horizontal overflow */
  html, body { overflow-x: hidden; }
}


