/* --- NEW DARK THEME COLOR PALETTE --- */
:root {
    --bg-dark: #0d1117; /* Very dark blue-gray, like GitHub's dark mode */
    --bg-secondary: #161b22; /* Slightly lighter for cards and surfaces */
    --border-color: #30363d;
    --accent-cyan: #22d3ee; /* Vibrant cyan from your logo */
    --accent-cyan-hover: #67e8f9;
    --text-light: #e6edf3; /* Off-white for body text */
    --text-muted: #8b949e; /* Lighter gray for muted text */
    --whatsapp: #25D366;
}

/* --- PRELOADER STYLES --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader_cube {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

.loader_cube--glowing {
    z-index: 2;
    background-color: rgba(230, 237, 243, 0.1);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.loader_cube--color {
    z-index: 1;
    filter: blur(2px);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-hover));
    animation: loadtwo 2.5s ease-in-out infinite;
}

@keyframes loadtwo {
    50% {
        transform: rotate(-80deg);
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    scroll-behavior: smooth;
}

/* --- GENERAL & UTILITY CLASSES --- */
.bg-dark { background-color: var(--bg-dark) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.text-accent { color: var(--accent-cyan) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.section-padding { padding: 80px 0; }

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.section-title span {
    color: var(--accent-cyan);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* --- NAVIGATION --- */
.navbar {
    background-color: rgba(22, 27, 34, 0.85); /* Semi-transparent secondary background */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#navbar-logo {
    height: 60px;
}
.navbar-toggler {
    border-color: var(--border-color);
}
.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%28230, 237, 243, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-link {
    position: relative;
    padding-bottom: 4px;
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--accent-cyan) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero-gradient {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%),
                url('../img-web/colleagues-working-project-discussing-details.jpg') no-repeat center center;
    background-size: cover;
}

/* --- HERO VIDEO SECTION --- */
.hero-video-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
}

/* Video wrapper */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Background video */
.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(1.2); /* Decreased brightness from 0.4 to 0.3 for even better text visibility */
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
}

/* Show fallback until video ready */
.hero-video-wrapper img#heroFallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Decreased brightness from 0.5 to 0.4 for even better text visibility */
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.6s ease;
}

/* Hero content sits above video */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

/* Fallback hidden when video plays */
.video-loaded + #heroFallback {
  opacity: 0;
}

/* Make hero text glow slightly on video */
.hero-content h1 span {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

@media (max-width: 768px) {
  .hero-video-section {
    height: 80vh;
  }
}

.btn-solid-hero {
    background-color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    color: var(--bg-dark);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-solid-hero:hover {
    background-color: var(--accent-cyan-hover);
    border-color: var(--accent-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.1);
}
.btn-outline-custom {
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

/* --- STATS SECTION --- */
.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

/* --- SERVICES SECTION --- */
.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-cyan);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card .fs-2 {
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}
.service-card:hover .fs-2 {
    transform: scale(1.1);
}
.service-card .bi-check-circle-fill {
    color: var(--accent-cyan);
}
.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(34, 211, 238, 0.1);
    margin-bottom: 20px;
}

/* --- MODERN SERVICE SECTION UPGRADE --- */

.modern-service {
  position: relative;
  overflow: hidden;
}

/* Animated background glow behind section */
.modern-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.08), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.05), transparent 70%);
  z-index: 0;
}

/* Enhance cards with gradient borders & soft glow */
.service-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,0.8), rgba(34,211,238,0.2), transparent 90%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* Icon shimmer */
.service-icon-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(255, 255, 255, 0.05));
  animation: shimmer 4s infinite linear;
}

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

/* 3D Tilt effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(34, 211, 238, 0.15);
}

/* Glow under hover */
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
}

/* Scroll Reveal Animation */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Light gradient lines between rows */
.modern-service .row.g-4::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0));
  transform: translateX(-50%);
  pointer-events: none;
}

