/* Font Loading Optimization */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* Global Performance & Smooth Animations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Cairo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-display: swap;
  /* Optimize font loading */
}

/* Force GPU Acceleration for Interactive Elements */
.hover-lift,
.hover-scale,
.hover-glow,
.service-card,
.project-card,
.blog-card,
.stat-card,
button,
a,
.btn {
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  -ms-perspective: 1000;
  perspective: 1000;
}

.container-narrow {
  max-width: 1120px
}

/* Professional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Enhanced Smooth Hover Effects - GPU Accelerated */
.hover-lift {
  transition: all 0.3s ease-out !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.hover-lift:hover {
  transform: translate3d(0, -8px, 0) !important;
  -webkit-transform: translate3d(0, -8px, 0) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hover-scale {
  transition: all 0.3s ease-out !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.hover-scale:hover {
  transform: translate3d(0, 0, 0) scale(1.03) !important;
  -webkit-transform: translate3d(0, 0, 0) scale(1.03) !important;
}

.hover-glow {
  transition: box-shadow 0.3s ease-out !important;
  position: relative;
  box-shadow: 0 0 0 rgba(14, 165, 165, 0) !important;
  will-change: box-shadow !important;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(14, 165, 165, 0.3) !important;
}

/* Smooth transitions for Tailwind hover utilities - GPU Accelerated */
[class*="hover:scale-"],
[class*="group-hover:scale-"] {
  transition: all 0.3s ease-out !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

[class*="hover:-translate-"],
[class*="group-hover:-translate-"],
[class*="hover:translate-"],
[class*="group-hover:translate-"] {
  transition: all 0.3s ease-out !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Enhanced card hover effects - GPU Accelerated */
.service-card,
.project-card,
.blog-card,
.stat-card {
  transition: all 0.3s ease-out !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover,
.stat-card:hover {
  transform: translate3d(0, -8px, 0) !important;
  -webkit-transform: translate3d(0, -8px, 0) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Section hover improvements */
.front-section {
  transition: all 0.3s ease;
}

/* Smooth transitions for all interactive elements - GPU Accelerated */
button,
a,
input,
textarea,
.btn,
.quick-action-btn {
  transition: all 0.3s ease-out !important;
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Enhanced button hover effects */
.btn-primary:hover {
  transform: translate3d(0, -2px, 0) !important;
  -webkit-transform: translate3d(0, -2px, 0) !important;
  box-shadow: 0 8px 25px rgba(14, 165, 165, 0.3);
}

.btn-secondary:hover {
  transform: translate3d(0, -2px, 0) !important;
  -webkit-transform: translate3d(0, -2px, 0) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced skill pills hover */
.skill-item:hover {
  transform: translateY(-2px);
}

/* Enhanced navigation link hover */
.nav-link {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
  transform: translateY(-1px);
}

/* Enhanced form element hover */
input:hover,
textarea:hover,
select:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Smooth hover for quick action buttons */
.quick-action-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced testimonial card hover */
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced Image Loading States */
img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

img:not(.image-loaded) {
  opacity: 0.7;
  transform: scale(0.98);
}

img.image-loaded {
  opacity: 1;
  transform: scale(1);
}

.image-fallback {
  animation: fadeIn 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero avatar specific loading states */
.hero-avatar img {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  background-size: 200% 200%;
  animation: shimmerPlaceholder 2s infinite;
}

.hero-avatar img.image-loaded {
  background: none;
  animation: none;
}

@keyframes shimmerPlaceholder {
  0% {
    background-position: 200% 200%;
  }

  100% {
    background-position: -200% -200%;
  }
}

/* Gradient Backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #0ea5a5 0%, #0b8b8b 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #0ea5a5 0%, #0b8b8b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.dark .skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Floating Elements */
.float-element {
  animation: float 3s ease-in-out infinite;
}

/* Testimonials Animations */
.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  animation: testimonialFadeIn 0.8s ease-out forwards;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:nth-child(4) {
  animation-delay: 0.4s;
}

.testimonial-card:nth-child(5) {
  animation-delay: 0.5s;
}

.testimonial-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes testimonialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
  animation: statFadeIn 0.6s ease-out forwards;
}

.stat-item:nth-child(1) {
  animation-delay: 0.8s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.9s;
}

.stat-item:nth-child(3) {
  animation-delay: 1.0s;
}

.stat-item:nth-child(4) {
  animation-delay: 1.1s;
}

@keyframes statFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PROFESSIONAL NAVBAR REDESIGN ===== */

/* Enhanced navbar CSS variables with professional effects */
:root {
  --navbar-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --navbar-bg-light: rgba(255, 255, 255, 0.85);
  --navbar-bg-dark: rgba(15, 23, 42, 0.85);
  --navbar-bg-glass: rgba(255, 255, 255, 0.1);
  --navbar-border-light: rgba(14, 165, 165, 0.15);
  --navbar-border-dark: rgba(14, 165, 165, 0.25);
  --navbar-shadow-light: 0 8px 32px rgba(0, 0, 0, 0.08);
  --navbar-shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
  --navbar-shadow-floating: 0 20px 60px rgba(14, 165, 165, 0.15);
  --navbar-blur: 20px;
  --navbar-height: 80px;
}

/* Professional navbar container with glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--navbar-height);
  backdrop-filter: blur(var(--navbar-blur));
  background: var(--navbar-bg-light);
  border-bottom: 1px solid var(--navbar-border-light);
  transition: var(--navbar-transition);
  transform: translateY(0);
  will-change: transform, background-color, backdrop-filter, box-shadow;
  isolation: isolate;
}

/* Enhanced dark mode navbar */
.dark .navbar {
  background: var(--navbar-bg-dark);
  border-bottom-color: var(--navbar-border-dark);
}

/* Professional navbar states */
.navbar--hidden {
  transform: translateY(-100%);
}

.navbar--scrolled {
  backdrop-filter: blur(25px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--navbar-shadow-floating);
  border-bottom-color: rgba(14, 165, 165, 0.2);
}

.dark .navbar--scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--navbar-shadow-dark);
  border-bottom-color: rgba(14, 165, 165, 0.3);
}

/* Enhanced initial animation with professional easing */
.navbar--initial {
  animation: navbarEntrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes navbarEntrance {
  0% {
    opacity: 0;
    transform: translateY(-100%) scale(0.95);
    backdrop-filter: blur(0px);
  }

  50% {
    opacity: 0.8;
    backdrop-filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    backdrop-filter: blur(var(--navbar-blur));
  }
}

/* Floating navbar effect */
.navbar--floating {
  margin: 1rem;
  border-radius: 1.5rem;
  left: 1rem;
  right: 1rem;
  width: auto;
  box-shadow: var(--navbar-shadow-floating);
}

/* Enhanced navbar container with professional spacing */
.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(var(--navbar-height) - 2rem);
  position: relative;
}


/* Professional navbar brand with enhanced effects */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0ea5a5;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.navbar__brand::before {
  content: '';
  position: absolute;
  inset: -0.5rem;
  background: linear-gradient(135deg,
      rgba(14, 165, 165, 0.1) 0%,
      rgba(11, 139, 139, 0.05) 100%);
  border-radius: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: -1;
}

.navbar__brand:hover::before {
  opacity: 1;
  transform: scale(1);
}

.navbar__brand:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 20px rgba(14, 165, 165, 0.3);
}

.navbar__brand .float-element {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(14, 165, 165, 0.3));
}

/* Professional navbar navigation */
.navbar__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 2rem;
  padding: 0.375rem;
  border: 1px solid rgba(14, 165, 165, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark .navbar__nav {
  background: rgba(15, 23, 42, 0.25);
  border-color: rgba(14, 165, 165, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced navbar links with modern pill design */
.navbar__link {
  padding: 0.75rem 1.25rem;
  border-radius: 1.25rem;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.navbar__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  opacity: 0;
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.85);
}

.navbar__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  opacity: 0;
  border-radius: inherit;
  transition: all 0.3s ease;
}

.navbar__link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.navbar__link:hover::after {
  opacity: 1;
}

.navbar__link:hover {
  color: white;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 25px rgba(14, 165, 165, 0.3);
  border-color: rgba(14, 165, 165, 0.4);
}

.navbar__link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.4);
  border-color: rgba(14, 165, 165, 0.6);
}

.navbar__link span {
  position: relative;
  z-index: 2;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

/* Professional navbar actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

/* Enhanced navbar buttons with professional styling */
.navbar__button {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1.5px solid;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  backdrop-filter: blur(15px);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.navbar__button--primary {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 25px rgba(14, 165, 165, 0.25);
}

.navbar__button--secondary {
  border-color: rgba(14, 165, 165, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #0ea5a5;
}

.dark .navbar__button--secondary {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(15, 23, 42, 0.3);
  color: #5EEAC4;
}

.navbar__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: inherit;
  transform: scale(0.9);
}

.navbar__button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: inherit;
}

.navbar__button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(14, 165, 165, 0.25);
}

.navbar__button--primary:hover {
  box-shadow: 0 16px 40px rgba(14, 165, 165, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.navbar__button--primary:hover::after {
  opacity: 1;
}

.navbar__button--secondary:hover::before {
  opacity: 1;
  transform: scale(1);
}

.navbar__button--secondary:hover {
  color: white;
  border-color: transparent;
}

.navbar__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.4);
}

.navbar__button span {
  position: relative;
  z-index: 2;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

/* Enhanced Mobile menu toggle */
.navbar__mobile-toggle {
  display: block;
  padding: 0.75rem;
  border: 1.5px solid rgba(14, 165, 165, 0.3);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  color: #0ea5a5;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  min-width: 44px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .navbar__mobile-toggle {
  border-color: rgba(14, 165, 165, 0.4);
  background: rgba(15, 23, 42, 0.3);
}

.navbar__mobile-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: inherit;
}

.navbar__mobile-toggle:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 20px rgba(14, 165, 165, 0.25);
  color: white;
  border-color: transparent;
}

.navbar__mobile-toggle:hover::before {
  opacity: 1;
}

.navbar__mobile-toggle span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* Mobile menu */
.navbar__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(14, 165, 165, 0.15);
  padding: 0.75rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 1rem 1rem;
}

.dark .navbar__mobile-menu {
  background: rgba(15, 23, 42, 0.98);
  border-top-color: rgba(14, 165, 165, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.navbar__mobile-menu--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.navbar__mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.navbar__mobile-menu a:hover {
  color: #0ea5a5;
}

.navbar__mobile-menu a:last-child {
  border-bottom: none;
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::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, height 0.6s;
}

.btn-ripple:active::before {
  width: 300px;
  height: 300px;
}

/* Parallax Effect */
.parallax-slow {
  transform: translateZ(0);
  will-change: transform;
}

/* Card Reveal Animation */
.card-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.card-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing Animation */
.typing-animation {
  overflow: hidden;
  border-right: 2px solid #0ea5a5;
  white-space: nowrap;
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: #0ea5a5;
  }
}

/* Line Clamp */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== BLOG SECTION OPTIMIZED STYLES ===== */

/* Blog section CSS variables */
:root {
  --blog-card-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --blog-card-hover-transform: translateY(-8px) scale(1.02);
  --blog-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --blog-card-shadow-hover: 0 20px 40px rgba(14, 165, 165, 0.15);
  --blog-gradient: linear-gradient(135deg, #0ea5a5 0%, #0b8b8b 100%);
  --blog-border-radius: 1.5rem;
  --blog-spacing: 1.5rem;
}

/* Blog section container */
.blog-section {
  position: relative;
  padding: 3rem 0;
  background: linear-gradient(135deg,
      rgba(248, 250, 252, 0.8) 0%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(241, 245, 249, 0.8) 100%);
  overflow: hidden;
}

.dark .blog-section {
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(30, 41, 59, 0.8) 50%,
      rgba(51, 65, 85, 0.7) 100%);
}

/* Blog section decorative elements */
.blog-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 165, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.blog-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 8%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(11, 139, 139, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

/* Blog header */
.blog-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.blog-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: rgba(14, 165, 165, 0.1);
  color: #0ea5a5;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 165, 0.2);
  transition: var(--blog-card-transition);
}

.dark .blog-header__badge {
  background: rgba(14, 165, 165, 0.15);
  border-color: rgba(14, 165, 165, 0.3);
}

.blog-header__badge:hover {
  transform: scale(1.05);
  background: rgba(14, 165, 165, 0.15);
}

.blog-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--blog-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-header__description {
  font-size: 1.125rem;
  color: #475569;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.dark .blog-header__description {
  color: #94a3b8;
}

/* Blog search controls */
.blog-search {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.blog-search__input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--blog-border-radius);
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  transition: var(--blog-card-transition);
  box-shadow: var(--blog-card-shadow);
}

.dark .blog-search__input {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
}

.blog-search__input:focus {
  outline: none;
  border-color: #0ea5a5;
  box-shadow: 0 0 0 4px rgba(14, 165, 165, 0.1);
  transform: translateY(-2px);
}

.blog-search__select {
  padding: 1rem 1.5rem;
  border-radius: var(--blog-border-radius);
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-size: 1rem;
  min-width: 200px;
  transition: var(--blog-card-transition);
  box-shadow: var(--blog-card-shadow);
}

.dark .blog-search__select {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
}

.blog-search__select:focus {
  outline: none;
  border-color: #0ea5a5;
  box-shadow: 0 0 0 4px rgba(14, 165, 165, 0.1);
}

/* Blog statistics */
.blog-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.blog-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
}

.dark .blog-stat {
  color: #94a3b8;
}

.blog-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--blog-spacing);
  position: relative;
  z-index: 2;
}

