/* ===============================================
   style.css - ZHIWAR Website [ENHANCED & OPTIMIZED]
   =============================================== */

:root {
  --primary:      #38bdf8;
  --primary-dark: #0ea5e9;
  --bg-dark:      #0f172a;
  --bg-darker:    #020617;
  --text-light:   #f1f5f9;
  --text-gray:    #94a3b8;
  --accent-purple: #a855f7;
  --success: #22c55e;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Noto Sans Arabic', sans-serif;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* ══════════════════════════════
   AD GATING SYSTEM
══════════════════════════════ */
/* ══════════════════════════════════════════════════════
   AD GATING SYSTEM — PREMIUM UPGRADE
   Replace the existing "AD GATING SYSTEM" block in
   style.css with everything between the dividers below.
══════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────── */
@keyframes ag-fadeIn        { from{opacity:0}            to{opacity:1} }
@keyframes ag-slideUp       { from{transform:translateY(48px) scale(0.97);opacity:0} to{transform:none;opacity:1} }
@keyframes ag-spin          { to{transform:rotate(360deg)} }
@keyframes ag-pulseDot      { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
@keyframes ag-ringRotate    { to{transform:rotate(360deg)} }
@keyframes ag-numberFlash   { 0%,100%{opacity:1;transform:scale(1)} 10%{opacity:.5;transform:scale(1.18)} }
@keyframes ag-glowPulse     { 0%,100%{opacity:.25;transform:scale(1)} 50%{opacity:.55;transform:scale(1.1)} }
@keyframes ag-particleDrift {
  0%   {transform:translateY(0)   translateX(0)   scale(1);   opacity:.6}
  50%  {transform:translateY(-60px) translateX(20px) scale(1.2); opacity:.2}
  100% {transform:translateY(0)   translateX(0)   scale(1);   opacity:.6}
}
@keyframes ag-scanline      { 0%{background-position:0 0} 100%{background-position:0 100%} }
@keyframes ag-progressShimmer {
  0%  {background-position:-200% 0}
  100%{background-position:200% 0}
}
@keyframes ag-enterGlow     { 0%,100%{box-shadow:0 0 24px rgba(56,189,248,.35),0 0 48px rgba(56,189,248,.12)} 50%{box-shadow:0 0 40px rgba(56,189,248,.7),0 0 80px rgba(56,189,248,.3)} }
@keyframes ag-ripple        { 0%{transform:scale(0);opacity:.6} 100%{transform:scale(2.5);opacity:0} }

/* ── Overlay backdrop ──────────────────────────────── */
#adGatingOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(14,165,233,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%,  rgba(168,85,247,.10) 0%, transparent 60%),
    linear-gradient(160deg, #020617 0%, #0a1628 45%, #0f172a 100%);
  animation: ag-fadeIn .35s ease-out;
  overflow: hidden;
}

#adGatingOverlay.hidden {
  pointer-events: none;
  opacity: 0;
  transition: opacity .65s cubic-bezier(.4,0,.2,1);
}

/* ── Floating particles ────────────────────────────── */
.ag-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ag-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  opacity: .35;
}
.ag-particles span:nth-child(1) { top:12%; left:10%;  width:5px; height:5px; animation: ag-particleDrift 8s ease-in-out infinite; }
.ag-particles span:nth-child(2) { top:70%; left:85%;  background:#a855f7; animation: ag-particleDrift 11s ease-in-out infinite 2s; }
.ag-particles span:nth-child(3) { top:40%; left:5%;   width:3px; height:3px; animation: ag-particleDrift 9s ease-in-out infinite 4s; }
.ag-particles span:nth-child(4) { top:80%; left:25%;  background:#38bdf8; animation: ag-particleDrift 13s ease-in-out infinite 1s; }
.ag-particles span:nth-child(5) { top:20%; left:75%;  width:6px; height:6px; background:#a855f7; opacity:.2; animation: ag-particleDrift 10s ease-in-out infinite 3s; }
.ag-particles span:nth-child(6) { top:55%; left:60%;  width:3px; height:3px; animation: ag-particleDrift 14s ease-in-out infinite 5s; }
.ag-particles span:nth-child(7) { top:8%;  left:50%;  background:#a855f7; animation: ag-particleDrift 12s ease-in-out infinite 1.5s; }
.ag-particles span:nth-child(8) { top:90%; left:70%;  width:5px; height:5px; animation: ag-particleDrift 9s ease-in-out infinite 6s; }

/* ── Grid line texture ─────────────────────────────── */
.ag-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Main card ─────────────────────────────────────── */
.ag-card {
  position: relative;
  width: min(600px, 94vw);
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  /* Glassmorphism core */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.045) 0%,
    rgba(14,165,233,.06)  40%,
    rgba(168,85,247,.04)  100%
  );
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(56,189,248,.18);
  box-shadow:
    0  2px  0   rgba(56,189,248,.15),          /* top highlight */
    0  32px 80px rgba(0,0,0,.7),               /* deep shadow */
    0  8px  32px rgba(0,0,0,.5),
    inset 0  1px  0   rgba(255,255,255,.08),   /* inner top sheen */
    inset 0 -1px  0   rgba(56,189,248,.06);
  animation: ag-slideUp .55s cubic-bezier(.16,1,.3,1);
}

/* ── Status bar ────────────────────────────────────── */
.ag-statusbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.4rem;
  background: rgba(56,189,248,.06);
  border-bottom: 1px solid rgba(56,189,248,.1);
  font-size: .72rem;
  letter-spacing: .12em;
  color: #64748b;
  text-transform: uppercase;
  direction: rtl;
}
.ag-statusbar-right { margin-right: auto; }
.ag-statusbar-badge {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .65rem;
  letter-spacing: .1em;
}
.ag-statusbar-label { color: #94a3b8; }

/* Pulsing status dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: ag-pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Header ────────────────────────────────────────── */
.ag-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem 1rem;
  direction: rtl;
}
.ag-logo-ring {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  animation: ag-ringRotate 12s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56,189,248,.5));
}
.ag-header-text { flex: 1; }
.ag-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.01em;
  line-height: 1.2;
  background: linear-gradient(135deg, #f1f5f9 0%, #38bdf8 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ag-subtitle {
  font-size: .82rem;
  color: #64748b;
  margin-top: .2rem;
  letter-spacing: .02em;
}

