/* ============================================
   FIDELITY - Modern IT Services Website
   ============================================ */

:root {
  /* Brand colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #38bdf8;
  --accent-color: #f97316;

  /* Light theme base */
  --dark-bg: #f5f7fb;          /* Page background (light) */
  --dark-secondary: #ffffff;   /* Section background (cards/blocks) */
  --dark-tertiary: #eef2ff;    /* Card backgrounds */

  /* Text colors on light background */
  --text-primary: #3174babf;
  --text-secondary: #64748b;

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%);
  --gradient-2: linear-gradient(135deg, #e0f2fe 0%, #f5f3ff 100%);
  --gradient-3: linear-gradient(135deg, #93c5fd 0%, #a5b4fc 100%);
  --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 40%, #f5f3ff 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Prevent horizontal scroll on mobile */
* {
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   NAVBAR (LIGHT THEME)
   ============================================ */

.navbar {
  background: rgb(127 50 190 / 12%) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 1030;
}

.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border-bottom-color: transparent;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
  transition: transform 0.3s ease;
}

.brand-text{
  color: #3174babf !important;
}
.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar Toggler - Always visible on mobile/tablet */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease;
}

/* Force show toggler on tablets and mobile - override Bootstrap completely */
@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-toggler,
  .navbar .navbar-toggler,
  .navbar-toggler.d-lg-none,
  #mainNav .navbar-toggler,
  button.navbar-toggler,
  nav .navbar-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    position: relative !important;
    z-index: 1050 !important;
  }
}

/* Hide toggler on desktop */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.navbar-toggler:active,
.navbar-toggler:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em;
  height: 1.5em;
  display: block !important;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure toggler icon is visible on mobile/tablet */
@media (max-width: 991.98px) {
  .navbar-toggler-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.1;
  filter: blur(60px);
  animation: float 20s infinite ease-in-out;
}

.hero-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-particles::after {
  bottom: 20%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #7770b9;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.hero-btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: #3174babf;
}

.hero-btn::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.5s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-hero);
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  color: #3174babf;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  color: #3174babf;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #3174babf;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-padding {
  padding: 100px 0;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
  background: var(--dark-secondary);
}

.about-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.stat-box {
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  background: #f9fafb;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.servicesSwiper {
  padding: 2rem 0 4rem;
  overflow: visible;
}

.service-card {
  background: var(--dark-tertiary);
  border-radius: 1.5rem;
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 550px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-hero);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #5f94cb;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
}

.service-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  background: rgba(99, 102, 241, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
}

.swiper-pagination-bullet {
  background: var(--primary-color) !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */

.tech-section {
  background: #ffffff;
}

.tech-box {
  background: var(--dark-tertiary);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.tech-box:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.05);
}

.tech-icon {
  font-size: 3rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #3174babf;
  background-clip: text;
  transition: transform 0.3s ease;
}

.tech-box:hover .tech-icon {
  transform: scale(1.2) rotate(5deg);
}

.tech-box h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-card {
  padding: 2rem;
  background: var(--dark-tertiary);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.counter {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #3174babf;
  background-clip: text;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  background: #ffffff;
}

.contact-info {
  padding: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--dark-tertiary);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--primary-color);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-item h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gradient-hero);
  border-color: transparent;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.contact-form .form-control,
.contact-form .form-select {
  background: var(--dark-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--dark-tertiary);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.contact-form .form-control:invalid:not(:placeholder-shown),
.contact-form .form-select:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.contact-form .form-control:valid:not(:placeholder-shown),
.contact-form .form-select:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

.contact-form.was-validated .form-control:invalid,
.contact-form.was-validated .form-select:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact-form .form-control::placeholder {
  color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #e8f4ff;
  color: #6b6e75;
  border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-hero);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Tablets and Small Desktops (992px - 1200px) */
@media (max-width: 1200px) {
  .service-card {
    height: auto;
    min-height: 480px;
  }
  
  .tech-box {
    padding: 1.75rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
  .section-padding {
    padding: 70px 0;
  }

  .service-card {
    height: auto;
    min-height: 450px;
  }

  #hero {
    min-height: 70vh;
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .navbar-brand {
    font-size: 1.35rem;
  }
  
  .navbar-expand-lg .navbar-toggler,
  .navbar .navbar-toggler,
  #mainNav .navbar-toggler,
  button.navbar-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1050 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    position: relative !important;
  }
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
  
  .navbar-nav {
    width: 100%;
  }
  
  .nav-link {
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    display: block;
    width: 100%;
  }
  
  .about-image-wrapper {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    margin-bottom: 3rem;
  }
  
  .stat-box {
    margin-bottom: 1rem;
  }
  
  .footer .col-lg-2,
  .footer .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    width: 45px;
    height: 45px;
  }
}

