@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary: #D32F2F;
  --primary-light: #E53935;
  --primary-dark: #B71C1C;
  --bg-start: #0F172A;
  --bg-end: #020617;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--text-primary);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.8;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-start);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.nav-logo img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-links a.active {
  background: var(--primary);
  color: white;
}

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

.nav-toggle span {
  width: 28px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image .phone-frame {
  width: 320px;
  height: 640px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(211, 47, 47, 0.05);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top, rgba(211, 47, 47, 0.08), transparent 70%);
  pointer-events: none;
}

.phone-frame img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.phone-frame h3 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 8px;
}

.phone-frame p {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 35px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(211, 47, 47, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), transparent);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 8px;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  text-align: center;
}

.download-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-section p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
}

.download-btn.google-play {
  background: white;
  color: #0F172A;
}

.download-btn.google-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-btn.app-store {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.download-btn.app-store:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 35px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.contact-card .country-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  padding-right: 8px;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(211, 47, 47, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item .info {
  flex: 1;
}

.contact-item .info .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-item .info .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  direction: ltr;
  text-align: right;
}

.contact-item .info .value a {
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-item .info .value a:hover {
  color: var(--primary-light);
}

/* ===== SOCIAL MEDIA ===== */
.social-section {
  text-align: center;
  padding: 60px 0;
}

.social-section h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
}

.social-link:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

.social-link.whatsapp:hover { background: #25D366; border-color: #25D366; color: white; }
.social-link.facebook:hover { background: #1877F2; border-color: #1877F2; color: white; }
.social-link.telegram:hover { background: #0088CC; border-color: #0088CC; color: white; }
.social-link.instagram:hover { background: #E4405F; border-color: #E4405F; color: white; }
.social-link.email:hover { background: var(--primary); border-color: var(--primary); color: white; }
.social-link.phone:hover { background: #4CAF50; border-color: #4CAF50; color: white; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
}

.page-header h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CONTENT PAGE (privacy, terms, about) ===== */
.content-page {
  padding: 0 0 100px;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 50px;
}

.content-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 20px;
  color: var(--primary-light);
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 15px;
  color: var(--text-primary);
}

.content-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
}

.content-card ul,
.content-card ol {
  margin: 0 20px 20px 0;
  color: var(--text-secondary);
}

.content-card li {
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 16px;
}

.content-card strong {
  color: var(--text-primary);
}

.warning-box {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.15), rgba(211, 47, 47, 0.05));
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 25px 30px;
  margin: 25px 0;
}

.warning-box h4 {
  color: var(--primary-light);
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 15px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-right: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom .brand {
  color: var(--primary-light);
  font-weight: 700;
}

/* ===== PAGE LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-start);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--card-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  z-index: 999;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.5);
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TEAM / DEVELOPER ===== */
.dev-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  transition: var(--transition);
}

.dev-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.dev-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  color: white;
}

.dev-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.dev-card .role {
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 15px;
}

.dev-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ===== DELETE ACCOUNT PAGE ===== */
.delete-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.delete-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
}

.delete-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.delete-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.delete-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.delete-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image .phone-frame {
    width: 260px;
    height: 520px;
  }

  .delete-options {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 8px;
    transition: var(--transition);
    border-right: 1px solid var(--card-border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    font-size: 17px;
    padding: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 26px;
  }

  .content-card {
    padding: 20px;
  }

  .hero-image .phone-frame {
    width: 220px;
    height: 440px;
    padding: 20px;
  }

  .phone-frame img {
    width: 70px;
    height: 70px;
  }
}
