/* ========================================
   HOMEPAGE STYLES (index.html)
======================================== */

/* Hero/Slider Section */
.hero_bg_box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.hero_bg_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 32, 74, 0.1);
  z-index: 1;
}

.hero_bg_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Slider section enhancements */
.slider_section {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.slider_number {
  position: absolute;
  top: 50%;
  right: 100px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 10rem;
  font-weight: 900;
  z-index: -1;
  font-family: 'Inter', sans-serif;
}

.detail-box h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.detail-box h1 span {
  color: #00bbf0;
  text-shadow: 0 0 20px rgba(0, 187, 240, 0.5);
}

.detail-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 500px;
}

.btn-box a {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, #00bbf0 0%, #0099cc 100%);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(0, 187, 240, 0.3);
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 187, 240, 0.4);
  color: white;
}

/* Carousel indicators */
.carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
}

.carousel-indicators li {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.carousel-indicators li.active {
  background: #00bbf0;
  border-color: #00bbf0;
  box-shadow: 0 0 15px rgba(0, 187, 240, 0.6);
}

/* Modern Statistics Section */
.stats_section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stats_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"><defs><pattern id="stats-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(0,187,240,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23stats-pattern)"/></svg>');
}

.stats_section .container {
  position: relative;
  z-index: 1;
}

.stats_section .heading_container {
  text-align: center;
  margin-bottom: 60px;
}

.stats_section .heading_container h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 20px;
}

.stats_section .heading_container h2 span {
  color: #00bbf0;
}

.stats_section .heading_container p {
  font-size: 1.2rem;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.stats_content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  min-width: 300px; /* Minimum width to maintain layout */
}

.stats_box {
  background: white;
  padding: 50px 30px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  animation: statsSlideUp 0.8s ease-out forwards;
  border: 1px solid rgba(0, 187, 240, 0.1);
  min-width: 80px; /* Minimum width per card */
}

.stats_box:nth-child(1) { animation-delay: 0.1s; }
.stats_box:nth-child(2) { animation-delay: 0.2s; }
.stats_box:nth-child(3) { animation-delay: 0.3s; }
.stats_box:nth-child(4) { animation-delay: 0.4s; }

.stats_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #00bbf0 0%, #0099cc 100%);
  border-radius: 25px 25px 0 0;
}

.stats_box:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 187, 240, 0.2);
}

.stats_box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00bbf0 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stats_box:hover::after {
  opacity: 1;
}

.stats_icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00bbf0 0%, #007fa4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.stats_box:hover .stats_icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 187, 240, 0.4);
  animation: iconPulse 1.5s infinite;
}

.stats_icon i {
  color: white;
  font-size: 2rem;
}

.stats_number {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.stats_number::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00bbf0 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stats_box:hover .stats_number::before {
  opacity: 0.6;
}

.counter {
  font-size: 3.5rem;
  font-weight: 900;
  color: #00bbf0;
  margin: 0;
  line-height: 1;
  display: inline-block;
}

.stats_suffix {
  font-size: 2rem;
  font-weight: 700;
  color: #00bbf0;
  margin-left: 5px;
  vertical-align: top;
}

.counter_text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Special styling for non-numeric stats (like 24/7) */
.stats_text {
  font-size: 3rem !important;
  font-weight: 800 !important;
  color: #00bbf0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

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

@keyframes countUpAnimation {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

@keyframes iconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 187, 240, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 187, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 187, 240, 0);
  }
}

/* Enhanced statistics section styles */
.stats_section .heading_container h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #00bbf0 0%, #0099cc 100%);
  margin: 20px auto;
  border-radius: 2px;
}

.stats_box.animate-in {
  animation: statsSlideUp 0.8s ease-out forwards;
}

.stats_box .counter.animate {
  animation: countUpAnimation 0.3s ease-out;
}

/* Additional visual enhancements for statistics section */
.stats_section .heading_container {
  position: relative;
}

.stats_section .heading_container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 187, 240, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Improved number styling */
.stats_number {
  position: relative;
  display: inline-block;
}

.stats_number::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00bbf0 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stats_box:hover .stats_number::before {
  opacity: 0.6;
}

/* Better text hierarchy */
.stats_section .heading_container p {
  position: relative;
  padding: 0 20px;
}

.stats_section .heading_container p::before,
.stats_section .heading_container p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: #00bbf0;
  opacity: 0.3;
}

.stats_section .heading_container p::before {
  left: -40px;
}

.stats_section .heading_container p::after {
  right: -40px;
}

