/* AstroLink Services - Professional Emerald Green Theme */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Custom CSS Variables */
:root {
  --primary-color: #10b981; /* Emerald Green */
  --primary-dark: #059669;
  --primary-light: #6ee7b7;
  --secondary-color: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navigation Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  min-height: 60px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  transition: all 0.3s ease;
  filter: brightness(1);
  object-fit: contain;
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.navbar-brand:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background-color: rgba(16, 185, 129, 0.1);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-color);
  opacity: 0.4;
  backdrop-filter: blur(2px);
  z-index: 2;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 60px 120px, #fff, transparent),
    radial-gradient(1px 1px at 80px 160px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 120px 200px, #fff, transparent);
  background-size: 200px 200px;
  animation: starfield 20s linear infinite;
  z-index: 1;
}

@keyframes starfield {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

.astronaut-floating {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 400px;
  height: auto;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

@keyframes float {
  0%, 100% {
    transform: translateY(-50%) rotate(0deg);
  }
  25% {
    transform: translateY(-60%) rotate(2deg);
  }
  50% {
    transform: translateY(-40%) rotate(-1deg);
  }
  75% {
    transform: translateY(-55%) rotate(1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: white !important;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Card Styles */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 2rem;
}

.service-card {
  text-align: center;
  height: 100%;
  border: none;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.06);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(16, 185, 129, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(16, 185, 129, 0.12);
}

.service-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  z-index: 2;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  position: relative;
}

.service-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.service-card:hover .service-icon::after {
  opacity: 1;
}

.service-card .card-title {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}

.service-card .card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.service-card .btn {
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.service-card .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.service-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.service-card .btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.service-card .btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Service button styles */
.btn-service-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 130px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-service-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-service-primary:hover::before {
  left: 0;
}

.btn-service-primary:hover {
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-service-featured {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid #2563eb;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 130px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-service-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-service-featured:hover::before {
  left: 0;
}

.btn-service-featured:hover {
  color: white;
  border-color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: #059669 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* White headings for page headers */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 8rem 0 4rem;
}

.page-header h1 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mission/Vision Section */
.mission-vision {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #059669;
}

.mission-vision h2,
.mission-vision h3,
.mission-vision h4 {
  color: white !important;
}

.mission-vision p {
  color: rgba(255, 255, 255, 0.9);
}

.mission-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Footer Styles */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Blog Styles */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

.blog-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 1rem 1rem 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Stats Section Animations */
#stats .card {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s ease;
}

#stats .card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#stats .row .col-lg-3:nth-child(1) .card { transition-delay: 0.1s; }
#stats .row .col-lg-3:nth-child(2) .card { transition-delay: 0.2s; }
#stats .row .col-lg-3:nth-child(3) .card { transition-delay: 0.3s; }
#stats .row .col-lg-3:nth-child(4) .card { transition-delay: 0.4s; }

#stats .text-primary {
  font-weight: 700;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  display: inline-block;
}

#stats .service-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .astronaut-floating {
    width: 250px;
    right: 5%;
    top: 60%;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .astronaut-floating {
    width: 200px;
    right: 2%;
    top: 65%;
    opacity: 0.6;
  }
}

@media (max-width: 1200px) {
  .astronaut-floating {
    width: 350px;
    right: 8%;
  }
}

@media (max-width: 992px) {
  .astronaut-floating {
    width: 300px;
    right: 6%;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-light-gray {
  background-color: #f9fafb;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: var(--shadow);
}

.shadow-lg-custom {
  box-shadow: var(--shadow-lg);
}

/* Stylish Service Modal Styles */
.service-modal .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.service-modal .gradient-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem 2.5rem;
  border-bottom: none;
  position: relative;
}

.service-modal .gradient-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.service-modal .modal-title {
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-modal .stylish-modal-body {
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

.service-modal .modal-hero-section {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.service-modal .modal-hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.service-modal .modal-hero-section h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.service-modal .modal-hero-section .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0;
}

.service-modal .modal-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
  position: relative;
}

.service-modal .modal-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.service-modal .features-grid {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  position: relative;
}

.service-modal .features-grid h6 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
  text-transform: none;
  letter-spacing: -0.01em;
}

.service-modal .coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-modal .coverage-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border-left: 5px solid var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-modal .coverage-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-modal .coverage-item:hover::before {
  opacity: 1;
}

.service-modal .coverage-item:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
  border-left-color: var(--primary-dark);
}

.service-modal .coverage-icon {
  margin-right: 1.25rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.service-modal .coverage-item:hover .coverage-icon {
  color: var(--primary-dark);
  transform: scale(1.1);
}

.service-modal .coverage-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-modal .coverage-content strong {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}

.service-modal .coverage-content span {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.service-modal .styled-list {
  list-style: none;
  padding: 0;
}

.service-modal .styled-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
}

.service-modal .styled-list li:last-child {
  border-bottom: none;
}

.service-modal .styled-list li i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.1rem;
}

.service-modal .benefits-section {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.service-modal .benefits-section h6 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
  text-transform: none;
  letter-spacing: -0.01em;
}

.service-modal .benefit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-modal .benefit-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 18px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-modal .benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-modal .benefit-card:hover::before {
  opacity: 1;
}

.service-modal .benefit-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.service-modal .benefit-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-modal .benefit-card:hover i {
  color: var(--primary-dark);
  transform: scale(1.1) rotate(5deg);
}

.service-modal .benefit-card strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.01em;
}

.service-modal .benefit-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.service-modal .cta-section {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(16, 185, 129, 0.1);
}

.service-modal .cta-section h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
}

