:root {
  --emerald: #0A3D36;
  --emerald-dark: #05201C;
  --emerald-light: #125C52;
  --gold: #C5A059;
  --gold-soft: #D4AF37;
  --ivory: #F9F7F2;
  --text-main: #2D3436;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow-premium: 0 20px 40px rgba(0,0,0,0.05);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-color: var(--ivory);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

.text-emerald {
  color: var(--emerald);
}

.text-gold {
  color: var(--gold);
}

.bg-ivory {
  background-color: var(--ivory);
}

.bg-emerald {
  background-color: var(--emerald);
}

.bg-dark-emerald {
  background-color: var(--emerald-dark);
}

/* Buttons */

.btn-emerald {
  background-color: var(--emerald);
  color: white;
  border: none;
  transition: var(--transition-smooth);
}

.btn-emerald:hover {
  background-color: var(--emerald-light);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-emerald {
  border: 2px solid var(--emerald);
  color: var(--emerald);
  transition: var(--transition-smooth);
}

.btn-outline-emerald:hover {
  background-color: var(--emerald);
  color: white;
}

.btn-gold {
  background-color: var(--gold);
  color: white;
  border: none;
}

.btn-gold:hover {
  background-color: #b38d4a;
  color: white;
}

/* Navbar */

.nav-glass {
  background: rgba(249, 247, 242, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 61, 54, 0.05);
  padding: 1.25rem 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  border-radius: 8px;
  display: inline-block;
}

.brand-text {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--emerald);
}

.nav-link {
  font-weight: 500;
  color: var(--emerald);
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
  color: var(--emerald);
}

/* Hero Section */

.hero-section {
  padding-top: 2rem;
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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%3Cpath d='M30 0l15 15-15 15-15-15L30 0zm0 60l15-15-15-15-15 15 15 15z' fill='%230a3d36' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-mockup-container {
  perspective: 1000px;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: #111;
  border-radius: 40px;
  margin: 0 auto;
  border: 8px solid #222;
  box-shadow: 0 50px 100px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: var(--emerald-dark);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.app-ui-preview {
  background: linear-gradient(to bottom, var(--emerald), var(--emerald-dark));
  height: 100%;
  width: 100%;
}

.floating-card {
  position: absolute;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 3;
  animation: float-alternate 8s ease-in-out infinite;
  min-width: 140px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-1 {
  top: 15%;
  right: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  left: 0%;
  animation-delay: -2s;
}

.card-3 {
  bottom: 15%;
  right: 5%;
  animation-delay: -4s;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 61, 54, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Features Bento Grid */

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.feature-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(10, 61, 54, 0.08);
}

.f-quran {
  grid-column: span 2;
  grid-row: span 2;
  background-color: var(--emerald-dark);
  color: white;
}

.f-ai {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, #fff, #f4f4f4);
}

.f-community {
  grid-column: span 2;
  grid-row: span 1;
  background-color: #f0ece2;
}

.f-small {
  grid-column: span 1;
  grid-row: span 1;
}

.badge-emerald {
  background-color: rgba(10, 61, 54, 0.1);
  color: var(--emerald);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.f-quran .badge-emerald {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.badge-gold {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.quran-preview {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top right, var(--emerald), transparent);
  mask-image: linear-gradient(to top, black, transparent);
  opacity: 0.4;
}

/* Quran Section */

.arabic-text {
  font-family: serif;
  font-size: 2.5rem;
  direction: rtl;
}

.quran-player-mockup {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 2rem;
}

.play-btn-outer {
  width: 70px;
  height: 70px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.play-btn-outer:hover {
  transform: scale(1.1);
}

/* Prayer Dashboard */

.glass-card-dark {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
}

.p-time {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.p-time.current {
  background: var(--emerald);
  color: white;
}

/* Haramain */

.haramain-card {
  aspect-ratio: 16/9;
  background: url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?q=80&w=2070&auto=format&fit=crop') center/cover;
  position: relative;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
}

.haramain-card:hover .video-overlay {
  background: rgba(0,0,0,0.2);
}

.play-pulse {
  width: 80px;
  height: 80px;
  background: white;
  color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

/* Animations */

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

@keyframes float-alternate {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-10px) translateX(5px);
  }
  66% {
    transform: translateY(5px) translateX(-5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(255,255,255,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

/* Reveal on scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

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

/* Mobile Responsive Adjustments */

@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .display-3 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

@media (max-width: 767px) {
  .f-quran, .f-ai, .f-community {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
}

.qr-mockup {
  width: 100px;
  height: 100px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  border: 4px solid #fff;
}

:root {
  --emerald: #0A3D36;
  --emerald-dark: #05201C;
  --emerald-light: #125C52;
  --gold: #C5A059;
  --gold-soft: #D4AF37;
  --ivory: #F9F7F2;
  --text-main: #2D3436;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow-premium: 0 20px 40px rgba(0,0,0,0.05);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-color: var(--ivory);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

.text-emerald {
  color: var(--emerald);
}

.text-gold {
  color: var(--gold);
}

.bg-ivory {
  background-color: var(--ivory);
}

.bg-emerald {
  background-color: var(--emerald);
}

.bg-dark-emerald {
  background-color: var(--emerald-dark);
}

/* Buttons */

.btn-emerald {
  background-color: var(--emerald);
  color: white;
  border: none;
  transition: var(--transition-smooth);
}

.btn-emerald:hover {
  background-color: var(--emerald-light);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-emerald {
  border: 2px solid var(--emerald);
  color: var(--emerald);
  transition: var(--transition-smooth);
}

.btn-outline-emerald:hover {
  background-color: var(--emerald);
  color: white;
}

.btn-gold {
  background-color: var(--gold);
  color: white;
  border: none;
}

.btn-gold:hover {
  background-color: #b38d4a;
  color: white;
}

/* Navbar */

.nav-glass {
  background: rgba(249, 247, 242, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 61, 54, 0.05);
  padding: 1.25rem 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  border-radius: 8px;
  display: inline-block;
}

.brand-text {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--emerald);
}

.nav-link {
  font-weight: 500;
  color: var(--emerald);
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
  color: var(--emerald);
}

/* Hero Section */

.hero-section {
  padding-top: 2rem;
}

.pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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%3Cpath d='M30 0l15 15-15 15-15-15L30 0zm0 60l15-15-15-15-15 15 15 15z' fill='%230a3d36' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-mockup-container {
  perspective: 1000px;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: #111;
  border-radius: 40px;
  margin: 0 auto;
  border: 8px solid #222;
  box-shadow: 0 50px 100px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: var(--emerald-dark);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.app-ui-preview {
  background: linear-gradient(to bottom, var(--emerald), var(--emerald-dark));
  height: 100%;
  width: 100%;
}

.floating-card {
  position: absolute;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 3;
  animation: float-alternate 8s ease-in-out infinite;
  min-width: 140px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-1 {
  top: 15%;
  right: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  left: 0%;
  animation-delay: -2s;
}

.card-3 {
  bottom: 15%;
  right: 5%;
  animation-delay: -4s;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 61, 54, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Features Bento Grid */

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.feature-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(10, 61, 54, 0.08);
}

.f-quran {
  grid-column: span 2;
  grid-row: span 2;
  background-color: var(--emerald-dark);
  color: white;
}

.f-ai {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, #fff, #f4f4f4);
}

.f-community {
  grid-column: span 2;
  grid-row: span 1;
  background-color: #f0ece2;
}

.f-small {
  grid-column: span 1;
  grid-row: span 1;
}

.badge-emerald {
  background-color: rgba(10, 61, 54, 0.1);
  color: var(--emerald);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.f-quran .badge-emerald {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.badge-gold {
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
}

.quran-preview {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top right, var(--emerald), transparent);
  mask-image: linear-gradient(to top, black, transparent);
  opacity: 0.4;
}

/* Quran Section */

.arabic-text {
  font-family: serif;
  font-size: 2.5rem;
  direction: rtl;
}

.quran-player-mockup {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 2rem;
}

.play-btn-outer {
  width: 70px;
  height: 70px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.play-btn-outer:hover {
  transform: scale(1.1);
}

/* Prayer Dashboard */

.glass-card-dark {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
}

.p-time {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.p-time.current {
  background: var(--emerald);
  color: white;
}

/* Haramain */

.haramain-card {
  aspect-ratio: 16/9;
  background: url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?q=80&w=2070&auto=format&fit=crop') center/cover;
  position: relative;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
}

.haramain-card:hover .video-overlay {
  background: rgba(0,0,0,0.2);
}

.play-pulse {
  width: 80px;
  height: 80px;
  background: white;
  color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

/* Animations */

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

@keyframes float-alternate {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-10px) translateX(5px);
  }
  66% {
    transform: translateY(5px) translateX(-5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(255,255,255,0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

/* Reveal on scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

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

/* Mobile Responsive Adjustments */

@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .display-3 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

@media (max-width: 767px) {
  .f-quran, .f-ai, .f-community {
    grid-column: span 1;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
}

.qr-mockup {
  width: 100px;
  height: 100px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  border: 4px solid #fff;
}

