/* ===========================
   GraphiqueHub - Main CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --black: #000000;
  --dark: #020509;
  --dark-2: #06090f;
  --dark-3: #0a0f1a;
  --blue-deep: #091422;
  --blue-mid: #0c1d40;
  --blue: #1648cc;
  --blue-light: #2563eb;
  --blue-glow: #3b7fff;
  --blue-accent: #7eaaff;
  --electric: #00cfff;
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-5: rgba(255,255,255,0.05);
  --gradient-bg: linear-gradient(160deg, #000000 0%, #020610 35%, #060e1e 70%, #090f1c 100%);
  --gradient-blue: linear-gradient(135deg, #1648cc, #2563eb);
  --gradient-electric: linear-gradient(135deg, #1648cc, #00cfff);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --nav-height: 110px;
  --border-radius: 14px;
  --border-radius-lg: 22px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-blue: 0 0 50px rgba(22, 72, 204, 0.22);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--gradient-bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,72,204,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,72,204,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(22,72,204,0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(0,207,255,0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:var(--font-body); }
input, textarea, select { font-family:var(--font-body); }

/* ===========================
   Custom cursor (desktop only)
   =========================== */
.cursor-dot {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 12px var(--electric), 0 0 24px rgba(0,207,255,0.4);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(0,207,255,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.expanded { width: 52px; height: 52px; border-color: rgba(0,207,255,0.55); }
@media (hover:none) { .cursor-dot,.cursor-ring { display:none; } }

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
  padding: 0 2rem;
}

.navbar.scrolled {
  background: rgba(2, 5, 9, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(22,72,204,0.18);
  box-shadow: 0 4px 40px rgba(0,0,0,0.7);
}

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

.nav-logo { display:flex; align-items:center; gap:0.75rem; }

.logo-mark {
  width: 42px; height: 42px;
  background: var(--gradient-electric);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 1rem;
  letter-spacing: 0.04em;
  color: white;
  box-shadow: 0 0 20px rgba(0,207,255,0.35);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.logo-text span { color: var(--electric); }

.nav-links { display:flex; align-items:center; gap:0.15rem; }

.nav-links a {
  padding: 0.5rem 0.9rem; font-size: 0.875rem; font-weight: 600;
  color: var(--white-60); border-radius: 8px; transition: var(--transition);
  position: relative; letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--white-5); }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--electric); border-radius: 2px;
}

.nav-cta {
  background: var(--gradient-blue) !important;
  color: white !important; padding: 0.6rem 1.3rem !important;
  border-radius: 8px !important; font-weight: 700 !important;
  box-shadow: 0 0 20px rgba(22,72,204,0.4);
  margin-left: 0.25rem;
}
.nav-cta:hover { box-shadow: 0 0 35px rgba(0,207,255,0.4) !important; transform: translateY(-1px); }

.nav-hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; }
.nav-hamburger span { display:block; width:24px; height:2px; background:var(--white); border-radius:2px; transition:var(--transition); }
.nav-hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display:none; position:fixed; inset:0;
  background:rgba(2,5,9,0.98); backdrop-filter:blur(24px);
  z-index:999; flex-direction:column; align-items:stretch; justify-content:flex-start;
  padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
  gap:0; overflow-y:auto;
  opacity:0; transition:opacity 0.3s;
}
.mobile-nav.open { display:flex; opacity:1; }
.mobile-nav a {
  font-family:var(--font-display); font-size:1.3rem; font-weight:800;
  color:var(--white-60); transition:var(--transition); letter-spacing:0.02em;
  padding:0.9rem 0; border-bottom:1px solid rgba(255,255,255,0.07);
  display:block; text-decoration:none;
}
.mobile-nav a:hover, .mobile-nav a:active { color:var(--electric); }

/* ===========================
   Page Wrapper
   =========================== */
.page-wrapper { padding-top:var(--nav-height); position:relative; z-index:1; }

/* ===========================
   Sections
   =========================== */
.section { padding:6rem 2rem; max-width:1200px; margin:0 auto; }

