/* ===================================
   NEXYOS SOLUTIONS THEME
   Modern Cyan & Navy Design
   =================================== */

/* Root Variables - Updated Color Theme */
:root {
  /* Updated to lighter, brand-focused theme */
  /* Brand Colors - Cyan & Navy Theme */
  --primary-cyan: #00bcd4;
  --primary-cyan-dark: #0097a7;
  --primary-cyan-light: #26c6da;
  --navy: #1b3a57;
  --navy-light: #2c5f87;
  --navy-dark: #0d1b2a;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --dark-gray: #343a40;

  /* Accent */
  --accent-teal: #00acc1;
  --accent-aqua: #00e5ff;

  /* Typography */
  --font-primary: "Outfit", sans-serif;
  --font-secondary: "Space Grotesk", monospace;

  /* Spacing */
  --section-padding: 100px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   GLOBAL STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  /* Lighter background based on brand theme */
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #e8f4f7 100%);
  color: var(--navy-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  line-height: 1.8;
  /* Dark text on light background */
  /* color: rgba(255, 255, 255, 0.8); */
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-cyan-light);
}

/* Selection */
::selection {
  background: var(--primary-cyan);
  color: var(--white);
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */
/* For Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 12px; /* Width of the vertical scrollbar */
}

::-webkit-scrollbar-track {
    background: #e8f4f7; /* Light background */
    border-left: 1px solid #d1e3e8; /* subtle border to separate from content */
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-cyan); /* Cyan handle */
    border-radius: 6px;
    border: 2px solid #e8f4f7; /* Padding around the handle */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-cyan-dark); /* Darker on hover */
}

/* For Firefox */
html {
    scrollbar-width: auto; /* 'thin' or 'auto' */
    scrollbar-color: var(--primary-cyan) #e8f4f7;
}


/* ===================================
   PRELOADER
   =================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* White preloader background */
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.loader-content {
  text-align: center;
}

.pixel-loader {
  display: inline-block;
}

.pixel-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pixel {
  width: 20px;
  height: 20px;
  background: var(--primary-cyan);
  animation: pixelPulse 1.5s ease-in-out infinite;
}

.pixel-row:nth-child(1) .pixel:nth-child(1) {
  animation-delay: 0s;
}
.pixel-row:nth-child(1) .pixel:nth-child(2) {
  animation-delay: 0.1s;
}
.pixel-row:nth-child(1) .pixel:nth-child(3) {
  animation-delay: 0.2s;
}
.pixel-row:nth-child(2) .pixel:nth-child(1) {
  animation-delay: 0.3s;
}
.pixel-row:nth-child(2) .pixel:nth-child(2) {
  animation-delay: 0.4s;
}
.pixel-row:nth-child(2) .pixel:nth-child(3) {
  animation-delay: 0.5s;
}
.pixel-row:nth-child(3) .pixel:nth-child(1) {
  animation-delay: 0.6s;
}
.pixel-row:nth-child(3) .pixel:nth-child(2) {
  animation-delay: 0.7s;
}
.pixel-row:nth-child(3) .pixel:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes pixelPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.loading-text {
  color: var(--primary-cyan);
  font-weight: 600;
  margin-top: 30px;
  font-size: 1.2rem;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
  /* White navbar with light shadow */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 30px rgba(0, 188, 212, 0.15);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  /* Navy color for brand */
  color: var(--navy-dark) !important;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  /* Navy text for navigation */
  color: var(--navy-dark) !important;
  font-weight: 500;
  margin: 0 0.8rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cyan);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  /* Dark 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(13, 27, 42, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-cyan);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
  background: var(--primary-cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid var(--navy-dark);
  color: var(--navy-dark);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================================
   1. WHATSAPP WIDGET (Old Icon + New Pop-up)
   =================================== */

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Classic Round Button */
.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative; /* Reset fixed positioning as parent handles it */
    bottom: auto;
    right: auto;
}

.whatsapp-float i {
    font-size: 32px;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    color: white;
}