/* --- GLASS EFFECT FOR SERVICE CARDS --- */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- ABOUT SECTION --- */
#about {
    background-color: var(--bg-secondary);
}
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(34, 211, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 280px;
}
.portfolio-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.portfolio-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(13, 17, 23, 0.95);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease; padding: 20px;
    color: var(--text-light); text-align: center;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.btn-outline-light {
     border-color: var(--accent-cyan); color: var(--accent-cyan);
}
.btn-outline-light:hover {
    background-color: var(--accent-cyan); color: var(--bg-dark);
}

/* --- MODERN PORTFOLIO --- */
.modern-portfolio {
  position: relative;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  justify-content: center;
}

/* Portfolio card */
.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  aspect-ratio: 4/3;
  height: 300px;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(34,211,238,0.15);
}

/* Portfolio image */
.portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.8) saturate(1.1);
  aspect-ratio: 4/3;
}
.portfolio-card:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0) 30%, rgba(13,17,23,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay h3 {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 8px;
}
.portfolio-overlay p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.portfolio-overlay .btn {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.portfolio-overlay .btn:hover {
  background-color: var(--accent-cyan);
  color: var(--bg-dark);
}

/* Reveal Animation on Scroll */
.portfolio-card {
  opacity: 0;
  transform: translateY(40px);
}
.portfolio-card.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Subtle moving gradient background */
.modern-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(34,211,238,0.06), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(34,211,238,0.05), transparent 70%);
  z-index: 0;
  animation: bgFloat 12s ease-in-out infinite alternate;
}
@keyframes bgFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 10px) scale(1.05); }
  100% { transform: translate(10px, -10px) scale(1); }
}

/* Responsive Breakpoints for Portfolio Grid */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 500px;
  }

  .portfolio-card {
    height: 250px;
    max-width: 100%;
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .portfolio-grid {
    padding: 0 0.5rem;
  }
  
  .portfolio-card {
    height: 220px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 10px;
    gap: 20px;
  }

  .portfolio-card {
    height: 250px;
  }

  .portfolio-overlay {
    opacity: 1;
    padding: 20px;
  }
  
  .portfolio-overlay h3 {
    font-size: 1.2rem;
  }
  
  .portfolio-overlay p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(13,17,23,0.3) 20%, rgba(13,17,23,0.85) 100%);
  }
  .portfolio-overlay p {
    font-size: 0.85rem;
  }
}

/* --- TESTIMONIALS SECTION --- */
/* --- TESTIMONIAL LOOP SECTION --- */
.testimonial-loop-section {
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 30px 0;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonialScroll 60s linear infinite;
}

/* Animation for smooth infinite scroll */
@keyframes testimonialScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Testimonial Card */
.testimonial-card-loop {
  min-width: 340px;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
  margin: 0 20px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.testimonial-card-loop:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.2);
}

/* Testimonial Text */
.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-text::before {
  content: "“";
  font-size: 40px;
  color: rgba(34, 211, 238, 0.3);
  position: absolute;
  top: -10px;
  left: -5px;
}

/* Author Section */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-author .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.testimonial-author h5 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-author small {
  color: var(--text-muted);
}

/* Hover pause effect */
.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

/* Fade Edges */
.testimonial-slider::before,
.testimonial-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}
.testimonial-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, 1), rgba(13, 17, 23, 0));
}
.testimonial-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(13, 17, 23, 1), rgba(13, 17, 23, 0));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .testimonial-card-loop {
    min-width: 280px;
    margin: 0 10px;
    padding: 20px;
  }
  .testimonial-slider::before,
  .testimonial-slider::after {
    width: 60px;
  }
  .testimonial-track {
    animation: testimonialScroll 70s linear infinite;
  }
}

/* --- CTA & BUTTONS --- */
.cta-section {
    background-color: var(--bg-secondary);
}
.btn-primary-custom {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-dark);
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-primary-custom:hover {
    background-color: var(--accent-cyan-hover);
    border-color: var(--accent-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.1);
}

/* --- CONTACT & FORM --- */
#contact {
    background-color: var(--bg-dark);
}
#contact form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.input-custom {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s;
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.input-custom:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.25rem rgba(34, 211, 238, 0.25);
    outline: none;
    background-color: var(--bg-dark);
    color: var(--text-light);
}
.form-label {
    color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}
