/* ============================================================
   THALATH MEMAT DIGITAL — Main Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Arabic:wght@300;400;500;700;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --primary:       #00B4D8;
  --primary-dark:  #0077B6;
  --primary-light: #90E0EF;
  --accent:        #F72585;
  --accent2:       #7B2FBE;
  --gold:          #FFD700;

  /* Light theme */
  --bg:            #F0F4F8;
  --bg2:           #FFFFFF;
  --bg3:           #E2EAF0;
  --text:          #0D1B2A;
  --text2:         #3A4A5C;
  --text3:         #6B7F93;
  --border:        rgba(0,0,0,0.08);
  --shadow:        0 4px 24px rgba(0,100,180,0.10);
  --card-bg:       rgba(255,255,255,0.85);
  --navbar-bg:     rgba(240,244,248,0.92);
  --glass:         rgba(255,255,255,0.6);
  --glass-border:  rgba(255,255,255,0.8);

  --radius:        14px;
  --radius-lg:     22px;
  --transition:    0.35s cubic-bezier(.4,0,.2,1);
  --font-main:     'Inter', 'Noto Sans Arabic', sans-serif;
}

[data-theme="dark"] {
  --bg:            #05080F;
  --bg2:           #0D1421;
  --bg3:           #111827;
  --text:          #E8F4FD;
  --text2:         #A8BED4;
  --text3:         #5A7A94;
  --border:        rgba(255,255,255,0.07);
  --shadow:        0 4px 32px rgba(0,180,216,0.12);
  --card-bg:       rgba(13,20,33,0.85);
  --navbar-bg:     rgba(5,8,15,0.92);
  --glass:         rgba(13,20,33,0.6);
  --glass-border:  rgba(0,180,216,0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  line-height: 1.6;
}

body[dir="rtl"] { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }

::selection { background: var(--primary); color: #fff; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; display: block; }

/* ── CERTIVARA Brand Name Component ── */
.cert-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  white-space: nowrap;
}
.cert-c, .cert-rt {
  color: #B8901D;
  text-shadow: 0 2px 3px rgba(0,0,0,0.55);
}
.cert-vara {
  color: #F9E086;
  text-shadow: 0 2px 3px rgba(0,0,0,0.45);
}
/* Three horizontal dashes replacing Ξ */
.cert-xi {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  height: 0.74em;
  width: 0.46em;
  margin: 0 0.035em 0 0.035em;
  vertical-align: baseline;
  position: relative;
  top: -0.05em;
}
.cert-xi span {
  display: block;
  width: 100%;
  height: 21%;
  background: #B8901D;
  border-radius: 999px;
  box-shadow: 0 2px 2px rgba(0,0,0,0.5);
}
/* Three vertical dots replacing ⋮ */
.cert-dots {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  height: 0.74em;
  width: 0.21em;
  margin: 0 0.055em 0 0.035em;
  vertical-align: baseline;
  position: relative;
  top: -0.05em;
}
.cert-dots span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #B8901D;
  border-radius: 50%;
  box-shadow: 0 2px 2px rgba(0,0,0,0.5);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; outline: none;
  transition: all var(--transition); text-decoration: none;
  position: relative; overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0; transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.5);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(247,37,133,0.30);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247,37,133,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: transparent; transform: translateY(-2px); }

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Section headers ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 16px; border-radius: 50px;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text2);
  max-width: 560px; line-height: 1.7;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  height: 72px;
}
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
  height: 64px;
}

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

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.15rem;
  color: var(--text); text-decoration: none;
}
.nav-logo img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.65rem; font-weight: 500; color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text2);
  padding: 8px 14px; border-radius: 8px;
  transition: all var(--transition); text-decoration: none;
}
.nav-links a:hover { color: var(--primary); background: rgba(0,180,216,0.08); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--primary); background: rgba(0,180,216,0.08); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px);
  right: 0; min-width: 200px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  cursor: pointer; font-size: 0.88rem;
  transition: background var(--transition); color: var(--text);
}
.lang-option:hover { background: rgba(0,180,216,0.10); color: var(--primary); }
.lang-option.active { background: rgba(0,180,216,0.15); color: var(--primary); font-weight: 600; }
.lang-flag { font-size: 1.2em; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  font-size: 1.15rem; color: var(--text);
}
.theme-toggle:hover { background: rgba(0,180,216,0.12); border-color: var(--primary); transform: rotate(20deg); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: all var(--transition);
}
.hamburger span {
  width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: slideDown 0.3s ease;
}
.nav-mobile.open { display: block; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile ul a { display: block; padding: 12px 16px; border-radius: 10px; color: var(--text); font-weight: 500; }
.nav-mobile ul a:hover { background: rgba(0,180,216,0.08); color: var(--primary); }

/* ── Telegram button ── */
.btn-telegram {
  background: linear-gradient(135deg, #229ED9, #1a7eb8);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,158,217,0.35);
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,158,217,0.5); color: #fff; }

/* ── Hero logo image ── */
.hero-logo-image {
  width: 260px; height: 260px;
  border-radius: 36px;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(0,180,216,0.25));
  animation: phoneBob 6s ease-in-out infinite;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { 0%{transform:translate(0,0)} 100%{transform:translate(60px,60px)} }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: glowPulse 8s ease-in-out infinite alternate;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent2), transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: 3s;
}
.hero-glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: 40%; left: 40%;
  opacity: 0.15;
  animation-delay: 1.5s;
}
@keyframes glowPulse { 0%{opacity:0.2;transform:scale(1);} 100%{opacity:0.4;transform:scale(1.1);} }

