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

:root {
  --islamic-green: #00A86B;
  --islamic-gold: #D4AF37;
  --dark-bg: #0a0a0f;
  --darker-bg: #050507;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark-bg);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #00c77b;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #00A86B 0%, #00c77b 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #f5d77a 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 168, 107, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 168, 107, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
}

/* Stars effect */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff20, transparent),
    radial-gradient(2px 2px at 40px 70px, #ffffff15, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffffff20, transparent),
    radial-gradient(2px 2px at 160px 120px, #ffffff15, transparent),
    radial-gradient(1px 1px at 230px 80px, #ffffff10, transparent),
    radial-gradient(2px 2px at 300px 150px, #ffffff15, transparent),
    radial-gradient(1px 1px at 370px 50px, #ffffff20, transparent),
    radial-gradient(2px 2px at 450px 180px, #ffffff10, transparent);
  background-repeat: repeat;
  background-size: 500px 200px;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Button styles */
.btn-primary {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #00A86B 0%, #00c77b 100%);
  box-shadow: 0 4px 20px rgba(0, 168, 107, 0.4);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 168, 107, 0.6);
}

.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--islamic-green);
  color: var(--islamic-green);
}

/* Card styles */
.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  transition: all 0.5s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 168, 107, 0.5);
  box-shadow: 0 20px 60px rgba(0, 168, 107, 0.2);
}

/* Glow effects */
.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
}

/* Islamic geometric pattern overlay */
.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* Arabic text styling */
.arabic-text {
  font-family: 'Amiri', serif;
  direction: rtl;
  line-height: 2;
}

/* Hero image */
.hero-image {
  max-width:90%;
  height: auto;
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  padding: 1rem 1.5rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: bold;
}

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

.nav-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: white;
}

.nav-download-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

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

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #00A86B;
  border-radius: 50%;
}

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

.hero-description {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button-text {
  text-align: left;
}

.button-small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.button-large {
  font-weight: 600;
  font-size: 1rem;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

.stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.avatars {
  display: flex;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
  border: 2px solid #0a0a0f;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(58, 113, 45);
  font-weight: 600;
  font-size: 1rem;
}

.avatar:first-child {
  margin-left: 0;
}

.stars-rating {
  display: flex;
  color: #D4AF37;
}

.star-icon {
  width: 20px;
  height: 20px;
}

.stats-text {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 4px;
}

.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-inner {
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.phone-moon {
  color: #D4AF37;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.phone-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.phone-time {
  font-size: 2rem;
  font-weight: bold;
}

.phone-subtext {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 4px;
}

.phone-card {
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.phone-card-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.phone-arabic {
  font-size: 1.25rem;
  text-align: center;
  color: #D4AF37;
}

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

.phone-prayer-item {
  padding: 12px;
  border-radius: 12px;
}

.phone-prayer-name {
  font-size: 0.75rem;
  color: #9ca3af;
}

.phone-prayer-time {
  font-weight: 600;
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #9ca3af;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.chevron-down {
  width: 24px;
  height: 24px;
}

/* Section */
.section {
  padding: 8rem 1.5rem;
  position: relative;
}

.section-content {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  color: #9ca3af;
  line-height: 1.6;
}

/* Languages Grid */
.languages-container {
  margin-bottom: 2rem;
}

.languages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
}

.lang-item:hover {
  transform: scale(1.15) translateY(-5px);
}

.lang-placeholder {
  display: none;
}

.lang-flag {
  font-size: 2rem;
}

.lang-name {
  font-size: 0.75rem;
  color: #9ca3af;
}

.stats-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.stats-row {
  display: flex;
  gap: 1rem;
}

.stat-box {
  flex: 1;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  text-align: center;
  min-width: 140px;
  overflow: visible;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: visible;
  word-break: keep-all;
}

.stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* Download Section */
.download-section {
  text-align: center;
  padding: 8rem 1.5rem;
  position: relative;
}

.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 168, 107, 0.05), transparent);
}

.download-content {
  position: relative;
}

.download-logo {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, #00A86B 0%, #00c77b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 0 40px rgba(0, 168, 107, 0.4);
  overflow: hidden;
}

.download-logo img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Animations */
.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Intersection Observer for scroll animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-row {
    flex-wrap: wrap;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .phone-mockup {
    width: 240px;
    height: 500px;
  }
}

/* Contact Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 26, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
  z-index: 1001;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotate(90deg);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.2) 0%, rgba(0, 168, 107, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00A86B;
}

.modal-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.modal-description {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #00A86B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #00c77b;
}

.copy-email-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00A86B 0%, #00c77b 100%);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.copy-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.4);
}

.copy-email-btn:active {
  transform: translateY(0);
}

.modal-success {
  display: none;
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.2) 0%, rgba(0, 168, 107, 0.1) 100%);
  border: 1px solid rgba(0, 168, 107, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #00A86B;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.modal-success.show {
  display: block;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-email {
    flex-direction: column;
    gap: 1rem;
  }
  
  .email-link {
    font-size: 1rem;
  }
}

