/* Tailwind Config */
.skies { background: radial-gradient(120% 100% at 50% 0%, #f2f4f7 0%, #ffffff 56%); }

.download-background {
  background-image: url('../images/islamic-garden-illustration.png');
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  position: relative;
  min-height: 60vh;
  margin-top: -250px;
  padding-top: 250px;
}

.faq-background {
  background-image: url('../images/islamic-garden-illustration.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background: linear-gradient(to bottom, #f2f4f7 0%, #f2f4f7 40%, rgba(242, 244, 247, 0.95) 60%, rgba(242, 244, 247, 0.8) 80%, rgba(242, 244, 247, 0.3) 95%, transparent 100%);
  height: 150%;
  bottom: -50%;
}

.download-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, #f2f4f7 0%, rgba(242, 244, 247, 0.8) 30%, rgba(242, 244, 247, 0.3) 70%, transparent 100%);
  pointer-events: none;
}

.paper-texture {
  background-image: url('../images/paper.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.printed-text {
  color: #2c2c2c;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 -1px 0 rgba(0, 0, 0, 0.1),
    1px 0 0 rgba(0, 0, 0, 0.05),
    -1px 0 0 rgba(0, 0, 0, 0.05);
  filter: contrast(1.1) brightness(0.95);
}

.printed-text-strong {
  color: #1a1a1a;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(0, 0, 0, 0.15),
    1px 0 0 rgba(0, 0, 0, 0.08),
    -1px 0 0 rgba(0, 0, 0, 0.08);
  filter: contrast(1.2) brightness(0.9);
}

.handwritten-underline {
  position: relative;
  text-decoration: none;
}

.handwritten-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #8B0000;
  border-radius: 50%;
  transform: rotate(-1deg);
  opacity: 0.8;
}

.handwritten-underline::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 102%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #8B0000 10%,
    #A52A2A 30%,
    #8B0000 50%,
    #A52A2A 70%,
    #8B0000 90%,
    transparent 100%
  );
  border-radius: 50%;
  transform: rotate(0.5deg);
  opacity: 0.6;
  filter: blur(0.5px);
}

.hero-background {
  background-image: url('../images/islamic-garden-illustration.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Mobile-only fix: Override background-attachment for mobile devices */
@media (max-width: 768px) {
  .hero-background {
    background-image: url('../images/islamic-garden-mobile.png');
    background-attachment: scroll !important;
    background-color: #f8f9fa; /* fallback color */
    background-position: left center;
  }

  .hero-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.225) 100%);
    position: absolute;
    inset: 0;
    z-index: 1;
  }
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.225) 100%);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlay-dark {
  background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.075) 50%, rgba(0,0,0,0.0375) 100%);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Ensure navigation appears above hero overlays */
nav.hero-content {
  z-index: 10;
}

.hero-text-shadow {
  text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.hero-text-strong-shadow {
  text-shadow: 0 3px 6px rgba(255,255,255,1), 0 1px 2px rgba(0,0,0,0.3);
}

/* Custom Font Classes */
.font-lancelot { font-family: 'Lancelot', serif; font-weight: 500; letter-spacing: 0.02em; }
.font-handwritten { font-family: 'Caveat', cursive; font-weight: 400; }
.font-crimson { font-family: 'Crimson Text', serif; font-weight: 400; }

/* Background Colors */
.bg-f5f3ef { background-color: #f5f3ef; }
.bg-to-faf9f7 { background-color: #faf9f7; }

/* Grain Effect */
.grain:before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  mix-blend-mode:multiply;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="900"><filter id="n"><feTurbulence baseFrequency="0.8" numOctaves="2" type="fractalNoise"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.03"/></svg>');
}

/* iPhone Mockup */
.iphone {
  position: relative;
  width: 320px;
  height: 660px;
  background-image: url('../images/iphone.PNG');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.iphone-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 298px;
  height: 640px;
  border-radius: 35px;
  overflow: hidden;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.pulse-gentle { animation: pulse-gentle 2s infinite; }
@keyframes pulse-gentle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.float { animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Button Hover Effects */
.btn-primary { transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(46, 120, 97, 0.3); }
