/* ============================================
   ABOUT PAGE UNIFIED STYLES
   Enhanced Professional Design with Animations
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Primary Brand Colors - Egyptian Red & Black */
  --about-primary: #ce1126;
  --about-primary-dark: #a00d1e;
  --about-primary-light: rgba(206, 17, 38, 0.1);
  --about-secondary: #000000;
  --about-secondary-dark: #1a1a1a;
  
  /* Accent Gradients */
  --about-accent-gradient: linear-gradient(135deg, #ce1126 0%, #000000 100%);
  --about-gradient-shimmer: linear-gradient(90deg, #ce1126, #000000, #ce1126);
  
  /* Background Colors */
  --about-bg: #ffffff;
  --about-fg: #1f2937;
  --about-muted: #6b7280;
  
  /* Card Styling */
  --about-card-bg: #ffffff;
  --about-card-border: #e5e7eb;
  --about-card-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  --about-card-shadow-hover: 0 20px 40px rgba(206, 17, 38, 0.15);
  
  /* Spacing & Layout */
  --about-section-padding: 100px 20px;
  --about-card-radius: 20px;
  --about-card-gap: 30px;
  
  /* Animation Timings */
  --about-transition-fast: 0.2s;
  --about-transition-normal: 0.3s;
  --about-transition-slow: 0.6s;
  --about-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --about-easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Typography */
  --about-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --about-heading-weight: 900;
  --about-body-weight: 400;
  
  /* Golden Star Color */
  --about-star-color: #fbbf24;
}

/* Dark Mode Variables */
html[data-theme="dark"] {
  --about-bg: #0f172a;
  --about-fg: #f3f4f6;
  --about-muted: #9ca3af;
  --about-primary: #818cf8;
  --about-primary-dark: #a78bfa;
  --about-primary-light: rgba(129, 140, 248, 0.15);
  --about-card-bg: #1e293b;
  --about-card-border: #334155;
  --about-card-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  --about-card-shadow-hover: 0 25px 50px rgba(129, 140, 248, 0.2);
}

/* ============================================
   2. BASE STYLES & RESETS
   ============================================ */

/* Hide skip link and screen reader only elements */
.skip-link,
.sr-only,
[class*="desc-"] {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Base responsive grid system - Mobile First */
.about-grid {
  display: grid;
  gap: var(--about-card-gap);
  width: 100%;
}

/* Single column by default (mobile) */
.about-grid-1 {
  grid-template-columns: 1fr;
}

/* Container with max-width */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Section spacing */
.about-section {
  padding: var(--about-section-padding);
  position: relative;
  overflow: hidden;
}

/* Smooth theme transitions */
.about-section,
.about-card,
.about-button,
.about-input {
  transition: background-color var(--about-transition-normal) ease,
              color var(--about-transition-normal) ease,
              border-color var(--about-transition-normal) ease;
}

/* ============================================
   3. BROWSER COMPATIBILITY FALLBACKS
   ============================================ */

/* Fallback colors for browsers without CSS custom properties */
.about-card {
  background: #ffffff;
  background: var(--about-card-bg);
  border: 2px solid #e5e7eb;
  border: 2px solid var(--about-card-border);
}

.about-primary-text {
  color: #ce1126;
  color: var(--about-primary);
}

.about-bg-primary {
  background: #ce1126;
  background: var(--about-primary);
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
  .about-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .about-grid > * {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  
  /* Flexbox fallback for services grid */
  .services-grid,
  .services-section .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .services-grid > *,
  .services-section .row > * {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(100% - 30px);
    flex: 1 1 calc(100% - 30px);
    margin: 15px;
  }
  
  /* Flexbox fallback for testimonials grid */
  .testimonials-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  
  .testimonials-grid > * {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    margin-bottom: 30px;
  }
  
  /* Flexbox fallback for gallery grid */
  .gallery-grid,
  .gallery-section .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .gallery-grid > *,
  .gallery-section .row > * {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(50% - 15px);
    flex: 1 1 calc(50% - 15px);
    margin: 7.5px;
  }
}

/* CSS Grid with auto-fit for responsive layouts */
@supports (display: grid) {
  .about-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--about-card-gap);
  }
}

/* Backdrop-filter fallback for browsers without support */
@supports not (backdrop-filter: blur(10px)) {
  .lightbox-backdrop,
  .gallery-lightbox,
  .image-lightbox {
    background: rgba(0, 0, 0, 0.98);
  }
  
  .testimonial-card,
  .comment-card,
  .service-card {
    background: rgba(255, 255, 255, 0.98);
  }
  
  html[data-theme="dark"] .testimonial-card,
  html[data-theme="dark"] .comment-card,
  html[data-theme="dark"] .service-card {
    background: rgba(30, 41, 59, 0.98);
  }
}

/* Fallback for browsers without CSS custom properties (IE11) */
@supports not (--css: variables) {
  .service-card,
  .testimonial-card,
  .comment-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }
  
  .service-card:hover,
  .testimonial-card:hover,
  .comment-card:hover {
    box-shadow: 0 20px 40px rgba(206, 17, 38, 0.15);
    border-color: #ce1126;
  }
  
  .hero-cta,
  .btn-primary,
  .btn-animated {
    background: linear-gradient(135deg, #ce1126 0%, #000000 100%);
    color: #ffffff;
  }
  
  .service-icon,
  .advantage-icon i {
    color: #ce1126;
  }
  
  .service-title,
  .advantage-content h4 {
    color: #1f2937;
  }
  
  .service-description,
  .advantage-content p {
    color: #6b7280;
  }
}

/* Transform fallback with vendor prefixes */
.service-card,
.testimonial-card,
.comment-card,
.gallery-card {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Transition fallback with vendor prefixes */
.service-card,
.testimonial-card,
.comment-card {
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation fallback with vendor prefixes */
@-webkit-keyframes fade-in-up {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@-moz-keyframes fade-in-up {
  from {
    opacity: 0;
    -moz-transform: translateY(20px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px);
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
}

/* Background-clip fallback for text gradients */
@supports not (-webkit-background-clip: text) {
  .hero-headline,
  .hero-section .text-gradient,
  .hero-section .hero-enhanced {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ce1126;
  }
}

/* Flexbox fallback with vendor prefixes */
.about-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.about-flex-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.about-flex-between {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

/* ============================================
   4. RESPONSIVE BREAKPOINTS - MOBILE FIRST
   ============================================ */

/* Mobile: 320px - 767px (default styles above) */

/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
  :root {
    --about-section-padding: 80px 30px;
    --about-card-gap: 25px;
  }
  
  .about-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-container {
    padding: 0 30px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  :root {
    --about-section-padding: 100px 40px;
    --about-card-gap: 30px;
  }
  
  .about-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-container {
    padding: 0 40px;
  }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
  .about-container {
    max-width: 1400px;
  }
}

/* ============================================
   5. ACCESSIBILITY - REDUCED MOTION
   ============================================ */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable 3D transforms for reduced motion */
  .service-card-3d .service-card {
    transform: none !important;
  }
  
  .service-card-3d .service-card:hover {
    transform: translateY(-4px) !important;
  }
  
  /* Hide decorative animations */
  .service-card-shine,
  .service-card-gradient-bg,
  .hero-section::before,
  .hero-section::after,
  .floating-shape-2,
  .hero-floating-elements {
    display: none !important;
  }
  
  /* Simplify icon animations */
  .service-icon-animated,
  .service-card .icon,
  .service-card i {
    animation: none !important;
  }
  
  /* Simplify button effects */
  .hero-cta::before,
  .btn-animated::before,
  .btn-primary::before,
  .testimonial-submit-btn::before {
    display: none !important;
  }
  
  /* Simplify star animations */
  .star-rating input:checked ~ label {
    animation: none !important;
  }
  
  .star-rating input:checked ~ label::after {
    animation: none !important;
  }
  
  /* Keep essential focus indicators */
  .service-card:focus,
  .testimonial-card:focus,
  .form-input-animated input:focus,
  .form-input-animated textarea:focus {
    outline: 3px solid var(--about-primary-light) !important;
    outline-offset: 4px !important;
  }
}

/* ============================================
   6. UTILITY CLASSES
   ============================================ */

/* Text utilities */
.about-text-center {
  text-align: center;
}

.about-text-primary {
  color: var(--about-primary);
}

.about-text-muted {
  color: var(--about-muted);
}

/* Spacing utilities */
.about-mb-1 { margin-bottom: 0.5rem; }
.about-mb-2 { margin-bottom: 1rem; }
.about-mb-3 { margin-bottom: 1.5rem; }
.about-mb-4 { margin-bottom: 2rem; }
.about-mb-5 { margin-bottom: 3rem; }

.about-mt-1 { margin-top: 0.5rem; }
.about-mt-2 { margin-top: 1rem; }
.about-mt-3 { margin-top: 1.5rem; }
.about-mt-4 { margin-top: 2rem; }
.about-mt-5 { margin-top: 3rem; }

/* Display utilities */
.about-flex {
  display: flex;
}

.about-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Position utilities */
.about-relative {
  position: relative;
}

.about-absolute {
  position: absolute;
}

/* ============================================
   7. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animated elements */
.about-gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform, opacity;
}

/* Remove will-change after animation completes */
.about-animation-complete {
  will-change: auto;
}

/* Apply GPU acceleration to all animated cards */
.service-card,
.testimonial-card,
.comment-card,
.service-card-3d,
.hero-cta,
.btn-animated,
.btn-primary {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Optimize will-change for hover elements */
.service-card,
.testimonial-card,
.comment-card {
  will-change: transform, box-shadow;
}

.service-card:hover,
.testimonial-card:hover,
.comment-card:hover {
  will-change: auto;
}

/* Optimize animations for 60fps */
.service-icon-animated,
.service-card-shine,
.service-card-gradient-bg {
  will-change: transform, opacity;
}

/* Remove will-change after animations complete */
.service-card:not(:hover) .service-icon-animated,
.service-card:not(:hover) .service-card-shine {
  will-change: auto;
}

/* ============================================
   REDUCED ANIMATIONS CLASS - PERFORMANCE FALLBACK
   ============================================ */

/* Applied automatically when FPS drops below 30 */
.reduced-animations .service-card-3d .service-card {
  transform: none !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
  will-change: auto !important;
}

.reduced-animations .service-card-3d .service-card:hover {
  transform: translateY(-4px) !important;
}

.reduced-animations .service-card-shine {
  display: none !important;
}

.reduced-animations .service-card-gradient-bg {
  animation: none !important;
  background: transparent !important;
}

.reduced-animations .service-icon-animated {
  animation: none !important;
  transition: transform 0.2s ease !important;
}

.reduced-animations .service-icon-animated:hover {
  transform: scale(1.05) !important;
}

.reduced-animations .testimonial-card,
.reduced-animations .comment-card {
  animation: simple-fade-in 0.3s ease-out forwards !important;
}

@keyframes simple-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reduced-animations .hero-section::before,
.reduced-animations .hero-section::after,
.reduced-animations .floating-shape-2 {
  animation: none !important;
  display: none !important;
}

.reduced-animations .hero-headline,
.reduced-animations .text-gradient {
  animation: simple-fade-in 0.3s ease-out forwards !important;
}

.reduced-animations .star-rating label {
  transition: color 0.1s ease !important;
}

.reduced-animations .star-rating input:checked ~ label {
  animation: none !important;
}

/* Limit concurrent animations with staggered delays */
.service-card:nth-child(n+7) {
  animation-delay: 0.6s;
}

.testimonial-card:nth-child(n+7),
.comment-card:nth-child(n+7) {
  animation-delay: 0.6s;
}

/* ============================================
   8. RTL SUPPORT
   ============================================ */

/* RTL adjustments for Arabic */
[dir="rtl"] .about-card {
  text-align: right;
}

[dir="rtl"] .about-flex-start {
  flex-direction: row-reverse;
}

/* ============================================
   9. PRINT STYLES
   ============================================ */

@media print {
  .about-section {
    page-break-inside: avoid;
  }
  
  .about-card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  /* Hide animations in print */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   END OF FOUNDATION SETUP
   Component-specific styles will be added below
   ============================================ */

/* ============================================
   10. HERO SECTION STYLING WITH ANIMATIONS
   ============================================ */

/* Hero Section Container */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(206, 17, 38, 0.05) 0%, 
    rgba(0, 0, 0, 0.02) 100%);
}

/* Dark mode hero background */
html[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, 
    rgba(129, 140, 248, 0.08) 0%, 
    rgba(0, 0, 0, 0.3) 100%);
}

/* Animated gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(206, 17, 38, 0.03) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.02) 100%
  );
  animation: gradient-shift 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gradient-shift {
  0%, 100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  50% {
    opacity: 0.7;
    transform: translateX(20px) translateY(-20px);
  }
}

/* Floating geometric background shapes */
.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(206, 17, 38, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float-shape-1 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="dark"] .hero-section::after {
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.12) 0%,
    transparent 70%
  );
}

@keyframes float-shape-1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-30px, 40px) rotate(120deg);
  }
  66% {
    transform: translate(30px, -40px) rotate(240deg);
  }
}

/* Additional floating shapes */
.hero-section .floating-shape-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.04) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
  animation: float-shape-2 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="dark"] .hero-section .floating-shape-2 {
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.08) 0%,
    transparent 70%
  );
}

@keyframes float-shape-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

/* Hero Content Container - Centered with max-width 800px */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

/* Hero Headline with Gradient Shimmer Animation */
.hero-headline,
.hero-section .text-gradient,
.hero-section .hero-enhanced {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--about-heading-weight);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--about-gradient-shimmer);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shimmer 4s ease-in-out infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .hero-headline,
  .hero-section .text-gradient,
  .hero-section .hero-enhanced {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--about-primary);
  }
}

@keyframes gradient-shimmer {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 200% center;
  }
}

/* Hero Subtitle with Fade-in Animation */
.hero-subtitle,
.hero-subheading {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--about-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease-out 0.3s forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero CTA Button with Hover Effects */
.hero-cta,
.hero-section .btn-primary,
.hero-section .btn-animated {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--about-accent-gradient);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--about-transition-normal) var(--about-easing);
  opacity: 0;
  animation: fade-in-up 0.8s ease-out 0.6s forwards;
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
  transform: translateZ(0);
  backface-visibility: hidden;
}

html[data-theme="dark"] .hero-cta,
html[data-theme="dark"] .hero-section .btn-primary,
html[data-theme="dark"] .hero-section .btn-animated {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}

/* CTA Button Hover - Scale Effect */
.hero-cta:hover,
.hero-section .btn-primary:hover,
.hero-section .btn-animated:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(206, 17, 38, 0.4);
}

html[data-theme="dark"] .hero-cta:hover,
html[data-theme="dark"] .hero-section .btn-primary:hover,
html[data-theme="dark"] .hero-section .btn-animated:hover {
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.4);
}

/* CTA Button Active State */
.hero-cta:active,
.hero-section .btn-primary:active,
.hero-section .btn-animated:active {
  transform: scale(0.98) translateY(0);
}

/* CTA Button Ripple Effect */
.hero-cta::before,
.hero-section .btn-primary::before,
.hero-section .btn-animated::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover::before,
.hero-section .btn-primary:hover::before,
.hero-section .btn-animated:hover::before {
  width: 300px;
  height: 300px;
}

/* CTA Button Focus State for Accessibility */
.hero-cta:focus,
.hero-section .btn-primary:focus,
.hero-section .btn-animated:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.hero-cta:focus:not(:focus-visible),
.hero-section .btn-primary:focus:not(:focus-visible),
.hero-section .btn-animated:focus:not(:focus-visible) {
  outline: none;
}

.hero-cta:focus-visible,
.hero-section .btn-primary:focus-visible,
.hero-section .btn-animated:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Hero Floating Elements Container */
.hero-floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Floating geometric shapes - Circles */
.hero-floating-elements .hero-floating-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Large circle */
.hero-floating-elements .hero-floating-circle.large {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(206, 17, 38, 0.08) 0%, transparent 70%);
  top: 10%;
  right: 10%;
  animation: float-circle-large 18s ease-in-out infinite;
}

html[data-theme="dark"] .hero-floating-elements .hero-floating-circle.large {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
}

@keyframes float-circle-large {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 50px) scale(1.15);
  }
  66% {
    transform: translate(40px, -30px) scale(0.9);
  }
}

/* Medium circle */
.hero-floating-elements .hero-floating-circle.medium {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
  bottom: 15%;
  left: 15%;
  animation: float-circle-medium 15s ease-in-out infinite;
}

html[data-theme="dark"] .hero-floating-elements .hero-floating-circle.medium {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
}

@keyframes float-circle-medium {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -40px) rotate(180deg);
  }
}

/* Small circle */
.hero-floating-elements .hero-floating-circle.small {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(206, 17, 38, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 8%;
  animation: float-circle-small 12s ease-in-out infinite;
}

html[data-theme="dark"] .hero-floating-elements .hero-floating-circle.small {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
}

@keyframes float-circle-small {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(20px, -25px);
    opacity: 1;
  }
}

/* Floating geometric shapes - Squares */
.hero-floating-elements .hero-floating-square {
  position: absolute;
  pointer-events: none;
  border-radius: 8px;
}

