/* ===== CSS Variables ===== */
:root {
  --primary: #0C68E9;
  --primary-light: #6BB1F8;
  --primary-lighter: #CDE9FD;
  --primary-dark: #063BA7;
  --primary-darker: #021D6F;
  --secondary: #8E33FF;
  --secondary-light: #C684FF;
  --secondary-lighter: #EFD6FF;
  --secondary-dark: #5119B7;
  --success: #22C55E;
  --warning: #FFAB00;
  --info: #00B8D9;
  --error: #FF5630;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text: #1C252E;
  --text-muted: #637381;
  --border: #DFE3E8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(12, 104, 233, 0.08);
  --shadow-lg: 0 12px 48px rgba(12, 104, 233, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-block;
}

.navbar-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar-links a:hover { color: var(--primary); }
.navbar-links a:hover::after { width: 100%; }

.navbar-dashboard-btn {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 700;
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  transition: var(--transition);
}

.navbar-dashboard-btn::after { display: none !important; }

.navbar-dashboard-btn:hover {
  background: var(--primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(12, 104, 233, 0.3);
}

.navbar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  -webkit-text-fill-color: #fff !important;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(12, 104, 233, 0.3);
}

.navbar-cta::after { display: none !important; }

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(12, 104, 233, 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(12, 104, 233, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(142, 51, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 660px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(12, 104, 233, 0.35);
  font-family: 'Tajawal', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(12, 104, 233, 0.45);
}

.btn-primary svg { width: 20px; height: 20px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  font-family: 'Tajawal', sans-serif;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, var(--surface) 0%, #F0F4FF 100%);
  border-radius: 40px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--text);
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  padding: 56px 20px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phone-header {
  text-align: center;
  padding-bottom: 12px;
}

.phone-header .logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone-balance {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.phone-balance .label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.phone-balance .amount {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 4px 0;
}

.phone-balance .currency {
  font-size: 0.8rem;
  opacity: 0.7;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.phone-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  background: var(--primary-lighter);
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.phone-action-btn svg { width: 20px; height: 20px; }

.phone-transaction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #F8FAFF;
  border-radius: 10px;
  font-size: 0.72rem;
}

.phone-transaction .tx-amount {
  font-weight: 800;
  color: var(--success);
}

.phone-transaction .tx-amount.out { color: var(--warning); }

/* Floating decorations */
.hero-float {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
  filter: blur(1px);
  pointer-events: none;
}

.hero-float-1 {
  top: 18%;
  right: 8%;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
  animation-delay: 0s;
  border-radius: 24px;
  opacity: 0.5;
}

.hero-float-2 {
  bottom: 22%;
  left: 6%;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--secondary-lighter), var(--secondary-light));
  animation-delay: 2s;
}

.hero-float-3 {
  top: 35%;
  left: 12%;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(34,197,94,0.5));
  animation-delay: 4s;
}

.hero-float-4 {
  top: 12%;
  left: 18%;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
  animation-delay: 1s;
  opacity: 0.35;
}

.hero-float-5 {
  bottom: 30%;
  right: 12%;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--secondary-lighter), var(--secondary));
  animation-delay: 3s;
  border-radius: 16px;
  opacity: 0.4;
}

.hero-float-6 {
  bottom: 12%;
  left: 22%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  animation-delay: 5s;
  opacity: 0.3;
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  padding: 6px 18px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.about-content h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.9;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-highlight-icon svg { width: 22px; height: 22px; }

.about-highlight-icon.blue { background: var(--primary-lighter); color: var(--primary); }
.about-highlight-icon.purple { background: var(--secondary-lighter); color: var(--secondary); }
.about-highlight-icon.green { background: #D3FCD2; color: var(--success); }

.about-highlight span { font-weight: 600; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-stat .stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-icon svg { width: 28px; height: 28px; }

.service-icon.blue { background: var(--primary-lighter); color: var(--primary); }
.service-icon.purple { background: var(--secondary-lighter); color: var(--secondary); }
.service-icon.green { background: #D3FCD2; color: var(--success); }
.service-icon.orange { background: #FFF5CC; color: #B76E00; }

.service-card:hover .service-icon { transform: scale(1.1); }

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-section { background: var(--surface); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(12, 104, 233, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-icon svg { width: 14px; height: 14px; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-info h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.contact-info > p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item-text .label { font-size: 0.82rem; color: var(--text-muted); }
.contact-item-text .value { font-weight: 700; }

.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 104, 233, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content { max-width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
    .mobile-toggle { display: flex; }
      .navbar-links { 
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .navbar-links.active { display: flex; }

}

@media (max-width: 768px) {

  .hero-title { font-size: 2.2rem; }
  .hero-phone { width: 220px; height: 440px; }
  .phone-balance .amount { font-size: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .section { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
}