/* Blog card */
.blog-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--blog-border-radius);
  overflow: hidden;
  box-shadow: var(--blog-card-shadow);
  transition: var(--blog-card-transition);
  border: 1px solid rgba(14, 165, 165, 0.1);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.dark .blog-card {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(14, 165, 165, 0.2);
}

.blog-card:hover {
  transform: var(--blog-card-hover-transform);
  box-shadow: var(--blog-card-shadow-hover);
  border-color: rgba(14, 165, 165, 0.3);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blog-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

/* Blog card image */
.blog-card__image {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.08);
}

.blog-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(14, 165, 165, 0.1) 50%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card__image::after {
  opacity: 1;
}

/* Blog card badges */
.blog-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.blog-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--blog-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Blog card content */
.blog-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.blog-card__tag {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background: rgba(14, 165, 165, 0.1);
  color: #0ea5a5;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(14, 165, 165, 0.2);
  transition: var(--blog-card-transition);
}

.dark .blog-card__tag {
  background: rgba(14, 165, 165, 0.15);
  border-color: rgba(14, 165, 165, 0.3);
}

.blog-card__tag:hover {
  transform: scale(1.05);
  background: rgba(14, 165, 165, 0.2);
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin: 0;
  transition: color 0.3s ease;
}

.dark .blog-card__title {
  color: #f1f5f9;
}

.blog-card:hover .blog-card__title {
  color: #0ea5a5;
}

.blog-card__excerpt {
  color: #475569;
  line-height: 1.6;
  font-size: 0.875rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .blog-card__excerpt {
  color: #94a3b8;
}

/* Blog card footer */
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.dark .blog-card__footer {
  border-top-color: #475569;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #475569;
}

.dark .blog-card__meta {
  color: #94a3b8;
}

.blog-card__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card__button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(14, 165, 165, 0.1);
  color: #0ea5a5;
  border: 1px solid rgba(14, 165, 165, 0.2);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--blog-card-transition);
  position: relative;
  overflow: hidden;
}

.dark .blog-card__button {
  background: rgba(14, 165, 165, 0.15);
  border-color: rgba(14, 165, 165, 0.3);
}

