/* ================= RESET & BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #eceef7;
  --bg-2: #e4e7f6;
  --ink: #14142b;
  --ink-soft: #4b4b63;
  --muted: #6b6b83;
  --purple: #7c5cff;
  --purple-2: #6366f1;
  --purple-soft: #efe9ff;
  --glass: rgba(255,255,255,0.55);
  --glass-strong: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.9);
  --shadow: 0 20px 45px -20px rgba(20,20,43,0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124,92,255,0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(99,102,241,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1,h2,h3,h4{ font-family: 'Poppins', sans-serif; color: var(--ink); line-height: 1.15; }

p { color: var(--ink-soft); line-height: 1.6; }

a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
img{ max-width: 100%; display: block; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-decor{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(500px 500px at 95% 100%, rgba(139,92,246,0.16), transparent 60%);
}

.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1{
  width: 420px; height: 420px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(124,92,255,0.35), transparent 70%);
  animation: blobDrift1 22s ease-in-out infinite;
}
.blob-2{
  width: 480px; height: 480px;
  top: 30%; right: -180px;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  animation: blobDrift2 26s ease-in-out infinite;
}
.blob-3{
  width: 360px; height: 360px;
  bottom: -140px; left: 30%;
  background: radial-gradient(circle, rgba(244,114,182,0.22), transparent 70%);
  animation: blobDrift3 30s ease-in-out infinite;
}

@keyframes blobDrift1{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(60px, 50px) scale(1.15); }
}
@keyframes blobDrift2{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-50px, 60px) scale(1.1); }
}
@keyframes blobDrift3{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(40px, -40px) scale(1.12); }
}

/* ================= SCROLL PROGRESS ================= */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--purple-2), #f472b6);
  z-index: 999;
  transition: width .1s linear;
}

/* ================= CURSOR GLOW ================= */
.cursor-glow{
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  margin-left: -190px; margin-top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,0.14), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-1000px,-1000px);
  transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.active{ opacity: 1; }

.eyebrow{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title{
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 18px;
}

section{ padding: 70px 0; }

.card-panel{
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px;
}

/* ================= BUTTONS ================= */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
  overflow: hidden;
}
.btn:hover{ transform: translateY(-2px) scale(1.03); }
.btn:active{ transform: translateY(0) scale(0.98); }
.btn .arrow{ font-size: 14px; transition: transform .2s ease; }
.btn:hover .arrow{ transform: translate(3px,-3px); }

