/* 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);
}

/* 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: spin 1s linear infinite;
}

@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 #ff7a59;
  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: #ff7a59;
}

.services-carousel-arrow:hover {
  background: #ff7a59;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 122, 89, 0.3);
}

.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);
  }
}

/* Mobile responsive */
@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}