/* Identity Agency — shared styles */

:root {
  --bg: #060512;
  --bg-soft: #0A081E;
  --card: #0D0B24;
  --border: #1E1A45;
  --border-strong: #2E2766;
  --primary: #2412E8;
  --primary-bright: #4C3DFF;
  --lavender: #8B7DFF;
  --lavender-light: #B9AFFF;
  --text: #ffffff;
  --text-muted: #A39FC7;
  --text-soft: #DDD9F5;
  --text-faint: #5A5680;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: var(--text);
}

a {
  color: var(--lavender);
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
a:hover { color: var(--text); }

.page {
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

/* ---------- Animations ---------- */
@keyframes idmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes idrot {
  0%   { opacity: 0; transform: translateY(36px); }
  6%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  28%  { opacity: 0; transform: translateY(-36px); }
  100% { opacity: 0; transform: translateY(-36px); }
}
@keyframes idglow {
  0%, 100% { opacity: .55; transform: translate(-50%, -40%) scale(1); }
  50%      { opacity: .9;  transform: translate(-50%, -40%) scale(1.18); }
}
@keyframes idblob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(120px, 60px) scale(1.25); }
  66%      { transform: translate(-80px, 110px) scale(0.9); }
}
@keyframes idblob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-140px, -50px) scale(1.2); }
  75%      { transform: translate(90px, -100px) scale(0.85); }
}
@keyframes idblob3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, -120px) scale(1.3); }
}
@keyframes idspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes idbreathe {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero-rotator span { opacity: 1 !important; position: static !important; display: none; }
  .hero-rotator span:last-child { display: block; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(6, 5, 18, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.35) saturate(1.1);
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--lavender); }
.nav-links a.active { color: var(--primary-bright); }
.nav-links a.active:hover { color: var(--lavender); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--text);
  padding: 18px 44px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 40px rgba(76, 61, 255, 0.5);
}
.btn-primary:hover { background: var(--primary-bright); color: var(--text); }
.btn-primary.btn-sm {
  padding: 11px 26px;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(76, 61, 255, 0.45);
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  padding: 18px 44px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  background: rgba(13, 11, 36, 0.6);
}
.btn-outline:hover { border-color: var(--primary-bright); color: var(--lavender-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 110px 5vw 90px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 900px;
  height: 700px;
  transform: translate(-50%, -40%);
  background: radial-gradient(circle, rgba(36, 18, 232, 0.45) 0%, rgba(36, 18, 232, 0) 65%);
  pointer-events: none;
  animation: idglow 7s ease-in-out infinite;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.hero-blob1 {
  position: absolute; top: 8%; right: 6%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 61, 255, 0.5) 0%, rgba(76, 61, 255, 0) 70%);
  filter: blur(40px);
  animation: idblob1 14s ease-in-out infinite;
}
.hero-blob2 {
  position: absolute; bottom: 0; left: 4%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 0, 184, 0.55) 0%, rgba(20, 0, 184, 0) 70%);
  filter: blur(50px);
  animation: idblob2 18s ease-in-out infinite;
}
.hero-blob3 {
  position: absolute; top: 30%; left: 38%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 125, 255, 0.35) 0%, rgba(139, 125, 255, 0) 70%);
  filter: blur(36px);
  animation: idblob3 11s ease-in-out infinite;
}
.hero-ring1 {
  position: absolute; top: 50%; left: 50%;
  width: min(760px, 80vw); aspect-ratio: 1;
  margin: calc(min(760px, 80vw) / -2) 0 0 calc(min(760px, 80vw) / -2);
  border: 1px dashed rgba(76, 61, 255, 0.28);
  border-radius: 50%;
  animation: idspin 36s linear infinite;
}
.hero-ring2 {
  position: absolute; top: 50%; left: 50%;
  width: min(1020px, 96vw); aspect-ratio: 1;
  margin: calc(min(1020px, 96vw) / -2) 0 0 calc(min(1020px, 96vw) / -2);
  border: 1px solid rgba(76, 61, 255, 0.14);
  border-radius: 50%;
  animation: idbreathe 8s ease-in-out infinite;
}
.hero-orbit-dot {
  position: absolute; top: 50%; left: 50%;
  width: min(760px, 80vw); aspect-ratio: 1;
  margin: calc(min(760px, 80vw) / -2) 0 0 calc(min(760px, 80vw) / -2);
  border-radius: 50%;
  animation: idspin 14s linear infinite;
}
.hero-orbit-dot::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  margin-left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lavender);
  box-shadow: 0 0 14px 3px rgba(139, 125, 255, 0.75);
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(36, 18, 232, 0.14);
  color: var(--lavender-light);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--primary-bright); }
.hero-rotator {
  position: relative;
  height: 1.4em;
  width: 100%;
  overflow: hidden;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  color: var(--text-muted);
}
.hero-rotator > span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: idrot 10s infinite;
}
.hero-rotator > span:nth-child(1) { animation-delay: 0s; }
.hero-rotator > span:nth-child(2) { animation-delay: 2.5s; }
.hero-rotator > span:nth-child(3) { animation-delay: 5s; }
.hero-rotator > span:nth-child(4) { animation-delay: 7.5s; }
.hero-rotator .white { color: var(--text); }
.hero-rotator .accent { color: var(--primary-bright); }
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.chip .accent { color: var(--primary-bright); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--primary);
  color: var(--text);
  overflow: hidden;
  padding: 14px 0;
  transform: rotate(-1.2deg);
  margin: 0 -20px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: idmarquee 20s linear infinite;
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
}