/* Pop-up Message Bubble */
.whatsapp-message {
    background: white;
    color: #333;
    padding: 12px 18px;
    border-radius: 15px;
    border-bottom-right-radius: 2px; /* Looks like a speech bubble */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 200px;
    position: relative;
    
    /* Hidden State */
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Class to show the message */
.whatsapp-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Close 'x' on the message */
.close-wa-msg {
    position: absolute;
    top: 2px;
    right: 5px;
    background: none;
    border: none;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Light gradient background */
  background: linear-gradient(135deg, #ffffff 0%, #f0f9fb 50%, #e3f5f9 100%);
  z-index: -1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle cyan gradients */
  background-image: radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 172, 193, 0.06) 0%, transparent 50%);
}

/* Animated Background Shapes */
.animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: floatShape 25s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-cyan);
  top: 10%;
  left: 5%;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--accent-teal);
  top: 50%;
  right: 5%;
  animation-delay: 5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-cyan);
  bottom: 10%;
  left: 40%;
  animation-delay: 10s;
}

.shape-4 {
  width: 380px;
  height: 380px;
  background: var(--accent-aqua);
  top: 25%;
  right: 25%;
  animation-delay: 15s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(60px, -60px) scale(1.1);
  }
  50% {
    transform: translate(-40px, 60px) scale(0.9);
  }
  75% {
    transform: translate(50px, 40px) scale(1.05);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  /* Dark navy title */
  color: var(--navy-dark);
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  /* Navy gray subtitle */
  color: rgba(27, 58, 87, 0.75);
  margin-bottom: 2.5rem;
  max-width: 600px;
}



/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
}

.stat-item p {
  /* Navy gray text */
  color: rgba(27, 58, 87, 0.65);
  font-size: 0.95rem;
  margin: 0;
}

/* Hero Floating Cards */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.floating-card {
  position: absolute;
  /* White card background */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.12);
}

.floating-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-cyan);
  transform: translateY(-10px) scale(1.05) !important;
  box-shadow: 0 8px 30px rgba(0, 188, 212, 0.2);
}

.floating-card i {
  font-size: 2rem;
  color: var(--primary-cyan);
}

.floating-card span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-dark);
}

.card-1 {
  top: 10%;
  left: 10%;
}
.card-2 {
  top: 30%;
  right: 10%;
  animation-delay: 1.5s;
}
.card-3 {
  bottom: 30%;
  left: 5%;
  animation-delay: 3s;
}
.card-4 {
  bottom: 10%;
  right: 15%;
  animation-delay: 4.5s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.85rem;
  /* Navy text */
  color: rgba(27, 58, 87, 0.65);
  font-weight: 500;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--primary-cyan);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  width: 4px;
  height: 10px;
  background: var(--primary-cyan);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 991px) {
    .hero-section {
        /* Use dvh (dynamic viewport height) to fit mobile screen exactly */
        min-height: 100dvh; 
        height: auto;
        padding-top: 80px; /* Reduced from 100px */
        padding-bottom: 20px; /* Reduced bottom space */
        display: flex;
        align-items: center; /* Vertically center content */
    }

    .hero-content {
        text-align: center;
        padding-bottom: 1rem;
    }

    /* Tighter Typography */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    /* Compact Features Row */
    .hero-features {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .feature-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Buttons */
    .hero-cta {
        flex-direction: row; /* Keep side-by-side if possible */
        justify-content: center;
        gap: 10px;
        margin-bottom: 1rem;
    }

    .hero-cta .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: auto; /* Let them size naturally */
    }

    /* Scale down the floating cards significantly to fit */
    .hero-image-wrapper {
        height: 280px; /* Much shorter */
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        transform: scale(0.8); /* Shrink visual size */
        margin-top: 0;
    }

    /* Tighter card positioning for mobile */
    .floating-card {
        padding: 0.6rem 1rem;
    }
    .floating-card i { font-size: 1.5rem; }
    .floating-card span { font-size: 0.8rem; }

    /* Adjust specific card positions to be more compact */
    .card-1 { top: 0; left: 0; }
    .card-2 { top: 15%; right: -10px; }
    .card-3 { bottom: 15%; left: -10px; }
    .card-4 { bottom: 0; right: 10%; }

    /* Hide scroll indicator on mobile as content fits screen */
    .scroll-indicator {
        display: none;
    }
}

/* Extra small fix for iPhone SE / small Androids */
@media (max-width: 380px) {
    .hero-title { font-size: 1.8rem; }
    .hero-image-wrapper { height: 250px; transform: scale(0.7); }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
}

