/* Premium Design System Variables */
:root {
  /* Colors */
  --primary-color: #059669; /* Deep Emerald */
  --primary-dark: #064e3b;
  --secondary-color: #0f172a; /* Slate Navy */
  --accent-color: #f59e0b; /* Amber Amber */
  --text-main: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  
  /* Gradients */
  --gradient-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-navy: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --glass-blur: blur(12px);
  
  /* Shadows & Borders */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --border-radius-sm: 8px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Typography */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Premium Navigation */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand img {
  height: 48px;
  transition: var(--transition);
  border-radius: 50%;
  overflow: hidden;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--secondary-color) !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-emerald);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

@media (max-width: 991.98px) {
  .navbar-nav {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    border-left: 4px solid transparent;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    border-left-color: var(--primary-color);
    background: var(--bg-light);
    padding-left: 1.5rem !important;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
}

/* Premium Buttons */
.btn {
  padding: 0.8rem 2rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-emerald);
  border: none;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  background: var(--gradient-emerald);
}

.btn-secondary {
  background: var(--gradient-navy);
  border: none;
  box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: white;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Premium Cards */
.premium-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

/* Section Layouts */
section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.section-title-premium {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
}

.section-title-premium span {
  color: var(--primary-color);
}

/* Utilities */
.text-gradient-emerald {
  background: var(--gradient-emerald);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(5, 150, 105, 0.3);
}

/* Modern Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  letter-spacing: -1px;
}

.hero .lead {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Visibility Utilities */
.text-dark {
    color: #212529 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.max-width-800 {
    max-width: 800px;
}

/* Content Component Styles */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.network-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.network-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.max-width-800 {
    max-width: 800px;
}

/* Layout Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Quote Section Enhancement */
#quote {
    position: relative;
    background-attachment: fixed !important;
}

#quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#quote .container {
    position: relative;
    z-index: 2;
}

/* Global Section Spacing */
section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Modern Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  background: white;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Background Image Cards */
.bg-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.bg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: 1;
}

.bg-card .card-body {
  position: relative;
  z-index: 2;
}

/* Gradient Background Cards */
.gradient-card {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.gradient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8));
  z-index: 1;
}

.gradient-card .card-body {
  position: relative;
  z-index: 2;
}

/* Equal Height Cards */
.equal-height-row {
  display: flex;
  flex-wrap: wrap;
}

.equal-height-row .card {
  height: 100%;
  min-height: 350px;
}

.equal-height-row .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Services Section Enhancement */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="%2328a745" opacity="0.03"/></svg>');
  background-size: 20px 20px;
  z-index: 1;
}

.service-card-enhanced {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-enhanced:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card-enhanced .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.service-card-enhanced .card-title {
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card-enhanced .card-text {
  flex: 1;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.service-card-enhanced .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Square Cards with Wave Animations */
.square-card {
  width: 280px;
  height: 280px;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.square-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(40, 167, 69, 0.1) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: waveAnimation 3s ease-in-out infinite;
  z-index: 1;
}

.square-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, transparent 100%);
  animation: waveAnimation 4s ease-in-out infinite reverse;
  z-index: 2;
}

.square-card:hover {
  transform: translateY(-15px) rotateZ(10deg) scale(1.1);
  box-shadow: 0 25px 50px rgba(40, 167, 69, 0.3);
}

.square-card:hover::before {
  animation-duration: 1.5s;
  background: linear-gradient(45deg, transparent 20%, rgba(40, 167, 69, 0.2) 50%, transparent 80%);
}

.square-card:hover::after {
  animation-duration: 2s;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, transparent 100%);
}

/* Service Square Cards */
.service-square-card {
  width: 300px;
  height: 300px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  margin: 0 auto;
}

.service-square-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--success-color), var(--info-color));
  background-size: 400% 400%;
  animation: borderWaveAnimation 2s linear infinite;
  z-index: 1;
  border-radius: var(--border-radius);
}

.service-square-card:hover {
  transform: translateY(-10px) rotateY(15deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(40, 167, 69, 0.4);
}

.service-square-card:hover::before {
  animation-duration: 1s;
  background-size: 600% 600%;
}

/* Stats Square Cards */
.stats-square-card {
  width: 250px;
  height: 250px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--gradient-primary));
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: white;
}

.stats-square-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(255, 255, 255, 0.2) 70%);
  animation: pulseWaveAnimation 2s ease-in-out infinite;
  z-index: 1;
}

.stats-square-card:hover {
  transform: translateY(-8px) scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3);
}

/* About Square Cards */
.about-square-card {
  width: 320px;
  height: 320px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.about-square-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
  animation: rotateWaveAnimation 4s linear infinite;
  z-index: 1;
  border-radius: var(--border-radius);
}

.about-square-card:hover {
  transform: translateY(-12px) rotateX(-10deg) scale(1.08);
  box-shadow: 0 25px 50px rgba(40, 167, 69, 0.35);
}

/* Wave Animations */
@keyframes waveAnimation {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%);
  }
  50% {
    transform: translateX(100%) translateY(100%);
  }
}

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

@keyframes rotateWaveAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseWaveAnimation {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* Square Card Container */
.square-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 3rem;
}

.square-card-container .square-card {
  flex: 0 0 auto;
}

/* Ensure About Section Visibility */
.about-square-card {
  z-index: 10;
  position: relative;
}

.about-square-card i,
.about-square-card h5,
.about-square-card p {
  position: relative;
  z-index: 20;
}