/* Service Section on Homepage */
.service_section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.service_section .container-fluid {
  padding: 0 50px;
}

.service_section .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service_section .box {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 187, 240, 0.1);
}

.service_section .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 187, 240, 0.2);
}

.service_section .img-box {
  margin-bottom: 25px;
}

.service_section .img-box img {
  width: 80px;
  height: 80px;
  filter: hue-rotate(200deg) saturate(1.2);
  transition: all 0.3s ease;
}

.service_section .box:hover .img-box img {
  transform: scale(1.1) rotate(5deg);
}

.service_section .detail-box h5 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.service_section .detail-box p {
  color: #718096;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* About Section on Homepage */
.about_section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.about_section .row {
  align-items: center;
}

.about_section .img-box {
  position: relative;
  height: 450px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about_section .img-box::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"><defs><pattern id="about-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(0,187,240,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23about-dots)"/></svg>');
}

.about_section .img-box .placeholder {
  font-size: 4rem;
  color: #00bbf0;
  opacity: 0.7;
  z-index: 1;
  position: relative;
}

.about_section .detail-box h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 25px;
  line-height: 1.3;
}

.about_section .detail-box p {
  color: #718096;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.feature_list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.feature_list li {
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
  color: #4a5568;
  font-weight: 500;
  font-size: 1.05rem;
}

.feature_list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00bbf0;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Track Section */
.track_section {
  background: linear-gradient(135deg, #00204a 0%, #001a38 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.track_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"><defs><pattern id="track-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(0,187,240,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23track-pattern)"/></svg>');
}

/* Client Section */
.client_section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.client_section .carousel-item {
  padding: 50px;
  background: white;
  border-radius: 20px;
  margin: 0 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section on Homepage */
.contact_section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.contact_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"><defs><pattern id="contact-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(0,187,240,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-dots)"/></svg>');
  opacity: 0.5;
}

.contact_section .container {
  position: relative;
  z-index: 1;
}

/* Homepage specific animations */
@keyframes statsSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage responsive design */
@media (max-width: 992px) {
  .stats_content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .stats_box {
    padding: 35px 20px;
  }
}

@media (max-width: 768px) {
  .detail-box h1 {
    font-size: 2.5rem;
  }
  
  .slider_number {
    display: none;
  }
  
  .stats_section {
    padding: 80px 0;
  }
  
  .stats_section .heading_container h2 {
    font-size: 2rem;
  }
  
  .stats_section .heading_container p {
    font-size: 1.1rem;
  }
  
  .stats_content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stats_box {
    padding: 30px 15px;
  }
  
  .stats_icon {
    width: 60px;
    height: 60px;
  }
  
  .stats_icon i {
    font-size: 1.5rem;
  }
  
  .counter {
    font-size: 2.5rem;
  }
  
  .stats_suffix {
    font-size: 1.5rem;
  }
  
  .counter_text {
    font-size: 1rem;
  }
  
  .service_section .container-fluid {
    padding: 0 20px;
  }
  
  .service_section .row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .detail-box h1 {
    font-size: 2rem;
  }
  
  .detail-box p {
    font-size: 1.1rem;
  }
  
  .stats_section {
    padding: 60px 0;
  }
  
  .stats_section .heading_container h2 {
    font-size: 1.8rem;
  }
  
  .stats_section .heading_container p {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .stats_section .heading_container p::before,
  .stats_section .heading_container p::after {
    display: none;
  }
  
  .stats_content {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  
  .stats_box {
    padding: 25px 10px;
  }
  
  .stats_icon {
    width: 50px;
    height: 50px;
  }
  
  .stats_icon i {
    font-size: 1.2rem;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .stats_suffix {
    font-size: 1.2rem;
  }
  
  .counter_text {
    font-size: 0.9rem;
  }
}

/* Ensure 4 cards stay properly aligned with minimum constraints */
.stats_content {
  min-width: 320px; /* Minimum width to maintain layout for 4 cards */
}

.stats_box {
  min-width: 80px; /* Minimum width per card */
}

/* Very small screen optimization */
@media (max-width: 480px) {
  .stats_content {
    gap: 10px;
  }
  
  .stats_box {
    padding: 20px 8px;
  }
  
  .stats_icon {
    width: 45px;
    height: 45px;
  }
  
  .stats_icon i {
    font-size: 1rem;
  }
  
  .counter {
    font-size: 1.8rem;
  }
  
  .stats_suffix {
    font-size: 1rem;
  }
  
  .counter_text {
    font-size: 0.8rem;
  }
}
