/* ==========================================================================
   LeenSchool Landing Page Styles
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. CSS Variables & Settings
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #1663e1;
  --primary-bright: #2980fe;
  --primary-dark: #0d47a1;
  --secondary: #ff7f0e;
  --secondary-bright: #ffb347;
  
  /* Neutral Colors */
  --bg-light: #f8f9fa;
  --text-dark: #333;
  --text-muted: #6c757d;
  --text-light: #ffffff;
  
  /* Spacing */
  --spacing-xs: 0.75rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 5rem;
  --spacing-xl: 7rem;
  
  /* Borders & Effects */
  --border-radius: 0.5rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --box-shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition-base: all 0.3s ease;
}

/* -----------------------------------------------------------------------------
   2. Base Styles & Reset
   -------------------------------------------------------------------------- */
body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--text-dark);
  direction: rtl;
  margin: 0;
  overflow-x: hidden;
  opacity: 0.99; /* Prevent FOUT */
}

html, body {
  width: 100%;
  position: relative;
}

/* Better scrolling */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

/* Font loading optimization */
.font-loaded {
  opacity: 1 !important;
  transition: opacity 0.2s;
}

/* -----------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Text emphasis style */
.text-emphasis {
  position: relative;
  display: inline-block;
}

.text-emphasis::after,
.text-emphasis::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  background-color: var(--secondary);
  border-radius: 0;
  pointer-events: none;
}

.text-emphasis::after {
  height: 2.5px;
  bottom: -5px;
  opacity: 0.9;
  border-radius: 100% 60% 60% 100%;
  transform: scaleY(1.8);
}

.text-emphasis::before {
  height: 2px;
  bottom: -11px;
  opacity: 0.7;
  border-radius: 100% 70% 70% 100%;
  transform: scaleY(1.5);
}

/* Special title styling */
.mega-title {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-weight: 600;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Text colors */
.text-secondary-custom {
  color: var(--secondary);
}

/* -----------------------------------------------------------------------------
   4. Layout & Spacing
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col, [class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Custom spacing classes */
.py-6 { 
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.py-7 { 
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Section spacing */
section {
  position: relative;
}

/* -----------------------------------------------------------------------------
   5. Backgrounds & Patterns
   -------------------------------------------------------------------------- */
/* Decorative Shapes */
.shape {
  position: absolute;
  z-index: 0;
  opacity: 0.15;
}

.shape--primary {
  inset-block-start: 10%;
  inset-inline-end: 5%;
  inline-size: 150px;
  block-size: 150px;
  background: var(--secondary-bright);
  border-radius: 28% 72% 70% 30% / 53% 51% 49% 47%;
  transform: rotate(-15deg);
}

.shape--secondary {
  inset-block-end: 10%;
  inset-inline-start: 5%;
  inline-size: 200px;
  block-size: 200px;
  background: var(--primary-bright);
  border-radius: 53% 47% 32% 68% / 43% 47% 53% 57%;
  transform: rotate(15deg);
}

/* Section backgrounds */
.bg-light {
  background-color: var(--bg-light);
}

.bg-gradient-primary {
  background-color: var(--primary);
  color: white;
}

/* School Pattern Background */
.school-pattern {
  background-color: #ffffff;
  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='%231857be' fill-opacity='0.07'%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");
}

/* Light Pattern for Sections */
.bg-pattern-light {
  background-color: var(--bg-light);
  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='%231857be' fill-opacity='0.05'%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");
}

/* Floating dots for CTA section */
.floating-dots {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(var(--primary-bright) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.1;
}

.floating-dots-1 {
  top: 10%;
  right: 5%;
}

.floating-dots-2 {
  bottom: 10%;
  left: 5%;
}

/* -----------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-logo {
  height: 45px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--primary);
}

/* -----------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
}

.btn-brand-primary {
  background: var(--primary);
  color: white !important;
  transition: var(--transition-base);
}

.btn-brand-primary:hover {
  background: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-primary-gradient {
  background-color: var(--primary);
  border: none;
  color: white !important;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary-gradient:hover {
  background-color: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-primary-gradient:active {
  transform: translateY(0);
}

.btn-outline-secondary {
  color: var(--text-dark);
  border-color: #ced4da;
  background-color: transparent;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
}

/* Hero buttons container */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* -----------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  text-align: right;
}

.form-control::placeholder {
  text-align: right;
  direction: rtl;
  color: var(--text-muted);
  opacity: 0.75;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(22, 99, 225, 0.1);
}

.form-control-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------------------------------
   9. Cards & Components
   -------------------------------------------------------------------------- */
/* Card base styles */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: white;
  background-clip: border-box;
  border-radius: var(--border-radius);
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-hover {
  transition: var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Feature card specific styles */
.features-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  transition: var(--transition-base);
}

.features-icon-container .icon {
  inline-size: 36px;
  block-size: 36px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-icon-container:hover {
  background-color: var(--primary-bright);
  transform: scale(1.05);
}

/* CTA card specific styles */
.cta-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-strong);
  border-top: 4px solid var(--secondary);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-5px);
}

/* Testimonial card styling */
.testimonial-card .card-body {
  padding: 2rem;
}

/* -----------------------------------------------------------------------------
   10. Icons & Badges
   -------------------------------------------------------------------------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 50px;
  block-size: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-size: 24px;
  transition: var(--transition-base);
}

.icon:hover {
  background-color: var(--primary-bright);
}

.icon--rotate {
  transform: rotate(var(--rotation, 0deg));
}

.icon--rotate-positive {
  --rotation: 5deg;
}

.icon--rotate-negative {
  --rotation: -5deg;
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-section {
  background-color: var(--primary);
  color: white;
}

/* -----------------------------------------------------------------------------
   11. Section-Specific Styles
   -------------------------------------------------------------------------- */
/* Hero Section */
#hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  background-color: var(--primary);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%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;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-heading {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
}

