/* Service Pages Styling */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #e0f2fe;
  --secondary: #7c3aed;
  --accent: #10b981;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --card-hover: #f8fafc;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 100px; /* Added for consistent spacing */
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin: 1rem 0; }

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-inner {
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .service-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}

/* Section Spacing */
.section-spacing {
  padding: 6rem 0;
}

/* Service Hero Section */
.service-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text);
  padding: 8rem 0 4rem; /* Increased top padding */
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-top: var(--nav-height); /* Add space for fixed nav */
}

/* Navigation styles for service pages */
/* Navigation Bar */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border);
  padding-top: 2.5rem;
}

.nav-bar {
  background: transparent;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0;
}

.nav-links {
  gap: 2rem;
}

.nav-links > li > a {
  color: var(--text);
  font-weight: 500; /* Increased from 350 to match contact page */
  font-size: 0.80rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.9;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary);
  opacity: 1;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
  transform: none;
}

/* Update dropdown arrow */
.dropdown-arrow {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.6em;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 220px;
  margin-top: 0.5rem;
}

.dropdown-menu a {
  color: var(--text);
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 1.75rem;
  padding-right: 1.5rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Brand Logo */
.brand-logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
  padding-bottom: 1rem;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 30%);
  z-index: 1;
}

.service-hero .container {
  position: relative;
  z-index: 2;
}

.service-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  display: inline-block;
}

.service-hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.pattern-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 1;
}

/* Service Content */
.service-intro {
  padding: 6rem 0;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.service-intro .container {
  position: relative;
  z-index: 2;
}

.service-overview {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 4rem;
  text-align: center;
  position: relative;
  padding: 0 1rem;
  box-sizing: border-box;
}

.service-overview h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  color: var(--text);
  position: relative;
  display: block;
  text-align: center;
  padding: 0 1rem;
}

.service-overview h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.service-overview p {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  text-align: center;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Center align on mobile */
@media (max-width: 768px) {
  .service-overview h2 {
    font-size: 2rem;
  }
  
  .service-overview p {
    padding: 0 0.5rem;
    font-size: 1.05rem;
  }
}

/* Service Features */
.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: var(--transition);
  z-index: -1;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature:hover::before {
  width: 100%;
  opacity: 0.1;
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
  position: relative;
  padding-bottom: 0.25rem;
  line-height: 1.3;
}

.feature h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.feature p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
  font-size: 0.875rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin: 6rem 0 0;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  margin: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-dark);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: #f8fafc;
  color: var(--primary-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .service-hero h1 {
    font-size: 2.75rem;
  }
  
  .service-overview h2 {
    font-size: 2rem;
  }
  
  .feature {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .service-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0;
  }
  
  .feature {
    padding: 1rem;
  }
  
  .service-hero {
    padding: 6rem 0 4rem;
  }
  
  .service-hero h1 {
    font-size: 2.25rem;
  }
  
  .service-hero p {
    font-size: 1.125rem;
  }
  
  .service-overview h2 {
    font-size: 1.75rem;
  }
  
  .service-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .service-hero h1 {
    font-size: 2rem;
  }
  
  .service-overview h2 {
    font-size: 1.625rem;
  }
  
  .cta-section {
    padding: 3rem 1.5rem;
  }
  
  .cta-section h2 {
    font-size: 1.5rem;
  }
  
  .feature {
    padding: 1.5rem;
  }
  
    .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature animations */
.service-features .feature {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.service-features .feature:nth-child(1) { animation-delay: 0.1s; }
.service-features .feature:nth-child(2) { animation-delay: 0.2s; }
.service-features .feature:nth-child(3) { animation-delay: 0.3s; }
.service-features .feature:nth-child(4) { animation-delay: 0.4s; }
.service-features .feature:nth-child(5) { animation-delay: 0.5s; }
.service-features .feature:nth-child(6) { animation-delay: 0.6s; }

/* Floating animation for elements */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Add delay to animations */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Process Timeline */
.process-timeline {
  padding: 5rem 0;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.timeline-track {
  display: none !important; /* Hide the timeline track line */
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.timeline-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0 1rem;
  position: relative;
  margin-bottom: 2rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary);
  transition: var(--transition);
}

.timeline-step:hover .step-icon {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: var(--primary);
  color: white;
}

.step-icon i {
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.timeline-step:hover .step-icon i {
  color: white;
}

.step-number {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step-content p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Timeline */
@media (max-width: 1024px) {
  .timeline-step {
    min-width: 160px;
  }
  
  .step-icon {
    width: 70px;
    height: 70px;
  }
  
  .step-content h3 {
    font-size: 1.125rem;
  }
  
  .step-content p {
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .timeline-steps {
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }
  
  .timeline-step {
    width: 100%;
    max-width: 400px;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    text-align: left;
  }
  
  .step-icon {
    margin: 0 1.5rem 0 0;
    flex-shrink: 0;
  }
  
  .step-content {
    text-align: left;
  }
  
  .timeline-track {
    display: none;
  }
}

@media (max-width: 480px) {
  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-icon {
    margin: 0 auto 1.5rem;
  }
  
  .step-content {
    text-align: center;
  }
}