/* ── Video wrapper ─────────────────────────────────── */
.ag-video-wrapper {
  padding: 0 1.2rem;
  margin-bottom: .8rem;
}
.ag-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #040d1a;
  border: 1px solid rgba(56,189,248,.12);
  box-shadow: inset 0 0 40px rgba(0,0,0,.6);
}
.ag-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading state inside video */
.ag-video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #040d1a;
  transition: opacity .4s ease;
  z-index: 2;
}
.ag-video-loading.hidden { opacity: 0; pointer-events: none; }
.ag-loading-ring {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(56,189,248,.15);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: ag-spin 1s linear infinite;
}
.ag-loading-text { color: #475569; font-size: .82rem; }

/* Corner decorations */
.ag-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
}
.ag-corner--tl { top:10px;  right:10px; border-top:2px solid rgba(56,189,248,.5); border-right:2px solid rgba(56,189,248,.5); border-radius:0 4px 0 0; }
.ag-corner--tr { top:10px;  left:10px;  border-top:2px solid rgba(56,189,248,.5); border-left:2px solid rgba(56,189,248,.5);  border-radius:4px 0 0 0; }
.ag-corner--bl { bottom:10px; right:10px; border-bottom:2px solid rgba(56,189,248,.5); border-right:2px solid rgba(56,189,248,.5); border-radius:0 0 4px 0; }
.ag-corner--br { bottom:10px; left:10px;  border-bottom:2px solid rgba(56,189,248,.5); border-left:2px solid rgba(56,189,248,.5);  border-radius:0 0 0 4px; }

/* ── Timer panel ───────────────────────────────────── */
.ag-timer-panel {
  margin: 0 1.2rem .8rem;
  padding: 1.2rem 1.4rem 1rem;
  background: rgba(56,189,248,.05);
  border: 1px solid rgba(56,189,248,.12);
  border-radius: 16px;
  text-align: center;
  direction: rtl;
  position: relative;
  overflow: hidden;
}
/* subtle inner gradient */
.ag-timer-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,.08) 0%, transparent 70%);
  pointer-events: none;
}