/* Large square */
.hero-floating-elements .hero-floating-square.large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(206, 17, 38, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
  bottom: 25%;
  right: 20%;
  animation: float-square-large 20s ease-in-out infinite;
}

html[data-theme="dark"] .hero-floating-elements .hero-floating-square.large {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, rgba(167, 139, 250, 0.04) 100%);
}

@keyframes float-square-large {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-35px, 45px) rotate(120deg);
  }
  66% {
    transform: translate(35px, -35px) rotate(240deg);
  }
}

/* Small square */
.hero-floating-elements .hero-floating-square.small {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
  top: 30%;
  right: 25%;
  animation: float-square-small 14s ease-in-out infinite;
}

html[data-theme="dark"] .hero-floating-elements .hero-floating-square.small {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.06) 0%, transparent 100%);
}

@keyframes float-square-small {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(25px, -30px) rotate(180deg) scale(1.1);
  }
}

/* Responsive Hero Section - Mobile */
@media (max-width: 767px) {
  .hero-section {
    min-height: 50vh;
    padding: 60px 20px;
  }
  
  .hero-headline {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    /* Ensure minimum touch target size of 44x44px */
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Reduce floating shapes on mobile for performance */
  .hero-floating-circle-2,
  .hero-floating-circle-3 {
    display: none;
  }
}

/* Responsive Hero Section - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    min-height: 55vh;
    padding: 70px 30px;
  }
  
  .hero-headline {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Responsive Hero Section - Desktop */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 60vh;
    padding: 80px 40px;
  }
  
  .hero-content {
    padding: 0 40px;
  }
}

/* ============================================
   END OF HERO SECTION STYLING
   ============================================ */
/* ============================================
   11. SERVICE CARDS SECTION WITH HOVER INTERACTIONS
   ============================================ */

/* Services Section Container */
.services-section {
  padding: var(--about-section-padding);
  background: var(--about-bg);
  position: relative;
  overflow: hidden;
}

/* Services Grid Layout - Mobile First (1 column) */
.services-grid,
.services-section .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--about-card-gap);
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Service Card Base Styling */
.service-card,
.services-section .service-item,
.services-section .card {
  background: var(--about-card-bg);
  border-radius: var(--about-card-radius);
  border: 2px solid var(--about-card-border);
  border-left: 4px solid transparent;
  padding: 2rem;
  box-shadow: var(--about-card-shadow);
  transition: all var(--about-transition-normal) var(--about-easing);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, box-shadow, border-color;
}

/* Service Card Hover - Lift Animation */
.service-card:hover,
.services-section .service-item:hover,
.services-section .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--about-card-shadow-hover);
  border-left-color: var(--about-primary);
  will-change: auto;
}

/* Service Card Background Gradient on Hover */
.service-card::before,
.services-section .service-item::before,
.services-section .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--about-primary-light) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--about-transition-normal) ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before,
.services-section .service-item:hover::before,
.services-section .card:hover::before {
  opacity: 1;
}

/* Service Card Content - Ensure it's above the background gradient */
.service-card > *,
.services-section .service-item > *,
.services-section .card > * {
  position: relative;
  z-index: 1;
}

/* Service Icon Container */
.service-icon,
.service-card .icon,
.service-card i,
.services-section .service-item .icon,
.services-section .service-item i {
  font-size: 3rem;
  color: var(--about-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all var(--about-transition-normal) var(--about-easing);
  transform-origin: center;
}

/* Icon Pulse Animation on Card Hover */
.service-card:hover .service-icon,
.service-card:hover .icon,
.service-card:hover i,
.services-section .service-item:hover .icon,
.services-section .service-item:hover i {
  transform: scale(1.1) rotate(5deg);
  animation: icon-pulse 0.6s ease-in-out;
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    transform: scale(1.2) rotate(-5deg);
  }
}

/* Service Title */
.service-title,
.service-card h3,
.service-card h4,
.services-section .service-item h3,
.services-section .service-item h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--about-fg);
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: color var(--about-transition-fast) ease;
}

.service-card:hover .service-title,
.service-card:hover h3,
.service-card:hover h4,
.services-section .service-item:hover h3,
.services-section .service-item:hover h4 {
  color: var(--about-primary);
}

/* Service Description */
.service-description,
.service-card p,
.services-section .service-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--about-muted);
  margin-bottom: 0;
  transition: color var(--about-transition-fast) ease;
}

/* Service Card Link (if present) */
.service-link,
.service-card a,
.services-section .service-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--about-primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all var(--about-transition-fast) ease;
}

.service-link:hover,
.service-card a:hover,
.services-section .service-item a:hover {
  gap: 0.75rem;
  text-decoration: underline;
}

/* Service Card Entrance Animations - Scroll Into View */
.service-card,
.services-section .service-item,
.services-section .card {
  opacity: 0;
  animation: fade-in-up-card 0.6s ease-out forwards;
}

/* Stagger animation delays for multiple cards */
.service-card:nth-child(1),
.services-section .service-item:nth-child(1),
.services-section .card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2),
.services-section .service-item:nth-child(2),
.services-section .card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3),
.services-section .service-item:nth-child(3),
.services-section .card:nth-child(3) {
  animation-delay: 0.3s;
}

.service-card:nth-child(4),
.services-section .service-item:nth-child(4),
.services-section .card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-card:nth-child(5),
.services-section .service-item:nth-child(5),
.services-section .card:nth-child(5) {
  animation-delay: 0.5s;
}

.service-card:nth-child(6),
.services-section .service-item:nth-child(6),
.services-section .card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fade-in-up-card {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Card Focus State for Accessibility */
.service-card:focus,
.service-card:focus-within,
.services-section .service-item:focus,
.services-section .service-item:focus-within {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.service-card:focus:not(:focus-visible),
.services-section .service-item:focus:not(:focus-visible) {
  outline: none;
}

/* Service Card Active State */
.service-card:active,
.services-section .service-item:active {
  transform: translateY(-6px);
}

/* Left Border Accent - Egyptian Red */
.service-card-accent,
.service-card.featured {
  border-left-color: var(--about-primary);
  border-left-width: 4px;
}

/* Service Badge (if present) */
.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--about-accent-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Service Number/Counter (if present) */
.service-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: var(--about-primary-light);
  color: var(--about-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all var(--about-transition-normal) ease;
}

.service-card:hover .service-number {
  background: var(--about-primary);
  color: white;
  transform: scale(1.1) rotate(360deg);
}

/* Responsive Service Cards - Tablet (2 columns) */
@media (min-width: 768px) {
  .services-grid,
  .services-section .row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .services-section .service-item,
  .services-section .card {
    padding: 2rem;
  }
  
  .service-icon,
  .service-card .icon,
  .service-card i {
    font-size: 3rem;
  }
  
  .service-title,
  .service-card h3,
  .service-card h4 {
    font-size: 1.5rem;
  }
}

/* Responsive Service Cards - Desktop (3 columns) */
@media (min-width: 1024px) {
  .services-grid,
  .services-section .row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card,
  .services-section .service-item,
  .services-section .card {
    padding: 2.5rem;
  }
  
  .service-icon,
  .service-card .icon,
  .service-card i {
    font-size: 3.5rem;
  }
  
  .service-title,
  .service-card h3,
  .service-card h4 {
    font-size: 1.75rem;
  }
}

/* Responsive Service Cards - Mobile Touch Targets */
@media (max-width: 767px) {
  .service-card,
  .services-section .service-item,
  .services-section .card {
    padding: 1.5rem;
    /* Ensure minimum touch target size */
    min-height: 44px;
  }
  
  .service-icon,
  .service-card .icon,
  .service-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .service-title,
  .service-card h3,
  .service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-description,
  .service-card p {
    font-size: 0.9375rem;
  }
}

/* Dark Mode Service Cards */
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .services-section .service-item,
html[data-theme="dark"] .services-section .card {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .services-section .service-item:hover,
html[data-theme="dark"] .services-section .card:hover {
  box-shadow: var(--about-card-shadow-hover);
  border-left-color: var(--about-primary);
}

html[data-theme="dark"] .service-icon,
html[data-theme="dark"] .service-card .icon,
html[data-theme="dark"] .service-card i {
  color: var(--about-primary);
}

html[data-theme="dark"] .service-title,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .service-card h4 {
  color: var(--about-fg);
}

html[data-theme="dark"] .service-card:hover .service-title,
html[data-theme="dark"] .service-card:hover h3,
html[data-theme="dark"] .service-card:hover h4 {
  color: var(--about-primary);
}

/* Intersection Observer Class for Scroll Animations */
.service-card.in-view,
.services-section .service-item.in-view,
.services-section .card.in-view {
  animation: fade-in-up-card 0.6s ease-out forwards;
}

/* Remove animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .services-section .service-item,
  .services-section .card {
    opacity: 1;
    animation: none;
  }
  
  .service-card:hover .service-icon,
  .service-card:hover .icon,
  .service-card:hover i {
    animation: none;
    transform: scale(1.05);
  }
}

/* ============================================
   12. ENHANCED 3D SERVICE CARD ANIMATIONS
   ============================================ */

/* 3D Perspective Container for Service Cards */
.service-card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
}

/* Service Card with 3D Transform Capability */
.service-card-3d .service-card {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Cursor-Following Shine Effect Overlay */
.service-card-shine {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 10;
  mix-blend-mode: overlay;
}

html[data-theme="dark"] .service-card-shine {
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.3) 0%,
    rgba(129, 140, 248, 0.15) 30%,
    transparent 70%
  );
}

/* Animated Gradient Background for Service Cards */
.service-card-gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(206, 17, 38, 0.05) 0%,
    rgba(0, 0, 0, 0.02) 50%,
    rgba(206, 17, 38, 0.05) 100%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--about-card-radius);
}

html[data-theme="dark"] .service-card-gradient-bg {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.08) 0%,
    rgba(167, 139, 250, 0.04) 50%,
    rgba(129, 140, 248, 0.08) 100%
  );
  background-size: 200% 200%;
}

.service-card:hover .service-card-gradient-bg {
  opacity: 1;
  animation: gradient-shift-hover 3s ease infinite;
}

@keyframes gradient-shift-hover {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced Icon Bounce Animation */
@keyframes icon-bounce-enhanced {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-12px) rotate(-5deg) scale(1.1);
  }
  50% {
    transform: translateY(0) rotate(0deg) scale(1.05);
  }
  75% {
    transform: translateY(-6px) rotate(5deg) scale(1.08);
  }
}

.service-card:hover .service-icon-animated {
  animation: icon-bounce-enhanced 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered Entrance Animations for Cards on Scroll */
.service-card-animated {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-animated.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays for sequential appearance */
.service-card-animated:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card-animated:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card-animated:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card-animated:nth-child(4) {
  transition-delay: 0.4s;
}

.service-card-animated:nth-child(5) {
  transition-delay: 0.5s;
}

.service-card-animated:nth-child(6) {
  transition-delay: 0.6s;
}

/* GPU Acceleration for 3D Transforms */
.service-card-3d,
.service-card-3d .service-card,
.service-card-shine,
.service-card-gradient-bg {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Disable 3D effects on touch devices */
.touch-device .service-card-3d .service-card {
  transform: none !important;
}

.touch-device .service-card-shine {
  display: none;
}

/* Disable 3D effects for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .service-card-3d .service-card {
    transform: none !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  
  .service-card-shine {
    display: none;
  }
  
  .service-card-gradient-bg {
    animation: none;
  }
  
  .service-card:hover .service-icon-animated {
    animation: none;
    transform: scale(1.05);
  }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 767px) {
  .service-card-3d {
    perspective: none;
  }
  
  .service-card-3d .service-card {
    transform: none !important;
  }
  
  .service-card-shine {
    display: none;
  }
  
  /* Simplified hover effect for mobile */
  .service-card:active {
    transform: scale(0.98);
  }
}

/* ============================================
   END OF SERVICE CARDS SECTION
   ============================================ */

/* ============================================
   12. ADVANTAGE ITEMS WITH ALTERNATING ANIMATIONS
   ============================================ */

/* Why Choose Us Section Container */
.why-choose-us-section {
  padding: var(--about-section-padding);
  background: var(--about-bg);
  position: relative;
  overflow: hidden;
}

/* Advantage List Container */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Advantage Item Base Styling */
.advantage-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--about-card-bg);
  border-radius: 16px;
  border: 2px solid var(--about-card-border);
  box-shadow: var(--about-card-shadow);
  transition: all var(--about-transition-normal) var(--about-easing);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  cursor: pointer;
  opacity: 0;
}

/* Advantage Item Hover Effects */
.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--about-card-shadow-hover);
  border-color: var(--about-primary);
}

/* Advantage Item Background Gradient on Hover */
.advantage-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--about-primary-light) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--about-transition-normal) ease;
  pointer-events: none;
  z-index: 0;
}

.advantage-item:hover::before {
  opacity: 1;
}

/* Ensure content is above background gradient */
.advantage-item > * {
  position: relative;
  z-index: 1;
}

/* Alternating Slide-in Animations - Left */
.advantage-item:nth-child(odd) {
  animation: slide-in-left 0.6s ease-out forwards;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Alternating Slide-in Animations - Right */
.advantage-item:nth-child(even) {
  animation: slide-in-right 0.6s ease-out forwards;
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation delays for multiple items */
.advantage-item:nth-child(1) {
  animation-delay: 0.1s;
}

.advantage-item:nth-child(2) {
  animation-delay: 0.2s;
}

.advantage-item:nth-child(3) {
  animation-delay: 0.3s;
}

.advantage-item:nth-child(4) {
  animation-delay: 0.4s;
}

.advantage-item:nth-child(5) {
  animation-delay: 0.5s;
}

.advantage-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Advantage Icon Container */
.advantage-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: var(--about-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--about-transition-normal) var(--about-easing);
  position: relative;
}

/* Icon Styling */
.advantage-icon i {
  font-size: 2rem;
  color: var(--about-primary);
  transition: all var(--about-transition-normal) ease;
}

/* Icon Bounce Effect on Hover */
.advantage-item:hover .advantage-icon {
  background: var(--about-primary);
  transform: scale(1.1);
  animation: icon-bounce 0.6s ease-in-out;
}

.advantage-item:hover .advantage-icon i {
  color: white;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: scale(1.1) translateY(0);
  }
  25% {
    transform: scale(1.15) translateY(-8px);
  }
  50% {
    transform: scale(1.1) translateY(0);
  }
  75% {
    transform: scale(1.15) translateY(-4px);
  }
}

/* Advantage Content Container */
.advantage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Advantage Title */
.advantage-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--about-fg);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  transition: color var(--about-transition-fast) ease;
}

.advantage-item:hover .advantage-content h4 {
  color: var(--about-primary);
}

/* Advantage Description */
.advantage-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--about-muted);
  margin: 0;
  transition: color var(--about-transition-fast) ease;
}

/* Highlight Stat Badge - Large Egyptian Red Numbers with Pulse Animation */
.highlight-stat {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--about-accent-gradient);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
  animation: stat-pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
  transition: all var(--about-transition-normal) ease;
}

html[data-theme="dark"] .highlight-stat {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

@keyframes stat-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
  }
}

/* Dark mode stat pulse uses same animation with different colors via CSS variables */

.advantage-item:hover .highlight-stat {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
}

html[data-theme="dark"] .advantage-item:hover .highlight-stat {
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
}