.blog-card__button:hover {
  background: var(--blog-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 165, 0.3);
}

/* Blog card progress bar */
.blog-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blog-gradient);
  width: 0;
  transition: width 1s ease-out;
}

.blog-card:hover .blog-card__progress {
  width: 100%;
}

/* Blog CTA section */
.blog-cta {
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.blog-cta__container {
  display: inline-block;
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 165, 0.2);
  box-shadow: var(--blog-card-shadow-hover);
  transition: var(--blog-card-transition);
}

.dark .blog-cta__container {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(14, 165, 165, 0.3);
}

.blog-cta__container:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(14, 165, 165, 0.2);
}

.blog-cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--blog-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-cta__description {
  color: #475569;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.dark .blog-cta__description {
  color: #94a3b8;
}

.blog-cta__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.blog-cta__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  transition: var(--blog-card-transition);
}

.dark .blog-cta__input {
  border-color: #475569;
  background: #1e293b;
  color: #f1f5f9;
}

.blog-cta__input:focus {
  outline: none;
  border-color: #0ea5a5;
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.1);
}

.blog-cta__button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--blog-gradient);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--blog-card-transition);
  box-shadow: var(--blog-card-shadow);
}

.blog-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(14, 165, 165, 0.3);
}

/* ===== ENHANCED SUPPORT SECTION STYLES ===== */

/* Support section variables */
:root {
  --support-gradient: linear-gradient(135deg,
      rgba(14, 165, 165, 0.05) 0%,
      rgba(168, 85, 247, 0.05) 50%,
      rgba(14, 165, 165, 0.03) 100%);
  --support-card-gradient: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(248, 250, 252, 0.8) 100%);
  --support-glow: 0 20px 60px rgba(14, 165, 165, 0.15);
  --support-transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced support section container */
.support-section {
  position: relative;
  padding: 3rem 0;
  background: var(--support-gradient);
  overflow: hidden;
}

.dark .support-section {
  --support-gradient: linear-gradient(135deg,
      rgba(14, 165, 165, 0.08) 0%,
      rgba(168, 85, 247, 0.08) 50%,
      rgba(14, 165, 165, 0.05) 100%);
  --support-card-gradient: linear-gradient(135deg,
      rgba(30, 41, 59, 0.9) 0%,
      rgba(51, 65, 85, 0.8) 100%);
}

/* Support background effects */
.support-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.support-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: supportFloat 15s ease-in-out infinite;
}

.support-orb--primary {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 165, 0.3) 0%, transparent 70%);
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.support-orb--secondary {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  bottom: 10%;
  left: 15%;
  animation-delay: -5s;
}

@keyframes supportFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, -20px) scale(1.1);
  }

  66% {
    transform: translate(20px, -30px) scale(0.9);
  }
}

/* Support header */
.support-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #a855f7;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: var(--support-transition);
  backdrop-filter: blur(10px);
}

.dark .support-badge {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.support-badge:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.support-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #0ea5a5 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-description {
  font-size: 1.125rem;
  color: #475569;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.dark .support-description {
  color: #94a3b8;
}

/* Support cards grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 4rem;
}


/* Support card */
.support-card {
  position: relative;
  background: var(--support-card-gradient);
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid rgba(14, 165, 165, 0.1);
  backdrop-filter: blur(20px);
  transition: var(--support-transition);
  overflow: hidden;
  text-align: center;
}

.dark .support-card {
  border-color: rgba(14, 165, 165, 0.2);
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #0ea5a5, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.support-card:hover::before {
  transform: scaleX(1);
}

.support-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--support-glow);
  border-color: rgba(14, 165, 165, 0.3);
}

.support-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(14, 165, 165, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid rgba(168, 85, 247, 0.2);
  transition: var(--support-transition);
}

.dark .support-card__icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(14, 165, 165, 0.15));
  border-color: rgba(168, 85, 247, 0.3);
}

.support-card:hover .support-card__icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(14, 165, 165, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.support-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.dark .support-card__title {
  color: #f1f5f9;
}

.support-card__description {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.dark .support-card__description {
  color: #94a3b8;
}

.support-card__amount {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #0ea5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.support-card__period {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 2rem;
}

.dark .support-card__period {
  color: #94a3b8;
}

.support-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.support-card__feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: #475569;
}

.dark .support-card__feature {
  color: #94a3b8;
}

.support-card__feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.support-card__button {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--support-transition);
  position: relative;
  overflow: hidden;
}

.support-card__button--primary {
  background: linear-gradient(135deg, #a855f7, #0ea5a5);
  color: white;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.support-card__button--secondary {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 2px solid rgba(168, 85, 247, 0.2);
}

.dark .support-card__button--secondary {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.support-card__button:hover {
  transform: translateY(-2px);
}

.support-card__button--primary:hover {
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.4);
}

.support-card__button--secondary:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

/* Support CTA section */
.support-cta {
  text-align: center;
  position: relative;
  z-index: 10;
}

.support-cta__container {
  display: inline-block;
  padding: 3rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
  transition: var(--support-transition);
}

.dark .support-cta__container {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(168, 85, 247, 0.3);
}

.support-cta__container:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 80px rgba(168, 85, 247, 0.2);
}

.support-cta__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #a855f7, #0ea5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-cta__description {
  color: #475569;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.dark .support-cta__description {
  color: #94a3b8;
}

.support-cta__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-cta__stat {
  text-align: center;
}

.support-cta__stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #0ea5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.support-cta__stat-label {
  font-size: 0.875rem;
  color: #475569;
}

.dark .support-cta__stat-label {
  color: #94a3b8;
}

/* ===== ENHANCED PROJECTS NAVIGATION STYLES ===== */

/* Projects section variables */
:root {
  --projects-nav-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --projects-nav-gradient: linear-gradient(135deg, #0ea5a5 0%, #ff6b4a 100%);
  --projects-nav-glow: 0 8px 32px rgba(14, 165, 165, 0.25);
  --projects-nav-hover-glow: 0 12px 40px rgba(14, 165, 165, 0.35);
}

/* Enhanced Projects Navigation Button Styles */
.projects-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--projects-nav-transition);
  overflow: hidden;
  backdrop-filter: blur(10px);
  isolation: isolate;
}

.projects-nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--projects-nav-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: -1;
}

.projects-nav-btn--primary {
  background: var(--projects-nav-gradient);
  color: white;
  box-shadow: var(--projects-nav-glow);
  border: 2px solid transparent;
}

.projects-nav-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #0ea5a5;
  border: 2px solid rgba(14, 165, 165, 0.3);
  backdrop-filter: blur(15px);
}

.dark .projects-nav-btn--secondary {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(14, 165, 165, 0.4);
}

.projects-nav-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.projects-nav-btn--primary:hover {
  box-shadow: var(--projects-nav-hover-glow);
  transform: translateY(-3px) scale(1.05);
}

.projects-nav-btn--secondary:hover::before {
  opacity: 1;
}

.projects-nav-btn--secondary:hover {
  color: white;
  border-color: transparent;
  box-shadow: var(--projects-nav-hover-glow);
}

.projects-nav-btn__icon {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.projects-nav-btn:hover .projects-nav-btn__icon {
  transform: scale(1.1) rotate(5deg);
}

.projects-nav-btn__text {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.projects-nav-btn:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.3);
}

/* Quick Filter Buttons */
.quick-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(14, 165, 165, 0.3);
  background: transparent;
  cursor: pointer;
  transition: var(--projects-nav-transition);
  position: relative;
  overflow: hidden;
}

.quick-filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--projects-nav-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.quick-filter-btn--laravel {
  color: #0ea5a5;
  border-color: rgba(14, 165, 165, 0.3);
  background: rgba(14, 165, 165, 0.05);
}

.quick-filter-btn--react {
  color: #61dafb;
  border-color: rgba(97, 218, 251, 0.3);
  background: rgba(97, 218, 251, 0.05);
}