.ag-timer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .8rem;
  color: #64748b;
  letter-spacing: .03em;
  margin-bottom: .8rem;
}
.ag-lock-icon { font-size: 1rem; }

/* Countdown number */
.ag-countdown-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
  position: relative;
}
.ag-countdown-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(56,189,248,.3) 0%, transparent 70%);
  animation: ag-glowPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
.ag-countdown-number {
  font-size: 3.8rem;
  font-weight: 900;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: 1;
  text-shadow:
    0 0 20px rgba(56,189,248,.7),
    0 0 60px rgba(56,189,248,.3);
  transition: opacity .15s ease;
}
.ag-countdown-number.tick {
  animation: ag-numberFlash .35s ease-out;
}
.ag-countdown-unit {
  font-size: 1rem;
  color: #475569;
  letter-spacing: .04em;
  align-self: center;
}

/* Progress bar */
.ag-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(56,189,248,.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .75rem;
  position: relative;
}
.ag-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #0ea5e9 0%,
    #38bdf8 40%,
    #a855f7 100%,
    rgba(56,189,248,0) 200%
  );
  background-size: 200% 100%;
  animation: ag-progressShimmer 2.5s linear infinite;
  transform-origin: left;
  transition: transform .9s linear;
}
.ag-progress-glow {
  position: absolute;
  top: -3px;
  left: 0;
  width: 12px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  filter: blur(4px);
  opacity: .9;
  transition: left .9s linear;
  pointer-events: none;
}

/* Wait message */
.ag-wait-msg {
  font-size: .78rem;
  color: #475569;
  letter-spacing: .02em;
  transition: opacity .3s ease;
}
.ag-wait-msg.hidden { opacity: 0; }

/* ── Enter / Skip button ───────────────────────────── */
.ag-enter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: calc(100% - 2.4rem);
  margin: 0 1.2rem .8rem;
  padding: .95rem 1.4rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 60%, #a855f7 100%);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
  animation: ag-enterGlow 2.5s ease-in-out infinite;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.ag-enter-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 40px rgba(56,189,248,.45), 0 4px 16px rgba(0,0,0,.3);
}
.ag-enter-btn:active {
  transform: translateY(0) scale(.98);
}
.ag-enter-btn__text  { position: relative; z-index: 1; direction: rtl; }
.ag-enter-btn__icon  { position: relative; z-index: 1; display: flex; align-items: center; }
.ag-enter-btn__ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: ag-ripple 1.8s ease-out infinite;
  border: 2px solid rgba(255,255,255,.3);
}