.cta-emphasis {
  color: var(--secondary);
  font-weight: bold;
}

/* Portal section icon styling */
#portals .rounded-circle.bg-gradient-primary {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#portals .rounded-circle.bg-gradient-primary i {
  font-size: 1.25rem;
}

/* Accordion/FAQ section styling */
.accordion-item {
  border: none;
  background-color: transparent;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.accordion-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.accordion-button {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  background-color: white;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231663e1' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 3.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M7.5 8a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8z'/%3E%3C/svg%3E");
  background-size: 1.25rem;
  transition: all 0.35s ease;
}

.accordion-button:not(.collapsed) {
  background-color: white;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231663e1' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  transform: rotate(0deg);
}

.accordion-button:hover {
  background-color: rgba(22, 99, 225, 0.02);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
  outline: none;
  z-index: 1;
}

.accordion-body {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  background-color: white;
  line-height: 1.7;
  position: relative;
}

/* Numbering for FAQ items */
#faqAccordion .accordion-button {
  display: flex;
  align-items: center;
}

#faqAccordion .accordion-button::before {
  content: attr(data-number);
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  margin-right: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0;
  position: absolute;
  right: 3rem;
  transition: all 0.3s ease;
}

#faqAccordion .accordion-button:hover::before {
  opacity: 0.1;
}

#faqAccordion .accordion-button:not(.collapsed)::before {
  background-color: var(--primary);
  opacity: 0.2;
}

/* FAQ section specific styling */
#faq {
  position: relative;
}

#faq::before {
  content: "؟";
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 20rem;
  color: var(--primary);
  opacity: 0.03;
  pointer-events: none;
  line-height: 1;
  font-weight: 700;
}

/* Mobile adjustments for accordions */
@media (max-width: 768px) {
  .accordion-button {
    padding: 1.25rem 1rem;
    font-size: 1rem;
  }
  
  .accordion-body {
    padding: 0.5rem 1rem 1.25rem 1rem;
  }
  
  #faqAccordion .accordion-button::before {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    margin-right: 0.75rem;
  }
}

/* Footer styling */
footer {
  background-color: var(--bg-light);
}

footer a {
  transition: var(--transition-base);
}

footer a:hover {
  color: var(--primary) !important;
}

footer img {
  height: 60px;
}

/* -----------------------------------------------------------------------------
   12. Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700 !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.flex-column { flex-direction: column !important; }
.gap-3 { gap: 1rem !important; }
.w-100 { width: 100% !important; }

.position-relative { position: relative !important; }
.overflow-hidden { overflow: hidden !important; }
.min-vh-100 { min-height: 100vh !important; }

.border-0 { border: 0 !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* -----------------------------------------------------------------------------
   13. Media Queries
   -------------------------------------------------------------------------- */