/* ---------- Clients ---------- */
.clients {
  padding: 100px 5vw 40px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.clients-label { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.client-slot {
  height: 84px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
}
.client-slot img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* ---------- Services ---------- */
.services {
  padding: 90px 5vw;
  max-width: 1300px;
  margin: 0 auto;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 700;
  text-align: center;
}
.section-title .accent { color: var(--primary-bright); }
.section-sub {
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.9;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--primary-bright);
  box-shadow: 0 0 40px rgba(36, 18, 232, 0.25);
}
.service-card h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); }
.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--text-muted);
  font-size: 14px;
}
.service-card li .accent { color: var(--primary-bright); }
.services-more { text-align: center; margin-top: 40px; }
.services-more .btn-outline { padding: 15px 38px; font-size: 16px; background: none; }

/* ---------- Stats ---------- */
.stats {
  padding: 70px 5vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.stats-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-number { font-size: clamp(40px, 4vw, 60px); font-weight: 700; color: var(--primary-bright); }
.stat-label { font-size: 15px; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 130px 5vw;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 800px;
  transform: translate(-50%, -40%);
  background: radial-gradient(circle, rgba(36, 18, 232, 0.4) 0%, rgba(36, 18, 232, 0) 65%);
  pointer-events: none;
  animation: idglow 8s ease-in-out infinite;
}
.cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.cta h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1.2;
}
.cta h2 .accent { color: var(--primary-bright); }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-notes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.cta-notes .accent { color: var(--primary-bright); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 5vw 32px;
}
.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand img { width: 200px; margin-inline-start: -26px; }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col-title { color: var(--text); font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1300px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  text-align: center;
  padding: 100px 5vw 70px;
}
.page-hero .hero-glow { height: 600px; }
.page-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1.15;
  font-weight: 700;
}
.page-hero h1 .accent { color: var(--primary-bright); }
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  line-height: 1.9;
}

/* ---------- Service rows (services page) ---------- */
.service-rows {
  padding: 40px 5vw 100px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  transition: border-color .2s, box-shadow .2s;
}
.service-row:hover {
  border-color: var(--primary-bright);
  box-shadow: 0 0 40px rgba(36, 18, 232, 0.25);
}
.service-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-bright);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.service-row-body h2 { margin: 0; font-size: 26px; font-weight: 700; }
.service-row-body p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.9; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: rgba(36, 18, 232, 0.16);
  border: 1px solid var(--border-strong);
  color: var(--lavender-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}

/* ---------- CTA band (sub-page bottom) ---------- */
.cta-band {
  position: relative;
  padding: 110px 5vw;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta-band .cta-glow { width: 900px; height: 700px; }
.cta-band-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta-band h2 { margin: 0; font-size: clamp(36px, 4.8vw, 64px); font-weight: 700; }
.cta-band h2 .accent { color: var(--primary-bright); }

/* ---------- Values (about page) ---------- */
.values {
  padding: 40px 5vw 90px;
  max-width: 1300px;
  margin: 0 auto;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.value-card:hover {
  border-color: var(--primary-bright);
  box-shadow: 0 0 40px rgba(36, 18, 232, 0.25);
}
.value-card .icon { font-size: 22px; color: var(--primary-bright); }
.value-card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.value-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* ---------- Process (about page) ---------- */
.process {
  padding: 90px 5vw;
  max-width: 1100px;
  margin: 0 auto;
}
.process h2 {
  margin: 0 0 48px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  text-align: center;
}
.process h2 .accent { color: var(--primary-bright); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.process-step {
  border-top: 3px solid var(--primary);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.process-step .step-label { font-size: 14px; font-weight: 700; color: var(--primary-bright); }
.process-step p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.8; }

/* ---------- Contact page ---------- */
.contact-section {
  padding: 20px 5vw 110px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.contact-wa {
  background: var(--primary);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
  box-shadow: 0 0 60px rgba(36, 18, 232, 0.35);
}
.contact-wa:hover { background: var(--primary-bright); color: var(--text); }
.contact-wa .kicker { font-size: 15px; font-weight: 600; opacity: 0.85; }
.contact-wa .headline { font-size: clamp(28px, 3vw, 40px); font-weight: 700; }
.contact-wa .value { font-size: 17px; font-weight: 600; opacity: 0.9; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  flex: 1;
}
a.contact-card:hover { border-color: var(--primary-bright); color: var(--text); }
.contact-card .label { font-size: 14px; color: var(--text-muted); }
.contact-card .value { font-size: 19px; font-weight: 700; }
.contact-notes {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 36px;
}
.contact-notes .accent { color: var(--primary-bright); }
.social-pills { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.social-pills a {
  border: 1px solid var(--border-strong);
  color: var(--lavender-light);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.social-pills a:hover { border-color: var(--primary-bright); color: var(--text); }

/* ---------- Compact footer (contact page) ---------- */
.footer-compact { padding: 40px 5vw 32px; margin-top: auto; }
.footer-compact-main {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-compact-main img { width: 180px; margin-inline-start: -24px; }
.footer-compact-links { display: flex; gap: 28px; font-size: 14px; }
.footer-compact-links a { color: var(--text-muted); }
.footer-compact-links a:hover { color: var(--text); }
.footer-compact-main .copyright { color: var(--text-faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 80px 5vw 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { gap: 36px; }
  .service-row { grid-template-columns: 1fr; padding: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-wa { padding: 36px; }
}