.quick-filter-btn--mobile {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.quick-filter-btn--api {
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.quick-filter-btn--database {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.quick-filter-btn:hover {
  transform: translateY(-1px) scale(1.05);
  color: white;
  border-color: transparent;
}

.quick-filter-btn:hover::before {
  opacity: 1;
}

/* Enhanced Search Interface */
.projects-search-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 165, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(14, 165, 165, 0.1);
  transition: var(--projects-nav-transition);
}

.dark .projects-search-container {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(14, 165, 165, 0.2);
}

.projects-search-container:hover {
  box-shadow: 0 12px 40px rgba(14, 165, 165, 0.15);
  border-color: rgba(14, 165, 165, 0.3);
}

/* ===== ENHANCED HERO SECTION STYLES ===== */

/* Hero section variables */
:root {
  --hero-gradient: linear-gradient(135deg,
      rgba(14, 165, 165, 0.1) 0%,
      rgba(11, 139, 139, 0.05) 30%,
      rgba(248, 250, 252, 0.8) 70%,
      rgba(241, 245, 249, 0.9) 100%);
  --hero-text-gradient: linear-gradient(135deg, #0ea5a5 0%, #3dd5c4 50%, #0a7777 100%);
  --hero-glow: 0 0 100px rgba(14, 165, 165, 0.3);
  --hero-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced hero container */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  overflow: hidden;
}

.dark .hero-section {
  --hero-gradient: linear-gradient(135deg,
      rgba(14, 165, 165, 0.15) 0%,
      rgba(11, 139, 139, 0.1) 30%,
      rgba(15, 23, 42, 0.9) 70%,
      rgba(30, 41, 59, 0.95) 100%);
}

/* Advanced background animations */
.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-orb--primary {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 165, 0.4) 0%, transparent 70%);

  .animate-in {
    transition: all 0.5s ease-out;
  }

  .scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease-out;
  }

  .scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
  }

  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-orb--secondary {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(11, 139, 139, 0.3) 0%, transparent 70%);
  bottom: -15%;
  right: -15%;
  animation-delay: -4s;
}

.hero-orb--tertiary {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(10, 119, 119, 0.25) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -8s;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-20px, -30px) scale(1.1);
  }

  50% {
    transform: translate(30px, -20px) scale(0.9);
  }

  75% {
    transform: translate(-10px, 20px) scale(1.05);
  }
}

/* Animated gradient mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(11, 139, 139, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(10, 119, 119, 0.06) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(1deg);
  }
}

/* Hero content styling */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-arabic-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(14, 165, 165, 0.2);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin: 0 auto 1.5rem;
  text-align: right;
  max-width: 460px;
  width: 100%;
  color: #0f172a;
}

.dark .hero-arabic-card {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(14, 165, 165, 0.3);
  color: #f1f5f9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-arabic-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(14, 165, 165, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0ea5a5;
}

.dark .hero-arabic-card__icon {
  background: rgba(14, 165, 165, 0.2);
}

.hero-arabic-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.hero-arabic-card__subtitle {
  font-size: 0.9rem;
  margin: 0.15rem 0 0;
  color: #475569;
}

.dark .hero-arabic-card__subtitle {
  color: #cbd5f5;
}

@media (max-width: 640px) {
  .hero-arabic-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 165, 0.2);
  color: #0ea5a5;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: var(--hero-transition);
  box-shadow: 0 8px 32px rgba(14, 165, 165, 0.1);
}

.dark .hero-badge {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(14, 165, 165, 0.3);
}

.hero-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(14, 165, 165, 0.2);
  background: rgba(14, 165, 165, 0.1);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

/* Ensure nested hero text keeps its intended colors */
.hero-title .hero-greeting,
.hero-title .hero-greeting *,
.hero-title .hero-subtitle,
.hero-title .hero-subtitle *,
.hero-title .hero-subtitle-text,
.hero-title .hero-subtitle-highlight,
.hero-title .typing-container,
.hero-title .typing-container * {
  -webkit-text-fill-color: currentColor;
}

/* Typing animation container */
.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 3rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.typing-container {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.typing-text {
  color: #0ea5a5;
  position: relative;
}

.hero-subtitle.hero-subtitle-enhanced,
.hero-subtitle-text {
  color: #4338ca;
}

.dark .hero-subtitle.hero-subtitle-enhanced,
.dark .hero-subtitle-text {
  color: #a5b4fc;
}

.hero-subtitle-highlight {
  color: #0ea5a5;
}

.dark .hero-subtitle-highlight {
  color: #0ea5a5;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.5em;
  background: #0ea5a5;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Hero description */
.hero-description {
  font-size: 1.125rem;
  color: #475569;
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.dark .hero-description {
  color: #94a3b8;
}

/* Enhanced hero buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}


.hero-button {
  position: relative;
  padding: 1rem 2.5rem;
  border-radius: 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--hero-transition);
  backdrop-filter: blur(10px);
  overflow: hidden;
  min-width: 200px;
  text-align: center;
}

.hero-button--primary {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  color: white;
  border: none;
  box-shadow: 0 8px 32px rgba(14, 165, 165, 0.25);
}

.hero-button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #0ea5a5;
  border: 2px solid rgba(14, 165, 165, 0.3);
}

.dark .hero-button--secondary {
  background: rgba(15, 23, 42, 0.3);
  color: #0ea5a5;
}

.hero-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-button:hover::before {
  opacity: 1;
}

.hero-button:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-button--primary:hover {
  box-shadow: 0 16px 48px rgba(14, 165, 165, 0.4);
}

.hero-button--secondary:hover {
  background: rgba(14, 165, 165, 0.1);
  border-color: rgba(14, 165, 165, 0.5);
  color: #0ea5a5;
}

/* Hero stats section */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}


.hero-stat {
  text-align: center;
  padding: 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 165, 0.15);
  transition: var(--hero-transition);
}

.dark .hero-stat {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(14, 165, 165, 0.25);
}

.hero-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14, 165, 165, 0.15);
  border-color: rgba(14, 165, 165, 0.3);
}

.hero-stat__number {
  font-size: 2rem;
  font-weight: 900;
  color: #0ea5a5;
  display: block;
  margin-bottom: 0.5rem;
}

.hero-stat__label {
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.dark .hero-stat__label {
  color: #94a3b8;
}

/* Hero image enhancement */
.hero-image {
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -2rem;
  background: linear-gradient(135deg, rgba(14, 165, 165, 0.2) 0%, transparent 50%);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-image img {
  transition: var(--hero-transition);
  filter: drop-shadow(0 20px 40px rgba(14, 165, 165, 0.2));
}

.hero-image:hover img {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(0 25px 50px rgba(14, 165, 165, 0.3));
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

.dark .hero-scroll {
  color: #94a3b8;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.hero-scroll__icon {
  width: 2rem;
  height: 3rem;
  border: 2px solid currentColor;
  border-radius: 1rem;
  position: relative;
}

.hero-scroll__icon::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }
}

/* Professional Projects Section */
.projects-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.dark .projects-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.projects-header {
  background: linear-gradient(135deg, rgba(14, 165, 165, 0.1) 0%, rgba(11, 139, 139, 0.05) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
}

/* Enhanced Swiper Customizations */
.projectsSwiper {
  padding: 40px 60px;
  overflow: visible;
}

.projectsSwiper .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.projectsSwiper .swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  background: rgba(14, 165, 165, 0.2);
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
}

.projectsSwiper .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  transform: scale(1.3);
  box-shadow: 0 8px 25px rgba(14, 165, 165, 0.4);
  border-color: rgba(14, 165, 165, 0.3);
}

.projectsSwiper .swiper-pagination-bullet:hover {
  transform: scale(1.1);
  background: rgba(14, 165, 165, 0.4);
}

