@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
  --primary-bg: #0D1B2A;
  --secondary-bg: #1A2332;
  --primary-teal: #00897B;
  --light-teal: #4DB6AC;
  --dark-teal: #00695C;
  --gold-amber: #FFC107;
  --white-text: #FFFFFF;
  --grey-text: #9E9E9E;
  --card-border: #2A3A4A;
  --hero-gradient: linear-gradient(135deg, #0D1B2A 0%, #1A3A4A 50%, #0D2B2B 100%);
  --download-gradient: linear-gradient(135deg, #00897B 0%, #00695C 100%);
}

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

.material-symbols-rounded {
  color: var(--primary-teal);
  font-size: inherit;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--primary-teal) var(--secondary-bg);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-bg);
  color: var(--white-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--white-text);
  letter-spacing: -0.5px;
}

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

.arabic-text {
  font-family: 'Amiri', serif;
  color: var(--gold-amber);
  direction: rtl;
}

/* Base Components */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--grey-text);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Section 1 - Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--white-text);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--light-teal);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white-text);
  font-size: 1.5rem;
}

/* Section 2 - Hero Section */
.hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for navbar */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 0 0 60%;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 137, 123, 0.2);
  color: var(--light-teal);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 137, 123, 0.3);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--primary-teal);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-desc {
  color: var(--grey-text);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--gold-amber);
  color: var(--primary-bg);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,193,7,0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--light-teal);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--light-teal);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  background: var(--light-teal);
  color: var(--white-text);
}

.hero-meta {
  color: var(--grey-text);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.stars {
  color: var(--gold-amber);
  font-size: 1.2rem;
}

.hero-mockup {
  flex: 0 0 40%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: var(--primary-teal);
  filter: blur(100px);
  opacity: 0.3;
  z-index: 0;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 600px;
  background-color: var(--primary-bg);
  border: 12px solid #222;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  z-index: 1;
  animation: float 3s ease-in-out infinite alternate;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: #222;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section 3 - Stats Bar */
.stats-section {
  padding: 0;
}

.stats-bar {
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--primary-teal);
  border-bottom: 1px solid var(--primary-teal);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--grey-text);
}

/* Section 4 - Features */
.features-section {
  padding: 8rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 137, 123, 0.2);
  border-color: var(--primary-teal);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 137, 123, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary-teal);
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--grey-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Section 5 - Screenshots */
.screenshots-section {
  padding: 6rem 0;
  background-color: var(--secondary-bg);
}

.screenshots-wrapper {
  position: relative;
  max-width: 100vw;
  overflow: hidden;
  padding: 2rem 0;
}

.screenshots-scroll {
  display: flex;
  gap: 2rem;
  padding: 0 5vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.screenshots-scroll::-webkit-scrollbar { 
  display: none;  /* Safari and Chrome */
}

.screenshot-item {
  scroll-snap-align: center;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.screenshot-frame {
  width: 100%;
  height: 580px;
  background-color: var(--primary-bg);
  border: 10px solid #222;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-caption {
  color: var(--light-teal);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

/* Section 6 - Download */
.download-section {
  padding: 8rem 0;
  background: var(--download-gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(var(--white-text) 1px, transparent 1px);
  background-size: 30px 30px;
}

.download-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.download-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.download-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.download-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.download-feature-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  backdrop-filter: blur(5px);
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.download-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.playstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 24px;
  border-radius: 12px;
  color: var(--grey-text);
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.playstore-badge img {
  height: 24px;
  opacity: 0.6;
}

/* Section 7 - Permissions */
.permissions-section {
  padding: 8rem 0;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.permission-card {
  background: var(--secondary-bg);
  border-left: 4px solid var(--primary-teal);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 20px;
}

.permission-icon {
  font-size: 2rem;
}

.permission-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--white-text);
}

.permission-desc {
  color: var(--grey-text);
  font-size: 0.9rem;
}

/* Section 8 - Privacy Policy */
.privacy-section {
  padding: 6rem 0 8rem;
  background-color: var(--secondary-bg);
}

.privacy-card {
  background: var(--primary-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-date {
  color: var(--light-teal);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.privacy-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  color: var(--white-text);
}

.privacy-content p {
  color: var(--grey-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Section 9 - Footer */
.footer {
  background-color: var(--primary-bg);
  border-top: 2px solid var(--primary-teal);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.footer-logo img {
  height: 32px;
}

.footer-tagline {
  color: var(--grey-text);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--white-text);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a, .footer-col span {
  color: var(--grey-text);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--light-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--grey-text);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 4rem;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-rating {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

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

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

@media (max-width: 768px) {
  /* Global adjustments for mobile */
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .features-section, .download-section, .permissions-section, .privacy-section { padding: 4rem 0; }
  
  /* Navbar */
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-bg);
    flex-direction: column;
    padding-top: 2rem;
    transition: left 0.3s ease;
    align-items: center;
    gap: 2.5rem;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.25rem;
    padding: 10px;
  }
  
  .hamburger {
    display: block;
    padding: 10px;
  }
  
  /* Hero section */
  .hero {
    min-height: auto;
    padding: 100px 0 3rem;
  }
  
  .hero-container { gap: 2.5rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.3rem; }
  .hero-desc { font-size: 1rem; line-height: 1.6; }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
  
  /* Phone Mockup */
  .phone-frame {
    width: 250px;
    height: 500px;
    border-width: 10px;
    border-radius: 32px;
  }
  
  .phone-notch {
    width: 100px;
    height: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  
  .stat-icon { font-size: 1.8rem; }
  .stat-title { font-size: 1.05rem; }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  /* Screenshots */
  .screenshots-section { padding: 4rem 0; }
  .screenshots-scroll { padding: 0 20px; gap: 1rem; }
  .screenshot-item { flex: 0 0 240px; }
  
  .screenshot-frame {
    height: 496px;
    border-width: 8px;
    border-radius: 28px;
  }
  
  /* Download Section */
  .download-title { font-size: 2.2rem; }
  .download-icon { font-size: 3rem; margin-bottom: 1rem; }
  .download-subtitle { font-size: 1.1rem; }
  
  .download-features {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 0 20px;
  }
  
  .download-feature-badge {
    text-align: center;
    padding: 12px;
  }
  
  .download-action .btn-primary {
    font-size: 1.1rem !important;
    padding: 16px 20px !important;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 28px;
  }
  
  .screenshot-item { flex: 0 0 220px; }
  .screenshot-frame { height: 454px; }
  
  .hero-title { font-size: 2.2rem; }
}
