html {
  scroll-behavior: smooth;
}
html, body { margin: 0 !important; padding: 0 !important; }

:root {
  --primary: #8B0000;
  --dark-red: #8B0000;
  --dark: #000;
  --light: #f8f9fa;
  --gradient-start: #8B0000;
  --gradient-end: #000000;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light);
}

/* Global Transitions */
* {
  transition: all 0.3s ease;
}

button, a, .card, .btn {
  transition: all 0.3s ease;
}

/* Hero Section with Dark Overlay & Modern Animations */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Background image with zoom animation */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
      background-image: 
        url('/assets/images/heroimage.jpg'),
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.92));
      background-size: 120% 120%, cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: heroZoom 20s ease-in-out infinite;
  z-index: 0;
  will-change: background-size, transform;
}

/* Smooth zoom in/out animation */
    @keyframes heroZoom {
      0%, 100% {
        background-size: 100% 100%, cover;
        transform: scale(1);
      }
      50% {
        background-size: 110% 110%, cover;
        transform: scale(1.05);
      }
    }

/* Modern smooth flow animation for overlay layers */
@keyframes modernFlow {
  0% { 
    background-position: 
      0% 0%, 0% 0%, 100% 100%,
      0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    opacity: 1;
  }
  25% { 
    background-position: 
      50% 25%, 15% 10%, 85% 90%,
      20% 30%, 60% 45%, 80% 60%, 40% 75%, 90% 20%, 15% 65%;
    opacity: 0.98;
  }
  50% { 
    background-position: 
      100% 50%, 30% 20%, 70% 80%,
      40% 60%, 80% 90%, 60% 70%, 20% 50%, 70% 30%, 30% 80%;
    opacity: 1;
  }
  75% { 
    background-position: 
      50% 75%, 45% 35%, 55% 65%,
      60% 40%, 30% 55%, 50% 80%, 70% 35%, 40% 60%, 80% 45%;
    opacity: 0.99;
  }
  100% { 
    background-position: 
      0% 100%, 0% 0%, 100% 100%,
      0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    opacity: 1;
  }
}

/* Dark overlay + subtle particles with modern motion */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Dark overlay for text visibility */
    linear-gradient(135deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.88) 50%, rgba(10, 0, 0, 0.85) 100%),
    radial-gradient(circle at 30% 40%, rgba(139, 0, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(139, 0, 0, 0.06) 0%, transparent 60%),
    /* Subtle accent particles */
    radial-gradient(3px 3px at 20% 30%, rgba(139, 0, 0, 0.25), transparent),
    radial-gradient(2px 2px at 60% 45%, rgba(139, 0, 0, 0.2), transparent),
    radial-gradient(4px 4px at 80% 60%, rgba(139, 0, 0, 0.3), transparent),
    radial-gradient(2px 2px at 40% 75%, rgba(139, 0, 0, 0.2), transparent),
    radial-gradient(3px 3px at 90% 20%, rgba(139, 0, 0, 0.25), transparent),
    radial-gradient(2px 2px at 15% 65%, rgba(139, 0, 0, 0.2), transparent);
  background-size: cover, 250% 250%, 250% 250%, 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%, 200% 200%;
  animation: modernFlow 20s cubic-bezier(0.4, 0, 0.2, 1) infinite,
             modernParticleFloat 35s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite,
             modernPulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  will-change: background-position, transform, opacity;
}

/* Modern particle animation - smooth and elegant */
@keyframes modernParticleFloat {
  0% { 
    background-position: 0% 0%;
    transform: translate(0, 0) scale(1);
  }
  20% { 
    background-position: 15% -10%;
    transform: translate(8px, -12px) scale(1.02);
  }
  40% { 
    background-position: 30% 15%;
    transform: translate(-5px, 8px) scale(0.98);
  }
  60% { 
    background-position: 45% -5%;
    transform: translate(12px, -6px) scale(1.01);
  }
  80% { 
    background-position: 60% 20%;
    transform: translate(-8px, 10px) scale(0.99);
  }
  100% { 
    background-position: 0% 0%;
    transform: translate(0, 0) scale(1);
  }
}

