/* Core Design System */
:root {
  --primary: #064e3b; /* Emerald Green */
  --primary-light: #065f46;
  --secondary: #fbbf24; /* Amber Gold */
  --accent: #1e293b; /* Dark Slate */
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-main: #ffffff;
  --bg-soft: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --layered-shadow: 0 1px 1px rgba(0,0,0,0.02), 0 2px 2px rgba(0,0,0,0.02), 0 4px 4px rgba(0,0,0,0.02), 0 8px 8px rgba(0,0,0,0.02), 0 16px 16px rgba(0,0,0,0.02);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip; /* Modern clipping for absolute/fixed elements */
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--accent);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative Blobs */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 78, 59, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
  animation: blobFloat 20s infinite alternate;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(100px, 50px) scale(1.1); }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Section Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden; /* Clips decorative blobs and animated elements */
  width: 100%;
  max-width: 100%;
}

.bg-soft {
  background: var(--bg-soft);
}

.cta-box {
  background: var(--accent);
  color: white;
  padding: 5rem 3rem;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-box h2 {
  color: white !important;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}

.cta-box p {
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-size: 1.2rem;
}

/* Navigation Layer */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Attach to both edges */
  width: 100%; /* Fallback */
  z-index: 2000;
  background: white; /* Always white */
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  padding: 0.75rem 0;
}

nav.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95rem;
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 2100;
}

/* Premium Button System */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(6, 78, 59, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg);
  transition: 0.6s;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--accent);
}

.btn-secondary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

/* Hero Elevation */
/* Hero Elevation */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('img/umrah (1).jpg') center/cover;
  color: white;
  margin-top: 80px; /* Account for fixed white navbar */
  width: 100% !important;
  max-width: 100vw !important;
  left: 0 !important;
  position: relative;
  overflow: visible !important; /* Allow the overlapping Enquiry badge to show */
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #ffffff, #fef3c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-content {
  max-width: 700px;
  width: 100%;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1.2s ease-out;
}

@media (max-width: 600px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 15px; /* Boxier for mobile readability */
  }
}

/* Package Card Grid */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.section-title p {
  font-size: 1.15rem;
  opacity: 0.8;
  color: var(--accent);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-main);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--layered-shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
  z-index: 1;
}

.card:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.card-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: 0.6s all ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
}

.card-body {
  padding: 2rem;
}

.card-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.card-footer .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.75rem 0.5rem;
  min-width: 0; /* Prevent flex items from overflowing */
  white-space: nowrap;
}

.card-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-info {
  list-style: none;
  margin: 1.5rem 0;
}

.card-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  gap: 0.5rem;
}

.card-footer .btn {
  flex: 1;
}

/* Services */
.services-bg {
  background: var(--bg-soft);
}

.service-card {
  text-align: center;
  padding: 2.5rem;
  background: white;
  border-radius: 20px;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--primary);
  color: white;
}