.btn-shine::before{
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-shine:hover::before{ left: 130%; }

.btn-dark{
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(20,20,43,0.45);
}
.btn-dark:hover{ background: #24243f; }

.btn-ghost{
  background: var(--glass-strong);
  border: 1px solid rgba(20,20,43,0.08);
  color: var(--ink);
}
.btn-ghost:hover{ background: #fff; }

.btn-outline{
  background: transparent;
  border: 1.5px solid rgba(20,20,43,0.15);
  color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-sm{ padding: 10px 18px; font-size: 13px; }
.btn-block{ width: 100%; justify-content: center; }

/* ================= NAVBAR ================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding .3s ease;
}
.navbar.scrolled{ padding: 8px 0; }
.navbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 10px 12px 10px 14px;
  box-shadow: 0 10px 30px -18px rgba(20,20,43,0.25);
  transition: box-shadow .3s ease, padding .3s ease;
}
.navbar.scrolled .navbar-inner{
  box-shadow: 0 14px 34px -14px rgba(20,20,43,0.32);
  padding: 7px 10px 7px 12px;
}

.nav-links a{ position: relative; transition: color .2s ease; }
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  border-radius: 2px;
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after{ width: 100%; }

.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  padding: 5px;
}
.brand-logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong{ font-size: 14px; font-family: 'Poppins', sans-serif; }
.brand-text small{ font-size: 11px; color: var(--muted); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); font-weight: 600; }

.nav-toggle{ display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span{ width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.navbar-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-select{
  cursor: pointer;
  background: var(--glass-strong);
  border: 1px solid rgba(20,20,43,0.08);
  border-radius: 100px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.lang-select:focus{ outline: none; border-color: var(--purple); }

/* ================= RTL (Arabic) ================= */
html[dir="rtl"] .nav-links a::after{ left: auto; right: 0; }
html[dir="rtl"] .btn .arrow{ transform: scaleX(-1); }
html[dir="rtl"] .card-arrow{ transform: scaleX(-1); }

/* ================= HERO ENTRANCE ================= */
.hero-in{
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn .8s cubic-bezier(.16,.84,.44,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* ================= REVEAL ON SCROLL ================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
  transition-delay: var(--rd, 0s);
}
[data-reveal="scale"]{ transform: translateY(20px) scale(.94); }
[data-reveal="left"]{ transform: translateX(-50px); }
[data-reveal="right"]{ transform: translateX(50px); }

[data-reveal].in-view{
  opacity: 1;
  transform: none;
}

/* ================= TILT CARDS ================= */
.tilt-card{
  transform-style: preserve-3d;
  will-change: transform;
}

/* ================= COUNTER ================= */
.count{ font-variant-numeric: tabular-nums; }

/* ================= HERO ================= */
.hero{ padding-top: 60px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-title{
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-subtitle{
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  background: linear-gradient(90deg, var(--purple), var(--purple-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.hero-text{
  max-width: 440px;
  margin-bottom: 30px;
}
.hero-actions{ display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.trusted-label{ font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.trusted-logos{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  opacity: 0.75;
}
.trusted-logos .dots{ letter-spacing: 3px; }

/* Hero Visual */
.hero-visual{ position: relative; display: flex; justify-content: center; }
.hero-portrait{
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/4.4;
  border-radius: 40px;
  background: linear-gradient(160deg, #f4f1ff 0%, #e3e6f8 60%, #d9ddf3 100%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  animation: portraitFloat 5s ease-in-out infinite;
}
@keyframes portraitFloat{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}
.portrait-photo{
  width: 92%;
  height: 96%;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
  filter: drop-shadow(0 20px 30px rgba(20,20,43,0.25));
}
.sparkle{
  position: absolute;
  top: 14px; left: 14px;
  font-size: 22px;
  color: var(--purple);
  background: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  animation: sparklePulse 2.4s ease-in-out infinite;
}
@keyframes sparklePulse{
  0%, 100%{ transform: scale(1) rotate(0deg); }
  50%{ transform: scale(1.18) rotate(15deg); }
}

.float-card{
  position: absolute;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 18px;
}
.float-experience{
  top: -10px; right: -10px;
  text-align: center;
  width: 100px;
  animation: floatCard1 4.5s ease-in-out infinite;
}
.float-experience strong{ display: block; font-size: 30px; font-family: 'Poppins', sans-serif; line-height: 1.1; }
.float-experience > span{ font-size: 11px; color: var(--muted); }

.float-impact{
  bottom: 30px; right: -30px;
  width: 150px;
  animation: floatCard2 5.5s ease-in-out infinite;
}
@keyframes floatCard1{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
@keyframes floatCard2{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(10px); }
}
.float-label{ font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.float-value{ font-size: 20px; font-weight: 700; font-family: 'Poppins', sans-serif; color: var(--purple); margin-bottom: 6px; }
.sparkline{ width: 100%; height: 24px; }

/* ================= ABOUT ================= */
.about-panel{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.stat-row{ display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; gap: 4px; }
.stat-icon{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  margin-bottom: 6px;
}
.stat strong{ font-size: 22px; font-family: 'Poppins', sans-serif; }
.stat small{ font-size: 12px; color: var(--muted); }

.about-right p{ margin-bottom: 24px; }

/* ================= SERVICES ================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.service-card{
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 26px 22px 60px;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.service-card:hover{ transform: translateY(-6px); }
.service-icon{
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.icon-orange{ background: #fde7d0; color: #c97a2f; }
.icon-purple{ background: #e6e0fb; color: #7c5cff; }
.icon-indigo{ background: #dbe4ff; color: #4f5fe0; }
.icon-teal{ background: #d1f2ea; color: #12a087; }

.service-card h3{ font-size: 16px; margin-bottom: 8px; }
.service-card p{ font-size: 13px; }

.card-arrow{
  position: absolute;
  bottom: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid rgba(20,20,43,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.service-card:hover .card-arrow,
.work-card:hover .card-arrow{ background: var(--ink); color: #fff; }

/* ================= TOOLS ================= */
.tools-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.tool-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  flex: 1 1 150px;
  justify-content: center;
}
.tool-badge{
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.tb-figma{ background: #f24e1e; }
.tb-sketch{ background: #fdb300; }
.tb-xd{ background: #ff2bc2; }
.tb-ps{ background: #001e36; }
.tb-ai{ background: #ff9a00; }
.tb-wf{ background: #4353ff; }
.tb-fr{ background: #0055ff; }
.tb-notion{ background: #14142b; }

/* ================= WORK ================= */
.section-head-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.work-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.work-card{
  display: block;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.work-card:hover{ transform: translateY(-6px); }
.work-thumb{
  height: 200px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.thumb-finance{ background: linear-gradient(135deg, #ded6ff, #b9c4ff); }
.thumb-analytics{ background: linear-gradient(135deg, #cfe0ff, #a9c9ff); }
.thumb-saas{ background: linear-gradient(135deg, #bfe3ff, #dff3ff); }
.mock-window{
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.65);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 20px -10px rgba(20,20,43,0.25);
}
.work-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 20px -10px rgba(20,20,43,0.25);
  transition: transform .4s ease;
}
.work-card:hover .work-thumb-img{ transform: scale(1.05); }
.work-info{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
.work-info h3{ font-size: 15px; margin-bottom: 4px; }
.work-info small{ color: var(--muted); font-size: 12px; }

/* ================= PROCESS ================= */
.process-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.process-card{
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.process-icon{
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 16px;
  margin-bottom: 30px;
}
.process-num{
  position: absolute;
  top: 22px; right: 20px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.process-card h3{ font-size: 15px; margin-bottom: 6px; }
.process-card p{ font-size: 12.5px; }

/* ================= TESTIMONIALS ================= */
.carousel-controls{ display: flex; gap: 10px; }
.ctrl-btn{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid rgba(20,20,43,0.08);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.ctrl-btn:hover{ background: var(--ink); color: #fff; }

.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.testimonial-card{
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow);
}
.quote-mark{
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  color: var(--purple);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.testimonial-card p{ font-size: 13.5px; margin-bottom: 20px; }
.testimonial-author{ display: flex; align-items: center; gap: 12px; }
.avatar{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar-1{ background: linear-gradient(135deg, #7c5cff, #a78bfa); }
.avatar-2{ background: linear-gradient(135deg, #f472b6, #fb923c); }
.avatar-3{ background: linear-gradient(135deg, #34d399, #22c1c3); }
.testimonial-author strong{ display: block; font-size: 13.5px; }
.testimonial-author small{ font-size: 11.5px; color: var(--muted); }

/* ================= CONTACT ================= */
.contact-panel{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info{ margin-top: 26px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.contact-info li{ display: flex; align-items: center; gap: 10px; }
.contact-info li a:hover{ text-decoration: underline; }
.ci-icon{
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.contact-form{ display: flex; flex-direction: column; gap: 14px; }
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select{
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20,20,43,0.1);
  background: var(--glass-strong);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder{ color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus{
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.15);
}

.phone-row{ display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
.phone-prefix{ cursor: pointer; padding-left: 12px; padding-right: 8px; }
.phone-input{ min-width: 0; }

.consent-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.consent-row input[type="checkbox"]{
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--purple);
  cursor: pointer;
}
.consent-row a{ color: var(--ink); text-decoration: underline; }

/* ================= MODAL ================= */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20,20,43,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.open{
  opacity: 1;
  visibility: visible;
}
.modal-box{
  position: relative;
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 32px 32px;
  transform: translateY(20px) scale(.96);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal-box{
  transform: translateY(0) scale(1);
}

.modal-box-lg{
  max-width: 880px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
  padding: 40px;
}
.modal-box-lg .modal-projects-title{
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.modal-projects-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 640px){
  .modal-box-lg{ padding: 28px 20px; }
  .modal-projects-grid{ grid-template-columns: 1fr; }
}
.modal-icon{
  display: block;
  font-size: 34px;
  margin-bottom: 14px;
}
.modal-box > h3{
  font-size: 20px;
  margin-bottom: 10px;
}
.modal-box > p{
  font-size: 14px;
  margin-bottom: 24px;
}
.modal-close{
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(20,20,43,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover{ background: var(--ink); color: #fff; }
.modal-ok{ width: 100%; justify-content: center; }

/* ================= MUSIC TOGGLE ================= */
.music-toggle{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(20,20,43,0.5);
  transition: transform .2s ease;
}
.music-toggle:hover{ transform: scale(1.08); }
.music-toggle.muted{ opacity: 0.6; }
.music-toggle[hidden]{ display: none; }

/* ================= POLICY PAGE ================= */
.policy-section{ margin-top: 30px; }
.policy-section h2{ font-size: 19px; margin-bottom: 10px; }
.policy-section p{ font-size: 14.5px; }

/* ================= FOOTER ================= */
.footer{ padding: 30px 0 50px; }
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links{ display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.footer-contact-link{
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.footer-contact-link::after{
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity .2s ease;
}
.footer-contact-link:hover::after{ opacity: 0.8; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ margin-top: 40px; }
  .about-panel, .contact-panel{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .work-grid{ grid-template-columns: 1fr 1fr; }
  .work-card-wide{ grid-column: 1 / -1; }
  .process-grid{ grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid{ grid-template-columns: 1fr; }

  .nav-links{
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{ display: flex; }
  .nav-cta{ display: none; }
}

@media (max-width: 768px){
  .card-panel{ padding: 30px; }
  .services-grid{ grid-template-columns: 1fr; }
  .tools-row{ justify-content: center; }
  .work-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: repeat(2, 1fr); }
  .form-row{ grid-template-columns: 1fr; }
  .float-experience{ top: 0; right: 0; }
  .float-impact{ right: 0; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal]{ opacity: 1; transform: none; }
  .hero-in{ opacity: 1; transform: none; }
  .cursor-glow{ display: none; }
}