/* Statistics Display with Large Egyptian Red Numbers */
.advantage-stat-number {
  font-size: 3rem;
  font-weight: var(--about-heading-weight);
  color: var(--about-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

/* Number Counter Animation on Scroll Into View */
.advantage-item.in-view .advantage-stat-number {
  animation: count-up 1s ease-out forwards;
}

@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Advantage Item Focus State for Accessibility */
.advantage-item:focus,
.advantage-item:focus-within {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.advantage-item:focus:not(:focus-visible) {
  outline: none;
}

.advantage-item:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Advantage Item Active State */
.advantage-item:active {
  transform: translateY(-2px);
}

/* Two-Column Grid Layout for Desktop */
@media (min-width: 1024px) {
  .why-choose-us-section .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--about-card-gap);
  }
  
  .advantage-list {
    gap: 2rem;
  }
  
  .advantage-item {
    padding: 2rem;
  }
  
  .advantage-icon {
    width: 80px;
    height: 80px;
  }
  
  .advantage-icon i {
    font-size: 2.5rem;
  }
  
  .advantage-content h4 {
    font-size: 1.5rem;
  }
  
  .advantage-content p {
    font-size: 1.0625rem;
  }
  
  .highlight-stat {
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
  }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .advantage-item {
    padding: 1.75rem;
  }
  
  .advantage-icon {
    width: 70px;
    height: 70px;
  }
  
  .advantage-icon i {
    font-size: 2rem;
  }
  
  .advantage-content h4 {
    font-size: 1.25rem;
  }
}

/* Mobile Layout - Single Column */
@media (max-width: 767px) {
  .advantage-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
    /* Ensure minimum touch target size */
    min-height: 44px;
  }
  
  .advantage-icon {
    width: 60px;
    height: 60px;
  }
  
  .advantage-icon i {
    font-size: 1.75rem;
  }
  
  .advantage-content {
    align-items: center;
  }
  
  .advantage-content h4 {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .advantage-content p {
    font-size: 0.9375rem;
    text-align: center;
  }
  
  .highlight-stat {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
  
  /* Simplify animations on mobile for performance */
  .advantage-item:nth-child(odd),
  .advantage-item:nth-child(even) {
    animation: fade-in-up-card 0.6s ease-out forwards;
  }
}

/* Dark Mode Advantage Items */
html[data-theme="dark"] .advantage-item {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
}

html[data-theme="dark"] .advantage-item:hover {
  box-shadow: var(--about-card-shadow-hover);
  border-color: var(--about-primary);
}

html[data-theme="dark"] .advantage-icon {
  background: var(--about-primary-light);
}

html[data-theme="dark"] .advantage-icon i {
  color: var(--about-primary);
}

html[data-theme="dark"] .advantage-item:hover .advantage-icon {
  background: var(--about-primary);
}

html[data-theme="dark"] .advantage-item:hover .advantage-icon i {
  color: white;
}

html[data-theme="dark"] .advantage-content h4 {
  color: var(--about-fg);
}

html[data-theme="dark"] .advantage-item:hover .advantage-content h4 {
  color: var(--about-primary);
}

html[data-theme="dark"] .advantage-content p {
  color: var(--about-muted);
}

html[data-theme="dark"] .advantage-stat-number {
  color: var(--about-primary);
}

/* Intersection Observer Class for Scroll Animations */
.advantage-item.in-view {
  animation-play-state: running;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .advantage-item {
    opacity: 1;
    animation: none;
  }
  
  .advantage-item:hover .advantage-icon {
    animation: none;
    transform: scale(1.05);
  }
  
  .highlight-stat {
    animation: none;
  }
  
  .advantage-stat-number {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* RTL Support for Advantage Items */
[dir="rtl"] .advantage-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .advantage-content {
  text-align: right;
}

[dir="rtl"] .advantage-item:nth-child(odd) {
  animation: slide-in-right 0.6s ease-out forwards;
}

[dir="rtl"] .advantage-item:nth-child(even) {
  animation: slide-in-left 0.6s ease-out forwards;
}

@media (max-width: 767px) {
  [dir="rtl"] .advantage-item {
    flex-direction: column;
  }
  
  [dir="rtl"] .advantage-content {
    text-align: center;
  }
}

/* ============================================
   END OF ADVANTAGE ITEMS SECTION
   ============================================ */

/* ============================================
   13. GALLERY SECTION WITH PROFESSIONAL STYLING
   ============================================ */

/* Gallery Section Container */
.gallery-section {
  padding: var(--about-section-padding);
  background: var(--about-bg);
  position: relative;
  overflow: hidden;
}

/* Gallery Grid - Masonry-style Responsive Grid with CSS Grid auto-flow dense */
.gallery-grid,
.gallery-section .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-flow: dense;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Gallery Card Base Styling */
.gallery-card,
.gallery-section .gallery-item,
.gallery-section .image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--about-card-bg);
  box-shadow: var(--about-card-shadow);
  transition: all var(--about-transition-normal) var(--about-easing);
  transform: translateZ(0);
  backface-visibility: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  will-change: transform, box-shadow;
}

/* Gallery Card Hover - Lift Effect */
.gallery-card:hover,
.gallery-section .gallery-item:hover,
.gallery-section .image-card:hover {
  transform: scale(1.02);
  box-shadow: var(--about-card-shadow-hover);
  will-change: auto;
}

/* Gallery Image - Aspect-ratio Preservation with Rounded Corners */
.gallery-image,
.gallery-card img,
.gallery-section .gallery-item img,
.gallery-section .image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  transition: transform 0.5s var(--about-easing);
  display: block;
}

/* Image Zoom Effect on Hover - Scale 1.1 */
.gallery-card:hover .gallery-image,
.gallery-card:hover img,
.gallery-section .gallery-item:hover img,
.gallery-section .image-card:hover img {
  transform: scale(1.1);
}

/* Hover Overlay with Egyptian Red Gradient and Zoom Icon */
.image-overlay,
.gallery-card .overlay,
.gallery-section .gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(206, 17, 38, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0;
  transition: opacity var(--about-transition-normal) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2;
  pointer-events: none;
}

html[data-theme="dark"] .image-overlay,
html[data-theme="dark"] .gallery-card .overlay,
html[data-theme="dark"] .gallery-section .gallery-item .overlay {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.8) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Show Overlay on Hover */
.gallery-card:hover .image-overlay,
.gallery-card:hover .overlay,
.gallery-section .gallery-item:hover .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Zoom Icon in Overlay */
.overlay-icon,
.image-overlay .icon,
.gallery-card .overlay i,
.gallery-section .gallery-item .overlay i {
  font-size: 3rem;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--about-transition-normal) var(--about-easing-bounce);
}

.gallery-card:hover .overlay-icon,
.gallery-card:hover .image-overlay .icon,
.gallery-card:hover .overlay i,
.gallery-section .gallery-item:hover .overlay i {
  opacity: 1;
  transform: scale(1);
}

/* Overlay Text (if present) */
.overlay-text,
.image-overlay .text,
.gallery-card .overlay .text {
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--about-transition-normal) ease;
  transition-delay: 0.1s;
}

.gallery-card:hover .overlay-text,
.gallery-card:hover .image-overlay .text,
.gallery-card:hover .overlay .text {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Card Entrance Animations - Fade In */
.gallery-card,
.gallery-section .gallery-item,
.gallery-section .image-card {
  opacity: 0;
  animation: fade-in-scale 0.6s ease-out forwards;
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Stagger animation delays for gallery items */
.gallery-card:nth-child(1),
.gallery-section .gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}

.gallery-card:nth-child(2),
.gallery-section .gallery-item:nth-child(2) {
  animation-delay: 0.15s;
}

.gallery-card:nth-child(3),
.gallery-section .gallery-item:nth-child(3) {
  animation-delay: 0.2s;
}

.gallery-card:nth-child(4),
.gallery-section .gallery-item:nth-child(4) {
  animation-delay: 0.25s;
}

.gallery-card:nth-child(5),
.gallery-section .gallery-item:nth-child(5) {
  animation-delay: 0.3s;
}

.gallery-card:nth-child(6),
.gallery-section .gallery-item:nth-child(6) {
  animation-delay: 0.35s;
}

.gallery-card:nth-child(7),
.gallery-section .gallery-item:nth-child(7) {
  animation-delay: 0.4s;
}

.gallery-card:nth-child(8),
.gallery-section .gallery-item:nth-child(8) {
  animation-delay: 0.45s;
}

.gallery-card:nth-child(9),
.gallery-section .gallery-item:nth-child(9) {
  animation-delay: 0.5s;
}

/* Gallery Card Focus State for Accessibility */
.gallery-card:focus,
.gallery-card:focus-within,
.gallery-section .gallery-item:focus,
.gallery-section .gallery-item:focus-within {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.gallery-card:focus:not(:focus-visible),
.gallery-section .gallery-item:focus:not(:focus-visible) {
  outline: none;
}

.gallery-card:focus-visible,
.gallery-section .gallery-item:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Gallery Card Active State */
.gallery-card:active,
.gallery-section .gallery-item:active {
  transform: scale(0.98);
}

/* Gallery Item Variations - Tall Items (span 2 rows) */
.gallery-card.tall,
.gallery-section .gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

/* Gallery Item Variations - Wide Items (span 2 columns) */
.gallery-card.wide,
.gallery-section .gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* ============================================
   LIGHTBOX STYLING WITH DARK BACKDROP
   ============================================ */

/* Lightbox Backdrop - Dark Background */
.lightbox-backdrop,
.gallery-lightbox,
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--about-transition-normal) ease;
  padding: 20px;
}

/* Show Lightbox */
.lightbox-backdrop.active,
.gallery-lightbox.active,
.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Content Container */
.lightbox-content,
.lightbox-backdrop .content,
.gallery-lightbox .content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform var(--about-transition-normal) var(--about-easing);
}

.lightbox-backdrop.active .lightbox-content,
.gallery-lightbox.active .content {
  transform: scale(1);
}

/* Lightbox Image */
.lightbox-image,
.lightbox-content img,
.gallery-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Lightbox Navigation Arrows - Egyptian Red */
.lightbox-nav,
.lightbox-arrow,
.gallery-lightbox .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--about-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--about-transition-normal) ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.4);
}

html[data-theme="dark"] .lightbox-nav,
html[data-theme="dark"] .lightbox-arrow,
html[data-theme="dark"] .gallery-lightbox .nav-arrow {
  background: var(--about-primary);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

/* Previous Arrow - Left */
.lightbox-nav.prev,
.lightbox-arrow.prev,
.gallery-lightbox .nav-arrow.prev {
  left: 20px;
}

/* Next Arrow - Right */
.lightbox-nav.next,
.lightbox-arrow.next,
.gallery-lightbox .nav-arrow.next {
  right: 20px;
}

/* Navigation Arrow Hover */
.lightbox-nav:hover,
.lightbox-arrow:hover,
.gallery-lightbox .nav-arrow:hover {
  background: var(--about-primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.6);
}

html[data-theme="dark"] .lightbox-nav:hover,
html[data-theme="dark"] .lightbox-arrow:hover,
html[data-theme="dark"] .gallery-lightbox .nav-arrow:hover {
  background: var(--about-primary-dark);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.6);
}

/* Navigation Arrow Active */
.lightbox-nav:active,
.lightbox-arrow:active,
.gallery-lightbox .nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Navigation Arrow Focus State */
.lightbox-nav:focus,
.lightbox-arrow:focus,
.gallery-lightbox .nav-arrow:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.lightbox-nav:focus:not(:focus-visible),
.lightbox-arrow:focus:not(:focus-visible),
.gallery-lightbox .nav-arrow:focus:not(:focus-visible) {
  outline: none;
}

.lightbox-nav:focus-visible,
.lightbox-arrow:focus-visible,
.gallery-lightbox .nav-arrow:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Lightbox Close Button */
.lightbox-close,
.lightbox-backdrop .close-btn,
.gallery-lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--about-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--about-transition-normal) ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.4);
}

html[data-theme="dark"] .lightbox-close,
html[data-theme="dark"] .lightbox-backdrop .close-btn,
html[data-theme="dark"] .gallery-lightbox .close-btn {
  background: var(--about-primary);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

.lightbox-close:hover,
.lightbox-backdrop .close-btn:hover,
.gallery-lightbox .close-btn:hover {
  background: var(--about-primary-dark);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.6);
}

html[data-theme="dark"] .lightbox-close:hover,
html[data-theme="dark"] .lightbox-backdrop .close-btn:hover,
html[data-theme="dark"] .gallery-lightbox .close-btn:hover {
  background: var(--about-primary-dark);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.6);
}

.lightbox-close:active,
.lightbox-backdrop .close-btn:active,
.gallery-lightbox .close-btn:active {
  transform: scale(0.95) rotate(90deg);
}

/* Lightbox Close Button Focus State */
.lightbox-close:focus,
.lightbox-backdrop .close-btn:focus,
.gallery-lightbox .close-btn:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.lightbox-close:focus:not(:focus-visible),
.lightbox-backdrop .close-btn:focus:not(:focus-visible),
.gallery-lightbox .close-btn:focus:not(:focus-visible) {
  outline: none;
}

.lightbox-close:focus-visible,
.lightbox-backdrop .close-btn:focus-visible,
.gallery-lightbox .close-btn:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Lightbox Image Counter/Caption */
.lightbox-caption,
.lightbox-counter,
.gallery-lightbox .caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

/* ============================================
   RESPONSIVE GALLERY LAYOUTS
   ============================================ */

/* Mobile: 320px - 767px (1 column) */
@media (max-width: 767px) {
  .gallery-grid,
  .gallery-section .row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-card,
  .gallery-section .gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  
  .gallery-image,
  .gallery-card img {
    border-radius: 12px;
  }
  
  .overlay-icon,
  .image-overlay .icon {
    font-size: 2.5rem;
  }
  
  .overlay-text,
  .image-overlay .text {
    font-size: 1rem;
  }
  
  /* Lightbox adjustments for mobile */
  .lightbox-nav,
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .lightbox-nav.prev,
  .lightbox-arrow.prev {
    left: 10px;
  }
  
  .lightbox-nav.next,
  .lightbox-arrow.next {
    right: 10px;
  }
  
  .lightbox-close,
  .lightbox-backdrop .close-btn {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .lightbox-caption,
  .lightbox-counter {
    bottom: 10px;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  /* Disable wide/tall variations on mobile */
  .gallery-card.wide,
  .gallery-card.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Tablet: 768px - 1023px (2 columns) */
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid,
  .gallery-section .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .gallery-card,
  .gallery-section .gallery-item {
    aspect-ratio: 4 / 3;
  }
  
  .overlay-icon,
  .image-overlay .icon {
    font-size: 2.75rem;
  }
  
  /* Adjust wide items for tablet */
  .gallery-card.wide {
    grid-column: span 2;
  }
}

/* Desktop: 1024px+ (3 columns) */
@media (min-width: 1024px) {
  .gallery-grid,
  .gallery-section .row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-card,
  .gallery-section .gallery-item {
    aspect-ratio: 4 / 3;
  }
  
  .overlay-icon,
  .image-overlay .icon {
    font-size: 3rem;
  }
  
  .overlay-text,
  .image-overlay .text {
    font-size: 1.125rem;
  }
}

/* Large Desktop: 1440px+ (4 columns for more space) */
@media (min-width: 1440px) {
  .gallery-grid,
  .gallery-section .row {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ============================================
   SMOOTH TRANSITIONS FOR ALL GALLERY INTERACTIONS
   ============================================ */

/* Ensure all gallery elements have smooth transitions */
.gallery-card,
.gallery-image,
.image-overlay,
.overlay-icon,
.overlay-text,
.lightbox-backdrop,
.lightbox-content,
.lightbox-nav,
.lightbox-close {
  transition-timing-function: var(--about-easing);
}

/* Dark Mode Gallery Styling */
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .gallery-section .gallery-item {
  background: var(--about-card-bg);
  box-shadow: var(--about-card-shadow);
}

html[data-theme="dark"] .gallery-card:hover,
html[data-theme="dark"] .gallery-section .gallery-item:hover {
  box-shadow: var(--about-card-shadow-hover);
}

/* Intersection Observer Class for Scroll Animations */
.gallery-card.in-view,
.gallery-section .gallery-item.in-view {
  animation: fade-in-scale 0.6s ease-out forwards;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-section .gallery-item {
    opacity: 1;
    animation: none;
  }
  
  .gallery-card:hover,
  .gallery-section .gallery-item:hover {
    transform: none;
  }
  
  .gallery-card:hover .gallery-image,
  .gallery-card:hover img {
    transform: none;
  }
  
  .overlay-icon,
  .image-overlay .icon {
    opacity: 1;
    transform: scale(1);
  }
  
  .overlay-text,
  .image-overlay .text {
    opacity: 1;
    transform: translateY(0);
  }
  
  .lightbox-content {
    transform: scale(1);
  }
  
  .lightbox-nav:hover,
  .lightbox-close:hover {
    transform: translateY(-50%);
  }
  
  .lightbox-close:hover {
    transform: none;
  }
}

/* RTL Support for Gallery */
[dir="rtl"] .lightbox-nav.prev,
[dir="rtl"] .lightbox-arrow.prev {
  left: auto;
  right: 20px;
}

[dir="rtl"] .lightbox-nav.next,
[dir="rtl"] .lightbox-arrow.next {
  right: auto;
  left: 20px;
}

[dir="rtl"] .lightbox-close,
[dir="rtl"] .lightbox-backdrop .close-btn {
  right: auto;
  left: 20px;
}

@media (max-width: 767px) {
  [dir="rtl"] .lightbox-nav.prev,
  [dir="rtl"] .lightbox-arrow.prev {
    right: 10px;
  }
  
  [dir="rtl"] .lightbox-nav.next,
  [dir="rtl"] .lightbox-arrow.next {
    left: 10px;
  }
  
  [dir="rtl"] .lightbox-close,
  [dir="rtl"] .lightbox-backdrop .close-btn {
    left: 10px;
  }
}

/* ============================================
   END OF GALLERY SECTION STYLING
   ============================================ */

/* ============================================
   14. TESTIMONIALS AND FORM COMPONENTS
   ============================================ */

/* Testimonials Section Container */
.testimonials-section {
  padding: var(--about-section-padding);
  background: var(--about-bg);
  position: relative;
  overflow: hidden;
}

/* Testimonials Grid Layout - Mobile First (1 column) */
.testimonials-grid,
.testimonials-section .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--about-card-gap);
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Testimonial Card Base Styling with Top Egyptian Red Accent Line */
.testimonial-card,
.testimonials-section .testimonial-item,
.testimonials-section .comment-card {
  background: var(--about-card-bg);
  border-radius: var(--about-card-radius);
  border: 2px solid var(--about-card-border);
  border-top: 4px solid var(--about-primary);
  padding: 2rem;
  box-shadow: var(--about-card-shadow);
  transition: all var(--about-transition-normal) var(--about-easing);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, box-shadow;
}

/* Testimonial Card Hover Effects */
.testimonial-card:hover,
.testimonials-section .testimonial-item:hover,
.testimonials-section .comment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--about-card-shadow-hover);
  border-top-width: 6px;
  will-change: auto;
}

/* Testimonial Card Background Gradient on Hover */
.testimonial-card::before,
.testimonials-section .testimonial-item::before,
.testimonials-section .comment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--about-primary-light) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--about-transition-normal) ease;
  pointer-events: none;
  z-index: 0;
}

