﻿/* ===================================================
   Muzakraty - Common Styles
   Shared across all pages
   =================================================== */

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

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

:root {
  --deep-blue: #1A237E;
  --light-blue: #3949AB;
  --accent-teal: #00BFA5;
  --bg-dark: #0A0E27;
  --bg-card: rgba(26, 35, 126, 0.15);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --glow-blue: rgba(57, 73, 171, 0.5);
  --glow-teal: rgba(0, 191, 165, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
}

/* Prevent horizontal overflow on all elements */
html, body {
  overflow-x: hidden;
  position: relative;
}

/* Ensure text doesn't overflow */
h1, h2, h3, h4, h5, h6, p, span, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure images don't overflow */
img, svg {
  max-width: 100%;
  height: auto;
}

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

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

.section-padding {
  padding: 120px 0;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px;
  font-weight: 400;
}

/* ===== FLOATING ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.orb-1 { width: 500px; height: 500px; background: var(--deep-blue); top: -150px; right: -200px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-teal); bottom: -100px; left: -150px; opacity: 0.15; }
.orb-3 { width: 350px; height: 350px; background: var(--light-blue); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.1; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
  width: 100%;
  max-width: 100vw;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-brand span {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: width 0.3s;
}

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

.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent-teal), #00897B);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--glow-teal);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-teal);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== DOWNLOAD BUTTONS (shared) ===== */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-download:hover::before { opacity: 1; }

.btn-android {
  background: linear-gradient(135deg, var(--accent-teal), #00897B);
  color: #fff;
  box-shadow: 0 8px 32px var(--glow-teal);
}

.btn-android:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px var(--glow-teal);
}

.btn-ios {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-ios:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(57, 73, 171, 0.3);
}

.btn-download svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-glass);
  margin-top: 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--text-secondary);
}

.footer-socials a:hover {
  background: rgba(0, 191, 165, 0.15);
  border-color: rgba(0, 191, 165, 0.3);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== COMMON RESPONSIVE ===== */

/* Large screens (1200px and up) */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

@media (min-width: 1600px) {
  .container { max-width: 1480px; }
  html { font-size: 18px; }
}

@media (min-width: 1920px) {
  .container { max-width: 1720px; }
  html { font-size: 20px; }
}

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .container { max-width: 960px; }
  .section-padding { padding: 80px 0; }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 40px; }

  .nav-links { 
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1001; }

  .nav-brand img { width: 36px; height: 36px; }
  .nav-brand span { font-size: 1.2rem; }
  
  .footer { padding: 32px 0 24px; }
  .footer-content { flex-direction: column; text-align: center; justify-content: center; gap: 16px; }
  .footer-brand { justify-content: center; }
  .footer-brand img { width: 28px; height: 28px; }
  .footer-brand span { font-size: 1rem; }
  .footer-copy { font-size: 0.8rem; }
  .footer-socials { justify-content: center; }
  .footer-socials a { width: 36px; height: 36px; }
  
  /* Orbs adjustment for mobile */
  .orb-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
  .orb-2 { width: 250px; height: 250px; bottom: -50px; left: -80px; }
  .orb-3 { width: 200px; height: 200px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; width: 100%; max-width: 100%; }
  .section-padding { padding: 50px 0; overflow: hidden; }
  .section-title { font-size: 1.5rem; word-wrap: break-word; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 30px; padding: 0 8px; }
  .btn-download { padding: 12px 18px; font-size: 0.85rem; max-width: 100%; }
  .btn-download svg { width: 18px; height: 18px; }
}

/* Extra small mobile */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .container { padding: 0 12px; width: 100%; }
  .section-title { font-size: 1.3rem; word-wrap: break-word; }
  .section-subtitle { font-size: 0.85rem; padding: 0 4px; }
  .btn-download { padding: 10px 14px; font-size: 0.8rem; max-width: 100%; }
}

/* Foldable and very small screens */
@media (max-width: 320px) {
  html { font-size: 13px; }
  .section-padding { padding: 40px 0; }
}