/* Floating particles */
.particles-container {
  position: absolute; inset: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  background: var(--primary); opacity: 0.4;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity:0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-20px) rotate(720deg); opacity:0; }
}

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}

.hero-text {}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 16px; border-radius: 50px;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.25);
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity:1; box-shadow: 0 0 0 0 rgba(0,180,216,0.4); }
  50%     { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(0,180,216,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 20px; letter-spacing: -0.03em;
  animation: fadeInUp 0.9s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem; color: var(--text2);
  line-height: 1.75; margin-bottom: 36px;
  max-width: 480px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: fadeInUp 0.9s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero visual */
.hero-visual {
  position: relative; display: flex; justify-content: center;
  animation: fadeInRight 1s ease 0.2s both;
}
.hero-phone-mockup {
  width: 300px;
  background: linear-gradient(145deg, var(--bg2), var(--bg3));
  border-radius: 40px; padding: 20px 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25),
              0 0 0 1px var(--border),
              inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative; z-index: 2;
  animation: phoneBob 6s ease-in-out infinite;
}
@keyframes phoneBob { 0%,100%{transform:translateY(0) rotate(-2deg);} 50%{transform:translateY(-15px) rotate(2deg);} }

.phone-screen {
  width: 100%; aspect-ratio: 9/18;
  border-radius: 28px; overflow: hidden;
  background: var(--bg);
}
.phone-screen img { width:100%; height:100%; object-fit:cover; }

.hero-floating-card {
  position: absolute;
  background: var(--card-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  animation: cardFloat 5s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes cardFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.hero-floating-card.card-1 { top: 5%; right: -20px; animation-delay: 0s; }
.hero-floating-card.card-2 { bottom: 20%; left: -20px; animation-delay: 2s; }
.hero-floating-card.card-3 { top: 45%; right: -30px; animation-delay: 1s; }

.fc-icon { font-size: 1.4rem; }
.fc-info { line-height: 1.2; }
.fc-info small { font-size: 0.72rem; color: var(--text3); font-weight: 400; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: fadeInUp 1s ease 1s both;
  cursor: pointer;
}
.scroll-indicator span { font-size: 0.72rem; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; }
.scroll-arrow { width: 22px; height: 22px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); animation: arrowBounce 1.5s ease infinite; }
@keyframes arrowBounce { 0%,100%{transform:rotate(45deg) translateY(0);} 50%{transform:rotate(45deg) translateY(4px);} }

/* ── FEATURED APP ── */
#featured-app {
  padding: 100px 0;
  position: relative; overflow: hidden;
}
.featured-bg-blob {
  position: absolute; width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.06), transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.featured-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.featured-badge-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
}
.featured-app-name {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em;
}
.featured-app-tagline {
  font-size: 1.1rem; color: var(--text2); margin-bottom: 28px; line-height: 1.7;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(0,180,216,0.3);
}
.feature-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.feature-text span { font-size: 0.85rem; color: var(--text3); }