.testimonial-card:hover::before,
.testimonials-section .testimonial-item:hover::before,
.testimonials-section .comment-card:hover::before {
  opacity: 1;
}

/* Ensure content is above background gradient */
.testimonial-card > *,
.testimonials-section .testimonial-item > *,
.testimonials-section .comment-card > * {
  position: relative;
  z-index: 1;
}

/* Testimonial Header - User Info */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Testimonial Avatar */
.testimonial-avatar,
.testimonial-header .avatar,
.testimonial-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--about-primary);
  transition: all var(--about-transition-normal) ease;
}

.testimonial-card:hover .testimonial-avatar,
.testimonial-card:hover .testimonial-header .avatar,
.testimonial-card:hover .testimonial-header img {
  transform: scale(1.1);
  border-width: 4px;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

html[data-theme="dark"] .testimonial-card:hover .testimonial-avatar,
html[data-theme="dark"] .testimonial-card:hover .testimonial-header .avatar,
html[data-theme="dark"] .testimonial-card:hover .testimonial-header img {
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* Testimonial User Info */
.testimonial-user-info {
  flex: 1;
}

.testimonial-user-name,
.testimonial-header h4,
.testimonial-header .name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--about-fg);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  transition: color var(--about-transition-fast) ease;
}

.testimonial-card:hover .testimonial-user-name,
.testimonial-card:hover .testimonial-header h4,
.testimonial-card:hover .testimonial-header .name {
  color: var(--about-primary);
}

.testimonial-user-role,
.testimonial-header .role,
.testimonial-header .subtitle {
  font-size: 0.9375rem;
  color: var(--about-muted);
  margin: 0;
  line-height: 1.4;
}

/* Golden Star Rating (#fbbf24) with Stagger Animation */
.star-rating,
.testimonial-rating,
.rating-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-rating .star,
.star-rating i,
.testimonial-rating .star,
.testimonial-rating i,
.rating-stars .star,
.rating-stars i {
  font-size: 1.25rem;
  color: var(--about-star-color);
  transition: all var(--about-transition-fast) ease;
  display: inline-block;
}

/* Stagger animation on hover - each star animates with delay */
.testimonial-card:hover .star-rating .star:nth-child(1),
.testimonial-card:hover .star-rating i:nth-child(1) {
  animation: star-bounce 0.6s ease-in-out;
  animation-delay: 0s;
}

.testimonial-card:hover .star-rating .star:nth-child(2),
.testimonial-card:hover .star-rating i:nth-child(2) {
  animation: star-bounce 0.6s ease-in-out;
  animation-delay: 0.1s;
}

.testimonial-card:hover .star-rating .star:nth-child(3),
.testimonial-card:hover .star-rating i:nth-child(3) {
  animation: star-bounce 0.6s ease-in-out;
  animation-delay: 0.2s;
}

.testimonial-card:hover .star-rating .star:nth-child(4),
.testimonial-card:hover .star-rating i:nth-child(4) {
  animation: star-bounce 0.6s ease-in-out;
  animation-delay: 0.3s;
}

.testimonial-card:hover .star-rating .star:nth-child(5),
.testimonial-card:hover .star-rating i:nth-child(5) {
  animation: star-bounce 0.6s ease-in-out;
  animation-delay: 0.4s;
}

@keyframes star-bounce {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.3) rotate(-10deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  75% {
    transform: scale(1.25) rotate(-5deg);
  }
}

/* Empty stars (for rating input) */
.star-rating .star.empty,
.star-rating i.empty {
  color: #d1d5db;
}

/* Testimonial Content/Quote */
.testimonial-content,
.testimonial-quote,
.testimonial-text,
.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--about-muted);
  margin: 0;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

/* Quote Icon */
.testimonial-content::before,
.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-size: 3rem;
  color: var(--about-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Testimonial Date/Time */
.testimonial-date,
.testimonial-time {
  font-size: 0.875rem;
  color: var(--about-muted);
  margin-top: 1rem;
  display: block;
  opacity: 0.8;
}

/* ============================================
   FORM COMPONENTS STYLING
   ============================================ */

/* Form Container */
.testimonial-form,
.contact-form,
.about-form {
  background: var(--about-card-bg);
  border-radius: var(--about-card-radius);
  border: 2px solid var(--about-card-border);
  padding: 2.5rem;
  box-shadow: var(--about-card-shadow);
  transition: all var(--about-transition-normal) ease;
}

.testimonial-form:focus-within,
.contact-form:focus-within,
.about-form:focus-within {
  border-color: var(--about-primary);
  box-shadow: var(--about-card-shadow-hover);
}

/* Form Group - Input Container */
.form-group,
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Form Input Base Styling with Egyptian Red Focus States */
.form-input,
.form-control,
.testimonial-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--about-fg);
  background: var(--about-card-bg);
  border: 2px solid var(--about-card-border);
  border-radius: 12px;
  transition: all var(--about-transition-normal) ease;
  outline: none;
  font-family: var(--about-font-family);
}

/* Form Input Focus State - Egyptian Red */
.form-input:focus,
.form-control:focus,
.testimonial-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--about-primary);
  box-shadow: 0 0 0 3px var(--about-primary-light);
  transform: translateY(-2px);
}

/* Form Input Hover State */
.form-input:hover,
.form-control:hover,
.testimonial-input:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
textarea:hover {
  border-color: var(--about-primary);
}

/* Textarea Specific Styling */
.form-textarea,
.testimonial-textarea,
textarea {
  min-height: 120px;
  resize: vertical;
  padding: 1rem 1.25rem;
}

/* Form Input Placeholder */
.form-input::placeholder,
.form-control::placeholder,
.testimonial-input::placeholder,
textarea::placeholder {
  color: var(--about-muted);
  opacity: 0.6;
  transition: opacity var(--about-transition-fast) ease;
}

.form-input:focus::placeholder,
.form-control:focus::placeholder,
.testimonial-input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.4;
}

/* Animated Floating Labels for Form Fields */
.form-label,
.floating-label,
label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--about-fg);
  margin-bottom: 0.5rem;
  transition: all var(--about-transition-normal) ease;
  cursor: pointer;
}

/* Floating Label Container */
.form-group.floating {
  position: relative;
}

.form-group.floating .form-label,
.form-group.floating label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  background: var(--about-card-bg);
  padding: 0 0.5rem;
  margin: 0;
  pointer-events: none;
  transition: all var(--about-transition-normal) var(--about-easing);
  transform-origin: left center;
  z-index: 1;
}

/* Float label when input is focused or has value */
.form-group.floating .form-input:focus ~ .form-label,
.form-group.floating .form-input:not(:placeholder-shown) ~ .form-label,
.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
  top: -0.625rem;
  left: 1rem;
  font-size: 0.8125rem;
  color: var(--about-primary);
  transform: scale(0.95);
}

/* Form Input Icon (if present) */
.form-icon,
.input-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--about-muted);
  font-size: 1.125rem;
  pointer-events: none;
  transition: all var(--about-transition-normal) ease;
}

.form-input:focus ~ .form-icon,
.form-control:focus ~ .input-icon {
  color: var(--about-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Form Validation States */
.form-input.valid,
.form-control.valid {
  border-color: #10b981;
}

.form-input.invalid,
.form-control.invalid {
  border-color: #ef4444;
}

.form-input.valid:focus,
.form-control.valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.invalid:focus,
.form-control.invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form Error/Success Messages */
.form-message,
.form-error,
.form-success {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  line-height: 1.4;
}

.form-error {
  color: #ef4444;
}

.form-success {
  color: #10b981;
}

/* Submit Button with Gradient Background and Ripple Effect */
.btn-submit,
.form-submit,
.submit-button,
button[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--about-accent-gradient);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--about-transition-normal) var(--about-easing);
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
  transform: translateZ(0);
  backface-visibility: hidden;
  font-family: var(--about-font-family);
  text-align: center;
  /* Ensure minimum touch target size */
  min-height: 44px;
}

html[data-theme="dark"] .btn-submit,
html[data-theme="dark"] .form-submit,
html[data-theme="dark"] .submit-button,
html[data-theme="dark"] button[type="submit"] {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}

/* Submit Button Hover - Scale and Shadow */
.btn-submit:hover,
.form-submit:hover,
.submit-button:hover,
button[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(206, 17, 38, 0.4);
}

html[data-theme="dark"] .btn-submit:hover,
html[data-theme="dark"] .form-submit:hover,
html[data-theme="dark"] .submit-button:hover,
html[data-theme="dark"] button[type="submit"]:hover {
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.4);
}

/* Submit Button Active State */
.btn-submit:active,
.form-submit:active,
.submit-button:active,
button[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

/* Submit Button Ripple Effect */
.btn-submit::before,
.form-submit::before,
.submit-button::before,
button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover::before,
.form-submit:hover::before,
.submit-button:hover::before,
button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

/* Submit Button Focus State for Accessibility */
.btn-submit:focus,
.form-submit:focus,
.submit-button:focus,
button[type="submit"]:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.btn-submit:focus:not(:focus-visible),
.form-submit:focus:not(:focus-visible),
.submit-button:focus:not(:focus-visible),
button[type="submit"]:focus:not(:focus-visible) {
  outline: none;
}

.btn-submit:focus-visible,
.form-submit:focus-visible,
.submit-button:focus-visible,
button[type="submit"]:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Submit Button Disabled State */
.btn-submit:disabled,
.form-submit:disabled,
.submit-button:disabled,
button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-submit:disabled:hover,
.form-submit:disabled:hover,
.submit-button:disabled:hover,
button[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

/* Submit Button Loading State */
.btn-submit.loading,
.form-submit.loading,
.submit-button.loading {
  pointer-events: none;
  position: relative;
}

.btn-submit.loading::after,
.form-submit.loading::after,
.submit-button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Secondary Button Style (if needed) */
.btn-secondary {
  background: transparent;
  color: var(--about-primary);
  border: 2px solid var(--about-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--about-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

/* ============================================
   INTERACTIVE STAR RATING INPUT
   ============================================ */

/* Star Rating Input Container */
.star-rating-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Star Rating Input - Hidden Radio/Checkbox */
.star-rating-input input[type="radio"],
.star-rating-input input[type="checkbox"] {
  display: none;
}

/* Star Rating Label - Clickable Stars */
.star-rating-input label {
  cursor: pointer;
  font-size: 2rem;
  color: #d1d5db;
  transition: all var(--about-transition-fast) ease;
  display: inline-block;
  margin: 0;
}

/* Star Hover Effect - Highlight current and previous stars */
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
  color: var(--about-star-color);
  transform: scale(1.15);
}

/* Star Active/Selected State */
.star-rating-input input:checked ~ label {
  color: var(--about-star-color);
}

/* Star Focus State for Accessibility */
.star-rating-input input:focus ~ label {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.star-rating-input input:focus:not(:focus-visible) ~ label {
  outline: none;
}

/* Star Animation on Click */
.star-rating-input label:active {
  animation: star-click 0.3s ease-in-out;
}

@keyframes star-click {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(15deg);
  }
}

/* ============================================
   HOVER AND FOCUS MICRO-INTERACTIONS
   ============================================ */

/* Form Element Micro-interactions */
.form-group {
  transition: all var(--about-transition-normal) ease;
}

.form-group:focus-within {
  transform: translateY(-2px);
}

/* Checkbox and Radio Custom Styling */
.form-checkbox,
.form-radio,
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--about-primary);
  transition: all var(--about-transition-fast) ease;
}

.form-checkbox:hover,
.form-radio:hover,
input[type="checkbox"]:hover,
input[type="radio"]:hover {
  transform: scale(1.1);
}

.form-checkbox:focus,
.form-radio:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Select Dropdown Styling */
.form-select,
select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--about-fg);
  background: var(--about-card-bg);
  border: 2px solid var(--about-card-border);
  border-radius: 12px;
  transition: all var(--about-transition-normal) ease;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-select:focus,
select:focus {
  border-color: var(--about-primary);
  box-shadow: 0 0 0 3px var(--about-primary-light);
  transform: translateY(-2px);
}

.form-select:hover,
select:hover {
  border-color: var(--about-primary);
}

/* ============================================
   RESPONSIVE TESTIMONIALS AND FORMS
   ============================================ */

/* Tablet: 768px - 1023px (2 columns) */
@media (min-width: 768px) {
  .testimonials-grid,
  .testimonials-section .row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-card,
  .testimonials-section .testimonial-item {
    padding: 2rem;
  }
  
  .testimonial-form,
  .contact-form,
  .about-form {
    padding: 2.5rem;
  }
}

/* Desktop: 1024px+ (3 columns for testimonials) */
@media (min-width: 1024px) {
  .testimonials-grid,
  .testimonials-section .row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonial-card,
  .testimonials-section .testimonial-item {
    padding: 2rem;
  }
  
  .testimonial-form,
  .contact-form,
  .about-form {
    padding: 3rem;
  }
  
  .btn-submit,
  .form-submit,
  .submit-button {
    width: auto;
    min-width: 200px;
  }
}

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
  .testimonials-grid,
  .testimonials-section .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card,
  .testimonials-section .testimonial-item {
    padding: 1.5rem;
    /* Ensure minimum touch target size */
    min-height: 44px;
  }
  
  .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .testimonial-avatar,
  .testimonial-header .avatar,
  .testimonial-header img {
    width: 50px;
    height: 50px;
  }
  
  .testimonial-user-name,
  .testimonial-header h4 {
    font-size: 1rem;
  }
  
  .testimonial-user-role,
  .testimonial-header .role {
    font-size: 0.875rem;
  }
  
  .star-rating .star,
  .star-rating i {
    font-size: 1.125rem;
  }
  
  .testimonial-content,
  .testimonial-quote,
  .testimonial-card p {
    font-size: 0.9375rem;
    padding-left: 1rem;
  }

  .testimonial-form,
  .contact-form,
  .about-form {
    padding: 1.5rem;
  }
  
  .form-input,
  .form-control,
  .testimonial-input,
  input,
  textarea,
  select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    /* Ensure minimum touch target size */
    min-height: 44px;
  }
  
  .btn-submit,
  .form-submit,
  .submit-button,
  button[type="submit"] {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .star-rating-input label {
    font-size: 1.75rem;
  }
}

/* ============================================
   DARK MODE TESTIMONIALS AND FORMS
   ============================================ */

html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .testimonials-section .testimonial-item,
html[data-theme="dark"] .testimonials-section .comment-card {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
  border-top-color: var(--about-primary);
}

html[data-theme="dark"] .testimonial-card:hover,
html[data-theme="dark"] .testimonials-section .testimonial-item:hover,
html[data-theme="dark"] .testimonials-section .comment-card:hover {
  box-shadow: var(--about-card-shadow-hover);
}

html[data-theme="dark"] .testimonial-avatar,
html[data-theme="dark"] .testimonial-header .avatar,
html[data-theme="dark"] .testimonial-header img {
  border-color: var(--about-primary);
}

html[data-theme="dark"] .testimonial-user-name,
html[data-theme="dark"] .testimonial-header h4 {
  color: var(--about-fg);
}

html[data-theme="dark"] .testimonial-card:hover .testimonial-user-name,
html[data-theme="dark"] .testimonial-card:hover .testimonial-header h4 {
  color: var(--about-primary);
}

html[data-theme="dark"] .testimonial-user-role,
html[data-theme="dark"] .testimonial-header .role {
  color: var(--about-muted);
}

html[data-theme="dark"] .testimonial-content,
html[data-theme="dark"] .testimonial-quote,
html[data-theme="dark"] .testimonial-card p {
  color: var(--about-muted);
}

html[data-theme="dark"] .testimonial-content::before,
html[data-theme="dark"] .testimonial-quote::before {
  color: var(--about-primary);
}

html[data-theme="dark"] .testimonial-form,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .about-form {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .testimonial-input,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
  color: var(--about-fg);
}

html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .testimonial-input:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  border-color: var(--about-primary);
  box-shadow: 0 0 0 3px var(--about-primary-light);
}

html[data-theme="dark"] .form-label,
html[data-theme="dark"] label {
  color: var(--about-fg);
}

html[data-theme="dark"] .form-group.floating .form-input:focus ~ .form-label,
html[data-theme="dark"] .form-group.floating input:focus ~ label,
html[data-theme="dark"] .form-group.floating textarea:focus ~ label {
  color: var(--about-primary);
}

/* ============================================
   TESTIMONIAL CARD ENTRANCE ANIMATIONS
   ============================================ */

.testimonial-card,
.testimonials-section .testimonial-item,
.testimonials-section .comment-card {
  opacity: 0;
  animation: fade-in-up-card 0.6s ease-out forwards;
}