.section-tag {
  display:inline-flex; align-items:center; gap:0.5rem;
  background:rgba(22,72,204,0.12); border:1px solid rgba(22,72,204,0.28);
  color:var(--blue-accent); font-size:0.72rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase;
  padding:0.38rem 1rem; border-radius:100px; margin-bottom:1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-title span {
  background: linear-gradient(135deg, #4f86ff, #00cfff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.section-subtitle { color:var(--white-60); font-size:1.05rem; max-width:560px; line-height:1.7; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.85rem 2rem; border-radius:10px;
  font-weight:700; font-size:0.92rem; transition:var(--transition); cursor:pointer;
  letter-spacing:0.01em;
}
.btn-primary {
  background:var(--gradient-blue); color:white;
  box-shadow:0 4px 24px rgba(22,72,204,0.45);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 36px rgba(0,207,255,0.4); }
.btn-outline {
  background:transparent; color:var(--white); border:1.5px solid var(--white-20);
}
.btn-outline:hover { border-color:var(--electric); color:var(--electric); background:rgba(0,207,255,0.04); }

/* ===========================
   Cards
   =========================== */
.card {
  background:var(--white-5); border:1px solid var(--white-10);
  border-radius:var(--border-radius-lg); padding:2rem; transition:var(--transition);
  position:relative; overflow:hidden;
}
.card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(0,207,255,0.3), transparent);
}
.card:hover {
  border-color:rgba(0,207,255,0.2); transform:translateY(-4px);
  box-shadow:var(--shadow-blue), var(--shadow-card);
}

.grid-line { width:100%; height:1px; background:linear-gradient(90deg,transparent,var(--white-10),transparent); margin:0 auto; }