/* Modern subtle pulse */
@keyframes modernPulse {
  0%, 100% { 
    opacity: 0.5;
    filter: blur(0.5px);
  }
  50% { 
    opacity: 0.65;
    filter: blur(1px);
  }
}

/* Parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
  .hero-section {
    transition: transform 0.1s ease-out;
  }
}


.hero-content { 
  z-index: 2; 
  color: #fff;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Hero Text Animations - Smooth fade up */
.hero-title {
  animation: fadeUp 1s ease forwards;
    opacity: 0;
  transform: translateY(20px);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 
    0 0 10px rgba(0,0,0,0.8),
    0 2px 20px rgba(0,0,0,0.7),
    0 4px 30px rgba(0,0,0,0.6),
    0 6px 40px rgba(0,0,0,0.5),
    2px 2px 4px rgba(0,0,0,0.9),
    -2px -2px 4px rgba(0,0,0,0.9);
}

.hero-subline {
  animation: fadeUp 1s 0.3s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.98);
  text-shadow: 
    0 0 8px rgba(0,0,0,0.8),
    0 2px 15px rgba(0,0,0,0.7),
    0 4px 25px rgba(0,0,0,0.6),
    1px 1px 3px rgba(0,0,0,0.9),
    -1px -1px 3px rgba(0,0,0,0.9);
}

.hero-buttons {
  animation: fadeUp 1s 0.6s ease forwards;
    opacity: 0;
  transform: translateY(20px);
  }

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

/* Enhanced Button Hover Effects - Dark Theme */
.hero-section .btn {
  border-radius: 50px;
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

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

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

.hero-section .btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(139, 0, 0, 0.4);
}

.hero-section .btn i {
  transition: transform 0.3s ease;
}

.hero-section .btn:hover i {
  transform: rotate(5deg) scale(1.1);
}

/* Ensure buttons maintain white/outline styling */
.hero-section .btn-light {
  background: rgba(255,255,255,0.95);
  color: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-section .btn-light:hover {
  background: #fff;
  color: #0d0d0d;
  box-shadow: 0 8px 30px rgba(255,255,255,0.3), 0 0 20px rgba(255,255,255,0.2);
}

.hero-section .btn-outline-light {
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.hero-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.3);
}

/* Mobile & Small Screen Hero Adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 55vh !important;
    padding: 60px 20px 50px !important;
    max-height: 90vh;
    overflow: hidden;
  }

  /* Optimize background for tablet */
  .hero-section::before {
    background-attachment: scroll !important;
    background-size: 100% 100%, 100% 100%, cover !important;
    animation-duration: 18s !important;
  }

  .hero-title {
    font-size: 1.9rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
  }

  .hero-subline {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 10px;
  }

  .hero-buttons {
    gap: 12px !important;
    flex-direction: column;
  }

  .hero-section .btn {
    padding: 10px 28px !important;
    font-size: 0.95rem !important;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-section .btn i {
    font-size: 1em;
    margin-right: 6px;
  }

  .hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 575px) {
  .hero-section {
    min-height: 50vh !important;
    padding: 50px 15px 40px !important;
  }

  /* Optimize background for mobile */
  .hero-section::before {
    background-attachment: scroll !important;
    animation-duration: 15s !important;
  }

  .hero-section::after {
    animation-duration: 15s, 25s, 6s !important;
  }

  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.875rem !important;
    padding: 0 5px;
  }

  .hero-subline {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 5px;
  }

  .hero-buttons {
    gap: 10px !important;
  }

  .hero-section .btn {
    padding: 9px 24px !important;
    font-size: 0.9rem !important;
    max-width: 260px;
  }

  .hero-content {
    padding: 0 10px;
  }
}