/* Stagger animation delays for testimonial cards */
.testimonial-card:nth-child(1),
.testimonials-section .testimonial-item:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2),
.testimonials-section .testimonial-item:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3),
.testimonials-section .testimonial-item:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:nth-child(4),
.testimonials-section .testimonial-item:nth-child(4) {
  animation-delay: 0.4s;
}

.testimonial-card:nth-child(5),
.testimonials-section .testimonial-item:nth-child(5) {
  animation-delay: 0.5s;
}

.testimonial-card:nth-child(6),
.testimonials-section .testimonial-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Testimonial Card Focus State for Accessibility */
.testimonial-card:focus,
.testimonial-card:focus-within,
.testimonials-section .testimonial-item:focus,
.testimonials-section .testimonial-item:focus-within {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.testimonial-card:focus:not(:focus-visible),
.testimonials-section .testimonial-item:focus:not(:focus-visible) {
  outline: none;
}

.testimonial-card:focus-visible,
.testimonials-section .testimonial-item:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Testimonial Card Active State */
.testimonial-card:active,
.testimonials-section .testimonial-item:active {
  transform: translateY(-4px);
}

/* Intersection Observer Class for Scroll Animations */
.testimonial-card.in-view,
.testimonials-section .testimonial-item.in-view {
  animation: fade-in-up-card 0.6s ease-out forwards;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .testimonials-section .testimonial-item {
    opacity: 1;
    animation: none;
  }
  
  .testimonial-card:hover .star-rating .star,
  .testimonial-card:hover .star-rating i {
    animation: none;
    transform: scale(1.1);
  }
  
  .star-rating-input label:hover {
    transform: scale(1.05);
  }
  
  .star-rating-input label:active {
    animation: none;
  }

  .form-group:focus-within {
    transform: none;
  }
  
  .form-input:focus,
  .form-control:focus,
  textarea:focus,
  select:focus {
    transform: none;
  }
  
  .btn-submit:hover,
  .form-submit:hover,
  .submit-button:hover,
  button[type="submit"]:hover {
    transform: none;
  }
  
  .btn-submit.loading::after,
  .form-submit.loading::after,
  .submit-button.loading::after {
    animation: none;
  }
}

/* ============================================
   RTL SUPPORT FOR TESTIMONIALS AND FORMS
   ============================================ */

[dir="rtl"] .testimonial-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-content,
[dir="rtl"] .testimonial-quote,
[dir="rtl"] .testimonial-card p {
  padding-left: 0;
  padding-right: 1.5rem;
  text-align: right;
}

[dir="rtl"] .testimonial-content::before,
[dir="rtl"] .testimonial-quote::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .star-rating,
[dir="rtl"] .testimonial-rating,
[dir="rtl"] .rating-stars {
  flex-direction: row-reverse;
}

[dir="rtl"] .star-rating-input {
  flex-direction: row;
  justify-content: flex-start;
}

[dir="rtl"] .form-icon,
[dir="rtl"] .input-icon {
  right: auto;
  left: 1.25rem;
}

[dir="rtl"] .form-group.floating .form-label,
[dir="rtl"] .form-group.floating label {
  left: auto;
  right: 1.25rem;
  transform-origin: right center;
}

[dir="rtl"] .form-group.floating .form-input:focus ~ .form-label,
[dir="rtl"] .form-group.floating input:focus ~ label,
[dir="rtl"] .form-group.floating textarea:focus ~ label {
  right: 1rem;
}

[dir="rtl"] .form-select,
[dir="rtl"] select {
  background-position: left 1rem center;
  padding-left: 3rem;
  padding-right: 1.25rem;
}

@media (max-width: 767px) {
  [dir="rtl"] .testimonial-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  [dir="rtl"] .testimonial-content,
  [dir="rtl"] .testimonial-quote,
  [dir="rtl"] .testimonial-card p {
    padding-right: 1rem;
  }
}

/* ============================================
   END OF TESTIMONIALS AND FORM COMPONENTS
   ============================================ */

/* ============================================
   12. ADS SLIDER SECTION WITH CONSISTENT THEMING
   ============================================ */

/* Ads Section Container */
.ads-section {
  padding: var(--about-section-padding);
  background: linear-gradient(135deg, 
    var(--about-bg) 0%, 
    rgba(206, 17, 38, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .ads-section {
  background: linear-gradient(135deg, 
    var(--about-bg) 0%, 
    rgba(129, 140, 248, 0.05) 100%);
}

/* Ads Container */
.ads-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Ads Title */
.ads-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: var(--about-heading-weight);
  color: var(--about-fg);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.ads-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--about-accent-gradient);
  border-radius: 2px;
}

/* Ads Slider Wrapper */
.ads-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 60px;
}

/* Ads Slider Container - 3D Carousel */
.ads-slider {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ad Card Base Styling */
.ad-card {
  position: absolute;
  width: 300px;
  height: 350px;
  transition: all var(--about-transition-slow) var(--about-easing);
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Ad Card Inner Container */
.ad-card-inner {
  width: 100%;
  height: 100%;
  background: var(--about-card-bg);
  border-radius: var(--about-card-radius);
  border: 2px solid var(--about-card-border);
  box-shadow: var(--about-card-shadow);
  overflow: hidden;
  transition: all var(--about-transition-normal) var(--about-easing);
  position: relative;
}

/* Ad Image */
.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--about-transition-slow) ease;
}

/* Ad Card Hover Effect */
.ad-card:hover .ad-card-inner {
  box-shadow: var(--about-card-shadow-hover);
  border-color: var(--about-primary);
}

.ad-card:hover .ad-image {
  transform: scale(1.05);
}

/* Ad Card States - 3D Carousel Positioning */

/* Active Card (Center) */
.ad-card.active {
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) translateZ(0) scale(1.1);
}

.ad-card.active .ad-card-inner {
  box-shadow: 0 25px 50px rgba(206, 17, 38, 0.2);
  border-color: var(--about-primary);
}

html[data-theme="dark"] .ad-card.active .ad-card-inner {
  box-shadow: 0 25px 50px rgba(129, 140, 248, 0.25);
}

/* Previous Card (Left) */
.ad-card.prev {
  z-index: 5;
  opacity: 0.7;
  pointer-events: auto;
  transform: translateX(-320px) translateZ(-150px) rotateY(25deg) scale(0.85);
}

/* Next Card (Right) */
.ad-card.next {
  z-index: 5;
  opacity: 0.7;
  pointer-events: auto;
  transform: translateX(320px) translateZ(-150px) rotateY(-25deg) scale(0.85);
}

/* Far Previous Card (Further Left) */
.ad-card.far-prev {
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
  transform: translateX(-500px) translateZ(-250px) rotateY(35deg) scale(0.7);
}

/* Far Next Card (Further Right) */
.ad-card.far-next {
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
  transform: translateX(500px) translateZ(-250px) rotateY(-35deg) scale(0.7);
}

/* Hidden Cards */
.ad-card.hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) translateZ(-400px) scale(0.5);
}

/* Navigation Buttons - Egyptian Red Hover State */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--about-card-bg);
  border: 2px solid var(--about-card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--about-transition-normal) var(--about-easing);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav svg {
  width: 24px;
  height: 24px;
  fill: var(--about-fg);
  transition: fill var(--about-transition-fast) ease;
}

/* Navigation Button Hover - Egyptian Red */
.slider-nav:hover {
  background: var(--about-primary);
  border-color: var(--about-primary);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.3);
  transform: translateY(-50%) scale(1.1);
}

html[data-theme="dark"] .slider-nav:hover {
  background: var(--about-primary);
  border-color: var(--about-primary);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.3);
}

.slider-nav:hover svg {
  fill: #ffffff;
}

/* Navigation Button Active State */
.slider-nav:active {
  transform: translateY(-50%) scale(1.05);
}

/* Navigation Button Focus State for Accessibility */
.slider-nav:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.slider-nav:focus:not(:focus-visible) {
  outline: none;
}

.slider-nav:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Previous Button Position */
.slider-nav.prev-btn {
  left: 0;
}

/* Next Button Position */
.slider-nav.next-btn {
  right: 0;
}

/* Dots Indicator Container */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
  padding: 1rem 0;
}

/* Individual Dot */
.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: var(--about-card-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--about-transition-normal) var(--about-easing);
  position: relative;
}

/* Dot Hover Effect */
.slider-dots .dot:hover {
  background: var(--about-muted);
  transform: scale(1.2);
}

/* Active Dot - Gradient Fill */
.slider-dots .dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--about-accent-gradient);
  transform: scale(1);
}

html[data-theme="dark"] .slider-dots .dot.active {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

/* Dot Focus State for Accessibility */
.slider-dots .dot:focus {
  outline: 2px solid var(--about-primary-light);
  outline-offset: 3px;
}

.slider-dots .dot:focus:not(:focus-visible) {
  outline: none;
}

.slider-dots .dot:focus-visible {
  outline: 2px solid var(--about-primary-light);
  outline-offset: 3px;
}

/* Smooth Transitions for All Slider Interactions */
.ads-slider,
.ad-card,
.ad-card-inner,
.ad-image,
.slider-nav,
.slider-dots .dot {
  transition-timing-function: var(--about-easing);
}

/* Ads Section Background Animation */
.ads-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(206, 17, 38, 0.05) 0%,
    transparent 50%
  );
  animation: pulse-background 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

html[data-theme="dark"] .ads-section::before {
  background: radial-gradient(
    circle at 20% 50%,
    rgba(129, 140, 248, 0.08) 0%,
    transparent 50%
  );
}

@keyframes pulse-background {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Responsive Ads Slider - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .ads-slider-wrapper {
    padding: 30px 50px;
  }
  
  .ads-slider {
    height: 350px;
  }
  
  .ad-card {
    width: 280px;
    height: 320px;
  }
  
  .ad-card.prev {
    transform: translateX(-300px) translateZ(-120px) rotateY(25deg) scale(0.85);
  }
  
  .ad-card.next {
    transform: translateX(300px) translateZ(-120px) rotateY(-25deg) scale(0.85);
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
  }
  
  .slider-nav svg {
    width: 22px;
    height: 22px;
  }
}

/* Responsive Ads Slider - Mobile */
@media (max-width: 767px) {
  .ads-section {
    padding: 60px 20px;
  }
  
  .ads-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .ads-slider-wrapper {
    padding: 20px 50px;
  }
  
  .ads-slider {
    height: 300px;
  }
  
  .ad-card {
    width: 240px;
    height: 280px;
  }
  
  /* Simplified 3D effect on mobile for performance */
  .ad-card.active {
    transform: translateX(0) scale(1);
  }
  
  .ad-card.prev {
    transform: translateX(-260px) translateZ(-80px) scale(0.75);
    opacity: 0.5;
  }
  
  .ad-card.next {
    transform: translateX(260px) translateZ(-80px) scale(0.75);
    opacity: 0.5;
  }
  
  .ad-card.far-prev,
  .ad-card.far-next {
    display: none;
  }
  
  /* Smaller navigation buttons on mobile */
  .slider-nav {
    width: 40px;
    height: 40px;
    /* Ensure minimum touch target size */
    min-width: 44px;
    min-height: 44px;
  }
  
  .slider-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .slider-nav.prev-btn {
    left: -5px;
  }
  
  .slider-nav.next-btn {
    right: -5px;
  }
  
  /* Smaller dots on mobile */
  .slider-dots .dot {
    width: 10px;
    height: 10px;
  }
  
  .slider-dots .dot.active {
    width: 28px;
  }
}

/* RTL Support for Ads Slider */
[dir="rtl"] .slider-nav.prev-btn {
  right: 0;
  left: auto;
}

[dir="rtl"] .slider-nav.next-btn {
  left: 0;
  right: auto;
}

[dir="rtl"] .ad-card.prev {
  transform: translateX(320px) translateZ(-150px) rotateY(-25deg) scale(0.85);
}

[dir="rtl"] .ad-card.next {
  transform: translateX(-320px) translateZ(-150px) rotateY(25deg) scale(0.85);
}

[dir="rtl"] .ad-card.far-prev {
  transform: translateX(500px) translateZ(-250px) rotateY(-35deg) scale(0.7);
}

[dir="rtl"] .ad-card.far-next {
  transform: translateX(-500px) translateZ(-250px) rotateY(35deg) scale(0.7);
}

@media (max-width: 767px) {
  [dir="rtl"] .ad-card.prev {
    transform: translateX(260px) translateZ(-80px) scale(0.75);
  }
  
  [dir="rtl"] .ad-card.next {
    transform: translateX(-260px) translateZ(-80px) scale(0.75);
  }
  
  [dir="rtl"] .slider-nav.prev-btn {
    right: -5px;
    left: auto;
  }
  
  [dir="rtl"] .slider-nav.next-btn {
    left: -5px;
    right: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  [dir="rtl"] .ad-card.prev {
    transform: translateX(300px) translateZ(-120px) rotateY(-25deg) scale(0.85);
  }
  
  [dir="rtl"] .ad-card.next {
    transform: translateX(-300px) translateZ(-120px) rotateY(25deg) scale(0.85);
  }
}

/* Ensure Visual Consistency with 3D Carousel */
.ads-slider-wrapper {
  transform-style: preserve-3d;
}

.ad-card {
  will-change: transform, opacity;
}

/* Remove will-change after transition completes for performance */
.ad-card:not(.active):not(.prev):not(.next) {
  will-change: auto;
}

/* Loading State for Ad Images */
.ad-image {
  background: var(--about-card-border);
}

.ad-image[loading="lazy"] {
  opacity: 0;
  animation: fade-in-image 0.3s ease-out forwards;
}

@keyframes fade-in-image {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pause Animation on Hover */
.ads-slider-wrapper:hover .ad-card {
  animation-play-state: paused;
}

/* ============================================
   END OF ADS SLIDER SECTION
   ============================================ */

/* ============================================
   15. COMPREHENSIVE ANIMATION SYSTEM
   ============================================ */

/* ============================================
   ENTRANCE ANIMATIONS - INTERSECTION OBSERVER
   ============================================ */

/* Base state for elements before they enter viewport */
.service-card:not(.in-view),
.service-item:not(.in-view),
.advantage-item:not(.in-view),
.gallery-card:not(.in-view),
.gallery-item:not(.in-view),
.image-card:not(.in-view),
.testimonial-card:not(.in-view),
.testimonial-item:not(.in-view),
.comment-card:not(.in-view) {
  opacity: 0;
  transform: translateY(30px);
}

/* Triggered when element enters viewport */
.service-card.in-view,
.service-item.in-view,
.advantage-item.in-view,
.gallery-card.in-view,
.gallery-item.in-view,
.image-card.in-view,
.testimonial-card.in-view,
.testimonial-item.in-view,
.comment-card.in-view {
  opacity: 1;
  transform: translateY(0);
  animation-play-state: running;
}

/* Ensure smooth entrance transitions */
.service-card,
.service-item,
.advantage-item,
.gallery-card,
.gallery-item,
.image-card,
.testimonial-card,
.testimonial-item,
.comment-card {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ============================================
   HOVER ANIMATIONS FOR INTERACTIVE ELEMENTS
   ============================================ */

/* All interactive elements get consistent hover feedback */
.service-card,
.service-item,
.advantage-item,
.gallery-card,
.gallery-item,
.image-card,
.testimonial-card,
.testimonial-item,
.comment-card,
.hero-cta,
.btn-primary,
.btn-animated,
.btn-submit,
.form-submit,
.submit-button,
button[type="submit"],
.lightbox-nav,
.lightbox-arrow,
.lightbox-close {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Smooth hover transitions for all interactive elements */
.service-card,
.service-item,
.advantage-item,
.gallery-card,
.gallery-item,
.image-card,
.testimonial-card,
.testimonial-item,
.comment-card {
  transition: all var(--about-transition-normal) var(--about-easing);
}

/* Interactive element focus states for keyboard navigation */
.service-card:focus-visible,
.service-item:focus-visible,
.advantage-item:focus-visible,
.gallery-card:focus-visible,
.gallery-item:focus-visible,
.image-card:focus-visible,
.testimonial-card:focus-visible,
.testimonial-item:focus-visible,
.comment-card:focus-visible {
  outline: 3px solid var(--about-primary);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--about-primary-light);
}

/* ============================================
   MICRO-INTERACTIONS FOR ICONS, BADGES, AND STATS
   ============================================ */

/* Icon Pulse Animation - Triggered on parent hover */
.service-icon,
.advantage-icon,
.overlay-icon,
.service-card .icon,
.service-card i,
.advantage-item .icon,
.advantage-item i {
  transition: all var(--about-transition-normal) var(--about-easing);
  transform-origin: center;
  will-change: transform;
}

/* Remove will-change after hover completes */
.service-card:not(:hover) .service-icon,
.service-card:not(:hover) .icon,
.service-card:not(:hover) i,
.advantage-item:not(:hover) .advantage-icon,
.advantage-item:not(:hover) .icon,
.advantage-item:not(:hover) i {
  will-change: auto;
}

/* Badge Pulse Animation - Continuous */
.highlight-stat,
.service-badge {
  animation: badge-pulse 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
  }
}

html[data-theme="dark"] .highlight-stat,
html[data-theme="dark"] .service-badge {
  animation: badge-pulse-dark 2s ease-in-out infinite;
}

@keyframes badge-pulse-dark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
  }
}

