/* ============================================
   MUFTI KHURRAM IQBAL REHMANI - Premium Islamic Portfolio
   Custom Styles (Tailwind handles utilities)
   ============================================ */

/* ---- Root Variables ---- */
:root {
  --green-dark: #1a3d2b;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #faf7f0;
  --text-dark: #1c1c1c;
  --text-mid: #3a3a3a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
  --shadow-green: rgba(26, 61, 43, 0.12);
  --shadow-gold: rgba(201, 168, 76, 0.25);
}

/* ---- Base Typography ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Urdu Font Override ---- */
[dir="rtl"] body {
  font-family: 'Noto Nastaliq Urdu', 'Amiri', 'Jameel Noori Nastaleeq', serif;
  line-height: 2.2;
}

/* ---- Smooth Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-main {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
  transition: all 0.3s ease;
}

.nav-main.scrolled {
  box-shadow: 0 4px 20px rgba(26, 61, 43, 0.3);
}

.nav-brand {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

[dir="rtl"] .nav-brand {
  font-size: 0.95rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.15);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile {
  display: none;
  background: var(--green-dark);
  padding: 1rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-mobile.active { display: block; }

.nav-mobile a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-mobile a:hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.15);
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: rgba(201, 168, 76, 0.3);
}

.lang-toggle .lang-label {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 55%, var(--green-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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='%23c9a84c' fill-opacity='0.06'%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/svg%3E");
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--cream), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  box-shadow: 0 0 50px rgba(201, 168, 76, 0.35), 0 0 100px rgba(45, 106, 79, 0.2);
  animation: floatPhoto 6s ease-in-out infinite;
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bismillah {
  font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: block;
}

[dir="rtl"] .bismillah {
  font-size: 1.8rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.18);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--gold-light);
  padding: 0.35rem 1.4rem;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

[dir="rtl"] .hero-tags {
  justify-content: flex-end;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.hero-tag:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

[dir="rtl"] .hero-cta {
  justify-content: flex-end;
}

/* ============================================
   PRAYER WIDGET (HERO)
   ============================================ */
.prayer-widget {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 320px;
  min-width: 280px;
  max-width: 340px;
  flex-shrink: 0;
  transition: all 0.4s ease;
  animation: slideInRight 0.8s ease forwards;
}

[dir="rtl"] .prayer-widget {
  animation: slideInLeft 0.8s ease forwards;
}

.prayer-widget:hover {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.15);
}

.prayer-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.prayer-digital-clock {
  font-family: 'Inter', 'SF Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
}

.prayer-countdown {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(201, 168, 76, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  white-space: nowrap;
}

.prayer-countdown .cd-label {
  color: var(--gold-light);
  font-weight: 600;
}

.prayer-countdown .cd-time {
  color: white;
  font-weight: 700;
}

.prayer-location {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.prayer-time-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.prayer-time-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.prayer-time-card .pt-icon {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  display: block;
}

.prayer-time-card .pt-name {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.prayer-time-card .pt-time {
  font-size: 0.84rem;
  color: var(--gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: block;
}

/* Active prayer - currently happening */
.prayer-time-card.active {
  background: rgba(201, 168, 76, 0.22);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.prayer-time-card.active .pt-name { color: var(--gold-light); font-weight: 600; }

.prayer-time-card.active::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s infinite;
}

[dir="rtl"] .prayer-time-card.active::after { right: auto; left: 4px; }

/* Next prayer */
.prayer-time-card.next {
  background: rgba(45, 106, 79, 0.45);
  border-color: var(--green-light);
}

.prayer-time-card.next .pt-name { color: var(--green-light); font-weight: 600; }

.prayer-time-card.next::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--green-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-light);
}

[dir="rtl"] .prayer-time-card.next::after { right: auto; left: 4px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--green-dark);
  position: relative;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1.2;
  font-family: 'Playfair Display', 'Amiri', serif;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.3rem;
  display: block;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-inner { max-width: 960px; margin: 0 auto; }

.section-title {
  font-size: 1.9rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
  position: relative;
}

[dir="rtl"] .section-title {
  font-size: 1.7rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about-photo {
  width: 260px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 40px var(--shadow-green);
  border: 3px solid var(--gold);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(26, 61, 43, 0.2);
}

.highlight-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  padding: 1.4rem 1.8rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 5px solid var(--gold);
  font-style: italic;
  line-height: 1.9;
  position: relative;
  overflow: hidden;
}

[dir="rtl"] .highlight-box {
  border-left: none;
  border-right: 5px solid var(--gold);
}

/* ============================================
   SERVICES
   ============================================ */
.service-card {
  background: white;
  border-radius: 14px;
  padding: 1.8rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-top: 4px solid var(--green-light);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

[dir="rtl"] .service-card::before {
  transform-origin: right;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px var(--shadow-green);
  border-color: rgba(201, 168, 76, 0.3);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline { position: relative; }

[dir="ltr"] .timeline { padding-left: 2.2rem; }
[dir="rtl"] .timeline { padding-right: 2.2rem; }

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-light), var(--gold));
}

[dir="ltr"] .timeline::before { left: 7px; }
[dir="rtl"] .timeline::before { right: 7px; }

.timeline-item { position: relative; margin-bottom: 2.2rem; }

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--green-dark);
  top: 6px;
  transition: all 0.3s ease;
}

[dir="ltr"] .timeline-dot { left: -10px; }
[dir="rtl"] .timeline-dot { right: -10px; }

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.25);
  transform: scale(1.1);
}