/* Professional Navigation Buttons */
.projectsSwiper .swiper-button-next,
.projectsSwiper .swiper-button-prev {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(14, 165, 165, 0.2);
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  color: #0ea5a5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.dark .projectsSwiper .swiper-button-next,
.dark .projectsSwiper .swiper-button-prev {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: rgba(14, 165, 165, 0.3);
}

.projectsSwiper .swiper-button-next:hover,
.projectsSwiper .swiper-button-prev:hover {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 16px 50px rgba(14, 165, 165, 0.3);
  border-color: transparent;
}

.projectsSwiper .swiper-button-next::after,
.projectsSwiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

/* Enhanced Slide Effects */
.projectsSwiper .swiper-slide {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  transform: scale(0.9) rotateY(15deg);
  perspective: 1000px;
}

.projectsSwiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
  z-index: 10;
}

.projectsSwiper .swiper-slide-next,
.projectsSwiper .swiper-slide-prev {
  opacity: 0.8;
  transform: scale(0.95) rotateY(8deg);
}

/* Project Card Enhancements */
.project-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(14, 165, 165, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dark .project-card {
  background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
  border-color: rgba(14, 165, 165, 0.2);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5a5, #ff6b4a);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 60px rgba(14, 165, 165, 0.15);
  border-color: rgba(14, 165, 165, 0.3);
}

/* Project Image Enhancements */
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(14, 165, 165, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

/* Enhanced Pagination Controls */
.projects-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  padding: 24px;
  background: rgba(14, 165, 165, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.pagination-counter {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(14, 165, 165, 0.3);
}

/* Progress Bar */
.swiper-progress {
  width: 100%;
  height: 6px;
  background: rgba(14, 165, 165, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 24px 0;
}

.swiper-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0ea5a5, #ff6b4a);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(14, 165, 165, 0.5);
}

/* Testimonials Swiper Styles */
.testimonialsSwiper {
  padding: 20px 0 60px;
  overflow: visible;
}

.testimonialsSwiper .swiper-slide {
  height: auto;
  transition: all 0.5s ease;
}

.testimonialsSwiper .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.testimonialsSwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(14, 165, 165, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 50%;
  cursor: pointer;
}

.testimonialsSwiper .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b);
  transform: scale(1.5);
  box-shadow: 0 4px 12px rgba(14, 165, 165, 0.4);
}

.testimonialsSwiper .swiper-pagination-bullet:hover {
  background: rgba(14, 165, 165, 0.6);
  transform: scale(1.2);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .projectsSwiper {
    padding: 30px 40px;
  }

  .projectsSwiper .swiper-button-next,
  .projectsSwiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    margin-top: -24px;
  }
}

@media (max-width: 768px) {
  .projectsSwiper {
    padding: 20px 10px;
  }

  .projectsSwiper .swiper-button-next,
  .projectsSwiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .projectsSwiper .swiper-button-next::after,
  .projectsSwiper .swiper-button-prev::after {
    font-size: 14px;
  }

  .projects-pagination-controls {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 640px) {

  .projectsSwiper .swiper-button-next,
  .projectsSwiper .swiper-button-prev {
    display: none;
  }
}

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

/* Focus States */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 165, 0.3);
}

/* Quick Action Buttons */
.quick-action-btn {
  padding: 0.375rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .quick-action-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.5rem;
    border-radius: 1rem;
  }
}

@media (min-width: 640px) {
  .quick-action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .quick-action-btn {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
}

/* Hero Section Mobile Improvements */
@media (max-width: 640px) {
  .hero-section .container {
    gap: 1rem;
    width: 100%;
    padding: 0 0.75rem;
  }

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

  .hero-actions-enhanced {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions-enhanced a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    margin: 0;
  }
}

/* Better Mobile Typography */
@media (max-width: 480px) {
  .gradient-text {
    line-height: 1.2;
    text-align: center;
  }

  .hero-description-enhanced {
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
  }

  .hero-title-enhanced {
    text-align: center;
  }

  .hero-subtitle-enhanced {
    text-align: center;
  }

  .typing-container {
    justify-content: center;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hero-badge {
    margin: 0 auto;
  }
}

/* Enhanced mobile optimizations for all sections */
@media (max-width: 640px) {

  /* Blog section responsive */
  .blog-section .container,
  .support-section .container,
  .projects-section .container {
    width: 100%;
    padding: 0 0.75rem;
  }

  /* Grid optimizations for small screens */
  .blog-grid,
  .support-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Card padding adjustments */
  .blog-card,
  .support-card,
  .project-card {
    margin: 0;
    width: 100%;
  }

  /* Form elements */
  .blog-search,
  .projects-search-container {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
  }

  /* Footer responsive */
  footer .container {
    width: 100%;
    padding: 0 0.75rem;
  }

  /* Modal responsive */
  .modal .container {
    width: 100%;
    padding: 1rem;
  }
}

/* Medium screens optimization (md) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar__container {
    padding: 1rem 1.5rem;
  }

  .hero-section .container,
  .blog-section .container,
  .support-section .container,
  .projects-section .container {
    padding: 0 1.5rem;
  }

  /* Grid adjustments for medium screens */
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

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

/* Large screens optimization (lg and xl) */
@media (min-width: 1025px) {
  .container {
    padding: 0 2rem;
  }

  .navbar__container {
    padding: 1rem 2rem;
  }

  .hero-section .container,
  .blog-section .container,
  .support-section .container,
  .projects-section .container {
    padding: 0 2rem;
  }
}

/* Enhanced Dark Mode Support */
.front-section {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Force immediate theme application */
.dark .front-section,
.dark .front-section * {
  color: inherit !important;
}

.dark body {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

/* Blog section specific */
.dark .blog-section {
  background: #0f172a !important;
}

/* Service cards specific */
.dark .hover-lift {
  background-color: rgba(15, 23, 42, 0.8) !important;
}

/* Testimonials section */
.dark .testimonials-section {
  background: #0f172a !important;
}

/* Contact section */
.dark #contact {
  background: #0f172a !important;
}

/* Projects section */
.dark #projects {
  background: #0f172a !important;
}

/* About section */
.dark #about {
  background: #0f172a !important;
}

/* Payment section */
.dark #payment {
  background: #0f172a !important;
}

.dark #payment table th,
.dark #payment table td {
  background-color: rgba(15, 23, 42, 0.75) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

.dark #payment table tr:nth-child(even) td,
.dark #payment table tr:nth-child(even) th {
  background-color: rgba(2, 6, 23, 0.85) !important;
}

/* Fix specific classes for dark mode */
.dark .bg-white {
  background-color: rgba(15, 23, 42, 0.5) !important;
}

.dark .border-slate-200 {
  border-color: rgb(71, 85, 105) !important;
}

.dark .text-slate-600:not(.gradient-text-fallback) {
  color: rgb(203, 213, 225) !important;
}

.dark .text-slate-700:not(.gradient-text-fallback) {
  color: rgb(226, 232, 240) !important;
}

.dark .text-slate-800:not(.gradient-text-fallback) {
  color: rgb(241, 245, 249) !important;
}

.dark .text-slate-900:not(.gradient-text-fallback) {
  color: rgb(248, 250, 252) !important;
}

/* Force dark mode for gradient backgrounds */
.dark .bg-gradient-to-br.from-slate-50 {
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8), rgba(14, 165, 165, 0.1)) !important;
}

/* Fix blog section cards */
.dark .blog-section .bg-white {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgb(71, 85, 105) !important;
}

/* Fix service cards */
.dark .hover-lift {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgb(71, 85, 105) !important;
}

/* Fix testimonials cards */
.dark .testimonial-card {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: rgb(71, 85, 105) !important;
}

/* Fix grid containers */
.dark .grid {
  color: rgb(241, 245, 249) !important;
}

/* Fix any remaining white backgrounds */
.dark [class*="bg-white"] {
  background-color: rgba(15, 23, 42, 0.8) !important;
}

.dark [class*="border-slate-200"] {
  border-color: rgb(71, 85, 105) !important;
}