/* Stat Number Counter Animation */
.advantage-stat-number {
  transition: all 0.3s ease;
  display: inline-block;
}

.advantage-item:hover .advantage-stat-number {
  transform: scale(1.05);
  color: var(--about-primary);
}

/* Icon Rotation on Hover */
.service-icon i,
.advantage-icon i {
  transition: transform var(--about-transition-normal) var(--about-easing);
}

.service-card:hover .service-icon i {
  transform: rotate(5deg) scale(1.1);
}

.advantage-item:hover .advantage-icon i {
  transform: rotate(-5deg) scale(1.1);
}

/* ============================================
   BACKGROUND FLOATING ELEMENT ANIMATIONS
   ============================================ */

/* Ensure all floating elements are GPU-accelerated */
.hero-section::before,
.hero-section::after,
.hero-floating-circle,
.hero-floating-square,
.floating-shape-2 {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Remove will-change after animations are established */
@keyframes remove-will-change {
  to {
    will-change: auto;
  }
}

.hero-section::before,
.hero-section::after,
.hero-floating-circle,
.hero-floating-square,
.floating-shape-2 {
  animation-delay: 2s;
  animation-name: remove-will-change;
  animation-duration: 0.01s;
  animation-fill-mode: forwards;
}

/* Floating elements should not interfere with interactions */
.hero-section::before,
.hero-section::after,
.hero-floating-circle,
.hero-floating-square,
.floating-shape-2 {
  pointer-events: none;
  user-select: none;
}

/* ============================================
   SMOOTH THEME SWITCHING TRANSITIONS
   ============================================ */

/* All theme-dependent elements get smooth transitions */
body,
.about-section,
.service-card,
.service-item,
.advantage-item,
.gallery-card,
.gallery-item,
.image-card,
.testimonial-card,
.testimonial-item,
.comment-card,
.testimonial-form,
.contact-form,
.about-form,
.form-input,
.form-control,
.testimonial-input,
input,
textarea,
select,
.form-label,
label,
.hero-section,
.services-section,
.why-choose-us-section,
.gallery-section,
.testimonials-section,
.ads-section {
  transition: background-color var(--about-transition-normal) ease,
              color var(--about-transition-normal) ease,
              border-color var(--about-transition-normal) ease,
              box-shadow var(--about-transition-normal) ease;
}

/* Prevent transition on page load */
.no-transition,
.no-transition * {
  transition: none !important;
}

/* ============================================
   RIPPLE EFFECT FOR BUTTONS
   ============================================ */

/* Ripple effect container */
.hero-cta,
.btn-primary,
.btn-animated,
.btn-submit,
.form-submit,
.submit-button,
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

/* Ripple effect element (created by JavaScript) */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   GPU-ACCELERATED ANIMATIONS
   ============================================ */

/* Force GPU acceleration for animated elements */
.service-card,
.service-item,
.advantage-item,
.gallery-card,
.gallery-item,
.image-card,
.testimonial-card,
.testimonial-item,
.comment-card,
.hero-headline,
.hero-subtitle,
.hero-cta,
.service-icon,
.advantage-icon,
.gallery-image,
.image-overlay,
.lightbox-backdrop,
.lightbox-content {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Use transform and opacity for animations (GPU-accelerated) */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   PREFERS-REDUCED-MOTION SUPPORT
   ============================================ */

/* Comprehensive reduced motion support */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Show all elements immediately */
  .service-card,
  .service-item,
  .advantage-item,
  .gallery-card,
  .gallery-item,
  .image-card,
  .testimonial-card,
  .testimonial-item,
  .comment-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  /* Disable hover animations */
  .service-card:hover,
  .service-item:hover,
  .advantage-item:hover,
  .gallery-card:hover,
  .gallery-item:hover,
  .image-card:hover,
  .testimonial-card:hover,
  .testimonial-item:hover,
  .comment-card:hover {
    transform: none !important;
    animation: none !important;
  }
  
  /* Disable icon animations */
  .service-card:hover .service-icon,
  .service-card:hover .icon,
  .service-card:hover i,
  .advantage-item:hover .advantage-icon,
  .advantage-item:hover .icon,
  .advantage-item:hover i {
    transform: none !important;
    animation: none !important;
  }
  
  /* Disable badge pulse */
  .highlight-stat,
  .service-badge {
    animation: none !important;
  }
  
  /* Disable floating elements */
  .hero-section::before,
  .hero-section::after,
  .hero-floating-circle,
  .hero-floating-square,
  .floating-shape-2 {
    animation: none !important;
    opacity: 0.5 !important;
  }
  
  /* Disable gradient shimmer */
  .hero-headline,
  .hero-section .text-gradient,
  .hero-section .hero-enhanced {
    animation: none !important;
  }
  
  /* Disable star animations */
  .testimonial-card:hover .star-rating .star,
  .testimonial-card:hover .star-rating i {
    animation: none !important;
    transform: none !important;
  }
  
  /* Disable ripple effect */
  .ripple-effect {
    display: none !important;
  }
  
  /* Disable lightbox animations */
  .lightbox-backdrop,
  .lightbox-content {
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable button loading animation */
  .btn-submit.loading::after,
  .form-submit.loading::after,
  .submit-button.loading::after {
    animation: none !important;
  }
  
  /* Keep essential transitions for usability */
  button:hover,
  a:hover,
  input:focus,
  textarea:focus,
  select:focus {
    transition: background-color 0.1s ease, border-color 0.1s ease !important;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Optimize animations for 60fps */
@media (prefers-reduced-motion: no-preference) {
  /* Use will-change sparingly and only during animations */
  .service-card:hover,
  .advantage-item:hover,
  .gallery-card:hover,
  .testimonial-card:hover {
    will-change: transform, box-shadow;
  }
  
  /* Remove will-change after animation */
  .service-card:not(:hover),
  .advantage-item:not(:hover),
  .gallery-card:not(:hover),
  .testimonial-card:not(:hover) {
    will-change: auto;
  }
  
  /* Optimize image transforms */
  .gallery-image,
  .gallery-card img {
    will-change: transform;
  }
  
  .gallery-card:not(:hover) .gallery-image,
  .gallery-card:not(:hover) img {
    will-change: auto;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--about-primary);
  outline-offset: 4px;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--about-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .advantage-item,
  .gallery-card,
  .testimonial-card {
    border-width: 3px;
  }
  
  .hero-cta,
  .btn-primary,
  .btn-submit {
    border: 3px solid currentColor;
  }
}

/* ============================================
   PRINT STYLES FOR ANIMATIONS
   ============================================ */

@media print {
  /* Disable all animations for print */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Show all elements */
  .service-card,
  .advantage-item,
  .gallery-card,
  .testimonial-card {
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Hide floating elements */
  .hero-section::before,
  .hero-section::after,
  .hero-floating-circle,
  .hero-floating-square,
  .floating-shape-2 {
    display: none !important;
  }
}

/* ============================================
   ANIMATION TIMING FUNCTIONS
   ============================================ */

/* Custom easing functions for smooth animations */
:root {
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Apply custom easing to specific animations */
.service-card,
.advantage-item {
  transition-timing-function: var(--ease-out-cubic);
}

.gallery-card:hover .gallery-image {
  transition-timing-function: var(--ease-out-cubic);
}

.hero-cta:hover,
.btn-submit:hover {
  transition-timing-function: var(--ease-out-back);
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Skeleton loading animation for content */
.skeleton-loading {
  background: linear-gradient(
    90deg,
    var(--about-card-bg) 0%,
    var(--about-card-border) 50%,
    var(--about-card-bg) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Scroll progress indicator (if needed) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--about-accent-gradient);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ============================================
   END OF COMPREHENSIVE ANIMATION SYSTEM
   ============================================ */

/* ============================================
   ADDITIONAL ANIMATION SYSTEM STYLES
   JavaScript-triggered animations and effects
   ============================================ */

/* Ripple effect animation for buttons */
@keyframes ripple-animation {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

/* Theme transitioning state */
body.theme-transitioning {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-transitioning * {
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}

/* Keyboard navigation focus styles */
body.keyboard-navigation *:focus {
  outline: 3px solid var(--about-primary);
  outline-offset: 4px;
}

body.keyboard-navigation *:focus:not(:focus-visible) {
  outline: none;
}

/* Enhanced focus states for interactive elements during keyboard navigation */
body.keyboard-navigation .service-card:focus,
body.keyboard-navigation .advantage-item:focus,
body.keyboard-navigation .gallery-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--about-card-shadow-hover);
  border-color: var(--about-primary);
}

/* ============================================
   INTERSECTION OBSERVER TRIGGERED ANIMATIONS
   ============================================ */

/* Base state for elements before they enter viewport */
.service-card:not(.in-view),
.advantage-item:not(.in-view),
.gallery-card:not(.in-view),
.testimonial-card:not(.in-view) {
  opacity: 0;
}

/* Fade-in animation when element enters viewport */
.service-card.in-view,
.advantage-item.in-view,
.gallery-card.in-view,
.testimonial-card.in-view {
  opacity: 1;
  animation-play-state: running;
}

/* Stat counter animation trigger */
.advantage-stat-number:not(.in-view) {
  opacity: 0;
  transform: translateY(20px);
}

.advantage-stat-number.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   MICRO-INTERACTION ENHANCEMENTS
   ============================================ */

/* Icon hover state preparation */
.service-icon,
.advantage-icon i,
.icon {
  transition: transform 0.3s var(--about-easing),
              color 0.3s ease;
}

/* Badge hover enhancement */
.highlight-stat:hover,
.service-badge:hover {
  transform: scale(1.08);
  cursor: pointer;
}

/* Service number rotation on hover */
.service-number {
  transition: all 0.5s var(--about-easing);
}

.service-card:hover .service-number {
  transform: scale(1.1) rotate(360deg);
}

/* ============================================
   FLOATING SHAPES DYNAMIC POSITIONING
   ============================================ */

/* Additional floating shapes created by JavaScript */
.hero-floating-elements .hero-floating-circle.dynamic,
.hero-floating-elements .hero-floating-square.dynamic {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: fade-in-float 1s ease-out forwards;
}

@keyframes fade-in-float {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   SMOOTH SCROLL ENHANCEMENTS
   ============================================ */

/* Scroll-triggered parallax effect (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    transform: translateZ(0);
  }
  
  /* Parallax for floating shapes */
  .hero-floating-circle,
  .hero-floating-square {
    transition: transform 0.1s ease-out;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Contain layout shifts during animations */
.service-card,
.advantage-item,
.gallery-card {
  contain: layout style paint;
}

/* Optimize repaints */
.hero-section::before,
.hero-section::after,
.service-card::before,
.advantage-item::before {
  contain: strict;
}

/* ============================================
   ACCESSIBILITY - ANIMATION CONTROLS
   ============================================ */

/* Pause animations button (if implemented) */
.pause-animations-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--about-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.pause-animations-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.6);
}

.pause-animations-btn:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* When animations are paused */
body.animations-paused * {
  animation-play-state: paused !important;
}

/* ============================================
   RESPONSIVE ANIMATION ADJUSTMENTS
   ============================================ */

/* Reduce animation complexity on mobile for performance */
@media (max-width: 767px) {
  /* Simplify floating shapes */
  .hero-floating-circle,
  .hero-floating-square {
    animation-duration: 20s; /* Slower animations */
  }
  
  /* Reduce stagger delays */
  .service-card:nth-child(n+4),
  .advantage-item:nth-child(n+4),
  .gallery-card:nth-child(n+7) {
    animation-delay: 0.4s; /* Cap delay at 0.4s */
  }
  
  /* Disable parallax on mobile */
  .hero-section {
    transform: none !important;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Moderate animation complexity */
  .hero-floating-circle,
  .hero-floating-square {
    animation-duration: 18s;
  }
}

/* Desktop - full animation complexity */
@media (min-width: 1024px) {
  /* Enable all animations at full speed */
  .hero-floating-circle,
  .hero-floating-square {
    animation-duration: 15s;
  }
  
  /* Add subtle parallax effect */
  @media (prefers-reduced-motion: no-preference) {
    .hero-section .hero-content {
      transition: transform 0.1s ease-out;
    }
  }
}

/* ============================================
   DARK MODE ANIMATION ADJUSTMENTS
   ============================================ */

/* Adjust animation colors for dark mode */
html[data-theme="dark"] .ripple-effect {
  background: rgba(129, 140, 248, 0.6);
}

html[data-theme="dark"] .skeleton-loading {
  background: linear-gradient(
    90deg,
    var(--about-card-bg) 0%,
    var(--about-card-border) 50%,
    var(--about-card-bg) 100%
  );
}

html[data-theme="dark"] .pause-animations-btn {
  background: var(--about-primary);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

html[data-theme="dark"] .pause-animations-btn:hover {
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.6);
}

/* ============================================
   ANIMATION STATE CLASSES
   ============================================ */

/* Class to disable all animations (JavaScript controlled) */
.no-animations,
.no-animations * {
  animation: none !important;
  transition: none !important;
}

/* Class to enable animations (default state) */
.animations-enabled {
  animation-play-state: running;
}

/* Loading state */
.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

.is-loading * {
  animation-play-state: paused;
}

/* ============================================
   CUSTOM ANIMATION UTILITIES
   ============================================ */

/* ============================================
   16. ADS SECTION STYLING
   ============================================ */

/* Ads Section Container */
.ads-section {
  padding: 80px 20px;
  background: var(--about-bg);
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

/* Ads Container */
.ads-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Ads Title */
.ads-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--about-heading-weight);
  color: var(--about-fg);
  text-align: center;
  margin-bottom: 3rem;
  background: var(--about-gradient-shimmer);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .ads-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--about-primary);
  }
}

/* Ads Slider Wrapper */
.ads-slider-wrapper {
  position: relative;
  padding: 40px 60px;
  perspective: 1500px;
}

/* Ads Slider Container */
.ads-slider {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Ad Card Base Styling */
.ad-card {
  position: absolute;
  width: 300px;
  height: 350px;
  background: var(--about-card-bg);
  border-radius: var(--about-card-radius);
  border: 2px solid var(--about-card-border);
  box-shadow: var(--about-card-shadow);
  transition: all 0.6s var(--about-easing);
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: hidden;
}

/* Ad Card Inner Content */
.ad-card-inner {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Ad Image */
.ad-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.ad-card:hover .ad-image {
  transform: scale(1.05);
}

/* Ad Title */
.ad-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--about-fg);
  margin: 0;
  line-height: 1.3;
}

/* Ad Description */
.ad-description {
  font-size: 0.9375rem;
  color: var(--about-muted);
  line-height: 1.5;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Ad Card Active State */
.ad-card.active {
  transform: translateX(0) translateZ(0) scale(1);
  opacity: 1;
  z-index: 10;
}

/* Ad Card Previous/Next States */
.ad-card.prev {
  transform: translateX(-320px) translateZ(-150px) rotateY(25deg) scale(0.85);
  opacity: 0.7;
  z-index: 5;
}

.ad-card.next {
  transform: translateX(320px) translateZ(-150px) rotateY(-25deg) scale(0.85);
  opacity: 0.7;
  z-index: 5;
}

/* Ad Card Far States */
.ad-card.far-prev,
.ad-card.far-next {
  transform: translateX(-500px) translateZ(-250px) scale(0.7);
  opacity: 0;
  z-index: 1;
}

/* Slider Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--about-card-bg);
  border: 2px solid var(--about-card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--about-transition-normal) ease;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
  background: var(--about-primary);
  border-color: var(--about-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.3);
}

.slider-nav:hover svg {
  fill: white;
}

.slider-nav.prev-btn {
  left: 0;
}

.slider-nav.next-btn {
  right: 0;
}

.slider-nav svg {
  width: 24px;
  height: 24px;
  fill: var(--about-fg);
  transition: fill var(--about-transition-fast) ease;
}

/* Slider Dots Indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding: 1rem 0;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: var(--about-card-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--about-transition-normal) ease;
}

.slider-dots .dot:hover {
  background: var(--about-muted);
  transform: scale(1.2);
}

.slider-dots .dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--about-accent-gradient);
}

/* Responsive Ads Section - Mobile */
@media (max-width: 767px) {
  .ads-section {
    padding: 60px 20px;
  }
  
  .ads-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .ads-slider-wrapper {
    padding: 20px 50px;
  }
  
  .ads-slider {
    height: 300px;
  }
  
  .ad-card {
    width: 240px;
    height: 280px;
  }
  
  .ad-card.active {
    transform: translateX(0) scale(1);
  }
  
  .ad-card.prev {
    transform: translateX(-260px) translateZ(-80px) scale(0.75);
    opacity: 0.5;
  }
  
  .ad-card.next {
    transform: translateX(260px) translateZ(-80px) scale(0.75);
    opacity: 0.5;
  }
  
  .ad-card.far-prev,
  .ad-card.far-next {
    display: none;
  }
  
  .slider-nav {
    width: 44px;
    height: 44px;
  }
  
  .slider-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* Responsive Ads Section - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .ads-slider-wrapper {
    padding: 30px 50px;
  }
  
  .ads-slider {
    height: 350px;
  }
  
  .ad-card {
    width: 280px;
    height: 320px;
  }
}

/* ============================================
   17. WHY CHOOSE US SECTION - IMPROVED GRID
   ============================================ */

/* Why Choose Us Section */
.why-choose-us-section {
  padding: var(--about-section-padding);
  background: linear-gradient(135deg, 
    rgba(206, 17, 38, 0.02) 0%, 
    rgba(0, 0, 0, 0.01) 100%);
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .why-choose-us-section {
  background: linear-gradient(135deg, 
    rgba(129, 140, 248, 0.05) 0%, 
    rgba(0, 0, 0, 0.2) 100%);
}

/* Section Title */
.why-choose-us-section .section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--about-heading-weight);
  color: var(--about-fg);
  margin-bottom: 1rem;
  text-align: center;
}

/* Section Subtitle */
.why-choose-us-section .section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--about-muted);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Advantage List Container */
.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Advantage Item - Card Style */
.advantage-item {
  background: var(--about-card-bg);
  border-radius: var(--about-card-radius);
  border: 2px solid var(--about-card-border);
  border-left: 4px solid transparent;
  padding: 2rem;
  box-shadow: var(--about-card-shadow);
  transition: all var(--about-transition-normal) var(--about-easing);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* Advantage Item Hover */
.advantage-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--about-card-shadow-hover);
  border-left-color: var(--about-primary);
}

/* Advantage Item Background Gradient on Hover */
.advantage-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--about-primary-light) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--about-transition-normal) ease;
  pointer-events: none;
  z-index: 0;
}

.advantage-item:hover::before {
  opacity: 1;
}

/* Advantage Icon Container */
.advantage-icon {
  font-size: 2.5rem;
  color: var(--about-primary);
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--about-primary-light);
  border-radius: 12px;
  transition: all var(--about-transition-normal) ease;
  position: relative;
  z-index: 1;
}