/* ===================================
   TECHNOLOGY SECTION
   =================================== */

.tech-section {
  /* Removed dark background, now transparent/white */
  background: transparent;
  padding: 60px 0;
  overflow: hidden;
}

.tech-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.tech-slider {
  display: flex;
  animation: scrollTech 20s linear infinite;
  gap: 4rem;
}

.tech-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  /* Removed grayscale filter for colored logos */
  filter: brightness(0.9);
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.tech-logo:hover {
  filter: brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scrollTech {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */

section {
  position: relative;
  padding: var(--section-padding) 0;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  /* Light cyan badge background */
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid var(--primary-cyan);
  border-radius: 50px;
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* Navy title */
  color: var(--navy-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  /* Navy subtitle */
  color: rgba(27, 58, 87, 0.75);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.lead-text {
  font-size: 1.2rem;
  /* Navy lead text */
  color: rgba(27, 58, 87, 0.8);
  line-height: 1.8;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
  /* Light gray background */
  background: #f5f7fa;
}

.vision-mission-card {
  /* White card background */
  background: var(--white);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.vision-mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-aqua));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.vision-mission-card:hover::before {
  transform: scaleX(1);
}

.vision-mission-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 188, 212, 0.2);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.vision-icon {
  background: rgba(0, 188, 212, 0.1);
  color: var(--primary-cyan);
}

.mission-icon {
  background: rgba(0, 172, 193, 0.1);
  color: var(--accent-teal);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  /* Navy text */
  color: rgba(27, 58, 87, 0.8);
}

.feature-list i {
  color: var(--primary-cyan);
  margin-right: 1rem;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services-section {
  /* White background */
  background: var(--white);
}

.service-card {
  /* Light gray card background */
  background: #f8f9fa;
  border: 1px solid rgba(0, 188, 212, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: var(--transition-smooth);
}

.service-card:hover {
  background: rgba(0, 188, 212, 0.05);
  border-color: var(--primary-cyan);
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 188, 212, 0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-cyan);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--primary-cyan);
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy-dark);
}

.service-features {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  /* Navy text */
  color: rgba(27, 58, 87, 0.75);
}

.service-features i {
  color: var(--primary-cyan);
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

/* ===================================
   OUR WORKS SECTION
   =================================== */

.works-section {
  background: #f5f7fa;
}

.work-card {
  background: var(--white);
  border: 1px solid rgba(0, 188, 212, 0.15);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.work-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 188, 212, 0.25);
}

.work-preview {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9fb 0%, #e3f5f9 100%);
}

.work-preview iframe {
  width: 200%;
  height: 1000%;
  border: none;
  transform: scale(0.5) translateY(0);
  transform-origin: top left;
  pointer-events: none;
  background: var(--white);
  animation: autoScrollPreview 20s linear infinite;
}

.work-card:hover .work-preview iframe {
  animation-play-state: paused;
}

@keyframes autoScrollPreview {
  0% {
    transform: scale(0.5) translateY(0);
  }
  45% {
    transform: scale(0.5) translateY(-78%);
  }
  50% {
    transform: scale(0.5) translateY(-78%);
  }
  95% {
    transform: scale(0.5) translateY(0);
  }
  100% {
    transform: scale(0.5) translateY(0);
  }
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 188, 212, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--primary-cyan);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  transform: translateY(20px);
}

.work-card:hover .work-visit-btn {
  transform: translateY(0);
}

.work-visit-btn:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: scale(1.05);
}

.work-info {
  padding: 1.8rem;
}

.work-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 20px;
  margin-bottom: 1rem;
}

.work-category i {
  color: var(--primary-cyan);
  font-size: 0.9rem;
}