.featured-app-visual {
  position: relative; display: flex; justify-content: center;
}
.app-showcase {
  position: relative; z-index: 2;
  width: 240px;
  border-radius: 36px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25), 0 0 0 1px var(--border);
  animation: showcaseBob 7s ease-in-out infinite;
}
@keyframes showcaseBob { 0%,100%{transform:translateY(0) rotate(2deg);} 50%{transform:translateY(-12px) rotate(-1deg);} }
.app-showcase img { width:100%; display:block; }

.app-glow-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(0,180,216,0.2);
  animation: ringPulse 3s ease-in-out infinite;
}
.app-glow-ring::before {
  content:''; position:absolute; inset:20px; border-radius:50%;
  border: 1px solid rgba(0,180,216,0.1);
  animation: ringPulse 3s ease-in-out 1s infinite;
}
@keyframes ringPulse { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:0.6;} 50%{transform:translate(-50%,-50%) scale(1.05);opacity:1;} }

.app-stat-pill {
  position: absolute; background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50px; padding: 10px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.85rem;
  animation: cardFloat 5s ease-in-out infinite;
}
.app-stat-pill.pill-1 { top: 10%; right: -10px; animation-delay: 0s; }
.app-stat-pill.pill-2 { bottom: 15%; left: -10px; animation-delay: 2s; }
.asp-icon { font-size: 1.5rem; }
.asp-val { font-size: 1.1rem; font-weight: 800; }
.asp-label { font-size: 0.72rem; color: var(--text3); }

/* ── APPS GRID ── */
#apps {
  padding: 100px 0;
  background: var(--bg2);
}

.apps-header { text-align: center; margin-bottom: 60px; }
.apps-header .section-subtitle { margin: 0 auto; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px var(--primary);
  border-color: rgba(0,180,216,0.4);
}
.app-card.featured {
  border-color: rgba(247,37,133,0.3);
  background: linear-gradient(145deg, var(--card-bg), rgba(247,37,133,0.03));
}
.app-card.featured:hover { border-color: var(--accent); box-shadow: 0 20px 60px rgba(247,37,133,0.15); }

.app-card-img {
  width: 100%; height: 200px; overflow: hidden;
  position: relative; background: var(--bg3);
}
.app-card-img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}
.app-card:hover .app-card-img img { transform: scale(1.05); }

.app-card-badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 50px;
}
.badge-live { background: rgba(0,210,100,0.15); color: #00D464; border: 1px solid rgba(0,210,100,0.3); }
.badge-soon { background: rgba(247,37,133,0.15); color: var(--accent); border: 1px solid rgba(247,37,133,0.3); }
.badge-web { background: rgba(0,180,216,0.15); color: var(--primary); border: 1px solid rgba(0,180,216,0.3); }
.badge-featured { background: linear-gradient(135deg, var(--accent), var(--accent2)); color:#fff; }

.app-card-body { padding: 22px; }
.app-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.app-card-desc { font-size: 0.87rem; color: var(--text2); line-height: 1.6; margin-bottom: 18px; }

.app-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 50px; background: rgba(0,180,216,0.08);
  color: var(--primary); border: 1px solid rgba(0,180,216,0.15);
}

.app-card-footer {
  display: flex; gap: 10px; align-items: center;
}

/* ── CERTIVARA EXAM PORTAL ── */
#exam-portal {
  padding: 100px 0;
  position: relative; overflow: hidden;
}
.exam-portal-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,216,0.03) 0%, rgba(123,47,190,0.03) 50%, rgba(247,37,133,0.03) 100%);
}
.exam-portal-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,180,216,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

.exam-portal-inner {
  position: relative; z-index: 1;
}
.exam-portal-header { text-align: center; margin-bottom: 60px; }