footer .h3 {
    color: var(--text-light);
}
footer .h3 span {
    color: var(--accent-cyan);
}
footer .text-secondary {
    color: var(--text-muted) !important;
}
footer a.text-secondary:hover {
    color: var(--accent-cyan) !important;
}
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background-color: var(--bg-dark);
    color: var(--accent-cyan);
    font-size: 18px;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.social-icon:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* --- WHATSAPP BUTTON --- */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: var(--whatsapp);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
    transition: all 0.3s;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- SITEMAP PAGE STYLES --- */
.sitemap-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 8px;
    background-color: transparent;
}
.sitemap-link:hover {
    color: var(--accent-cyan);
    background-color: var(--bg-secondary);
}
.sitemap-link i {
    margin-right: 12px;
    color: var(--accent-cyan);
}

/* --- PRIVACY POLICY & TERMS OF SERVICE PAGE STYLES --- */
/* This rule makes sure paragraphs with the .text-muted class are bright */
p.text-muted {
    color: var(--text-muted) !important;
}

/* Add a subtle animation to make the button less intrusive */
@keyframes subtlePulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.7; }
}

.chatbot-toggle-btn {
    animation: subtlePulse 3s infinite;
}

/* --- CLIENTS SLIDER --- */
.client-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.client-track {
  display: flex;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.client-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 120px;
  margin: 0 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.client-logo-wrapper:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-cyan);
}

.client-logo {
  max-height: 70px;
  filter: grayscale(100%) brightness(1.3);
  transition: all 0.3s ease;
}

.client-logo-wrapper:hover .client-logo {
  filter: grayscale(0%) brightness(1);
}

/* Smooth scrolling animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Subtle fading edges */
.client-slider::before,
.client-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
}

.client-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(13, 17, 23, 1), rgba(13, 17, 23, 0));
}

.client-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(13, 17, 23, 1), rgba(13, 17, 23, 0));
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .client-logo-wrapper {
    min-width: 120px;
    height: 100px;
    padding: 15px;
    margin: 0 10px;
  }

  .client-logo {
    max-height: 55px;
  }

  .client-slider::before,
  .client-slider::after {
    width: 60px;
  }
}

/* --- MODERN FOOTER --- */
.footer-modern {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer-overlay-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.05), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.03), transparent 50%);
  opacity: 0.3;
  z-index: 0;
  animation: footerGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes footerGlow {
  0% { opacity: 0.3; }
  50% { opacity: 0.5; }
  100% { opacity: 0.3; }
}

.footer-modern .container {
  position: relative;
  z-index: 1;
}

.footer-brand {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--accent-cyan);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background-color: var(--accent-cyan);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-cyan);
}

.footer-list,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li,
.footer-contact li {
  margin-bottom: 0.8rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-list a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.footer-contact li {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent-cyan);
}

.footer-divider {
  border-color: var(--border-color);
  opacity: 0.5;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent-cyan);
}

/* --- GLOBAL PRESENCE SUBSECTION --- */
.global-presence {
  background: transparent;
  border-top: 1px solid var(--border-color);
}

.global-presence p {
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.global-country-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.global-country-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 14px;
  transition: all 0.3s ease;
}

.global-country-list li:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(34,211,238,0.05);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-brand {
    font-size: 1.3rem;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* --- UPDATED CLIENTS SLIDER STYLES --- */
.client-sliders-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.client-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.client-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.client-slider.reverse .client-track {
  animation: scroll-reverse 35s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-reverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Pause animations on hover */
.client-slider:hover .client-track {
  animation-play-state: paused;
}

/* Add gradient overlays for smooth fade effect */
.client-slider::before,
.client-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.client-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.client-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* Responsive adjustments for client slider */
@media (max-width: 768px) {
  .client-sliders-container {
    gap: 1rem;
  }

  .client-logo-wrapper {
    min-width: 150px;
    height: 80px;
    padding: 15px;
    margin: 0 10px;
  }

  .client-logo {
    max-width: 120px;
  }

  .client-slider::before,
  .client-slider::after {
    width: 100px;
  }
}