/* ── Info notice ───────────────────────────────────── */
.ag-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 0 1.2rem 1.2rem;
  padding: .85rem 1rem;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.15);
  border-radius: 12px;
  color: #6ee7b7;
  font-size: .78rem;
  line-height: 1.6;
  direction: rtl;
}
.ag-notice svg {
  flex-shrink: 0;
  margin-top: .1rem;
  color: #22c55e;
  opacity: .8;
}
.ag-notice p { color: #94a3b8; }

/* ── Accessibility: motion-reduce ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ag-card { animation: none; }
  .ag-logo-ring { animation: none; }
  .ag-countdown-glow { animation: none; }
  .ag-enter-btn { animation: none; }
  .ag-enter-btn__ripple { animation: none; }
  .ag-progress-fill { animation: none; }
  .ag-particles span { animation: none; }
  .pulse-dot { animation: none; }
}

/* ── Mobile tweaks ─────────────────────────────────── */
@media (max-width: 480px) {
  .ag-card { border-radius: 18px; }
  .ag-countdown-number { font-size: 3rem; }
  .ag-title { font-size: 1.15rem; }
  .ag-enter-btn { font-size: .9rem; }
}

/* ══════════════════════════════
   LOADING SCREEN
══════════════════════════════ */
#loading-screen {
  position: fixed; top:0; left:0; width:100%; height:100%;
  background: linear-gradient(135deg,#0f172a 0%,#020617 100%);
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  z-index:9999; transition: opacity .5s, visibility .5s;
}
#loading-screen.hidden { opacity:0; visibility:hidden; }

.loader { width:80px; height:80px; position:relative; }
.loader-ring {
  position:absolute; width:100%; height:100%;
  border:4px solid transparent; border-top-color:var(--primary);
  border-radius:50%;
  animation: spin 1.5s cubic-bezier(0.68,-0.55,0.265,1.55) infinite;
}
.loader-ring:nth-child(2){ width:70%; height:70%; top:15%; left:15%; border-top-color:#a855f7; animation-delay:-.5s; }
.loader-ring:nth-child(3){ width:40%; height:40%; top:30%; left:30%; border-top-color:#ec4899; animation-delay:-1s; }
@keyframes spin { to { transform:rotate(360deg); } }

.loader-text { margin-top:120px; font-size:1.2rem; color:var(--primary); animation:pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ══════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════ */
.scroll-animate        { opacity:0; transform:translateY(50px);   transition:opacity .8s ease, transform .8s ease; }
.scroll-animate-left   { opacity:0; transform:translateX(-50px);  transition:opacity .8s ease, transform .8s ease; }
.scroll-animate-right  { opacity:0; transform:translateX(50px);   transition:opacity .8s ease, transform .8s ease; }
.scroll-animate.visible,
.scroll-animate-left.visible,
.scroll-animate-right.visible { opacity:1; transform:translate(0); }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
header {
  background-color:#1e293b; padding:1.2rem 2rem;
  position:sticky; top:0; z-index:100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.header-container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.logo { color:#38bdf8; text-decoration:none; font-weight:bold; font-size:1.4rem; display:flex; align-items:center; gap:.6rem; transition: all 0.3s ease; }
.logo:hover { text-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }
nav a { color:#cbd5e1; text-decoration:none; margin-left:1.8rem; font-weight:500; font-size:1.1rem; display:inline-flex; align-items:center; gap:.6rem; transition: color 0.3s ease; }
nav a:hover { color:#38bdf8; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  background:linear-gradient(to left top,#0ea5e9,#1e40af);
  color:white; padding:5rem 2rem; text-align:center;
  position:relative; overflow:hidden;
}
.hero-3d  { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.orb-canvas { position:absolute; inset:0; width:100%; height:100%; filter:blur(.5px) contrast(120%); opacity:.35; }
.orb-core {
  width:240px; height:240px; border-radius:999px;
  background:radial-gradient(closest-side,rgba(56,189,248,.8),rgba(14,165,233,.2) 60%,transparent 70%);
  box-shadow:0 0 140px rgba(56,189,248,.45),inset 0 0 120px rgba(14,165,233,.35);
  animation:orb-pulse 6s ease-in-out infinite;
}
@keyframes orb-pulse { 0%,100%{transform:scale(.98)} 50%{transform:scale(1.02)} }
.hero-content h1 { font-size:2.8rem; margin-bottom:1.5rem; }
.hero-content p  { font-size:1.4rem; margin-bottom:2.5rem; line-height:1.8; }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  padding:1rem 2rem; border:none; cursor:pointer; border-radius:.6rem;
  font-weight:bold; font-size:1.2rem; display:inline-flex; align-items:center; gap:.8rem;
  transition:all .3s ease;
}
.btn-primary { background-color:#0ea5e9; color:white; }
.btn-primary:hover { background-color:#0284c7; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4); }
.btn-outline { background-color:transparent; border:2px solid white; color:white; padding:.9rem 1.9rem; }
.btn-outline:hover { background-color:rgba(255,255,255,.1); transform: translateY(-2px); }

/* ══════════════════════════════
   SECTION TITLES
══════════════════════════════ */
.section-title    { font-size:2.4rem; color:#38bdf8; text-align:center; margin-top:3.5rem; margin-bottom:1rem; }
.section-subtitle { color:#94a3b8; font-size:1.2rem; text-align:center; margin-bottom:2.5rem; line-height:1.7; }

/* ══════════════════════════════
   APPS GRID
══════════════════════════════ */
.apps-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2rem; padding:2rem 0;
  max-width:1100px; margin:auto;
}
@media(max-width:1024px){ .apps-grid{ grid-template-columns:repeat(2,1fr); gap:1.5rem; padding:1.5rem; } }
@media(max-width:767px) { .apps-grid{ grid-template-columns:1fr; gap:1.5rem; padding:1rem; } }

.app-card {
  background-color:#1e293b;
  padding:2rem;
  border-radius:.9rem;
  box-shadow:0 0 15px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.app-title { color:#38bdf8; font-size:1.8rem; margin-bottom:1rem; }
.app-description { color:#e2e8f0; font-size:1.2rem; margin-bottom:1.5rem; line-height:1.7; }

/* Squircle Background for Cards */
.card-squircle-bg {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.squircle-canvas {
  width: 100%;
  height: 100%;
}

.squircle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 40%;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.1));
  filter: blur(40px);
}

/* Sabeel Special Card */
.app-card.sabeel-special {
  position:relative; background:linear-gradient(145deg,#1e293b 0%,#0f172a 100%);
  border:1px solid rgba(255,255,255,.05); border-radius:20px; padding:2rem; overflow:hidden;
  transition:all .4s cubic-bezier(.175,.885,.32,1.275);
  box-shadow:0 10px 30px -15px rgba(2,6,23,.7);
  display:flex; flex-direction:column; gap:1.5rem;
  z-index: 1;
}
.app-card.sabeel-special:hover { transform:translateY(-10px) scale(1.02); box-shadow:0 20px 40px -10px rgba(56,189,248,.3); border-color:rgba(56,189,248,.3); }
.card-bg-glow { position:absolute; top:-50%; left:-50%; width:200%; height:200%; background:radial-gradient(circle,rgba(56,189,248,.1) 0%,transparent 60%); opacity:0; transition:opacity .5s; z-index:0; pointer-events:none; }
.app-card.sabeel-special:hover .card-bg-glow { opacity:1; }
.sabeel-special .card-content { position:relative; z-index:2; text-align:center; }
.sabeel-special h3 { font-size:1.8rem; background:linear-gradient(to right,#fff,#38bdf8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:.5rem; font-weight:800; }
.sabeel-special p  { color:#94a3b8; font-size:1rem; line-height:1.6; margin-bottom:1.5rem; }
.app-icon-container { width:80px; height:80px; margin:0 auto 1rem; background:rgba(255,255,255,.05); border-radius:50%; padding:15px; box-shadow:inset 0 0 20px rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.1); }
.app-icon { width:100%; height:100%; object-fit:contain; }
.card-badge { position:absolute; top:15px; right:15px; background:rgba(56,189,248,.2); color:#38bdf8; padding:4px 12px; border-radius:20px; font-size:.8rem; font-weight:bold; border:1px solid rgba(56,189,248,.3); }
.card-actions { display:flex; gap:10px; justify-content:center; }
.btn-shine { background:linear-gradient(90deg,#38bdf8,#2563eb); color:white; padding:10px 20px; border-radius:12px; text-decoration:none; font-weight:bold; display:flex; align-items:center; gap:5px; transition:transform .2s; box-shadow:0 4px 15px rgba(56,189,248,.4); border: none; cursor: pointer; }
.btn-shine:hover { transform:scale(1.05); box-shadow:0 6px 20px rgba(56,189,248,.6); }
.btn-ghost { background:transparent; color:#cbd5e1; padding:10px 15px; border-radius:12px; text-decoration:none; border:1px solid rgba(255,255,255,.1); transition:all .3s; cursor: pointer; }
.btn-ghost:hover { background:rgba(255,255,255,.1); color:white; }

/* ══════════════════════════════
   FEATURES
══════════════════════════════ */
.features-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2rem; padding:2rem 0;
  max-width:1100px; margin:0 auto;
}
@media(max-width:900px){ .features-grid{ grid-template-columns:repeat(2,1fr); gap:1.5rem; } }
@media(max-width:600px){ .features-grid{ grid-template-columns:1fr; gap:1.5rem; } }

.feature-card {
  background-color:#1e293b; padding:2rem; border-radius:.9rem;
  box-shadow:0 0 15px rgba(0,0,0,.3);
  text-align:center; transition:all .3s ease;
  border: 1px solid rgba(56, 189, 248, 0.1);
}
.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
  transform: translateY(-4px);
}
.feature-icon { font-size:3rem; color:#38bdf8; margin-bottom:1rem; }
.feature-title { font-size:1.5rem; color:#e2e8f0; margin-bottom:.8rem; }
.feature-description { color:#94a3b8; font-size:1rem; line-height:1.6; }

/* ══════════════════════════════
   ABOUT DEVELOPER SECTION
══════════════════════════════ */
.about-dev-section {
  position: relative;
  padding: 6rem 2rem;
  background: #0f172a;
  overflow: hidden;
}

.adev-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise"/></filter><rect width="100" height="100" fill="%23fff" filter="url(%23n)"/></svg>');
  pointer-events: none;
  z-index: 0;
}

.adev-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(56,189,248,.05) 25%, rgba(56,189,248,.05) 26%, transparent 27%, transparent 74%, rgba(56,189,248,.05) 75%, rgba(56,189,248,.05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(56,189,248,.05) 25%, rgba(56,189,248,.05) 26%, transparent 27%, transparent 74%, rgba(56,189,248,.05) 75%, rgba(56,189,248,.05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.adev-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.adev-orb-a {
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,.1) 0%, transparent 70%);
  animation: floatSlow 20s ease-in-out infinite;
}

.adev-orb-b {
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,.1) 0%, transparent 70%);
  animation: floatSlow 25s ease-in-out infinite reverse;
}

.adev-orb-c {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56,189,248,.05) 0%, transparent 70%);
  animation: floatSlow 30s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

.adev-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
@media(max-width:900px){ .adev-inner{ grid-template-columns:1fr; gap:3rem; } }

/* ── LEFT ── */
.adev-left { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }

/* Avatar frame */
.adev-avatar-frame { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.adev-svg-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.adev-ring-outer { animation: adevRingCW  14s linear infinite; }
.adev-ring-inner { animation: adevRingCCW 9s  linear infinite; }
@keyframes adevRingCW  { to { transform: rotate(360deg);  } }
@keyframes adevRingCCW { to { transform: rotate(-360deg); } }

.adev-avatar-wrap {
  position: relative; width: 160px; height: 160px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(56,189,248,.4);
  box-shadow: 0 0 40px rgba(56,189,248,.25), 0 0 80px rgba(56,189,248,.1);
}
.adev-avatar-gif    { width:100%; height:100%; object-fit:cover; }
.adev-avatar-glare  {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Status badge */
.adev-status {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,.9); border: 1px solid rgba(56,189,248,.3);
  backdrop-filter: blur(8px); border-radius: 999px;
  padding: 4px 14px; font-size: .78rem; color: #94a3b8;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.adev-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; animation: adevBlink 2s ease-in-out infinite;
}
@keyframes adevBlink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Skill bars */
.adev-skills { width: 100%; display: flex; flex-direction: column; gap: .9rem; }
.adev-skill-item { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: .75rem; }
.adev-skill-name { color: #94a3b8; font-size: .82rem; text-align: right; }
.adev-skill-bar  { height: 5px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.adev-skill-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 8px rgba(56,189,248,.5);
}
.adev-skill-pct { color: #38bdf8; font-size: .78rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ── RIGHT ── */
.adev-right { display: flex; flex-direction: column; gap: 1.5rem; }

.adev-tag-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.adev-chip {
  display: inline-flex; align-items: center; padding: 4px 14px;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.adev-chip-blue   { background:rgba(56,189,248,.12);  color:#38bdf8;  border:1px solid rgba(56,189,248,.25); }
.adev-chip-purple { background:rgba(168,85,247,.12); color:#c084fc; border:1px solid rgba(168,85,247,.25); }

.adev-name { line-height: 1.1; }
.adev-name-hi   { display: block; font-size: 1rem; color: #64748b; margin-bottom: .3rem; }
.adev-name-main {
  display: inline; font-size: clamp(3rem,6vw,4.5rem); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, #38bdf8 40%, #a855f7 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.adev-cursor { color: #38bdf8; animation: adevCursor 1s step-end infinite; font-size: clamp(3rem,6vw,4.5rem); }
@keyframes adevCursor { 0%,100%{opacity:1} 50%{opacity:0} }

.adev-bio { color: #94a3b8; font-size: 1.05rem; line-height: 1.8; max-width: 480px; }

/* Terminal */
.adev-terminal {
  background: #040d1a; border: 1px solid rgba(56,189,248,.18);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 0 30px rgba(56,189,248,.03);
}
.adev-term-bar {
  background: rgba(255,255,255,.04); padding: .6rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.adev-term-dot  { width:12px; height:12px; border-radius:50%; }
.adev-term-title{ color:#475569; font-size:.75rem; font-family:'JetBrains Mono',monospace; margin-right:auto; }
.adev-term-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.adev-term-line { font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: #94a3b8; display: flex; gap: .6rem; }
.adev-term-prompt { color: #38bdf8; }
.adev-term-cmd    { color: #e2e8f0; }
.adev-term-out    { padding-right: 1.1rem; }
.adev-term-key    { color: #a855f7; }
.adev-blink       { animation: adevCursor 1s step-end infinite; }

/* Stats */
.adev-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media(max-width:600px){ .adev-stats{ grid-template-columns:repeat(2,1fr); } }

.adev-stat {
  background: rgba(255,255,255,.03); border: 1px solid rgba(56,189,248,.1);
  border-radius: 12px; padding: 1rem .75rem; text-align: center;
  transition: all .3s;
}
.adev-stat:hover { background:rgba(56,189,248,.07); border-color:rgba(56,189,248,.25); transform:translateY(-4px); }
.adev-stat-num   { font-size: 1.8rem; font-weight: 900; color: #38bdf8; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.adev-stat-label { color: #64748b; font-size: .75rem; margin-top: .4rem; }

/* Tech pills */
.adev-tech-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.adev-tech {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1; padding: 5px 14px; border-radius: 8px; font-size: .82rem;
  transition: all .25s;
}
.adev-tech:hover { background:rgba(56,189,248,.1); border-color:rgba(56,189,248,.25); color:#38bdf8; }

/* CTA */
.adev-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.adev-btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white; padding: .75rem 1.75rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(14,165,233,.35); transition: all .3s;
  border: none; cursor: pointer;
}
.adev-btn-primary:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(14,165,233,.5); }
.adev-btn-outline {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: #94a3b8; padding: .75rem 1.75rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.12); transition: all .3s;
  cursor: pointer;
}
.adev-btn-outline:hover { background:rgba(255,255,255,.06); color:#e2e8f0; border-color:rgba(255,255,255,.25); transform:translateY(-3px); }

/* ══════════════════════════════
   PRIVACY
══════════════════════════════ */
.privacy-section { background-color:#0f172a; padding:5rem 2rem; max-width:1000px; margin:0 auto; }
.privacy-container { background-color:#1e293b; border-radius:.8rem; padding:3rem; box-shadow:0 0 15px rgba(0,0,0,.3); border:1px solid rgba(56,189,248,.3); }
.privacy-header { border-bottom:2px solid #38bdf8; padding-bottom:2rem; margin-bottom:2.5rem; }
.privacy-title  { color:#38bdf8; font-size:2.4rem; margin-bottom:1rem; display:flex; align-items:center; gap:1rem; }
.privacy-date   { color:#94a3b8; font-size:1.1rem; }
.privacy-content p { color:#cbd5e1; margin:1.5rem 0; line-height:1.8; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background-color: #1e293b;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

@media(max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-column h3 {
  color: #38bdf8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-column p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  color: #64748b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.copyright p {
  margin: 0;
}

.privacy-toggle {
  background: transparent;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-toggle:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.6);
}

/* ══════════════════════════════
   MODAL
══════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #38bdf8;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.modal-header h2 {
  color: #38bdf8;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
}

.modal-body {
  padding: 2rem 1.5rem;
}

.auth-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.auth-tab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.auth-tab:hover {
  color: #38bdf8;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.05);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-email {
  color: #cbd5e1;
  font-size: 0.9rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.25rem;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  color: #ff6b6b;
  transform: rotate(90deg);
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #cbd5e1;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
}

.login-visual {
  width: 100%;
  height: 150px;
  margin-bottom: 1.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.05));
  border-radius: 12px;
}

.tilt-wrap {
  perspective: 1000px;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0;
    padding: 0.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .modal-card {
    border-radius: 12px;
    max-width: 100%;
    width: 95%;
  }
}