/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* General Typography */
  .display-2 {
    font-size: calc(1.8rem + 2vw) !important;
    line-height: 1.2;
  }
  
  .display-4 {
    font-size: calc(1.5rem + 1.5vw) !important;
    line-height: 1.3;
  }
  
  .lead {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  h1, .h1 { font-size: 2rem !important; }
  h2, .h2 { font-size: 1.75rem !important; }
  h3, .h3 { font-size: 1.5rem !important; }
  h4, .h4 { font-size: 1.25rem !important; }
  h5, .h5 { font-size: 1.1rem !important; }

  /* Section Spacing */
  .py-7 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-6 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Container and Row Adjustments */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .row {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
  }

  .col, [class*="col-"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Hero Section */
  .hero-buttons {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Cards */
  .card {
    margin-bottom: 1rem !important;
  }

  .card-body {
    padding: 1.25rem !important;
  }

  .card-hover:hover {
    transform: none !important;
  }

  /* Features Section */
  .icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
  }

  /* Navigation */
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }

  .navbar-nav {
    margin: 1rem 0 !important;
  }

  .nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .nav-link {
    padding: 0.75rem 0 !important;
  }

  /* CTA Section */
  .cta-card {
    margin: 0 !important;
  }

  .cta-card .card-body {
    padding: 1.5rem !important;
  }

  .form-control-lg {
    height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
  }

  /* Fix for iOS input zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Button Adjustments */
  .btn {
    padding: 0.75rem 1.5rem !important;
    min-height: 44px !important;
  }

  .btn-lg {
    padding: 1rem 2rem !important;
  }

  /* Footer */
  footer .row > div {
    margin-bottom: 2rem !important;
  }

  /* Fix horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  /* Testimonials */
  .testimonial-card .card-body {
    padding: 1.25rem !important;
  }

  /* FAQ Section */
  .accordion-button {
    padding: 1rem !important;
  }

  .accordion-body {
    padding: 1rem !important;
  }

  /* Floating elements */
  .floating-dots {
    width: 100px !important;
    height: 100px !important;
  }

  /* Touch targets */
  a, button, .btn, .nav-link {
    touch-action: manipulation;
  }

  /* Logo size adjustment for mobile */
  .navbar-logo {
    height: 50px !important;
    width: auto !important;
  }
  
  /* Adjust navbar padding on mobile */
  .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Hero section mobile specific fixes */
  #hero-section {
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 80px !important;
    padding-bottom: 20px !important;
  }
  
  .mega-title {
    font-size: 40px !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle {
    font-size: 18px !important;
    line-height: 1.6 !important;
    margin: 1.5rem 0 !important;
    max-width: 95% !important;
  }

  /* Footer logo size adjustment */
  footer img {
    height: 60px !important;
    width: auto !important;
  }
  
  /* Features icon fixes for mobile */
  .features-icon-container .icon {
    inline-size: 30px !important;
    block-size: 30px !important;
    font-size: 1rem !important;
  }
  
  /* Improve touch targets */
  .nav-link, .btn, a {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  .navbar-toggler {
    padding: 10px !important;
    font-size: 20px !important;
  }
  
  /* Better spacing */
  section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  section:first-of-type {
    padding-top: 100px !important; 
  }
}

/* Additional fixes for extra small devices */
@media (max-width: 576px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .card-body {
    padding: 1rem !important;
  }

  .display-2 {
    font-size: calc(1.6rem + 1.5vw) !important;
  }

  .display-4 {
    font-size: calc(1.4rem + 1vw) !important;
  }
}

/* Fix for devices between 768px and 992px */
@media (min-width: 768px) and (max-width: 992px) {
  .container {
    max-width: 95% !important;
  }
}

/* Desktop specific styles */
@media (min-width: 992px) {
  .mega-title .desktop-break {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: row !important;
    justify-content: center;
    gap: 1rem !important;
  }
  
  .hero-buttons .btn {
    width: auto !important;
    min-width: 200px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced touch feedback for mobile */
@media (max-width: 768px) {
  .btn:active {
    transform: scale(0.97) !important;
  }
  
  .nav-link:active, a:active {
    opacity: 0.7 !important;
  }
} 