.advantage-item:hover .advantage-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--about-primary);
  color: white;
}

/* Advantage Content */
.advantage-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.advantage-content h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--about-fg);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color var(--about-transition-fast) ease;
}

.advantage-item:hover .advantage-content h4 {
  color: var(--about-primary);
}

.advantage-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--about-muted);
  margin-bottom: 0.5rem;
}

/* Highlight Stat Badge */
.highlight-stat {
  display: inline-block;
  background: var(--about-accent-gradient);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

html[data-theme="dark"] .highlight-stat {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* Responsive Why Choose Us - Desktop (Better Grid) */
@media (min-width: 1024px) {
  .why-choose-us-section .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
  }
  
  .why-choose-us-section .col-lg-6 {
    width: 100%;
    max-width: 100%;
  }
  
  .advantage-list {
    gap: 2rem;
  }
  
  .advantage-item {
    padding: 2.5rem;
  }
  
  .advantage-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
  }
  
  .advantage-content h4 {
    font-size: 1.5rem;
  }
}

/* Responsive Why Choose Us - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .advantage-item {
    padding: 2rem;
  }
  
  .advantage-icon {
    font-size: 2.25rem;
    width: 55px;
    height: 55px;
  }
}

/* Responsive Why Choose Us - Mobile */
@media (max-width: 767px) {
  .why-choose-us-section {
    padding: 60px 20px;
  }
  
  .advantage-item {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .advantage-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .advantage-content h4 {
    font-size: 1.25rem;
  }
  
  .advantage-content p {
    font-size: 0.9375rem;
  }
}

/* ============================================
   END OF ADDITIONAL SECTIONS
   ============================================ */

/* Delay utilities for staggered animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Duration utilities */
.duration-fast { animation-duration: 0.2s; transition-duration: 0.2s; }
.duration-normal { animation-duration: 0.3s; transition-duration: 0.3s; }
.duration-slow { animation-duration: 0.6s; transition-duration: 0.6s; }

/* Easing utilities */
.ease-linear { animation-timing-function: linear; transition-timing-function: linear; }
.ease-in { animation-timing-function: ease-in; transition-timing-function: ease-in; }
.ease-out { animation-timing-function: ease-out; transition-timing-function: ease-out; }
.ease-in-out { animation-timing-function: ease-in-out; transition-timing-function: ease-in-out; }

/* ============================================
   END OF ANIMATION SYSTEM ENHANCEMENTS
   ============================================ */


/* ============================================
   TESTIMONIALS SECTION LAYOUT
   ============================================ */

/* Testimonials Section Container */
.testimonials-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* Dark mode background */
html[data-theme="dark"] .testimonials-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Testimonials Header */
.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-header .section-title {
  font-size: 2.5rem;
  font-weight: var(--about-heading-weight);
  color: var(--about-fg);
  margin-bottom: 16px;
  background: var(--about-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials-header .section-subtitle {
  font-size: 1.125rem;
  color: var(--about-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Testimonials Grid Layout */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop: Two-column layout (testimonials left, form right) */
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
  }
}

/* Tablet: Single column */
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile: Single column with reduced spacing */
@media (max-width: 767px) {
  .testimonials-section {
    padding: 60px 16px;
  }
  
  .testimonials-header .section-title {
    font-size: 2rem;
  }
  
  .testimonials-grid {
    gap: 24px;
  }
}

/* Testimonials List Container */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Testimonial Form Container */
.testimonial-form-container {
  position: relative;
}

/* Ensure consistent spacing within container */
.testimonials-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section padding consistency */
.testimonials-section {
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive adjustments for section title */
@media (max-width: 576px) {
  .testimonials-header .section-title {
    font-size: 1.75rem;
  }
  
  .testimonials-header .section-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   TESTIMONIAL CARD COMPONENT WITH ANIMATIONS
   ============================================ */

/* Testimonial Card Base Styling */
.testimonial-card,
.comment-card {
  background: var(--about-card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--about-card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
}

/* Dark Mode Testimonial Card */
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .comment-card {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Testimonial Card Fade-In Animation */
.testimonial-card.in-view,
.comment-card.in-view {
  animation: testimonial-fade-in 0.6s ease-out forwards;
}

@keyframes testimonial-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation Delays for Sequential Appearance */
.testimonial-card:nth-child(1),
.comment-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2),
.comment-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3),
.comment-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:nth-child(4),
.comment-card:nth-child(4) {
  animation-delay: 0.4s;
}

.testimonial-card:nth-child(5),
.comment-card:nth-child(5) {
  animation-delay: 0.5s;
}

.testimonial-card:nth-child(6),
.comment-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hover Lift Animation with Enhanced Shadow */
.testimonial-card:hover,
.comment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(206, 17, 38, 0.12);
  border-color: var(--about-primary);
}

html[data-theme="dark"] .testimonial-card:hover,
html[data-theme="dark"] .comment-card:hover {
  box-shadow: 0 12px 24px rgba(129, 140, 248, 0.2);
  border-color: var(--about-primary);
}

/* Testimonial Header - Author Name and Rating Display */
.testimonial-header,
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

/* Testimonial Author Name */
.testimonial-author,
.comment-author {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--about-fg);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .testimonial-author,
html[data-theme="dark"] .comment-author {
  color: var(--about-fg);
}

/* Testimonial Rating Container */
.testimonial-rating,
.comment-rating {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Star Rating with Pulse Animation */
.testimonial-rating i,
.comment-rating i {
  color: var(--about-star-color);
  font-size: 1rem;
  animation: star-pulse 2s ease-in-out infinite;
}

/* Star Pulse Animation */
@keyframes star-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.2);
  }
}

/* Stagger star pulse animations */
.testimonial-rating i:nth-child(1),
.comment-rating i:nth-child(1) {
  animation-delay: 0s;
}

.testimonial-rating i:nth-child(2),
.comment-rating i:nth-child(2) {
  animation-delay: 0.1s;
}

.testimonial-rating i:nth-child(3),
.comment-rating i:nth-child(3) {
  animation-delay: 0.2s;
}

.testimonial-rating i:nth-child(4),
.comment-rating i:nth-child(4) {
  animation-delay: 0.3s;
}

.testimonial-rating i:nth-child(5),
.comment-rating i:nth-child(5) {
  animation-delay: 0.4s;
}

/* Testimonial Content Text */
.testimonial-content,
.comment-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--about-muted);
  margin: 0;
}

html[data-theme="dark"] .testimonial-content,
html[data-theme="dark"] .comment-content {
  color: var(--about-muted);
}

/* Focus Indicators for Keyboard Navigation */
.testimonial-card:focus,
.testimonial-card:focus-within,
.comment-card:focus,
.comment-card:focus-within {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
  border-color: var(--about-primary);
}

.testimonial-card:focus:not(:focus-visible),
.comment-card:focus:not(:focus-visible) {
  outline: none;
}

.testimonial-card:focus-visible,
.comment-card:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
  border-color: var(--about-primary);
}

/* Make testimonial cards keyboard accessible */
.testimonial-card[tabindex],
.comment-card[tabindex] {
  cursor: pointer;
}

/* Active state for keyboard interaction */
.testimonial-card:active,
.comment-card:active {
  transform: translateY(-2px);
}

/* Responsive Testimonial Cards - Mobile */
@media (max-width: 767px) {
  .testimonial-card,
  .comment-card {
    padding: 20px;
    border-radius: 12px;
  }
  
  .testimonial-header,
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .testimonial-author,
  .comment-author {
    font-size: 1rem;
    white-space: normal;
  }
  
  .testimonial-rating,
  .comment-rating {
    align-self: flex-start;
  }
  
  .testimonial-rating i,
  .comment-rating i {
    font-size: 0.875rem;
  }
  
  .testimonial-content,
  .comment-content {
    font-size: 0.9375rem;
  }
}

/* Responsive Testimonial Cards - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonial-card,
  .comment-card {
    padding: 22px;
  }
  
  .testimonial-author,
  .comment-author {
    font-size: 1.0625rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .comment-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .testimonial-card:hover,
  .comment-card:hover {
    transform: none;
  }
  
  .testimonial-rating i,
  .comment-rating i {
    animation: none;
  }
}

/* RTL Support for Testimonial Cards */
[dir="rtl"] .testimonial-header,
[dir="rtl"] .comment-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .testimonial-rating,
[dir="rtl"] .comment-rating {
  flex-direction: row-reverse;
}

/* Print Styles for Testimonial Cards */
@media print {
  .testimonial-card,
  .comment-card {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
  
  .testimonial-rating i,
  .comment-rating i {
    animation: none;
  }
}

/* ============================================
   END OF TESTIMONIAL CARD COMPONENT
   ============================================ */

/* ============================================
   TESTIMONIAL FORM WITH ANIMATED INPUTS
   ============================================ */

/* Form Input Animated Wrapper */
.form-input-animated {
  position: relative;
  margin-bottom: 24px;
}

/* Form Input and Textarea Base Styling */
.form-input-animated input,
.form-input-animated textarea {
  width: 100%;
  padding: 16px 12px 8px 12px;
  border: 2px solid var(--about-card-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--about-font-family);
  color: var(--about-fg);
  background: var(--about-card-bg);
  transition: all 0.3s ease;
  outline: none;
}

/* Dark Mode Input Styling */
html[data-theme="dark"] .form-input-animated input,
html[data-theme="dark"] .form-input-animated textarea {
  background: var(--about-card-bg);
  color: var(--about-fg);
  border-color: var(--about-card-border);
}

/* Input Focus State with Border Transition */
.form-input-animated input:focus,
.form-input-animated textarea:focus {
  border-color: var(--about-primary);
  box-shadow: 0 0 0 3px var(--about-primary-light);
}

html[data-theme="dark"] .form-input-animated input:focus,
html[data-theme="dark"] .form-input-animated textarea:focus {
  border-color: var(--about-primary);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

/* Floating Label Animation */
.form-input-animated label {
  position: absolute;
  left: 12px;
  top: 16px;
  font-size: 1rem;
  color: var(--about-muted);
  pointer-events: none;
  transition: all 0.3s ease;
  background: var(--about-card-bg);
  padding: 0 4px;
  transform-origin: left center;
}

html[data-theme="dark"] .form-input-animated label {
  background: var(--about-card-bg);
  color: var(--about-muted);
}

/* Label moves up on focus or when input has value */
.form-input-animated input:focus + label,
.form-input-animated input:not(:placeholder-shown) + label,
.form-input-animated textarea:focus + label,
.form-input-animated textarea:not(:placeholder-shown) + label,
.form-input-animated label.active {
  top: -8px;
  left: 8px;
  font-size: 0.75rem;
  color: var(--about-primary);
  font-weight: 600;
}

html[data-theme="dark"] .form-input-animated input:focus + label,
html[data-theme="dark"] .form-input-animated input:not(:placeholder-shown) + label,
html[data-theme="dark"] .form-input-animated textarea:focus + label,
html[data-theme="dark"] .form-input-animated textarea:not(:placeholder-shown) + label,
html[data-theme="dark"] .form-input-animated label.active {
  color: var(--about-primary);
}

/* Textarea Specific Styling */
.form-input-animated textarea {
  resize: vertical;
  min-height: 100px;
}

/* Readonly Input Styling */
.form-input-animated input[readonly] {
  background: rgba(0, 0, 0, 0.03);
  cursor: not-allowed;
}

html[data-theme="dark"] .form-input-animated input[readonly] {
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   INTERACTIVE STAR RATING SELECTOR
   ============================================ */

/* Star Rating Container */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 0;
}

/* Hide Radio Inputs */
.star-rating input {
  display: none;
}

/* Star Label Styling */
.star-rating label {
  cursor: pointer;
  font-size: 2rem;
  color: #d1d5db;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
  line-height: 1;
}

html[data-theme="dark"] .star-rating label {
  color: #4b5563;
}

/* Star Hover Effect - Highlights current and previous stars */
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--about-star-color);
  transform: scale(1.2);
}

/* Star Focus State for Keyboard Navigation */
.star-rating label:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.star-rating label:focus:not(:focus-visible) {
  outline: none;
}

.star-rating label:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Selected Star Styling */
.star-rating input:checked ~ label {
  color: var(--about-star-color);
}

/* Star Selection Animation */
.star-rating input:checked ~ label {
  animation: star-select 0.4s ease-out;
}

@keyframes star-select {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3) rotate(15deg);
  }
  100% {
    transform: scale(1);
  }
}

/* Add glow effect on selected stars */
.star-rating input:checked ~ label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: star-glow 1.5s ease-in-out infinite;
}

@keyframes star-glow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Responsive Star Rating - Mobile */
@media (max-width: 767px) {
  .star-rating label {
    font-size: 1.75rem;
    gap: 6px;
  }
  
  .star-rating {
    gap: 6px;
  }
}

/* ============================================
   ANIMATED SUBMIT BUTTON WITH RIPPLE EFFECT
   ============================================ */

/* Testimonial Submit Button Base Styling */
.testimonial-submit-btn,
.btn-interactive {
  width: 100%;
  padding: 16px 32px;
  background: var(--about-accent-gradient);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--about-font-family);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

html[data-theme="dark"] .testimonial-submit-btn,
html[data-theme="dark"] .btn-interactive {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

/* Button Hover Scale and Shadow Animation */
.testimonial-submit-btn:hover,
.btn-interactive:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(206, 17, 38, 0.4);
}

html[data-theme="dark"] .testimonial-submit-btn:hover,
html[data-theme="dark"] .btn-interactive:hover {
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.4);
}

/* Ripple Effect on Click */
.testimonial-submit-btn::before,
.btn-interactive::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.testimonial-submit-btn:hover::before,
.btn-interactive:hover::before {
  width: 300px;
  height: 300px;
}

/* Button Active State */
.testimonial-submit-btn:active,
.btn-interactive:active {
  transform: translateY(0) scale(0.98);
}