/* Universal dark mode fixes with high specificity */
.dark section,
.dark .front-section {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

/* Force all white backgrounds to dark */
.dark .bg-white,
.dark [class*="bg-white"],
.dark .bg-gradient-to-br {
  background-color: rgba(15, 23, 42, 0.8) !important;
  background-image: none !important;
}

/* Force all slate borders to appropriate dark colors */
.dark .border-slate-200,
.dark [class*="border-slate-200"] {
  border-color: rgba(71, 85, 105, 0.8) !important;
}

/* Force all text colors to light in dark mode */
.dark .text-slate-600:not(.gradient-text-fallback),
.dark .text-slate-700:not(.gradient-text-fallback),
.dark .text-slate-800:not(.gradient-text-fallback),
.dark .text-slate-900:not(.gradient-text-fallback),
.dark [class*="text-slate-"]:not(.gradient-text-fallback) {
  color: #f1f5f9 !important;
}


/* Force grid elements to inherit proper colors */
.dark .grid>*,
.dark .grid * {
  color: inherit !important;
}

/* Specific card fixes */
.dark .hover-lift,
.dark .testimonial-card,
.dark .skill-item,
.dark .stat-item {
  background-color: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(71, 85, 105, 0.8) !important;
  color: #f1f5f9 !important;
}

/* Blog cards fix */
.dark .blog-section .bg-white,
.dark .blog-section [class*="bg-white"] {
  background-color: rgba(15, 23, 42, 0.9) !important;
}

/* Service cards fix */
.dark .p-6.rounded-2xl,
.dark [class*="p-6"][class*="rounded-2xl"] {
  background-color: rgba(15, 23, 42, 0.8) !important;
  border-color: rgba(71, 85, 105, 0.8) !important;
}

/* Container backgrounds */
.dark .py-24,
.dark .py-16,
.dark .py-20 {
  background-color: #0f172a !important;
}

/* Override any gradient backgrounds in dark mode */
.dark [class*="bg-gradient"] {
  background: #0f172a !important;
}

/* Ensure proper contrast for all content */
.dark * {
  border-color: rgba(71, 85, 105, 0.6);
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark p,
.dark span,
.dark div,
.dark li {
  color: #f1f5f9;
}

/* Fix backdrop blur elements */
.dark .backdrop-blur-sm {
  background-color: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(4px);
}


/* ===== ENHANCED HERO SECTION STYLES ===== */

/* Hero Avatar Styles */
.hero-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--primary-color, #3b82f6);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
  margin-bottom: 2rem;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
}

.hero-avatar:hover {
  transform: translate3d(0, -6px, 0) scale(1.04) rotate(3deg);
  box-shadow: 0 30px 70px rgba(59, 130, 246, 0.35);
}

/* Typography with clamp() */
.hero-main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color, #3b82f6), #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-secondary, #64748b);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  max-width: 600px;
  line-height: 1.8;
  color: var(--text-secondary, #64748b);
  margin: 0 auto 2rem;
}

/* Enhanced Button Styles */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.btn-primary {
  padding: 1rem 2rem;
  background: var(--primary-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary, #1e293b);
  border: 2px solid var(--border-color, #e2e8f0);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--primary-color, #3b82f6);
  color: var(--primary-color, #3b82f6);
  transform: translateY(-3px);
}

/* Enhanced Animation Classes with Smooth Transitions */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide-in-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide-in-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.animate-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger animation delays for multiple elements */
.fade-in:nth-child(1) {
  transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
  transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
  transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
  transition-delay: 0.5s;
}

.fade-in:nth-child(6) {
  transition-delay: 0.6s;
}

.scale-in:nth-child(1) {
  transition-delay: 0.15s;
}

.scale-in:nth-child(2) {
  transition-delay: 0.25s;
}

.scale-in:nth-child(3) {
  transition-delay: 0.35s;
}

.scale-in:nth-child(4) {
  transition-delay: 0.45s;
}

.scale-in:nth-child(5) {
  transition-delay: 0.55s;
}

.scale-in:nth-child(6) {
  transition-delay: 0.65s;
}

/* Enhanced Theme Transitions */
body * {
  transition: background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Dark Mode Variables */
.dark {
  --primary-color: #60a5fa;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e0;
  --border-color: rgba(255, 255, 255, 0.1);
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --card-bg: rgba(255, 255, 255, 0.05);
}


/* ===== ENHANCED COLOR SYSTEM (Dark/Light Mode) ===== */

:root {
  /* Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --accent-color: #3b82f6;
  --accent-secondary: #10b981;
  --accent-tertiary: #8b5cf6;
  --card-bg: #ffffff;
  --border-color: rgba(226, 232, 240, 0.6);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  /* Dark Mode */
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #252d3d;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e0;
  --text-tertiary: #a0aec0;
  --accent-color: #60a5fa;
  --accent-secondary: #34d399;
  --accent-tertiary: #a78bfa;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
}

body {
  font-family: "Cairo", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* Smooth transitions for theme switch */
* {
  transition: background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Theme Toggle Button */
#theme-toggle {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

#theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-lg);
}

/* RTL Support */
[dir="rtl"] #theme-toggle {
  left: auto;
  right: 2rem;
}

.theme-transitioning * {
  transition-duration: 0.3s !important;
}


/* ===== BACK TO TOP BUTTON ===== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px) scale(0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* RTL Support */
[dir="rtl"] .back-to-top {
  right: auto;
  left: 2rem;
}


/* ===== PROFESSIONAL SERVICE CARDS ===== */

.services-section {
  padding: 100px 20px;
  background: var(--bg-secondary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-description {
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-features li {
  padding: 0.5rem 0;
  padding-right: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.service-features li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--accent-secondary);
  font-weight: bold;
}

/* Animation delays for staggered effect */
.service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.dark .services-section {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9)) !important;
  color: #f8fafc;
}

.dark .services-section .section-title {
  color: #e2e8f0;
}

.dark .services-section .section-subtitle {
  color: #cbd5f5;
}

.dark .service-card {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.6) !important;
}

.dark .service-card::after {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
}

.dark .service-title,
.dark .service-description,
.dark .service-features li {
  color: #e2e8f0;
}

.dark .service-features li::before {
  color: #38bdf8;
}

.dark .service-icon {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}


/* ===== ANIMATED STATISTICS SECTION ===== */

.stats-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg width=60 height=60 viewBox=0 0 60 60%3E%3Cg fill-rule=evenodd%3E%3Cg fill=%23ffffff fill-opacity=0.1%3E%3Ccircle cx=30 cy=30 r=3/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1.1rem;
}


/* ===== MODERN SKILLS SECTION ===== */

.skills-section {
  padding: 100px 20px;
  background: var(--bg-primary);
}

.skills-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Skills Categories */
.skills-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-category-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-secondary);
}

.skill-category-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.skill-category-btn:hover:not(.active) {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.skill-item {
  margin-bottom: 2.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-icon {
  font-size: 1.5rem;
}

.skill-percentage {
  font-weight: 800;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.skill-bar-container {
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  border-radius: 50px;
  position: relative;
  animation: fillBar 1.5s ease-out forwards;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  width: 0;
}

.skill-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 2s infinite;
}

.skill-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50px 50px 0 0;
}

@keyframes fillBar {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  100% {
    transform: translateX(100%);
  }
}


/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* تحسين الأداء */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* will-change للعناصر المتحركة */
.service-card,
.skill-bar,
.btn-primary {
  will-change: transform;
}

/* تقليل الحركة للمستخدمين */
@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;
  }
}

/* ===== RESPONSIVE NAVIGATION ===== */

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid var(--border-color);
  }

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

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}


/* ===== INSTANT THEME SWITCHING ===== */

/* ULTRA POWERFUL: Disable ALL transitions instantly during theme switch */
.no-transitions,
.no-transitions *,
.no-transitions *::before,
.no-transitions *::after {
  transition: none !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  transition-property: none !important;
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-fill-mode: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* Legacy support */
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: none !important;
  animation-duration: 0s !important;
}