@media (max-width: 375px) {
  .hero-section {
    min-height: 45vh !important;
    padding: 45px 12px 35px !important;
  }

  .hero-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-subline {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-section .btn {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    max-width: 240px;
  }
}

/* Modern Premium Product Card Styling */
.product-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover { 
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15), 0 4px 15px rgba(139, 0, 0, 0.1);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f9f9f9;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 0;
}

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

/* Product card body styling */
.product-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.product-card .price {
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.product-card .btn {
  margin-top: auto;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
  border-width: 1.5px;
}

/* View Details Button - Dark Red with White Text */
.product-card .btn-outline-dark {
  background: var(--dark-red);
  border-color: var(--dark-red);
  color: #fff;
  border-width: 2px;
}

.product-card .btn-outline-dark:hover {
  background: #6b0000;
  border-color: #6b0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 0, 0, 0.4);
}

/* Swiper Container Styling */
.featuredSwiper {
  padding: 10px 0 50px 0;
  margin: 0 -10px;
  position: relative;
}

.featuredSwiper .swiper-wrapper {
  position: relative;
}

.featuredSwiper .swiper-slide {
  height: auto;
  padding: 0 10px;
}

/* Small Inline Navigation Buttons - Positioned within slider */
.swiper-button-next-products,
.swiper-button-prev-products {
  background: var(--dark-red);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 3px 10px rgba(139, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: 0;
  border: none;
  z-index: 10;
  position: absolute;
}

.swiper-button-prev-products {
  left: 5px;
}

.swiper-button-next-products {
  right: 5px;
}

.swiper-button-next-products:hover,
.swiper-button-prev-products:hover {
  background: #6b0000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

/* Small Arrow Icons */
.swiper-button-prev-products::after {
  content: '‹';
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.swiper-button-next-products::after {
  content: '›';
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

/* Modern Pagination Dots */
.swiper-pagination {
  position: relative !important;
  margin-top: 30px !important;
  text-align: center;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0,0,0,0.2);
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.swiper-pagination-bullet-active {
  background: var(--dark-red);
  width: 24px;
  border-radius: 4px;
  transform: scale(1.2);
}

/* Section Scroll Reveal Animation */
.products-section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide initially if JS is enabled for animation */
.products-section:not(.no-js) {
  opacity: 0;
  transform: translateY(40px);
}

.products-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Enhancements */
.btn {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.services-section { padding: 80px 20px; background: #fff; }
.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Section Title Animation */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dark-red), var(--dark));
  animation: underlineExpand 1s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
  to {
    width: 80%;
  }
}

/* Reveal Animations */
.reveal-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Fallback: Show content immediately, animate only if JS enhances */
.reveal-section:not(.no-js) {
  opacity: 0;
  transform: translateY(30px);
}

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

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

/* Enhanced Project Cards */
/* Modern Premium Project Cards */
.project-card-modern {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-modern:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Project Cover Image Area (16:9) */
.project-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f1f1f5;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Gradient Overlay for Text Legibility */
.project-cover-overlay {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}

/* Project Logo Overlay */
.project-logo {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Skeleton Placeholder */
.skeleton-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Project Content Block */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.project-description {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* Tech Badges */
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(139, 0, 0, 0.1);
  color: var(--dark-red);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

.project-badge:hover {
  background: var(--dark-red);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

/* Project Action Buttons */
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

/* ============ Unified CTA: matches Latest Software Projects on /index.php ============ */
:root {
  --dc-cta-blue: #1661F0;
  --dc-cta-blue-dark: #0f4ac1;
  --dc-cta-focus: rgba(22, 97, 240, 0.35);
  --dc-cta-radius: 12px;
  --dc-cta-shadow: 0 8px 18px rgba(0,0,0,.08);
  --dc-cta-shadow-hover: 0 10px 22px rgba(22,97,240,.28);
}

/* High specificity so it beats Bootstrap .btn/.btn-primary */
a.dc-cta, button.dc-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  min-height: 48px !important;
  padding: 12px 22px !important;
  border-radius: var(--dc-cta-radius) !important;

  background: var(--dc-cta-blue) !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: none !important;

  /* kill any legacy borders/gradients */
  box-shadow: var(--dc-cta-shadow) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease !important;
  will-change: transform, box-shadow, background;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Hover / Active */
a.dc-cta:hover, button.dc-cta:hover {
  background: var(--dc-cta-blue-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--dc-cta-shadow-hover) !important;
  color: #fff !important;
}

a.dc-cta:active, button.dc-cta:active {
  transform: translateY(0) !important;
  box-shadow: var(--dc-cta-shadow) !important;
}

/* Focus ring (keyboard) */
a.dc-cta:focus-visible, button.dc-cta:focus-visible {
  outline: 0 !important;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--dc-cta-focus) !important;
}

/* Label + icon */
.dc-cta__label {
  white-space: nowrap;
}

.dc-cta__icon {
  transition: transform 160ms ease, opacity 160ms ease;
  opacity: 0.95;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

a.dc-cta:hover .dc-cta__icon,
button.dc-cta:hover .dc-cta__icon {
  transform: translateX(4px);
  opacity: 1;
}

/* Overlay version for image hover */
.dc-cta.overlay-btn {
  background: rgba(22, 97, 240, 0.95) !important;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 22px rgba(22, 97, 240, 0.5) !important;
}

.dc-cta.overlay-btn:hover {
  background: rgba(15, 74, 193, 0.95) !important;
}

/* Mobile Quick Details Button Improvements */
@media (max-width: 767px) {
  a.dc-cta, button.dc-cta {
    min-height: 48px !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-tap-highlight-color: rgba(22, 97, 240, 0.2);
    touch-action: manipulation;
    cursor: pointer;
  }

  .dc-cta__label {
    font-size: 0.95rem !important;
  }

  .dc-cta__icon {
    width: 16px !important;
    height: 16px !important;
  }

  /* Action containers - stack buttons on mobile */
  .project-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .project-actions .dc-cta {
    width: 100% !important;
  }

  /* Ensure buttons are visible and accessible */
  .js-open-project {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  a.dc-cta, button.dc-cta {
    min-height: 50px !important;
    padding: 14px 18px !important;
    font-size: 0.9rem !important;
  }

  .dc-cta__label {
    font-size: 0.9rem !important;
  }
}

/* If Bootstrap .btn/.btn-primary still leaks, neutralize only for this component */
.dc-cta.btn,
.dc-cta.btn-primary {
  background: var(--dc-cta-blue) !important;
  border: none !important;
  box-shadow: var(--dc-cta-shadow) !important;
  color: #fff !important;
}

/* Overlay version for image hover */
.btn-case-study-overlay {
  background: rgba(200,20,31,.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(200,20,31,.5);
  color: #fff;
}

.btn-case-study-overlay:hover {
  background: rgba(163,18,26,.95);
}

/* Projects Swiper Styling - Matching Products */
.projectsSwiper {
  padding: 10px 45px 20px 45px;
  margin: 0;
  position: relative;
  overflow: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

.projectsSwiper .swiper-wrapper {
  display: flex;
}

.projectsSwiper .swiper-slide {
  height: auto;
  padding: 0 12px;
  flex-shrink: 0;
  width: auto;
}

.projectsSwiper .swiper-slide:hover {
  z-index: 5;
}

/* Ensure container doesn't overflow */
#latest-projects .container {
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

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

/* Projects Section Scroll Reveal */
.projects-slider-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Hide initially if JS is enabled for animation */
.projects-slider-section:not(.no-js) {
  opacity: 0;
  transform: translateY(30px);
}

.projects-slider-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Projects Navigation Buttons - Inline with slides */
.swiper-button-next-projects,
.swiper-button-prev-projects {
  background: var(--dark-red);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: 0;
  border: none;
  z-index: 10;
  opacity: 0.9;
  position: absolute;
}

.swiper-button-prev-projects {
  left: 0;
}

.swiper-button-next-projects {
  right: 0;
}

.swiper-button-next-projects:hover,
.swiper-button-prev-projects:hover {
  background: #6b0000;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
  opacity: 1;
}

.swiper-button-prev-projects::after {
  content: '‹';
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.swiper-button-next-projects::after {
  content: '›';
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

/* Pagination removed - not needed */

/* Case Study Modal - Moved to /assets/css/project-modal.css */
.project-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-kpi-item {
  flex: 1;
  min-width: 120px;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  text-align: center;
}

.project-kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-red);
  display: block;
}

.project-kpi-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Responsive Project Cards */
@media (max-width: 1199px) {
  .project-title {
    font-size: 1.05rem;
    min-height: 2.9em;
  }
  .project-description {
  font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 767px) {
  .projectsSwiper {
    padding: 10px 0 40px 0;
    margin: 0 -5px;
  }
  .projectsSwiper .swiper-slide {
    padding: 0 5px;
  }
  .project-content {
    padding: 1.25rem;
  }
  .project-actions {
    flex-direction: column;
  }
  .swiper-button-next-projects,
  .swiper-button-prev-projects {
    display: none;
  }
}

/* Stat Card Hover */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

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

.stat-icon {
  transition: all 0.3s ease;
}

/* Software Overview Section - Mobile Responsive */
@media (max-width: 767.98px) {
  /* Reduce section padding */
  section.py-5.bg-white.reveal-section {
    padding: 40px 15px 30px !important;
  }

  /* Smaller section title on mobile */
  section.py-5.bg-white.reveal-section h2 {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
  }

  section.py-5.bg-white.reveal-section .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Smaller stat cards on mobile */
  .stat-card {
    padding: 1rem 0.75rem !important;
    min-height: auto;
  }

  .stat-card .fa-3x {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
  }

  .stat-card h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }

  .stat-card p {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  /* Reduce row gap on mobile */
  .row.g-3 {
    margin-left: -8px;
    margin-right: -8px;
  }

  .row.g-3 > * {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Smaller button on mobile */
  section.py-5.bg-white.reveal-section .btn-lg {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 575.98px) {
  .stat-card {
    padding: 0.875rem 0.5rem !important;
  }

  .stat-card .fa-3x {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
  }

  .stat-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.375rem !important;
  }

  .stat-card p {
    font-size: 0.75rem !important;
  }
}
.service-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.testimonialSwiper .swiper-slide { height: auto; }
/* Responsive Product Card Adjustments */
@media (max-width: 1199px) {
  .product-card .price {
    font-size: 1.1rem;
  }
  .product-card h6 {
    font-size: 0.95rem;
    min-height: 2.6em;
  }
}

@media (max-width: 767px) {
  .featuredSwiper {
    padding: 10px 0 40px 0;
    margin: 0 -5px;
  }
  .featuredSwiper .swiper-slide {
    padding: 0 5px;
  }
  .product-card .card-body {
    padding: 1rem;
  }
  .product-card h6 {
    font-size: 0.9rem;
    min-height: 2.4em;
  }
  .product-card .price {
    font-size: 1rem;
  }
  .swiper-button-next-products,
  .swiper-button-prev-products {
    width: 32px;
    height: 32px;
  }
  
  .swiper-button-prev-products::after,
  .swiper-button-next-products::after {
    font-size: 20px;
  }

  .swiper-button-prev-products {
    left: 2px;
  }

  .swiper-button-next-products {
    right: 2px;
  }
}

@media (max-width: 479px) {
  .featuredSwiper {
    margin: 0;
  }
  .featuredSwiper .swiper-slide {
    padding: 0;
  }
  .products-section {
    padding: 2rem 0;
  }
}
img {
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}