.service-card:hover h3 {
  color: white;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(6, 78, 59, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inquiry Form Section Styling */
.enquiry-section {
  background: var(--primary);
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 100;
  overflow: visible !important; /* Allow badge to overlap hero */
}

.enquiry-container {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative;
}

.enquiry-label-badge {
  position: absolute;
  top: -20px;
  left: 3rem;
  background: var(--secondary);
  color: var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: flex-end;
}

@media (max-width: 992px) {
  .enquiry-container { padding: 2rem; }
  .form-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 600px) {
  .enquiry-section { margin-top: -30px; padding: 0; }
  .enquiry-container { padding: 1.5rem; border-radius: 12px; }
  .enquiry-label-badge { left: 0; right: 0; margin: 0 auto; width: 180px; text-align: center; font-size: 0.85rem; top: -12px; padding: 0.4rem 1rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-group label { font-size: 0.8rem; }
  .form-group input, .form-group select { width: 100%; height: 48px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.form-group input, .form-group select {
  width: 100%; /* Force width containment */
  height: 52px;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  color: var(--accent);
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  background: white;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
}

.form-submit-btn {
  height: 52px;
  width: 100%;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(6, 78, 59, 0.3);
}

/* Enhanced Sections Styling */

/* Why Choose Us - Enhanced Static */
.feature-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  height: 100%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05); /* Added stronger shadow */
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(6, 78, 59, 0.1); /* Soft emerald background */
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background: var(--primary);
  color: white;
  transform: rotate(-5deg);
}

.feature-card i {
  transition: var(--transition);
}


/* Process Steps - Enhanced */
.process-grid::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  opacity: 0.2;
  z-index: 0;
}

@media (max-width: 768px) {
  .process-grid::before { display: none; }
}

.step-card {
  position: relative;
  padding: 2rem;
  padding-top: 3.5rem;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  z-index: 1;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: var(--layered-shadow);
}

.step-number {
  position: absolute;
  top: -25px;
  left: 2rem;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: 4px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(6, 78, 59, 0.2);
}


/* Testimonials */
.testimonial-card {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--layered-shadow);
  position: relative;
  margin-top: 2rem;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 8rem;
  color: var(--secondary);
  opacity: 0.2;
  font-family: serif;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
}

/* FAQ Accordion - High End Smoothness */
.faq-item {
  background: white;
  border-radius: 18px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.08);
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  background: white;
}

.faq-item.open .faq-question {
  background: rgba(6, 78, 59, 0.03);
  color: var(--primary);
}

.faq-answer-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer-container {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  padding: 0 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  padding-bottom: 1.5rem;
}

.faq-question i {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

/* Scroll Animation Hooks */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s all ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0; /* Use side-anchoring instead of fixed width */
    background: white;
    flex-direction: column;
    padding: 2.5rem;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0);
  }

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

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .enquiry-container { padding: 1.5rem; }
}

/* Stats Section - Premium Redesign */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 6rem 0; /* Standardized with other sections */
  color: white;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle at 10% 10%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 90% 90%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  text-align: center;
}

.stat-icon {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: translateY(-10px) scale(1.1);
  color: white;
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.stat-card p {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
  .stats-section { padding: 5rem 0; }
  .stat-number { font-size: 3.5rem; }
  .stat-icon { font-size: 2.2rem; }
  .stats-grid { gap: 3rem; }
}

/* Partners Branding Section */
.partners-section {
  padding: 6rem 0;
  background: white;
  border-bottom: 1px solid #f1f5f9;
}

.partner-reel {
  display: flex;
  overflow: hidden;
  gap: 6rem;
  padding: 2rem 0;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, white 20%, white 80%, transparent 100%);
}

.partner-track {
  display: flex;
  gap: 6rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  flex: 0 0 160px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1.5px;
  color: var(--accent);
}

.partner-logo:hover {
  filter: grayscale(0) opacity(1);
  color: var(--primary);
}


/* Footer Refinement */
footer {
  padding: 6rem 0 3rem;
  background: var(--bg-soft);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

footer .logo {
  margin-bottom: 2rem;
  display: inline-flex;
}

footer h4 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

footer li i {
  color: var(--primary);
  margin-top: 3px;
}

footer hr {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 4rem 0 2rem;
}


@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1rem; max-width: 100vw !important; width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
  .grid { gap: 1rem; width: 100% !important; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .stat-number { font-size: 3rem; }
  .card-footer { flex-direction: column; } /* Stack card buttons on mobile */
  .hero-content { padding: 0 1rem; text-align: center; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .hero-content .cta-group { justify-content: center; width: 100% !important; flex-wrap: wrap; gap: 1rem; }
  
  /* Mobile CTA Refinement */
  .cta-box { padding: 3rem 1.5rem; border-radius: 20px; }
  .cta-box h2 { font-size: 1.8rem; line-height: 1.2; }
  .cta-box p { font-size: 1rem; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 1.8rem; }
  .stat-number { font-size: 2.5rem; }
  .enquiry-label-badge { width: 160px; font-size: 0.8rem; }
}