/* Ultra-fast transitions for normal state - ONLY when not switching themes */
body:not(.no-transitions) * {
  transition: background-color 0.05s ease,
    border-color 0.05s ease,
    color 0.05s ease;
}

/* Instant theme variables switching */
:root {
  transition: none;
}

[data-theme="dark"] {
  transition: none;
}

/* Instant background changes */
body {
  transition: background-color 0.05s ease;
}

/* Override any slow transitions */
.btn-primary,
.btn-secondary,
.service-card,
.stat-card {
  transition: all 0.1s ease !important;
}

/* Disable transitions on theme elements */
#themeToggle {
  transition: transform 0.2s ease;
}

#themeToggle:hover {
  transition: transform 0.1s ease;
}


/* ===== FORCE INSTANT THEME SWITCHING ===== */

/* Override ANY slow transitions that might still exist */
.no-transitions .hero-section,
.no-transitions .service-card,
.no-transitions .stat-card,
.no-transitions .btn-primary,
.no-transitions .btn-secondary,
.no-transitions nav,
.no-transitions header,
.no-transitions section,
.no-transitions .front-section {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Ensure immediate color changes */
.no-transitions {
  --bg-primary: var(--bg-primary);
  --bg-secondary: var(--bg-secondary);
  --text-primary: var(--text-primary);
  --text-secondary: var(--text-secondary);
  --card-bg: var(--card-bg);
  --border-color: var(--border-color);
}

/* Force immediate background updates */
body.no-transitions .front-section,
body.no-transitions section,
body.no-transitions .service-card,
body.no-transitions .stat-card {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}


/* ===== ENHANCED BORDER STYLES ===== */

/* Light mode - softer borders */
.border-slate-200 {
  border-color: rgba(226, 232, 240, 0.4) !important;
}

/* Better border for light mode cards */
[class*="border-slate-200"] {
  border-color: rgba(14, 165, 165, 0.1) !important;
}

/* Service cards with subtle borders */
.service-card {
  border: 1px solid rgba(14, 165, 165, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  border-color: rgba(14, 165, 165, 0.2) !important;
  box-shadow: 0 10px 30px rgba(14, 165, 165, 0.08);
}

/* Stats cards with gentle borders */
.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Better borders for contact and project sections */
.front-section {
  border-top-color: rgba(241, 245, 249, 0.6) !important;
}

/* Dark mode borders remain unchanged */
.dark .border-slate-200,
.dark [class*="border-slate-200"] {
  border-color: rgba(71, 85, 105, 0.3) !important;
}

.dark .service-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .front-section {
  border-top-color: rgba(71, 85, 105, 0.3) !important;
}


/* ===== SUBTLE CARD DESIGN FOR LIGHT MODE ===== */

/* Replace harsh borders with subtle shadows and gradients */
:root:not(.dark) .service-card {
  border: 1px solid rgba(14, 165, 165, 0.05) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
  background: white !important;
}

:root:not(.dark) .service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(14, 165, 165, 0.1), 0 8px 10px -6px rgba(14, 165, 165, 0.05) !important;
}

/* Improved project cards */
:root:not(.dark) .project-card,
:root:not(.dark) [class*="project"] {
  border: 1px solid rgba(14, 165, 165, 0.05) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Enhanced blog cards */
:root:not(.dark) .blog-card {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(248, 250, 252, 0.9) !important;
}

/* Better section dividers */
:root:not(.dark) .front-section {
  border-top: 1px solid rgba(248, 250, 252, 0.8) !important;
}

/* Contact form improvements */
:root:not(.dark) .contact-form,
:root:not(.dark) .form-input,
:root:not(.dark) .form-textarea {
  border: 1px solid rgba(226, 232, 240, 0.5) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

:root:not(.dark) .form-input:focus,
:root:not(.dark) .form-textarea:focus {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ===== SKILLS PROGRESS BAR FIX ===== */

/* Fix progress bar visibility in dark mode */
.dark .bg-slate-700 {
  background-color: rgb(51 65 85) !important;
  opacity: 1 !important;
  display: block !important;
}

/* Ensure progress bar containers are visible */
.bg-slate-200 {
  background-color: rgb(226 232 240) !important;
}

.dark .bg-slate-200 {
  background-color: rgb(51 65 85) !important;
}

/* Specific fix for skill progress bars */
.skill-item .bg-slate-200,
.skill-item .dark\:bg-slate-700 {
  background-color: rgb(226 232 240) !important;
}

.dark .skill-item .bg-slate-200,
.dark .skill-item .dark\:bg-slate-700 {
  background-color: rgb(51 65 85) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Enhanced visibility for all progress bars */
.w-full.bg-slate-200 {
  background-color: rgb(226 232 240) !important;
  border: 1px solid rgba(203, 213, 225, 0.5);
}

.dark .w-full.bg-slate-200,
.dark .w-full.dark\:bg-slate-700 {
  background-color: rgb(51 65 85) !important;
  border: 1px solid rgba(71, 85, 105, 0.5) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* ===== PROGRESS BAR FILL IMPROVEMENTS ===== */

/* Enhanced gradient progress bars */
.bg-gradient-to-r.from-blue-500.to-blue-600,
.bg-gradient-to-r.from-cyan-500.to-cyan-600,
.bg-gradient-to-r.from-yellow-500.to-yellow-600,
.bg-gradient-to-r.from-red-500.to-red-600,
.bg-gradient-to-r.from-green-500.to-green-600,
.bg-gradient-to-r.from-purple-500.to-purple-600 {
  position: relative !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced gradient effects for progress bars - Lighter Colors */
.bg-gradient-to-r.from-blue-500.to-blue-600 {
  background: linear-gradient(90deg, #60a5fa, #3b82f6) !important;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3) !important;
}

.bg-gradient-to-r.from-cyan-500.to-cyan-600 {
  background: linear-gradient(90deg, #22d3ee, #06b6d4) !important;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3) !important;
}

.bg-gradient-to-r.from-yellow-500.to-yellow-600 {
  background: linear-gradient(90deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
}

.bg-gradient-to-r.from-red-500.to-red-600 {
  background: linear-gradient(90deg, #f87171, #ef4444) !important;
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3) !important;
}

.bg-gradient-to-r.from-green-500.to-green-600 {
  background: linear-gradient(90deg, #4ade80, #22c55e) !important;
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3) !important;
}

.bg-gradient-to-r.from-purple-500.to-purple-600 {
  background: linear-gradient(90deg, #c084fc, #a855f7) !important;
  box-shadow: 0 2px 8px rgba(192, 132, 252, 0.3) !important;
}

.bg-gradient-to-r.h-3.rounded-full {
  overflow: hidden;
}

/* Shimmer effect for progress bars */
.bg-gradient-to-r.h-3.rounded-full::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shimmer 2s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes progress-shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ===== ICON TEXT COLOR FIX ===== */

/* Fix white text in light mode for gradient backgrounds */
.bg-gradient-to-br.from-primary.to-primary-600 {
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b) !important;
}

.bg-gradient-to-br.from-primary.to-primary-600 .text-white,
.bg-gradient-to-br.from-primary.to-primary-600.text-white {
  color: #ffffff !important;
}

/* Ensure white text is always visible on primary gradients */
/* Additional gradient icon fixes */
.w-8.h-8.rounded-xl.bg-gradient-to-br,
.w-10.h-10.rounded-xl.bg-gradient-to-br,
.w-12.h-12.rounded-xl.bg-gradient-to-br {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.w-8.h-8.rounded-xl.bg-gradient-to-br *,
.w-10.h-10.rounded-xl.bg-gradient-to-br *,
.w-12.h-12.rounded-xl.bg-gradient-to-br * {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== TYPING ANIMATION STYLES ===== */

.typing-container {
  position: relative;
  display: inline-block;
}

.typing-cursor {
  display: inline-block;
  background-color: currentColor;
  margin-left: 0.1em;
  width: 3px;
  animation: blink 1s infinite;
}

.typing-cursor::after {
  content: "";
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

#typingText {
  color: #0ea5a5 !important;
  font-weight: bold !important;
  min-height: 1.2em;
  display: inline-block;
  background: linear-gradient(135deg, #0ea5a5, #0b8b8b) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.dark #typingText {
  color: #22d3ee !important;
  background: linear-gradient(135deg, #22d3ee, #06b6d4) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  #typingText {
    color: #0ea5a5 !important;
    -webkit-text-fill-color: unset !important;
  }

  .dark #typingText {
    color: #22d3ee !important;
    -webkit-text-fill-color: unset !important;
  }
}

/* ===== 45 YEARS OF GIVING SECTION ===== */

.years-of-giving-section {
  position: relative;
  overflow: hidden;
}

/* Big Number Animation */
@keyframes numberPulse {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
}

.years-number {
  animation: numberPulse 4s ease-in-out infinite;
}

/* Stat Cards Hover Effects */
.years-stat-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.years-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.years-stat-card:hover::before {
  left: 100%;
}

.years-stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Achievement Badges Animation */
.years-badge {
  transition: all 0.3s ease;
}

.years-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Particles */
@keyframes floatParticle {

  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.4;
  }

  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-10px) translateX(-5px) rotate(180deg);
    opacity: 0.6;
  }

  75% {
    transform: translateY(-25px) translateX(15px) rotate(270deg);
    opacity: 0.7;
  }
}

.years-particle {
  animation: floatParticle 8s ease-in-out infinite;
}

/* Timeline Circles */
.years-timeline-circle {
  transition: all 0.3s ease;
}

.years-timeline-circle:hover {
  transform: scale(1.15);
  z-index: 10;
}

/* Description Card Glass Effect */
.years-glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .years-glass-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Gradient Text for 45 */
.years-gradient-text {
  background: linear-gradient(135deg, #f59e0b, #ea580c, #f59e0b);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* CTA Button Glow */
.years-cta-btn {
  position: relative;
  overflow: hidden;
}

.years-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.years-cta-btn:hover::after {
  opacity: 1;
}

/* Responsive Adjustments for Years Section */
@media (max-width: 1024px) {
  .years-number {
    font-size: 8rem !important;
  }
}

@media (max-width: 640px) {
  .years-number {
    font-size: 6rem !important;
  }

  .years-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

/* <!-- Fix for gradient text visibility --> */
/* Ensure gradient text is always visible with proper fallbacks */
.gradient-text-fallback {
  color: rgb(15 23 42);
  /* slate-900 fallback for light mode */
  background: linear-gradient(to right, rgb(15 23 42), rgb(126 34 206), rgb(15 23 42));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .gradient-text-fallback {
  color: rgb(255 255 255);
  /* white fallback for dark mode */
  background: linear-gradient(to right, rgb(255 255 255), rgb(196 181 253), rgb(255 255 255));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enhanced support for older browsers */
@supports not (-webkit-background-clip: text) {
  .gradient-text-fallback {
    color: rgb(15 23 42) !important;
    -webkit-text-fill-color: initial !important;
  }

  .dark .gradient-text-fallback {
    color: rgb(255 255 255) !important;
    -webkit-text-fill-color: initial !important;
  }
}

/* Fix for low opacity background elements in light mode */
.bg-element-fix {
  /* Ensure minimum visibility for decorative elements */
  min-opacity: 0.3;
}

/* Enhance contrast for light mode backgrounds */
html:not(.dark) .bg-gradient-to-br[class*="from-primary/"] {
  filter: contrast(1.2) brightness(0.9);
}

html:not(.dark) .bg-gradient-to-tr[class*="from-primary/"] {
  filter: contrast(1.2) brightness(0.9);
}

/* ===== COMPREHENSIVE LIGHT MODE BORDER FIX ===== */
/* This fixes ALL black/dark borders in light mode */

/* Generic border fix for all elements with border-primary classes */
html:not(.dark) [class*="border-primary-200"],
html:not(.dark) [class*="border-primary-100"],
html:not(.dark) .border-primary-200,
html:not(.dark) .border-primary-100 {
  border-color: rgba(14, 165, 165, 0.15) !important;
}

/* Fix testimonial and card borders */
html:not(.dark) .testimonial-card,
html:not(.dark) [class*="testimonial"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix hero section borders */
html:not(.dark) .hero-section [class*="border"],
html:not(.dark) #hero [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix about section borders */
html:not(.dark) #about [class*="border"],
html:not(.dark) .about-section [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix contact section borders */
html:not(.dark) #contact [class*="border"],
html:not(.dark) .contact-section [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix button borders - primary soft instead of slate */
html:not(.dark) .btn-secondary {
  border-color: rgba(14, 165, 165, 0.2) !important;
}

html:not(.dark) .btn-secondary:hover {
  border-color: rgba(14, 165, 165, 0.4) !important;
}

/* Fix all slate borders in light mode */
html:not(.dark) [class*="border-slate-"],
html:not(.dark) .border-slate-200,
html:not(.dark) .border-slate-300,
html:not(.dark) .border-slate-400 {
  border-color: rgba(14, 165, 165, 0.1) !important;
}

/* Fix form input borders */
html:not(.dark) input[class*="border"],
html:not(.dark) select[class*="border"],
html:not(.dark) textarea[class*="border"] {
  border-color: rgba(14, 165, 165, 0.2) !important;
}

html:not(.dark) input[class*="border"]:focus,
html:not(.dark) select[class*="border"]:focus,
html:not(.dark) textarea[class*="border"]:focus {
  border-color: rgba(14, 165, 165, 0.5) !important;
}

/* Fix project section borders */
html:not(.dark) #projects [class*="border"],
html:not(.dark) .project-section [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix blog section borders */
html:not(.dark) #blog [class*="border"],
html:not(.dark) .blog-section [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix payment section borders */
html:not(.dark) #payment [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix enhanced/testimonials section */
html:not(.dark) .swiper-button-prev-custom,
html:not(.dark) .swiper-button-next-custom {
  border-color: rgba(14, 165, 165, 0.15) !important;
}

/* Fix social media link borders */
html:not(.dark) a[class*="border"][class*="rounded-full"] {
  border-color: rgba(14, 165, 165, 0.15) !important;
}

html:not(.dark) a[class*="border"][class*="rounded-full"]:hover {
  border-color: rgba(14, 165, 165, 0.35) !important;
}

/* Fix years of giving section */
html:not(.dark) .years-of-giving-section [class*="border"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Fix certification and experience card borders */
html:not(.dark) [class*="border-amber-200"],
html:not(.dark) [class*="border-blue-200"],
html:not(.dark) [class*="border-green-200"],
html:not(.dark) [class*="border-emerald-200"],
html:not(.dark) [class*="border-violet-200"],
html:not(.dark) [class*="border-purple-200"],
html:not(.dark) [class*="border-cyan-200"] {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Section top border dividers */
html:not(.dark) section[class*="border-t"] {
  border-top-color: rgba(14, 165, 165, 0.08) !important;
}

/* Table borders */
html:not(.dark) tr[class*="border-b"],
html:not(.dark) th[class*="border"],
html:not(.dark) td[class*="border"] {
  border-color: rgba(14, 165, 165, 0.1) !important;
}

/* Fix any remaining harsh borders */
html:not(.dark) .border,
html:not(.dark) .border-2 {
  border-color: rgba(14, 165, 165, 0.12) !important;
}

/* Override border-t, border-b, border-l, border-r */
html:not(.dark) .border-t,
html:not(.dark) .border-b {
  border-color: rgba(14, 165, 165, 0.08) !important;
}

html:not(.dark) .bg-gradient-to-tr[class*="from-primary/"] {
  filter: contrast(1.2) brightness(0.9);
}
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimize animations on mobile for better performance */
@media (max-width: 768px) {
  .hover-lift:hover,
  .service-card:hover,
  .project-card:hover,
  .blog-card:hover,
  .stat-card:hover {
    transform: translate3d(0, -5px, 0) !important;
  }
}

