/* Home Page Optimizations - Performance CSS */

/* Hero Title - Professional Centered */
.hero-title {
  font-size: var(--font-size-5xl, 3rem);
  font-weight: var(--font-weight-normal, 600);
  line-height: 1.1;
  margin-bottom: var(--space-xl, 1.5rem);
  letter-spacing: -0.02em;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  text-align: center;
  color: #2c3e50;
}

.hero-title .hero-main .fade-in-up {
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4rem);
  display: inline-block;
  letter-spacing: -0.01em;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  background: linear-gradient(135deg, #2c3e50, #ff7a59);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-title .hero-main {
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4rem);
  display: inline-block;
  letter-spacing: -0.01em;
  font-family: var(--font-primary, 'Poppins', sans-serif);
}

/* Hero Background Styles - Inlined for LCP */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 122, 89, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 143, 115, 0.05) 0%, transparent 50%);
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.1), rgba(255, 143, 115, 0.1));
}

.shape-1 { width: 300px; height: 300px; top: 10%; left: 10%; }
.shape-2 { width: 200px; height: 200px; top: 60%; right: 20%; }
.shape-3 { width: 150px; height: 150px; bottom: 20%; left: 60%; }

/* Animation Styles - Inlined for LCP */
/* fade-in-up removed for LCP optimization */

/* Specific Chrome fix using older syntax */
@-moz-document url-prefix() {
  .hero-title .hero-main {
    color: #2c3e50;
    background: none;
  }
}