/* Button Focus State for Keyboard Navigation */
.testimonial-submit-btn:focus,
.btn-interactive:focus {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

.testimonial-submit-btn:focus:not(:focus-visible),
.btn-interactive:focus:not(:focus-visible) {
  outline: none;
}

.testimonial-submit-btn:focus-visible,
.btn-interactive:focus-visible {
  outline: 3px solid var(--about-primary-light);
  outline-offset: 4px;
}

/* Button Icon Styling */
.btn-icon {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.testimonial-submit-btn:hover .btn-icon,
.btn-interactive:hover .btn-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Button Disabled State */
.testimonial-submit-btn:disabled,
.btn-interactive:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.testimonial-submit-btn:disabled:hover,
.btn-interactive:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

/* Responsive Button - Mobile */
@media (max-width: 767px) {
  .testimonial-submit-btn,
  .btn-interactive {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .btn-icon {
    font-size: 1.125rem;
  }
}

/* ============================================
   FORM CONTAINER CARD STYLING
   ============================================ */

/* Testimonial Form Container Card */
.testimonial-form-container .card,
.testimonial-form-container .form-animated,
.testimonial-form-container .action-card {
  background: var(--about-card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--about-card-border);
  transition: all 0.3s ease;
}

html[data-theme="dark"] .testimonial-form-container .card,
html[data-theme="dark"] .testimonial-form-container .form-animated,
html[data-theme="dark"] .testimonial-form-container .action-card {
  background: var(--about-card-bg);
  border-color: var(--about-card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Form Container Hover Effect */
.testimonial-form-container .card:hover,
.testimonial-form-container .form-animated:hover,
.testimonial-form-container .action-card:hover {
  box-shadow: 0 8px 20px rgba(206, 17, 38, 0.12);
  border-color: var(--about-primary);
}

html[data-theme="dark"] .testimonial-form-container .card:hover,
html[data-theme="dark"] .testimonial-form-container .form-animated:hover,
html[data-theme="dark"] .testimonial-form-container .action-card:hover {
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.2);
}

/* Form Title Styling */
.testimonial-form-container h3,
.testimonial-form-container h5 {
  color: var(--about-fg);
  font-weight: 700;
  margin-bottom: 20px;
}

html[data-theme="dark"] .testimonial-form-container h3,
html[data-theme="dark"] .testimonial-form-container h5 {
  color: var(--about-fg);
}

/* Form Label Styling */
.testimonial-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--about-fg);
  margin-bottom: 8px;
  display: block;
}

html[data-theme="dark"] .testimonial-label {
  color: var(--about-fg);
}

/* Form Input Base (for non-animated inputs) */
.testimonial-input,
.testimonial-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--about-card-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--about-font-family);
  color: var(--about-fg);
  background: var(--about-card-bg);
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

html[data-theme="dark"] .testimonial-input,
html[data-theme="dark"] .testimonial-textarea {
  background: var(--about-card-bg);
  color: var(--about-fg);
  border-color: var(--about-card-border);
}

.testimonial-input:focus,
.testimonial-textarea:focus {
  outline: none;
  border-color: var(--about-primary);
  box-shadow: 0 0 0 3px var(--about-primary-light);
}

/* Responsive Form Container - Mobile */
@media (max-width: 767px) {
  .testimonial-form-container .card,
  .testimonial-form-container .form-animated,
  .testimonial-form-container .action-card {
    padding: 20px;
    border-radius: 12px;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT FOR FORM ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .form-input-animated input,
  .form-input-animated textarea,
  .form-input-animated label {
    transition: none;
  }
  
  .star-rating label {
    transition: none;
  }
  
  .star-rating input:checked ~ label {
    animation: none;
  }
  
  .star-rating input:checked ~ label::after {
    animation: none;
  }
  
  .testimonial-submit-btn,
  .btn-interactive {
    transition: none;
  }
  
  .testimonial-submit-btn:hover,
  .btn-interactive:hover {
    transform: none;
  }
  
  .testimonial-submit-btn::before,
  .btn-interactive::before {
    display: none;
  }
}

/* ============================================
   RTL SUPPORT FOR FORM ELEMENTS
   ============================================ */

[dir="rtl"] .form-input-animated label {
  left: auto;
  right: 12px;
  transform-origin: right center;
}

[dir="rtl"] .form-input-animated input:focus + label,
[dir="rtl"] .form-input-animated input:not(:placeholder-shown) + label,
[dir="rtl"] .form-input-animated textarea:focus + label,
[dir="rtl"] .form-input-animated textarea:not(:placeholder-shown) + label,
[dir="rtl"] .form-input-animated label.active {
  left: auto;
  right: 8px;
}

[dir="rtl"] .star-rating {
  flex-direction: row;
}

/* ============================================
   PRINT STYLES FOR FORM ELEMENTS
   ============================================ */

@media print {
  .testimonial-submit-btn,
  .btn-interactive {
    box-shadow: none;
    background: #000;
  }
  
  .star-rating input:checked ~ label::after {
    display: none;
  }
  
  .form-input-animated input,
  .form-input-animated textarea {
    border: 1px solid #000;
  }
}

/* ============================================
   END OF TESTIMONIAL FORM ANIMATIONS
   ============================================ */


/* ============================================
   PERFORMANCE OPTIMIZATION - REDUCED MOTION CLASS
   Applied via JavaScript when user has reduced motion preference
   ============================================ */

.reduced-motion .service-card-3d .service-card {
  transform: none !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.reduced-motion .service-card-3d .service-card:hover {
  transform: translateY(-4px) !important;
}

.reduced-motion .service-card-shine,
.reduced-motion .service-card-gradient-bg,
.reduced-motion .hero-section::before,
.reduced-motion .hero-section::after,
.reduced-motion .floating-shape-2,
.reduced-motion .hero-floating-elements {
  display: none !important;
}

.reduced-motion .service-icon-animated,
.reduced-motion .service-card .icon,
.reduced-motion .service-card i {
  animation: none !important;
  transition: transform 0.2s ease !important;
}

.reduced-motion .hero-cta::before,
.reduced-motion .btn-animated::before,
.reduced-motion .btn-primary::before,
.reduced-motion .testimonial-submit-btn::before {
  display: none !important;
}

.reduced-motion .star-rating input:checked ~ label {
  animation: none !important;
}

.reduced-motion .star-rating input:checked ~ label::after {
  animation: none !important;
}

.reduced-motion .testimonial-card,
.reduced-motion .comment-card {
  animation: simple-fade-in 0.3s ease-out forwards !important;
}

.reduced-motion .hero-headline,
.reduced-motion .text-gradient {
  animation: simple-fade-in 0.3s ease-out forwards !important;
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
  /* Reduce animation complexity on mobile */
  .service-card-shine {
    display: none;
  }
  
  .service-card-gradient-bg {
    animation: none;
    background: transparent;
  }
  
  .hero-section::after,
  .floating-shape-2,
  .hero-floating-circle.medium,
  .hero-floating-circle.small,
  .hero-floating-square.small {
    display: none;
  }
  
  /* Simplify hover effects on mobile */
  .service-card:hover {
    transform: translateY(-4px);
  }
  
  /* Optimize will-change on mobile */
  .service-card,
  .testimonial-card,
  .comment-card {
    will-change: auto;
  }
  
  /* Reduce animation delays on mobile */
  .service-card:nth-child(n+4) {
    animation-delay: 0.4s;
  }
  
  .testimonial-card:nth-child(n+4),
  .comment-card:nth-child(n+4) {
    animation-delay: 0.4s;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

.touch-device .service-card-3d .service-card {
  transform: none !important;
}

.touch-device .service-card-shine {
  display: none !important;
}

.touch-device .service-card:active {
  transform: scale(0.98);
}

/* ============================================
   END OF PERFORMANCE OPTIMIZATIONS
   ============================================ */


/* ============================================
   CROSS-BROWSER COMPATIBILITY - VENDOR PREFIXES
   ============================================ */

/* Vendor-prefixed keyframe animations for cross-browser support */

/* Icon Bounce Animation - Webkit */
@-webkit-keyframes icon-bounce {
  0%, 100% {
    -webkit-transform: scale(1.1) translateY(0);
    transform: scale(1.1) translateY(0);
  }
  25% {
    -webkit-transform: scale(1.15) translateY(-8px);
    transform: scale(1.15) translateY(-8px);
  }
  50% {
    -webkit-transform: scale(1.1) translateY(0);
    transform: scale(1.1) translateY(0);
  }
  75% {
    -webkit-transform: scale(1.15) translateY(-4px);
    transform: scale(1.15) translateY(-4px);
  }
}

/* Icon Bounce Animation - Mozilla */
@-moz-keyframes icon-bounce {
  0%, 100% {
    -moz-transform: scale(1.1) translateY(0);
    transform: scale(1.1) translateY(0);
  }
  25% {
    -moz-transform: scale(1.15) translateY(-8px);
    transform: scale(1.15) translateY(-8px);
  }
  50% {
    -moz-transform: scale(1.1) translateY(0);
    transform: scale(1.1) translateY(0);
  }
  75% {
    -moz-transform: scale(1.15) translateY(-4px);
    transform: scale(1.15) translateY(-4px);
  }
}

/* Stat Pulse Animation - Webkit */
@-webkit-keyframes stat-pulse {
  0%, 100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
  }
  50% {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
  }
}

/* Stat Pulse Animation - Mozilla */
@-moz-keyframes stat-pulse {
  0%, 100% {
    -moz-transform: scale(1);
    transform: scale(1);
    -moz-box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
  }
  50% {
    -moz-transform: scale(1.05);
    transform: scale(1.05);
    -moz-box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
    box-shadow: 0 6px 20px rgba(206, 17, 38, 0.5);
  }
}

/* Count Up Animation - Webkit */
@-webkit-keyframes count-up {
  from {
    opacity: 0;
    -webkit-transform: translateY(20px) scale(0.8);
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

/* Count Up Animation - Mozilla */
@-moz-keyframes count-up {
  from {
    opacity: 0;
    -moz-transform: translateY(20px) scale(0.8);
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    -moz-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}

/* Fade In Scale Animation - Webkit */
@-webkit-keyframes fade-in-scale {
  from {
    opacity: 0;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

/* Fade In Scale Animation - Mozilla */
@-moz-keyframes fade-in-scale {
  from {
    opacity: 0;
    -moz-transform: scale(0.9);
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    -moz-transform: scale(1);
    transform: scale(1);
  }
}

/* Slide In Left Animation - Webkit */
@-webkit-keyframes slide-in-left {
  from {
    opacity: 0;
    -webkit-transform: translateX(-50px);
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Slide In Left Animation - Mozilla */
@-moz-keyframes slide-in-left {
  from {
    opacity: 0;
    -moz-transform: translateX(-50px);
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    -moz-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Slide In Right Animation - Webkit */
@-webkit-keyframes slide-in-right {
  from {
    opacity: 0;
    -webkit-transform: translateX(50px);
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Slide In Right Animation - Mozilla */
@-moz-keyframes slide-in-right {
  from {
    opacity: 0;
    -moz-transform: translateX(50px);
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    -moz-transform: translateX(0);
    transform: translateX(0);
  }
}

/* Fade In Up Card Animation - Webkit */
@-webkit-keyframes fade-in-up-card {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* Fade In Up Card Animation - Mozilla */
@-moz-keyframes fade-in-up-card {
  from {
    opacity: 0;
    -moz-transform: translateY(30px);
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
}

/* Icon Pulse Animation - Webkit */
@-webkit-keyframes icon-pulse {
  0%, 100% {
    -webkit-transform: scale(1.1) rotate(5deg);
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    -webkit-transform: scale(1.2) rotate(-5deg);
    transform: scale(1.2) rotate(-5deg);
  }
}

/* Icon Pulse Animation - Mozilla */
@-moz-keyframes icon-pulse {
  0%, 100% {
    -moz-transform: scale(1.1) rotate(5deg);
    transform: scale(1.1) rotate(5deg);
  }
  50% {
    -moz-transform: scale(1.2) rotate(-5deg);
    transform: scale(1.2) rotate(-5deg);
  }
}

/* Gradient Shimmer Animation - Webkit */
@-webkit-keyframes gradient-shimmer {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 200% center;
  }
}

/* Gradient Shimmer Animation - Mozilla */
@-moz-keyframes gradient-shimmer {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 200% center;
  }
}

/* Simple Fade In Animation - Webkit */
@-webkit-keyframes simple-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Simple Fade In Animation - Mozilla */
@-moz-keyframes simple-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Icon Bounce Enhanced Animation - Webkit */
@-webkit-keyframes icon-bounce-enhanced {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(0deg) scale(1);
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    -webkit-transform: translateY(-12px) rotate(-5deg) scale(1.1);
    transform: translateY(-12px) rotate(-5deg) scale(1.1);
  }
  50% {
    -webkit-transform: translateY(0) rotate(0deg) scale(1.05);
    transform: translateY(0) rotate(0deg) scale(1.05);
  }
  75% {
    -webkit-transform: translateY(-6px) rotate(5deg) scale(1.08);
    transform: translateY(-6px) rotate(5deg) scale(1.08);
  }
}

/* Icon Bounce Enhanced Animation - Mozilla */
@-moz-keyframes icon-bounce-enhanced {
  0%, 100% {
    -moz-transform: translateY(0) rotate(0deg) scale(1);
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    -moz-transform: translateY(-12px) rotate(-5deg) scale(1.1);
    transform: translateY(-12px) rotate(-5deg) scale(1.1);
  }
  50% {
    -moz-transform: translateY(0) rotate(0deg) scale(1.05);
    transform: translateY(0) rotate(0deg) scale(1.05);
  }
  75% {
    -moz-transform: translateY(-6px) rotate(5deg) scale(1.08);
    transform: translateY(-6px) rotate(5deg) scale(1.08);
  }
}

/* Gradient Shift Hover Animation - Webkit */
@-webkit-keyframes gradient-shift-hover {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Gradient Shift Hover Animation - Mozilla */
@-moz-keyframes gradient-shift-hover {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ============================================
   BROWSER-SPECIFIC FIXES
   ============================================ */

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    /* Fix for Safari backdrop-filter blur */
    .lightbox-backdrop,
    .gallery-lightbox,
    .image-lightbox {
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
    }
    
    /* Fix for Safari transform flickering */
    .service-card,
    .testimonial-card,
    .comment-card {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
    
    /* Fix for Safari gradient text */
    .hero-headline,
    .hero-section .text-gradient,
    .hero-section .hero-enhanced {
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
  /* Fix for Firefox transform performance */
  .service-card,
  .testimonial-card,
  .comment-card {
    will-change: transform, opacity;
  }
  
  /* Fix for Firefox flexbox gap */
  .about-flex {
    gap: 1rem;
  }
  
  /* Fix for Firefox grid gap */
  .services-grid,
  .gallery-grid {
    gap: 1.5rem;
  }
}

/* Edge-specific fixes */
@supports (-ms-ime-align:auto) {
  /* Fix for Edge grid layout */
  .services-grid,
  .gallery-grid {
    display: -ms-grid;
    -ms-grid-columns: 1fr 30px 1fr 30px 1fr;
  }
  
  /* Fix for Edge flexbox */
  .about-flex {
    display: -ms-flexbox;
  }
}

/* IE11-specific fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  /* Disable 3D transforms in IE11 */
  .service-card-3d .service-card {
    transform: none !important;
  }
  
  /* Disable animations in IE11 */
  .service-card,
  .testimonial-card,
  .comment-card {
    animation: none !important;
  }
  
  /* Use flexbox fallback in IE11 */
  .services-grid,
  .gallery-grid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .services-grid > *,
  .gallery-grid > * {
    -ms-flex: 1 1 calc(33.333% - 20px);
    flex: 1 1 calc(33.333% - 20px);
    margin: 10px;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

/* Disable 3D effects on touch devices */
.touch-device .service-card-3d .service-card {
  transform: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
}

.touch-device .service-card-shine {
  display: none !important;
}

/* Simplified hover effects for touch devices */
.touch-device .service-card:active {
  transform: scale(0.98);
  -webkit-transform: scale(0.98);
  -moz-transform: scale(0.98);
  -ms-transform: scale(0.98);
}

.touch-device .testimonial-card:active,
.touch-device .comment-card:active {
  transform: scale(0.98);
  -webkit-transform: scale(0.98);
  -moz-transform: scale(0.98);
  -ms-transform: scale(0.98);
}

/* Ensure minimum touch target sizes (44x44px) */
.touch-device .service-card,
.touch-device .testimonial-card,
.touch-device .comment-card,
.touch-device .hero-cta,
.touch-device .btn-primary,
.touch-device .btn-animated {
  min-width: 44px;
  min-height: 44px;
}

/* Optimize animations for mobile devices */
@media (max-width: 767px) {
  /* Disable complex animations on mobile */
  .service-card-gradient-bg {
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
  }
  
  /* Simplify hover effects */
  .service-card:hover,
  .testimonial-card:hover,
  .comment-card:hover {
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
  }
  
  /* Reduce floating elements */
  .hero-floating-elements .hero-floating-circle:not(.large),
  .hero-floating-elements .hero-floating-square:not(.large) {
    display: none;
  }
}

/* ============================================
   FEATURE DETECTION FALLBACKS
   ============================================ */

/* Fallback for browsers without CSS Grid */
.no-cssgrid .services-grid,
.no-cssgrid .gallery-grid,
.no-cssgrid .testimonials-grid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.no-cssgrid .services-grid > *,
.no-cssgrid .gallery-grid > * {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 calc(33.333% - 20px);
  flex: 1 1 calc(33.333% - 20px);
  margin: 10px;
}

.no-cssgrid .testimonials-grid > * {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 100%;
  flex: 1 1 100%;
  margin-bottom: 30px;
}

/* Fallback for browsers without transforms */
.no-csstransforms .service-card:hover,
.no-csstransforms .testimonial-card:hover,
.no-csstransforms .comment-card:hover {
  margin-top: -8px;
  margin-bottom: 8px;
}

.no-csstransforms .service-card-3d .service-card {
  transform: none !important;
}

/* Fallback for browsers without transitions */
.no-csstransitions .service-card,
.no-csstransitions .testimonial-card,
.no-csstransitions .comment-card {
  transition: none !important;
}

/* Fallback for browsers without animations */
.no-cssanimations .service-card,
.no-cssanimations .testimonial-card,
.no-cssanimations .comment-card {
  opacity: 1 !important;
  animation: none !important;
}

/* ============================================
   END OF CROSS-BROWSER COMPATIBILITY
   ============================================ */