.exam-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-bottom: 60px;
}
.exam-feature-card {
  text-align: center; padding: 28px 20px;
  background: var(--card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.exam-feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(0,180,216,0.3); }
.efc-icon { font-size: 2.5rem; margin-bottom: 14px; }
.efc-title { font-weight: 700; margin-bottom: 6px; }
.efc-desc { font-size: 0.85rem; color: var(--text3); line-height: 1.5; }

/* Activation box */
.activation-box {
  max-width: 560px; margin: 0 auto;
  background: var(--card-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: relative; overflow: hidden;
}
.activation-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent2), var(--accent));
}
.activation-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; text-align: center; }
.activation-sub { font-size: 0.9rem; color: var(--text3); text-align: center; margin-bottom: 28px; line-height: 1.6; }

.code-input-wrap {
  position: relative; margin-bottom: 16px;
}
.code-input {
  width: 100%; padding: 16px 20px;
  font-size: 1.1rem; font-weight: 600; letter-spacing: 0.1em;
  text-align: center; text-transform: uppercase;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: all var(--transition); font-family: 'Courier New', monospace;
}
.code-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,180,216,0.12); }
.code-input::placeholder { letter-spacing: 0.06em; font-weight: 400; color: var(--text3); }

.activation-notes {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.activation-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text3);
}
.activation-note i { color: var(--primary); font-size: 0.9rem; }

/* ── CONTACT ── */
#contact { padding: 100px 0; background: var(--bg2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--border);
  margin-bottom: 16px; transition: all var(--transition);
}
.contact-info-card:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: rgba(0,180,216,0.3); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(0,180,216,0.15), rgba(0,180,216,0.05));
  border: 1px solid rgba(0,180,216,0.2);
  color: var(--primary);
}
.contact-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 4px; }
.contact-value { font-weight: 600; color: var(--text); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text2); }
.form-control {
  padding: 14px 18px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 0.95rem; font-family: var(--font-main);
  transition: all var(--transition);
  resize: vertical;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,180,216,0.1); }
.form-control::placeholder { color: var(--text3); }
textarea.form-control { min-height: 140px; }

/* ── FOOTER ── */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; color: var(--text); margin-bottom: 14px;
}
.footer-logo img { width: 38px; height: 38px; border-radius: 8px; }
.footer-tagline { font-size: 0.87rem; color: var(--text3); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.95rem;
  transition: all var(--transition); text-decoration: none;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }

.footer-col h4 { font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; color: var(--text); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.87rem; color: var(--text3); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--text3); }
.footer-copy a { color: var(--primary); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: var(--text3); transition: color var(--transition); }
.footer-legal a:hover { color: var(--primary); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* AOS-like scroll animations */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos="fade-up"]    { transform: translateY(30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="zoom-in"]    { transform: scale(0.92); }
[data-aos].aos-animate  { opacity: 1 !important; transform: none !important; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px; border-radius: 12px; min-width: 260px;
  background: var(--bg2); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 12px;
  animation: toastIn 0.3s ease both;
  font-size: 0.9rem; font-weight: 500;
}
@keyframes toastIn { from{opacity:0;transform:translateX(20px);} to{opacity:1;transform:translateX(0);} }
.toast.success { border-color: rgba(0,210,100,0.3); }
.toast.error   { border-color: rgba(247,37,133,0.3); }
.toast-icon    { font-size: 1.2rem; }

/* ── LOADER ── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-size: 3rem; margin-bottom: 20px; animation: logoSpin 2s ease-in-out infinite; }
@keyframes logoSpin { 0%,100%{transform:scale(1);} 50%{transform:scale(1.1);} }
.loader-bar { width: 200px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; animation: loaderFill 1.5s ease-in-out infinite; }
@keyframes loaderFill { 0%{width:0;} 50%{width:100%;} 100%{width:0;} }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-app-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-floating-card { display: none; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .activation-box { padding: 28px 20px; }
  .apps-grid { grid-template-columns: 1fr; }
}

/* ── RTL Support ── */
[dir="rtl"] .feature-list li:hover { transform: translateX(-6px); }
[dir="rtl"] .contact-info-card:hover { transform: translateX(-6px); }
[dir="rtl"] [data-aos="fade-left"] { transform: translateX(-30px); }
[dir="rtl"] [data-aos="fade-right"] { transform: translateX(30px); }
[dir="rtl"] .hero-floating-card.card-1 { right: auto; left: -20px; }
[dir="rtl"] .hero-floating-card.card-2 { left: auto; right: -20px; }
[dir="rtl"] .toast-container { right: auto; left: 24px; }