.work-category span {
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

.work-info h3 {
  font-size: 1.4rem;
  color: var(--navy-dark);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.work-info p {
  color: rgba(27, 58, 87, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.work-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 5px 12px;
  background: #f0f9fb;
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--navy-light);
  font-weight: 500;
}

/* Works Section Responsive */
@media (max-width: 991px) {
  .work-preview {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .work-preview {
    height: 180px;
  }
  
  .work-info {
    padding: 1.5rem;
  }
  
  .work-info h3 {
    font-size: 1.25rem;
  }
}

/* ===================================
   TEAM SECTION
   =================================== */

.team-section {
  /* Light gray background */
  background: var(--white);
}

.team-card {
  /* White card background */
  background: var(--white);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.team-card:hover {
  background: var(--white);
  border-color: var(--primary-cyan);
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 188, 212, 0.2);
}

.team-avatar {
  margin-bottom: 1.5rem;
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3rem;
  color: var(--primary-cyan);
  transition: var(--transition-smooth);
  border: 3px solid rgba(0, 188, 212, 0.3);
}

.team-card:hover .avatar-placeholder {
  background: var(--primary-cyan);
  color: var(--white);
  transform: scale(1.1);
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy-dark);
}

.team-role {
  color: var(--primary-cyan);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.team-description {
  color: rgba(27, 58, 87, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-specialties {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.specialty-badge {
  padding: 0.4rem 1rem;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-cyan);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials-section {
  background: var(--white);
}

.testimonials-wrapper {
  position: relative;
  padding: 0 60px;
}

.testimonials-container {
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: calc(33.333% - 1.5rem);
  background: #f8f9fa;
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-card:hover {
  background: rgba(0, 188, 212, 0.05);
  border-color: var(--primary-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.testimonial-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.testimonial-author {
  flex: 1;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--navy-dark);
}

.testimonial-author p {
  font-size: 0.9rem;
  color: rgba(27, 58, 87, 0.6);
  margin: 0;
}

.testimonial-location {
  color: var(--primary-cyan);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1rem;
}

.testimonial-text {
  color: rgba(27, 58, 87, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.testimonial-nav:hover {
  background: var(--primary-cyan);
  color: var(--white);
  border-color: var(--primary-cyan);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  background: rgba(0, 188, 212, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.testimonial-dot.active {
  background: var(--primary-cyan);
  width: 30px;
  border-radius: 6px;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
  background: #f5f7fa;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 12px;
  transition: var(--transition-smooth);
  background: #f8f9fa;
  color: var(--navy-dark);
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.15);
  outline: none;
  background: var(--white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 188, 212, 0.15);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy-dark);
}

.contact-item p {
  margin-bottom: 0.3rem;
  color: rgba(27, 58, 87, 0.75);
}

.contact-item a {
  color: var(--primary-cyan);
  font-weight: 500;
}

.region-title {
  margin-bottom: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer-logo-img {
  height: 45px;
  width: auto;
  margin-bottom: 1rem;
}

.footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary-cyan);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--primary-cyan);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.serving-text {
  color: var(--primary-cyan);
  font-weight: 500;
}

.legal-links {
  margin-top: 1rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.legal-links a:hover {
  color: var(--primary-cyan);
}

.legal-links .divider {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 15px;
}

/* ===================================
   LEGAL MODALS (Terms & Privacy)
   =================================== */

.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.legal-modal.active {
  display: flex;
}

.legal-modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  border-bottom: 3px solid var(--primary-cyan);
}

.legal-modal-header h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}

.legal-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.legal-modal-close:hover {
  background: var(--primary-cyan);
  transform: rotate(90deg);
}

.legal-modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 90px);
  color: var(--navy-dark);
}

.legal-modal-body h3 {
  color: var(--navy-dark);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 188, 212, 0.2);
}

.legal-modal-body h3:first-of-type {
  margin-top: 1rem;
}

.legal-modal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(27, 58, 87, 0.85);
  margin-bottom: 1rem;
}

.legal-modal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-modal-body ul li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(27, 58, 87, 0.85);
  margin-bottom: 0.5rem;
}

.legal-modal-body ul li::marker {
  color: var(--primary-cyan);
}

.legal-modal-body strong {
  color: var(--navy-dark);
}

/* Modal Scrollbar Styling */
.legal-modal-body::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-cyan);
  border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--navy-light);
}