/* Wave Animations */
@keyframes waveAnimation {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%);
  }
  50% {
    transform: translateX(100%) translateY(100%);
  }
}

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

@keyframes rotateWaveAnimation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseWaveAnimation {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* Enhanced Testimonial Section */
.testimonial-section-enhanced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.testimonial-section-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  animation: floatAnimation 20s infinite linear;
}

.testimonial-card-enhanced {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.testimonial-card-enhanced::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
  animation: pulseAnimation 2s infinite alternate;
}

.testimonial-card-enhanced:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.testimonial-card-enhanced .card-body {
  position: relative;
  z-index: 2;
}

/* Section-Specific Animations */
.hero-section {
  animation: heroAnimation 1s ease-out;
}

.about-section {
  animation: aboutAnimation 1.2s ease-out;
}

.services-section {
  animation: servicesAnimation 1.4s ease-out;
}

.testimonial-section {
  animation: testimonialAnimation 1.6s ease-out;
}

.cta-section {
  animation: ctaAnimation 1.8s ease-out;
}

/* Unique Section Animations */
@keyframes heroAnimation {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes servicesAnimation {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes testimonialAnimation {
  from {
    opacity: 0;
    transform: rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

@keyframes ctaAnimation {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

@keyframes pulseAnimation {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* Interactive Features */
.interactive-card {
  transition: var(--transition);
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-8px) rotateZ(5deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.interactive-card:active {
  transform: translateY(-4px) scale(0.98);
}

/* Section Spacing */
.section-spacing {
  padding: 5rem 0;
}

.section-title {
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Feature Cards */
.feature-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: white;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-box i {
  margin-bottom: 0.5rem;
}

.feature-box h6 {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin: 0;
}

/* Coverage Badges */
.district-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.district-badges .badge {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  transition: var(--transition);
}

.district-badges .badge:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Service Cards */
.service-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  background: white;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.service-image {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Advanced Card Animations */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: var(--transition-slow);
}

.card-3d:hover {
  transform: rotateY(5deg);
}

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Listing Technologies */
.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  padding-left: 2rem;
}

.service-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.service-list li:hover {
  background: var(--light-color);
  padding-left: 2.5rem;
  transform: translateX(5px);
}

.service-list li:hover:before {
  width: 12px;
  height: 12px;
  background: var(--success-color);
}

/* Zoom In/Out Effects */
.zoom-container {
  overflow: hidden;
  position: relative;
}

.zoom-content {
  transition: var(--transition-slow);
  transform-origin: center;
}

.zoom-container:hover .zoom-content {
  transform: scale(1.05);
}

.zoom-in {
  animation: zoomIn 0.6s ease-out;
}

.zoom-out {
  animation: zoomOut 0.6s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* Fade In/Out Effects */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-out {
  animation: fadeOut 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Stagger Animations */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.stagger-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hover-glow {
  transition: var(--transition);
  position: relative;
}

.hover-glow:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(40, 167, 69, 0.1), transparent);
  z-index: -1;
  transition: var(--transition-fast);
  opacity: 0;
}

.hover-glow:hover:before {
  opacity: 1;
}

.hover-rotate {
  transition: var(--transition);
}

.hover-rotate:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Parallax Effects */
.parallax {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

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

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

/* Modern Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.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: var(--transition-fast);
}

.btn:hover:before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Modern Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-logo {
  /* Keep footer logo consistent with homepage (#footer .footer-logo from main.css) */
  height: 56px;
  width: 56px;
  margin-bottom: 20px;
  padding: 6px;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  transition: transform var(--transition), filter var(--transition) !important;
  border-radius: 50%;
  overflow: hidden;
  object-fit: contain;
  filter: none !important;
  animation: none !important;
}

.footer-company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: white;
}

/* Contact Info Bar */
.contact-info-bar {
  background: var(--light-color);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-info-bar .col-md-3,
.contact-info-bar .col-sm-6 {
  padding: 0.5rem;
  transition: var(--transition);
}

.contact-info-bar .col-md-3:hover,
.contact-info-bar .col-sm-6:hover {
  background: rgba(40, 167, 69, 0.1);
  border-radius: var(--border-radius);
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Service Cards */
.service-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

/* Modern Section Spacing */
section {
  padding: 4rem 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Modern Loading Spinner */
.spinner-border {
  border-color: var(--primary-color);
  border-right-color: transparent;
}

/* Modern Form Controls */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Modern Alerts */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

/* Services Carousel Styles */
.services-carousel-container {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.services-carousel {
    overflow: hidden;
    width: 100%;
}

.services-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 32px;
}

.service-item {
    flex: 0 0 calc(33.333% - 22px);
    max-width: calc(33.333% - 22px);
}

@media (max-width: 991.98px) {
    .service-item {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 767.98px) {
    .service-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-image-container {
    height: 200px;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-hover-info {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

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

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition);
    color: var(--primary-color);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

@media (max-width: 1200px) {
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Smooth Scroll Layout */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Scroll Animation Hooks for GSAP */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
}

.scale-up {
  opacity: 0;
  transform: scale(0.9);
}

/* Parallax Utility */
.parallax-section {
  position: relative;
  overflow: hidden;
}

[data-speed] {
  will-change: transform;
}

/* Modern Layout Utilities */
.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

.bg-soft-emerald {
  background: rgba(5, 150, 105, 0.03);
}

.bg-soft-navy {
  background: rgba(15, 23, 42, 0.03);
}