.timeline-year {
  display: inline-block;
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 0.2rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

/* ============================================
   CARDS (IFTA / TEACHING)
   ============================================ */
.ifta-card {
  background: white;
  border-radius: 12px;
  padding: 1.6rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-left: 4px solid var(--gold);
  transition: all 0.3s ease;
}

[dir="rtl"] .ifta-card {
  border-left: none;
  border-right: 4px solid var(--gold);
}

.ifta-card:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.12);
  transform: translateY(-3px);
}

.teaching-card {
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--cream);
  transition: all 0.3s ease;
}

.teaching-card:hover {
  background: white;
  box-shadow: 0 8px 25px var(--shadow-green);
  transform: translateY(-3px);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 61, 43, 0.92));
  color: var(--gold-light);
  padding: 1.2rem 0.8rem 0.7rem;
  font-size: 0.82rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ============================================
   VIDEOS
   ============================================ */
.video-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.12);
  transition: all 0.35s ease;
}

.video-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* ============================================
   MEDIA
   ============================================ */
.media-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: center;
  border: 1px solid rgba(45, 106, 79, 0.1);
  transition: all 0.35s ease;
}

.media-card:hover {
  background: white;
  box-shadow: 0 10px 35px var(--shadow-green);
  transform: translateY(-4px);
}

.media-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.7rem;
  color: white;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.media-card:hover .media-icon { transform: scale(1.1) rotate(-3deg); }

.yt-color { background: linear-gradient(135deg, #ff0000, #cc0000); }
.fb-color { background: linear-gradient(135deg, #1877f2, #0d5cb6); }
.tv-color { background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--green-dark); }

.contact-section .section-title { color: var(--gold-light); border-color: var(--gold); }
.contact-section .section-subtitle { color: rgba(255, 255, 255, 0.65); }

.contact-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.contact-card:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.15);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
  background: white;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: all 0.25s ease;
}

[dir="rtl"] .faq-question { text-align: right; }

.faq-question:hover { color: var(--green-mid); }

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

/* ============================================
   LANGUAGE MODAL
   ============================================ */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 61, 43, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lang-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lang-modal-box {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 80px rgba(26, 61, 43, 0.35);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-modal.active .lang-modal-box {
  transform: scale(1) translateY(0);
}

.lang-modal-title {
  font-size: 1.3rem;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lang-modal-ur {
  font-family: 'Noto Nastaliq Urdu', 'Amiri', serif;
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  line-height: 2;
}

.lang-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-option-btn {
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--green-mid);
  background: white;
  color: var(--green-dark);
  transition: all 0.3s ease;
  min-width: 120px;
}

.lang-option-btn:hover {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 61, 43, 0.25);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 998;
  text-decoration: none;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }

.whatsapp-float:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.55);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-main {
  background: #0f2419;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 1.8rem;
  font-size: 0.84rem;
  border-top: 2px solid var(--gold);
}

.footer-main strong { color: var(--gold-light); }

.footer-main a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-main a:hover { color: white; }

/* ============================================
   BACKLINK SECTION
   ============================================ */
.backlink-section {
  background: linear-gradient(135deg, var(--cream), white);
  border-top: 1px solid rgba(45, 106, 79, 0.1);
}

.backlink-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid rgba(45, 106, 79, 0.12);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--green-mid);
  text-decoration: none;
  transition: all 0.25s ease;
}

.backlink-item:hover {
  border-color: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 3px 12px rgba(201, 168, 76, 0.12);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* AOS Customizations */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-desktop { display: none; }
  
  .hero { min-height: auto; padding: 3rem 1.5rem 4rem; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-photo { width: 160px; height: 160px; margin: 0 auto; }
  .hero-tags { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  
  [dir="rtl"] .hero-tags { justify-content: center; }
  [dir="rtl"] .hero-cta { justify-content: center; }
  
  .prayer-widget {
    width: 100%;
    max-width: 440px;
    min-width: unset;
    margin: 1.5rem auto 0;
    order: 3;
  }
  
  .prayer-digital-clock { font-size: 1.5rem; }
  .prayer-times-grid { gap: 0.35rem; }
  .prayer-time-card { padding: 0.6rem 0.2rem; }
  .prayer-time-card .pt-icon { font-size: 1rem; }
  .prayer-time-card .pt-name { font-size: 0.58rem; }
  .prayer-time-card .pt-time { font-size: 0.75rem; }
  
  .section-title { font-size: 1.5rem; }
  .about-photo { width: 100%; max-width: 260px; margin: 0 auto; display: block; }
  
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }
  
  [dir="rtl"] .whatsapp-float { left: 16px; }
}

@media (max-width: 380px) {
  .prayer-times-grid { grid-template-columns: repeat(3, 1fr); }
  .prayer-time-card:nth-child(4),
  .prayer-time-card:nth-child(5) { grid-column: span 1; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus { top: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  .hero-tag, .prayer-time-card, .service-card, .ifta-card, .teaching-card {
    border-width: 2px;
  }
}

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #b8943f);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5);
  filter: brightness(1.08);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-media {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
  color: white;
}
.btn-yt { background: linear-gradient(135deg, #ff0000, #cc0000); }
.btn-yt:hover { box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3); transform: translateY(-2px); }
.btn-fb { background: linear-gradient(135deg, #1877f2, #0d5cb6); }
.btn-fb:hover { box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); transform: translateY(-2px); }

/* ===== CONTACT CARD STYLES ===== */
.contact-card .contact-label {
  display: block;
  color: var(--gold-light);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.contact-card .contact-value {
  display: block;
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}

/* Print styles */
@media print {
  .nav-main, .whatsapp-float, .lang-modal, .hero-cta, .prayer-widget { display: none !important; }
  .hero { min-height: auto; padding: 2rem; }
  section { padding: 1.5rem 0; page-break-inside: avoid; }
}