/* Chrome-specific using feature query */
@supports (-webkit-background-clip: text) {
  .hero-title .hero-main .fade-in-up {
    background: -webkit-linear-gradient(135deg, #2c3e50, #ff7a59);
    background: linear-gradient(135deg, #2c3e50, #ff7a59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
  }
}

@media (max-width: 991px) {
  .hero-title {
    text-align: center;
  }
  .hero-title .hero-main .fade-in-up {
    font-size: clamp(2rem, 7vw, 3rem);
    background: linear-gradient(135deg, #2c3e50, #ff7a59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
}

@media (max-width: 576px) {
  .hero-title .hero-main .fade-in-up {
    font-size: clamp(2.2rem, 8vw, 3rem);
    background: linear-gradient(135deg, #2c3e50, #ff7a59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
}

/* Loading spinner styles */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: none !important;
}

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

/* Accessibility improvements */
.visually-hidden-focusable {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
  z-index: 10000 !important;
}

/* Utility Classes */
.center-text {
  text-align: center;
}

@media (max-width: 767px) {
  .center-text {
    text-align: center;
    display: block;
    margin: 0 auto;
  }
}

.navbar-nav .nav-link {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* Hero Description - Darker for better readability */
.hero-description {
  color: #2d3748 !important;
  opacity: 0.85 !important;
}

/* Hero Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.btn-primary-hero {
  background: #ff7a59;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255,122,89,0.3);
}

.btn-primary-hero:hover {
  background: #ff8f73;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,122,89,0.4);
  text-decoration: none;
  color: white;
}

.btn-secondary-hero {
  background: transparent;
  color: #ff7a59;
  border: 2px solid #ff7a59;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-hero:hover {
  background: #ff7a59;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Hero Image */
.hero-visual{text-align:center}
.hero-image-container{position:relative;max-width:500px;margin:0 auto}
.hero-main-image{width:100%;height:auto;border-radius:20px;box-shadow:0 20px 40px rgba(0,0,0,0.1)}

.hero-placeholder{background:rgba(255,255,255,0.1);border-radius:20px;padding:3rem;text-align:center;backdrop-filter:blur(10px)}
.placeholder-content h3{font-size:2rem;margin-bottom:1rem}
.placeholder-content p{font-size:1.1rem;opacity:0.9}

/* Section Titles */
.section-title{font-size:2.5rem;margin-bottom:1rem;text-align:center;color:#2d3748}
.section-subtitle{font-size:1.2rem;color:#718096;text-align:center;margin-bottom:3rem}

/* Responsive Design */
@media(max-width:991px){
.col-lg-6{flex:0 0 100%;max-width:100%}
.hero-title{font-size:2.5rem;text-align:center}
.hero-description{text-align:center}
.hero-cta{justify-content:center;flex-direction:column;gap:1rem}
.btn-secondary-hero{margin-left:0;margin-top:0}
.col-md-4,.col-md-8{flex:0 0 100%;max-width:100%}
}

@media(max-width:576px){
.hero-title .hero-main{font-size:clamp(2.8rem,10vw,3.5rem) !important}
.hero-description{font-size:1rem;color:#2d3748 !important;opacity:1 !important}
.btn-primary-hero,.btn-secondary-hero{
  padding:1rem 2rem;
  font-size:1rem;
  width:100%;
  justify-content:center;
  max-width:280px;
}
.section-title{font-size:2rem}
.container{padding:0 0.5rem}
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.services-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.services-carousel-container {
  overflow: hidden;
  margin: 0 60px;
}

.services-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.services-carousel-item {
  flex: 0 0 380px;
  max-width: 380px;
}

.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 3.5rem 2.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 122, 89, 0.08);
  border-color: rgba(255, 122, 89, 0.2);
}



.service-icon {
  width: 100px;
  height: 100px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover .service-icon {
  background: rgba(255, 122, 89, 0.06);
  border-color: rgba(255, 122, 89, 0.15);
}


.service-icon i {
  font-size: 2.5rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
  color: #ff7a59;
}


.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.service-description {
  color: #718096;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.service-button {
  background: transparent;
  color: #ff7a59;
  border: 2px solid #ff7a59;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  text-align: center;
  position: relative;
}

.service-button:hover {
  background: #ff7a59;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 89, 0.25);
  text-decoration: none;
  border-color: #ff7a59;
}

.services-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  color: #6c757d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.services-carousel-arrow:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.services-carousel-prev {
  left: 0;
}

.services-carousel-next {
  right: 0;
}

.services-carousel-arrow i {
  font-size: 1.2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .services-carousel-container {
    margin: 0 40px;
  }
  
  .services-carousel-item {
    flex: 0 0 340px;
    max-width: 340px;
  }
  
  .service-card {
    padding: 3rem 2rem 2rem;
    height: 360px;
  }
  
  .service-icon {
    width: 90px;
    height: 90px;
  }
  
  .service-icon i {
    font-size: 2.2rem;
  }
  
  .service-title {
    font-size: 1.4rem;
  }
  
  .service-description {
    font-size: 1rem;
  }
  
  .services-carousel-arrow {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .services-carousel-container {
    margin: 0 20px;
  }
  
  .services-carousel-item {
    flex: 0 0 300px;
    max-width: 300px;
  }
  
  .service-card {
    padding: 2.5rem 1.5rem 1.5rem;
    height: 340px;
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
  }
  
  .service-icon i {
    font-size: 2rem;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  .service-description {
    font-size: 0.95rem;
  }
  
  .service-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    min-width: 120px;
  }
}

/* Contact CTA Section */
.contact-cta-section {
  padding: 5rem 0;
  background: white;
}

.contact-cta-container {
  margin-top: 2rem;
}

.contact-cta-btn {
  background: #ff7a59;
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 122, 89, 0.3);
  margin-bottom: 1.5rem;
}

.contact-cta-btn:hover {
  background: #ff8f73;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 122, 89, 0.4);
  text-decoration: none;
}

.contact-cta-btn i {
  font-size: 1.1rem;
}

.contact-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #4ade80;
  font-weight: 500;
  font-size: 0.95rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

@media (max-width: 576px) {
  .contact-cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .contact-status {
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.text-center{text-align:center}
.mb-5{margin-bottom:3rem}
.mb-4{margin-bottom:2rem}
.mb-3{margin-bottom:1.5rem}
.d-flex{display:flex}
.align-items-center{align-items:center}
.justify-content-center{justify-content:center}
.visually-hidden-focusable{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.visually-hidden-focusable:focus{position:static!important;width:auto!important;height:auto!important;padding:0.5rem!important;margin:0!important;overflow:visible!important;clip:auto!important;white-space:normal!important;background:#000!important;color:#fff!important;text-decoration:none!important;z-index:10000!important}

/* Critical testimonials styles to ensure they load properly */
.testimonial-section {
  padding: 80px 0 !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff5f0 100%) !important;
}

.testimonial-carousel {
  max-width: 1000px !important;
  margin: 0 auto !important;
  position: relative !important;
}

.testimonial-slide {
  display: none !important;
  text-align: center !important;
  padding: 40px 20px !important;
}

.testimonial-slide.active {
  display: block !important;
}

.testimonial-content {
  background: white !important;
  border-radius: 20px !important;
  padding: 40px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(255, 122, 89, 0.1) !important;
  position: relative !important;
}

.testimonial-content::before {
  content: '"' !important;
  position: absolute !important;
  top: -20px !important;
  left: 40px !important;
  font-size: 4rem !important;
  color: #ff7a59 !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

.testimonial-text {
  font-size: 1.2rem !important;
  line-height: 1.7 !important;
  color: #2d3748 !important;
  margin: 0 !important;
  font-style: italic !important;
}

.testimonial-author {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.customer-image {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  border: 3px solid #ff7a59 !important;
  object-fit: cover !important;
}

.author-info {
  text-align: left !important;
}

.author-name {
  font-weight: bold !important;
  font-size: 1.1rem !important;
  color: #2d3748 !important;
  margin-bottom: 5px !important;
}

.author-position, .author-company {
  color: #6c757d !important;
  font-size: 0.9rem !important;
}

.company-logo img {
  max-height: 60px !important;
  max-width: 120px !important;
  object-fit: contain !important;
}

.carousel-controls {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 30px !important;
}

.carousel-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: 2px solid #ff7a59 !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.carousel-dot.active {
  background: #ff7a59 !important;
}

/* Services Grid Styles */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    padding: 2rem;
    background: #ffffff !important; /* Enforce pure white */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; /* Soft shadow for depth */
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02); /* Added scale */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.seo-section {
    background: #ffffff !important;
}

.articles-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.service-icon {
    font-size: 2.5rem;
    color: #ff7a59;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg); /* Added icon animation */
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.service-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: #ff7a59;
    border: 1px solid #ff7a59;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: center;
}

.service-button:hover {
    background: #ff7a59;
    color: #fff;
}