.orb { position:absolute; border-radius:50%; filter:blur(80px); pointer-events:none; opacity:0.15; }
.orb-blue { background:radial-gradient(circle,#1648cc,transparent); }
.orb-cyan { background:radial-gradient(circle,#00cfff,transparent); }

/* ===========================
   Dual price badge
   =========================== */
.price-dual {
  display:inline-flex; flex-direction:column; align-items:flex-start; gap:2px;
  margin-top:0.8rem;
}
.price-lv {
  display:inline-block;
  background:rgba(22,72,204,0.14); border:1px solid rgba(22,72,204,0.28);
  color:var(--blue-accent); font-size:0.8rem; font-weight:700;
  padding:0.3rem 0.75rem; border-radius:8px 8px 0 0;
  border-bottom:none;
}
.price-eur {
  display:inline-block;
  background:rgba(0,207,255,0.08); border:1px solid rgba(0,207,255,0.22);
  color:var(--electric); font-size:0.75rem; font-weight:600;
  padding:0.25rem 0.75rem; border-radius:0 0 8px 8px;
}

/* ===========================
   Footer
   =========================== */
footer { border-top:1px solid var(--white-10); padding:4rem 2rem 2rem; position:relative; z-index:1; }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-brand p { color:var(--white-60); font-size:0.88rem; line-height:1.7; margin-top:1rem; max-width:280px; }
.footer-col h4 { font-family:var(--font-display); font-size:0.82rem; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; color:var(--white-60); margin-bottom:1.25rem; }
.footer-col a { display:block; color:var(--white-60); font-size:0.88rem; margin-bottom:0.7rem; transition:var(--transition); }
.footer-col a:hover { color:var(--electric); }
.footer-social { display:flex; gap:0.75rem; margin-top:1.25rem; }
.social-btn { width:40px; height:40px; border-radius:10px; border:1px solid var(--white-10); display:flex; align-items:center; justify-content:center; color:var(--white-60); font-size:1rem; transition:var(--transition); }
.social-btn:hover { border-color:var(--electric); color:var(--electric); background:rgba(0,207,255,0.05); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; padding-top:2rem; border-top:1px solid var(--white-5); color:var(--white-60); font-size:0.82rem; flex-wrap:wrap; gap:1rem; }

/* ===========================
   Reveal animations
   =========================== */
.reveal { opacity:0; transform:translateY(28px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }
.reveal-delay-4 { transition-delay:0.4s; }

/* ===========================
   Responsive
   =========================== */
@media (max-width:768px) {
  :root { --nav-height:70px; }
  .nav-links, .nav-cta { display:none; }
  .nav-hamburger { display:flex; }
  .section { padding:4rem 1.25rem; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
}

/* ===========================
   Light / alternating sections
   =========================== */
.section-light {
  background: #f8f9ff;
  color: #0d1220;
  position: relative;
  z-index: 1;
}
.section-light .section-title { color: #0d1220; }
.section-light .section-title span {
  background: linear-gradient(135deg, #1648cc, #0099dd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-light .section-subtitle { color: #4a5568; }
.section-light .section-tag {
  background: rgba(22,72,204,0.08); border-color: rgba(22,72,204,0.2);
  color: #1648cc;
}
.section-light p { color: #374151; }
.section-light .card {
  background: #fff; border-color: rgba(22,72,204,0.12);
  box-shadow: 0 4px 24px rgba(22,72,204,0.06);
  color: #0d1220;
}
.section-light .card:hover { border-color: rgba(22,72,204,0.3); box-shadow: 0 8px 32px rgba(22,72,204,0.12); }
.section-light .card p, .section-light .card span { color: #4a5568; }
.section-light .card h3, .section-light .card h4 { color: #0d1220; }
.section-light .btn-outline { border-color: rgba(22,72,204,0.3); color: #1648cc; }
.section-light .btn-outline:hover { border-color: #1648cc; background: rgba(22,72,204,0.06); }

/* Client logos wall */
.clients-logo-wall {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center;
  margin-top: 3rem;
}
.client-logo-slot {
  width: 160px; height: 70px;
  border: 1.5px dashed rgba(22,72,204,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: rgba(22,72,204,0.4);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; padding: 0.5rem;
  transition: all 0.25s;
}
.client-logo-slot.has-logo {
  border-style: solid; border-color: rgba(22,72,204,0.15);
  background: #fff; padding: 1rem;
}
.client-logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.section-light .client-logo-slot { border-color: rgba(22,72,204,0.15); color: rgba(22,72,204,0.3); }

/* Project card new style */
.project-card-new {
  background: #fff;
  border: 1px solid rgba(22,72,204,0.1);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(22,72,204,0.06);
}
.project-card-new:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(22,72,204,0.14); }
.project-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0d1a38, #1648cc);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-img-placeholder {
  font-size: 4rem; opacity: 0.3;
}
.project-meta { padding: 1.5rem; }
.project-meta .cat { font-size: 0.72rem; font-weight: 700; color: #1648cc; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
.project-meta h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: #0d1220; margin-bottom: 0.4rem; }
.project-meta p { font-size: 0.85rem; color: #4a5568; line-height: 1.6; }
.project-meta .proj-tags { display:flex; gap:0.4rem; flex-wrap:wrap; margin-top:0.8rem; }
.project-meta .proj-tag { background:rgba(22,72,204,0.07); border:1px solid rgba(22,72,204,0.15); color:#1648cc; font-size:0.72rem; font-weight:600; padding:0.2rem 0.6rem; border-radius:6px; }

/* Price dual in light sections */
.section-light .price-lv { background:rgba(22,72,204,0.08); border-color:rgba(22,72,204,0.2); color:#1648cc; }
.section-light .price-eur { background:rgba(0,153,210,0.07); border-color:rgba(0,153,210,0.2); color:#007ab8; }

/* svc-section replaces section-light — dark uniform background */
.svc-section {
  position: relative;
  z-index: 1;
}
.svc-section .section-title { color: var(--white); }
.svc-section p { color: var(--white-60); }
/* team cards in dark */
.team-card {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(22,72,204,0.18) !important;
  box-shadow: none !important;
  color: var(--white) !important;
}
.team-name { color: var(--white) !important; }
.team-role { color: var(--electric) !important; }
.team-info h3 { color: var(--white) !important; }
.team-info p { color: var(--white-60) !important; }
.skill-chip {
  background: rgba(22,72,204,0.14) !important;
  border-color: rgba(22,72,204,0.25) !important;
  color: var(--blue-accent) !important;
}
/* project cards in dark */
.proj-card {
  background: rgba(255,255,255,0.04) !important;
  border-color: var(--white-10) !important;
  box-shadow: none !important;
}
.proj-cat { color: var(--electric) !important; }
.proj-title { color: var(--white) !important; }
.proj-desc { color: var(--white-60) !important; }
.proj-tag { background:rgba(22,72,204,0.12) !important; border-color:rgba(22,72,204,0.2) !important; color:var(--blue-accent) !important; }
/* sizes image in dark */
.sizes-img-wrap { border-color: rgba(22,72,204,0.2) !important; box-shadow: 0 8px 40px rgba(0,0,0,0.5) !important; }

/* Mini logo cards for homepage */
.logo-card-mini {
  background: #ffffff;
  border: 1px solid rgba(22,72,204,0.12);
  border-radius: 12px;
  padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3/2;
  overflow: hidden;
  transition: all 0.3s;
}
.logo-card-mini.light-bg { background: rgba(255,255,255,0.9); }
.logo-card-mini img {
  max-width: 100%; max-height: 60px;
  object-fit: contain;
  filter: grayscale(50%) brightness(1.15);
  transition: filter 0.3s;
}
.logo-card-mini:hover img { filter: none; }
.logo-card-mini:hover { border-color: rgba(0,207,255,0.3); transform: translateY(-3px); }
@media(max-width:640px) {
  .logo-card-mini { aspect-ratio: 2/1; }
}

/* ===========================
   Trust Badges
   =========================== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(22,72,204,0.04);
  position: relative;
  z-index: 1;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white-60);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
}

.trust-badge-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(22,72,204,0.15);
  border: 1px solid rgba(22,72,204,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.trust-badge strong {
  color: var(--white-80);
  font-size: 0.85rem;
  font-weight: 700;
}

.trust-badge-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.08);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 2rem));
  background: rgba(6, 10, 22, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(22,72,204,0.3);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 9990;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
  animation: slideUpIn 0.4s ease;
}

@keyframes slideUpIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cookie-banner p {
  font-size: 0.83rem;
  color: var(--white-60);
  line-height: 1.5;
  flex: 1;
}

.cookie-banner a { color: var(--electric); text-decoration: underline; font-size: 0.83rem; }

.cookie-banner-btns {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-accept {
  background: linear-gradient(135deg, #1648cc, #00cfff);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-decline {
  background: rgba(255,255,255,0.07);
  color: var(--white-60);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

@media(max-width:560px) {
  .cookie-banner { flex-direction: column; gap: 1rem; }
  .cookie-banner-btns { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; }
  .trust-bar { gap: 0.75rem; }
  .trust-badge-divider { display: none; }
}

/* ============================================================
   COMPREHENSIVE MOBILE OVERHAUL
   ============================================================ */

/* ---- Global mobile resets ---- */
@media (max-width: 768px) {

  /* Prevent horizontal overflow everywhere */
  *, *::before, *::after { max-width: 100%; }
  img { width: 100%; height: auto; }

  /* Sections */
  .section { padding: 3rem 1rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-subtitle { font-size: 0.92rem; }

  /* Navbar */
  .navbar { padding: 0 1rem; }
  .nav-logo-img { height: 60px !important; }
  :root { --nav-height: 82px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  /* Trust bar */
  .trust-bar { padding: 1.25rem 1rem; gap: 0.6rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .trust-badge { padding: 0.4rem 0.5rem; flex-shrink: 0; }
  .trust-badge-divider { display: none; }

  /* Stats row */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-box { padding: 1.5rem 1rem; }
  .stat-box-num { font-size: 2.2rem; }

  /* Process steps */
  .process-steps { flex-direction: column; gap: 1rem; }
  .process-arrow { display: none; }
  .process-step { min-width: 100% !important; }

  /* CTA banner */
  .cta-inner { padding: 2.5rem 1.5rem; flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; width: 100%; }
  .cta-btns .btn { flex: 1; justify-content: center; min-width: 0; }

  /* Team cards */
  .team-cards-grid { grid-template-columns: 1fr; }
  .team-mini-card { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Client logos mini */
  .logo-card-mini { aspect-ratio: 2/1; }

  /* Cookie banner */
  .cookie-banner { width: calc(100vw - 1.5rem); bottom: 1rem; padding: 1rem 1.25rem; flex-direction: column; gap: 0.75rem; }
  .cookie-banner-btns { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }

  /* Buttons */
  .btn { padding: 0.8rem 1.5rem; font-size: 0.88rem; }
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-cards-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; letter-spacing: -0.02em; }
  .hero-title { font-size: 2.4rem; }
  .hero-badge { font-size: 0.72rem; white-space: normal; text-align: center; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .stat strong { font-size: 1.75rem; }

  /* Team on za-nas */
  .team-card { padding: 1.5rem 1rem !important; }

  /* Stats on small */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-box-num { font-size: 1.8rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- Home CSS mobile fixes ---- */
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 3rem 1rem; min-height: calc(100svh - var(--nav-height)); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-visual { display: none; }
  .hero-badge { margin: 0 auto 1.25rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }

  /* Ticker */
  .ticker-strip { padding: 0.75rem 0; }
  .ticker-item { font-size: 0.8rem; gap: 0.5rem; }

  /* About */
  .about-teaser-inner { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .at-visual { display: none; }

  /* Clients marquee */
  .clients-logo-wall { grid-template-columns: repeat(3, 1fr) !important; gap: 0.75rem !important; }
  .logo-card-mini img { max-height: 40px; }
}

/* ---- Tseni mobile ---- */
@media (max-width: 768px) {
  .ptable-head, .ptable-row { grid-template-columns: 1.8fr 1fr !important; padding: 0.85rem 1rem !important; }
  .ptable-head span:last-child, .row-time { display: none !important; }
  .rp-eur { font-size: 0.92rem; }
  .rp-lv { font-size: 0.68rem; }
  .pkg-row { grid-template-columns: 1fr !important; max-width: 420px; margin-left: auto; margin-right: auto; }
  .price-tabs { gap: 0.4rem; }
  .price-tab { font-size: 0.78rem; padding: 0.45rem 0.85rem; }
  .btn-download-pdf { font-size: 0.85rem; padding: 0.8rem 1.5rem; }
}

/* ---- Kontakti mobile ---- */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .contact-form-wrap { padding: 1.5rem 1rem !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
}

/* ---- Za nas mobile ---- */
@media (max-width: 768px) {
  .team-card { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr !important; }
}

/* ---- Pechatni mobile ---- */
@media (max-width: 768px) {
  .pcat-header { flex-direction: column; text-align: center; }
  .print-items { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .print-items { grid-template-columns: 1fr !important; }
}

/* ---- Poddarjka mobile ---- */
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr !important; }
  .sla-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .maint-faq { grid-template-columns: 1fr !important; }
}

/* ---- Legal pages mobile ---- */
@media (max-width: 768px) {
  .legal-body { padding: 1.5rem 1rem 4rem; }
}


/* ============================================================
   MOBILE CRITICAL FIXES v2 – based on screenshot audit
   ============================================================ */

/* Fix hero stats overflow - 3rd stat getting cut */
@media (max-width: 600px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    width: 100%;
  }
  .stat-divider { display: none; }
  .stat { text-align: center; padding: 0.5rem; }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: 0.72rem; }
}

/* Trust bar - horizontal scroll, no overflow */
.trust-bar {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
}
.trust-bar::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .trust-bar { padding: 1rem; gap: 0.5rem; }
  .trust-badge { padding: 0.4rem 0.5rem; min-width: max-content; }
  .trust-badge-icon { width: 28px; height: 28px; font-size: 0.85rem; }
  .trust-badge strong { font-size: 0.78rem; }
  .trust-badge span > *:last-child { display: none; } /* hide subtitle on mobile */
}

/* Navbar - prevent content going behind menu */
@media (max-width: 768px) {
  .navbar { padding: 0 0.85rem; }
  .nav-logo-img { height: 52px !important; }
  .nav-inner { height: var(--nav-height); }
}

/* Mobile nav - full screen, no overflow */
.mobile-nav {
  padding: 2rem 1.5rem;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav a {
  font-size: 1.5rem !important;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  text-align: left;
}

/* Fix services grid on tiny phones */
@media (max-width: 360px) {
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0.85rem; }
}

/* Ticker - ensure it never overflows */
.ticker-strip { overflow: hidden; }
.ticker-track { white-space: nowrap; }

/* Stats row mobile */
@media (max-width: 600px) {
  .stats-row { 
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 0.85rem;
  }
  .stat-box { padding: 1.25rem 0.75rem; }
  .stat-box-num { font-size: 2rem; }
  .stat-box-label { font-size: 0.75rem; }
}

/* Team mini cards mobile */
@media (max-width: 600px) {
  .team-cards-grid { grid-template-columns: 1fr; }
  .team-mini-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }
  .tmc-avatar { width: 56px; height: 56px; font-size: 1.1rem; flex-shrink: 0; }
  .tmc-info p { font-size: 0.8rem; }
}

/* Clients logos mobile */
@media (max-width: 640px) {
  .logo-card-mini { aspect-ratio: 3/2; padding: 0.75rem; }
  .logo-card-mini img { max-height: 36px; }
}

/* CTA inner mobile - full width buttons */
@media (max-width: 500px) {
  .cta-inner { padding: 2rem 1.25rem; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { width: 100%; justify-content: center; font-size: 0.88rem; }
}

/* Section titles on tiny screens */
@media (max-width: 360px) {
  .section-title { font-size: 1.45rem; }
  .page-hero h1 { font-size: 2rem; }
}

/* Prevent ANY element from exceeding viewport width */
@media (max-width: 768px) {
  .section, .live-section, .clients-section, .page-hero {
    overflow-x: hidden;
  }
  .orb { opacity: 0.08 !important; } /* reduce orb glow on mobile for performance */
  body::before { display: none; } /* remove grid bg on mobile */
}

/* Process steps mobile */
@media (max-width: 640px) {
  .process-steps { gap: 0.75rem; }
  .ps-number { font-size: 2.5rem; margin-bottom: 0.5rem; }
  .process-step { padding: 1.25rem; }
  .ps-content h3 { font-size: 0.95rem; }
  .ps-content p { font-size: 0.82rem; }
}

/* Hero badge mobile wrap */
@media (max-width: 400px) {
  .hero-badge { font-size: 0.7rem; padding: 0.35rem 0.75rem; }
  .hero-desc { font-size: 0.95rem; }
}

/* Fix chat button position to not overlap content */
@media (max-width: 768px) {
  #ink-chat-wrap { bottom: 1rem !important; right: 1rem !important; }
}

/* Lightbox mobile */
@media (max-width: 768px) {
  .lightbox-overlay { flex-direction: column; }
  .lb-left { height: 55vw; min-height: 220px; flex: none; padding: 0.75rem; }
  .lb-right { 
    flex: 1; width: 100%; padding: 1rem; 
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    overflow-y: auto;
  }
  .lb-title { font-size: 1.2rem; }
  .lb-desc { font-size: 0.82rem; -webkit-line-clamp: 4; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .lb-close { top: 0.5rem; right: 0.5rem; width: 36px; height: 36px; }
  .lb-thumbs { margin-top: 0.5rem; }
  .lb-thumb { width: 56px; height: 38px; }
  .lb-cta { padding-top: 0.75rem; }
}

/* Live preview mobile */
@media (max-width: 768px) {
  .live-grid { grid-template-columns: 1fr; }
  .site-card { font-size: 0.85rem; }
  .preview-wrap { aspect-ratio: 16/9; }
  .site-info { padding: 1.1rem; }
  .site-name { font-size: 1rem; }
  .site-stats { gap: 0.75rem; }
  .ss-val { font-size: 0.9rem; }
}

/* Logo cards grid mobile */
@media (max-width: 640px) {
  .logos-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .lcard { padding: 0.75rem; }
  .lcard img { max-height: 40px; }
}
@media (max-width: 380px) {
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tseni tabs mobile */
@media (max-width: 640px) {
  .price-tabs { gap: 0.35rem; }
  .price-tab { font-size: 0.76rem; padding: 0.4rem 0.8rem; }
  .ptable-head span, .row-name, .row-time, .rp-eur { font-size: 0.82rem; }
}

/* Kontakti form mobile */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr !important; }
  .contact-form-wrap { border-radius: 12px; }
}

/* Za nas team cards mobile */
@media (max-width: 640px) {
  .team-card {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 1rem !important;
    gap: 1.5rem !important;
  }
  .team-avatar { width: 100px; height: 100px; }
  .team-name { font-size: 1.2rem; }
  .skills-wrap { gap: 0.35rem; }
  .skill-chip { font-size: 0.72rem; padding: 0.22rem 0.6rem; }
}

/* Values grid mobile */
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem; }
  .value-card { padding: 1.25rem; }
  .value-icon { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .values-grid { grid-template-columns: 1fr !important; }
}