/* Modal Responsive */
@media (max-width: 767px) {
  .legal-modal-content {
    max-height: 90vh;
    border-radius: 15px;
  }
  
  .legal-modal-header {
    padding: 1.2rem 1.5rem;
  }
  
  .legal-modal-header h2 {
    font-size: 1.25rem;
  }
  
  .legal-modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 80px);
  }
  
  .legal-modal-body h3 {
    font-size: 1.05rem;
  }
  
  .legal-modal-body p,
  .legal-modal-body ul li {
    font-size: 0.9rem;
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
  :root {
    --section-padding: 60px;
  }
  

  .hero-image-wrapper {
    height: 400px;
    margin-top: 3rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .testimonial-card {
    min-width: calc(50% - 1rem);
  }
}

@media (max-width: 767px) {

  .hero-stats {
    gap: 1.5rem;
  }

  .floating-card {
    padding: 1rem;
  }

  .floating-card span {
    font-size: 0.85rem;
  }

  .scroll-indicator {
    display: none;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .testimonials-wrapper {
    padding: 0 40px;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-image-wrapper {
    height: 300px;
  }

  .floating-card {
    padding: 0.8rem;
  }

  .floating-card i {
    font-size: 1.5rem;
  }

  .tech-logo {
    height: 45px;
  }

  .testimonials-wrapper {
    padding: 0 30px;
  }

  .testimonial-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 110px; /* match mobile navbar height */
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .logo-img {
    height: 42px;
  }
}



/* ===================================
   NEW VERTICAL TESTIMONIALS STYLE
   =================================== */

.testimonial-vertical-wrapper {
    position: relative;
    padding: 20px 0;
}

/* --- Left Side: Vertical List --- */
.testi-list-container {
    position: relative;
    height: 400px; /* Visible height */
    overflow: hidden;
    padding-left: 20px;
    /* Mask to fade top and bottom */
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.testi-timeline-line {
    position: absolute;
    left: 45px; /* Aligns with center of avatar */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 188, 212, 0.2);
    z-index: 1;
}

.testi-list-track {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding-top: 140px; /* Push first item to center initially */
}

.testi-user-item {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.4s ease;
    transform-origin: left center;
    position: relative;
    z-index: 2;
}

.testi-user-item.active {
    opacity: 1;
    transform: scale(1.05);
}

.testi-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 188, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Active State Styles */
.testi-user-item.active .testi-user-avatar {
    width: 70px; /* Bigger active avatar */
    height: 70px;
    border-color: var(--primary-cyan);
    background: var(--primary-cyan);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}

.testi-user-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--navy-dark);
    font-weight: 700;
}

.testi-user-info span {
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

/* --- Right Side: Content --- */
.testi-content-display {
    padding: 2rem;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(0, 188, 212, 0.1);
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 0;
}

#testiQuoteContainer {
    position: relative;
    z-index: 1;
    animation: fadeEffect 0.5s ease-in-out;
}

.testi-active-title {
    font-size: 2rem;
    font-weight: 300;
    font-family: var(--font-secondary);
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
}

.testi-active-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(27, 58, 87, 0.8);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testi-active-rating i {
    color: #ffd700;
    font-size: 1.1rem;
    margin-right: 3px;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
/* Mobile Responsive Testimonial Fix */
@media (max-width: 991px) {
    .testi-list-container {
        height: auto;
        min-height: 160px; /* Height for avatar + name */
        mask-image: none;
        -webkit-mask-image: none;
        padding-left: 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        overflow: hidden; /* Hides side items nicely */
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .testi-timeline-line {
        display: none;
    }

    .testi-list-track {
        display: flex;
        flex-direction: row;
        padding: 0; /* REMOVED padding-left: 50% */
        align-items: center;
        width: max-content; /* Track width grows with items */
    }
    
    .testi-user-item {
        width: 140px; /* Fixed width for calculation */
        flex: 0 0 auto; /* Stop shrinking */
        display: flex;
        flex-direction: column; /* Stack Avatar on top of Name */
        align-items: center;
        justify-content: center;
        text-align: center;
        opacity: 0.4;
        transform: scale(0.8);
        transition: all 0.4s ease;
    }

    /* Active State for Mobile */
    .testi-user-item.active {
        opacity: 1;
        transform: scale(1.1);
    }

    .testi-user-avatar {
        margin-bottom: 10px; /* Space between image and name */
    }

    .testi-user-info {
        display: block !important; /* Force show name */
    }

    .testi-user-info h4 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .testi-user-info span {
        font-size: 0.75rem;
    }
}
