/* ===== shared.css — MA.Solutions (Design Premium) ===== */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;400;600;800&family=Syne:wght@700;800&display=swap');

:root {
  --c: #00D1C1;
  --c2: #1A6ED8;
  --c-dark: #0f172a;
  --bg: #FFFFFF;
  --bg2: #F8FAFC;
  --border: rgba(15, 23, 42, 0.08);
  --txt: #1E293B;
  --muted: #64748B;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Syne', sans-serif; color: var(--c-dark); font-weight: 800; }

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--c-dark); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: background 0.2s, width 0.2s, height 0.2s, opacity 0.3s;
  will-change: left, top;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(15,23,42,0.18); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.35s, height 0.35s, border-color 0.3s, opacity 0.3s;
  will-change: left, top;
}
body.c-hover #cursor { background: var(--c); width: 10px; height: 10px; }
body.c-hover #cursor-ring { width: 54px; height: 54px; border-color: var(--c); }
body.c-click #cursor { width: 4px; height: 4px; }

/* ── BUTTONS ── */
.btn-glow {
  background: var(--c-dark); color: #fff;
  padding: 14px 28px; border-radius: 12px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease; text-decoration: none; position: relative; overflow: hidden;
}
.btn-glow::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c), var(--c2));
  opacity: 0; transition: opacity 0.3s;
}
.btn-glow:hover::after { opacity: 1; }
.btn-glow span, .btn-glow iconify-icon { position: relative; z-index: 1; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,209,193,0.25); }

.btn-outline {
  padding: 14px 28px; border: 1.5px solid var(--c-dark); border-radius: 12px;
  font-weight: 600; color: var(--c-dark); background: transparent;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s; text-decoration: none;
}
.btn-outline:hover { background: var(--c-dark); color: #fff; transform: translateY(-2px); }

/* ── CARDS ── */
.card-premium {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card-premium:hover {
  border-color: var(--c);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  transform: translateY(-6px);
}

/* ── GRADIENT TEXT ── */
.h-grad {
  background: linear-gradient(90deg, var(--c), var(--c2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
#main-nav { transition: all 0.4s; }
#main-nav.scrolled {
  box-shadow: 0 2px 30px rgba(0,0,0,0.07);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-link-minimal {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); text-decoration: none;
  transition: color 0.25s; position: relative;
}
.nav-link-minimal::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--c);
  transition: width 0.3s;
}
.nav-link-minimal:hover { color: var(--c-dark); }
.nav-link-minimal:hover::after, .nav-link-minimal.active::after { width: 100%; }
.nav-link-minimal.active { color: var(--c-dark); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* ── HERO ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.85); }
  60% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.anim-fade-up { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.anim-fade-up.d1 { animation-delay: 0.1s; }
.anim-fade-up.d2 { animation-delay: 0.2s; }
.anim-fade-up.d3 { animation-delay: 0.3s; }
.anim-fade-up.d4 { animation-delay: 0.5s; }
.anim-float { animation: float 5s ease-in-out infinite; }
.anim-float.d2 { animation-delay: 1s; }
.anim-float.d3 { animation-delay: 2s; }

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 200%;
  animation: shimmer 2.5s ease infinite;
  border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,209,193,0.05), rgba(26,110,216,0.05));
}
.img-placeholder .ph-icon {
  font-size: 40px; color: #cbd5e1; z-index: 1;
}

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex; align-items: center; gap-8px;
  padding: 6px 16px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
  color: var(--c); text-transform: uppercase; margin-bottom: 20px;
}

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-weight: 700; font-size: 1rem;
  background: none; border: none; color: var(--c-dark); text-align: left;
  gap: 16px;
}
.faq-icon { flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
  color: var(--muted); font-size: 0.9rem; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

/* ── PROCESS STEPS ── */
.process-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800;
  color: var(--border); line-height: 1; flex-shrink: 0; transition: color 0.3s;
  min-width: 60px;
}
.process-step:hover .step-num { color: var(--c); }

/* ── STATS ── */
.stat-number {
  font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--c-dark), var(--c2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}

/* ── TESTIMONIALS ── */
.testimonial-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.testimonial-card::before {
  content: '"'; position: absolute; top: -10px; left: 24px;
  font-family: 'Syne', sans-serif; font-size: 80px; font-weight: 800;
  color: var(--c); opacity: 0.15; line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ── TECH PILLS ── */
.tech-pill {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 12px; font-weight: 700; color: var(--muted);
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 6px;
}
.tech-pill:hover { border-color: var(--c); color: var(--c); transform: translateY(-2px); }

/* ── NOISE OVERLAY ── */
.noise-bg {
  position: relative;
}
.noise-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── GRID BG ── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── GLOW BLOB ── */
.glow-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
}

/* ── RTL ── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .faq-q { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .process-step { flex-direction: row-reverse; }
[dir="rtl"] .nav-link-minimal::after { left: auto; right: 0; }
[dir="rtl"] .section-label { direction: rtl; }
[dir="rtl"] .btn-glow, [dir="rtl"] .btn-outline { flex-direction: row-reverse; }

/* ── CONTACT FORM ── */
.form-field {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px;
  color: var(--txt); background: var(--bg2);
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.form-field:focus { border-color: var(--c); box-shadow: 0 0 0 3px rgba(0,209,193,0.1); }
.form-field::placeholder { color: var(--muted); }
textarea.form-field { resize: vertical; min-height: 130px; }
select.form-field { appearance: none; -webkit-appearance: none; }

/* ── BADGE DOT ── */
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c);
  display: inline-block; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,209,193,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,209,193,0); }
}