.service-modal .stylish-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid #e5e7eb;
  padding: 2rem 2.5rem;
}

.service-modal .btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  padding: 0.75rem 2rem;
  border-radius: 12px;
}

.service-modal .btn-gradient:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

/* Service Cards Responsive */
@media (max-width: 1200px) {
  .service-card {
    max-width: 200px;
  }
  
  .service-card .card-body {
    padding: 1.8rem 1.3rem;
    min-height: 260px;
  }
}

@media (max-width: 992px) {
  .service-card {
    max-width: 180px;
  }
  
  .service-card .card-body {
    padding: 1.5rem 1rem;
    min-height: 240px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Modal coverage grid responsive */
  .service-modal .coverage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-card {
    max-width: 160px;
  }
  
  .service-card .card-body {
    padding: 1.3rem 0.8rem;
    min-height: 220px;
  }
  
  .service-card .card-title {
    font-size: 0.9rem;
    min-height: 2.4rem;
  }
  
  .btn-service-primary,
  .btn-service-featured {
    padding: 0.5rem 1.4rem;
    font-size: 0.8rem;
    min-width: 100px;
  }
  
  /* Modal adjustments */
  .service-modal .coverage-item {
    padding: 0.8rem;
  }
  
  .service-modal .coverage-content strong {
    font-size: 0.9rem;
  }
  
  .service-modal .coverage-content span {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .service-card {
    max-width: 140px;
  }
  
  .service-card .card-body {
    padding: 1rem 0.6rem;
    min-height: 200px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .service-card .card-title {
    font-size: 0.8rem;
    min-height: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .btn-service-primary,
  .btn-service-featured {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    min-width: 90px;
  }
  
  /* Modal coverage items for mobile */
  .service-modal .coverage-grid {
    gap: 0.5rem;
  }
  
  .service-modal .coverage-item {
    padding: 0.6rem;
    flex-direction: column;
    text-align: center;
  }
  
  .service-modal .coverage-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
  .service-modal .modal-dialog {
    margin: 1rem;
  }
  
  .service-modal .modal-hero-section,
  .service-modal .features-grid,
  .service-modal .benefits-section {
    padding: 1.5rem;
  }
  
  .service-modal .benefit-cards {
    grid-template-columns: 1fr;
  }
}

/* Blog responsive styles */
@media (max-width: 768px) {
  .blog-card .card-body {
    padding: 1rem;
  }
  
  .featured-article .row.g-0 {
    flex-direction: column;
  }
  
  .featured-article .card-body {
    padding: 1.5rem;
  }
  
  .blog-meta {
    margin-bottom: 0.75rem;
  }
  
  .blog-meta .badge {
    font-size: 0.75rem;
  }
  
  .blog-image {
    height: 200px;
    object-fit: cover;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-item {
    margin: 0.125rem;
  }
}

@media (max-width: 576px) {
  .blog-card h5.card-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .blog-card .card-text {
    font-size: 0.875rem;
  }
  
  .featured-article h3.card-title {
    font-size: 1.25rem;
  }
  
  .blog-meta small {
    font-size: 0.75rem;
  }
  
  .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .author-bio .rounded-circle {
    width: 80px !important;
    height: 80px !important;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* Typewriter Letter-by-Letter Animations */
@keyframes typewriterLetter {
  0% {
    opacity: 0;
    transform: translateX(-10px) scale(0.8);
  }
  50% {
    transform: translateX(0) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeInLetter {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceLetter {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideLetter {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Letter Animation Classes */
.letter-animate {
  display: inline-block;
  opacity: 0;
  animation-fill-mode: forwards;
}

.letter-typewriter {
  animation: typewriterLetter 0.4s ease-out forwards;
}

.letter-fade {
  animation: fadeInLetter 0.3s ease-out forwards;
}

.letter-bounce {
  animation: bounceLetter 0.5s ease-out forwards;
}

.letter-slide {
  animation: slideLetter 0.3s ease-out forwards;
}

/* Heading Animation Containers - Preserve Text Layout */
.typewriter-container {
  overflow: visible; /* Allow natural text flow */
}

.typewriter-ready {
  position: relative;
}

/* Preserve word boundaries and prevent awkward breaks */
.hero-title,
.hero-subtitle,
.section-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  line-height: 1.3;
}

/* Word span styling to maintain proper spacing */
.letter-animate.space,
.hero-title span,
.hero-subtitle span,
.section-title span {
  margin: 0;
  padding: 0;
}

/* Ensure proper text flow on different screen sizes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
}

/* Service card animations */
.service-card {
  transition: all 0.6s ease-out;
}

.service-card.animate {
  animation: none; /* Remove keyframe animation, use transition instead */
}

/* Remove the old delay classes as they're no longer needed */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .letter-animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .service-card {
    transition: none !important;
  }
}