/* Mobile Landscape and Small Tablets (576px - 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  #hero {
    min-height: 60vh;
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .service-card {
    min-height: 420px;
  }

  .service-content {
    padding: 1.5rem;
  }

  .tech-box {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .tech-icon {
    font-size: 2.5rem;
  }

  .stat-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .counter {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 2rem;
  }

  .hero-btn.me-3 {
    margin-right: 0 !important;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-tag {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
    z-index: 1030;
  }
  
  .navbar-expand-lg .navbar-toggler,
  .navbar .navbar-toggler,
  #mainNav .navbar-toggler,
  button.navbar-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1050 !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
  
  .navbar-nav {
    width: 100%;
  }
  
  .nav-link {
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    padding-left: 1.5rem !important;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .contact-item {
    padding: 1.25rem;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    font-size: 0.95rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.1rem;
  }
  
  .scroll-down-arrow {
    bottom: 20px;
    font-size: 1.25rem;
  }
  
  .servicesSwiper {
    padding: 1.5rem 0 3rem;
  }
  
  .scroll-indicator {
    margin-top: 2rem;
  }
}

/* Mobile Portrait (up to 576px) */
@media (max-width: 576px) {
  .section-padding {
    padding: 50px 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #hero {
    min-height: 55vh;
    padding-top: 70px;
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .scroll-indicator {
    margin-top: 1.5rem;
  }

  .service-card {
    min-height: 380px;
    border-radius: 1rem;
  }

  .service-image {
    height: 160px;
  }
  
  .service-content {
    padding: 1.25rem;
  }
  
  .service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .service-features li {
    font-size: 0.8rem;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    top: 1rem;
    right: 1rem;
    border-radius: 12px;
  }
  
  .tech-box {
    padding: 1.25rem;
  }
  
  .tech-icon {
    font-size: 2rem;
  }
  
  .tech-box h5 {
    font-size: 0.9rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 38px;
    height: 38px;
    display: none; /* Hide on very small screens, use pagination instead */
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }
  
  .swiper-pagination {
    bottom: 10px !important;
  }
  
  .hero-title {
    font-size: 1.75rem;
    padding: 0 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  .hero-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    padding: 0 0.5rem;
  }
  
  .section-tag {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
  }
  
  .about-image-wrapper {
    margin-bottom: 1.5rem;
  }
  
  .stat-box {
    padding: 1.25rem;
  }
  
  .stat-box h3 {
    font-size: 1.75rem;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .contact-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item i {
    margin-bottom: 0.5rem;
  }
  
  .contact-form .form-control,
  .contact-form .form-select {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }
  
  .contact-form textarea {
    min-height: 120px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-expand-lg .navbar-toggler,
  .navbar .navbar-toggler,
  #mainNav .navbar-toggler,
  button.navbar-toggler {
    padding: 0.4rem 0.6rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    position: relative !important;
    z-index: 1050 !important;
  }
  
  .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
    display: block !important;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 1rem;
  }
  
  .scroll-indicator {
    font-size: 0.75rem;
  }
  
  .scroll-down-arrow {
    bottom: 15px;
    font-size: 1.1rem;
  }
  
  /* Improve touch targets */
  .nav-link,
  .btn,
  .service-card {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
  }
  
  /* Better spacing for mobile */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
  }
  
  .tech-box:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Extra Small Devices (up to 400px) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-card {
    min-height: 360px;
  }
  
  .service-image {
    height: 140px;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .tech-box {
    padding: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .counter {
    font-size: 1.75rem;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .service-card {
    min-height: 350px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .scroll-down-arrow {
    display: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-image,
  .about-image-wrapper img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .scroll-down-arrow,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ============================================
   CRITICAL: Force Navbar Toggler Visibility
   ============================================ */

/* Show toggler on mobile and tablet - highest priority */
@media (max-width: 991.98px) {
  .navbar-toggler,
  .navbar-expand-lg .navbar-toggler,
  .navbar .navbar-toggler,
  #mainNav .navbar-toggler,
  button.navbar-toggler,
  nav .navbar-toggler,
  .navbar-toggler.d-lg-none,
  button[data-bs-toggle="collapse"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
  }
  
  .navbar-toggler-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 1.5em !important;
    height: 1.5em !important;
  }
}

/* Hide toggler on desktop */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
.text-muted{
  color: #b7bdc6 !important
}
