/* ============================================
   MODERN FLUID DESIGN - Inspired by FreshCart
   Bootstrap-style Grid System + Modern Components
   ============================================ */

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #3d4f58;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER SYSTEM */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* GRID SYSTEM */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 15px; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 15px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }

/* MODERN HEADER - Fluid & Clean */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-logo:hover {
  color: #0052a3;
  text-decoration: none;
}

/* MODERN NAVIGATION */
.nav {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-link {
  color: #3d4f58;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #0066cc;
  text-decoration: none;
}

.nav-link.active {
  background-color: #0066cc;
  color: #fff;
}

.nav-link.active:hover {
  background-color: #0052a3;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #3d4f58;
  padding: 0.5rem;
}

/* CAROUSEL/HERO SECTION - Full Width & Fluid */
.carousel-section {
  background: #f8f9fa;
  padding: 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.carousel-section .container {
  max-width: 100%;
  padding: 0;
}

/* IMAGE CAROUSEL */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Carousel Dots - Perfect Circles */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex-shrink: 0;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

.dot.active {
  background-color: #fff;
  transform: scale(1.3);
}

/* Placeholder for missing images */
.carousel-img[src*="images/"] {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img[src*="images/"]::before {
  content: '📊';
  font-size: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ABOUT US SECTION */
.about-section {
  background-color: #f8f9fa;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #3d4f58;
  margin-bottom: 2rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  flex-shrink: 0;
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-text strong {
  font-size: 1.125rem;
  color: #1a1d29;
  font-weight: 600;
}

.highlight-text span {
  font-size: 0.95rem;
  color: #5c6c75;
}

.about-image {
  flex: 0 0 45%;
  max-width: 45%;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive for About Section */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-image {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .about-image img {
    height: 300px;
  }
  
  .about-description {
    font-size: 1rem;
  }
  
  .highlight-text strong {
    font-size: 1rem;
  }
}

/* BUTTONS - Modern & Rounded */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn-primary {
  background-color: #fff;
  color: #0066cc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #0066cc;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* SECTION SPACING */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1d29;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #5c6c75;
}

/* SERVICE ROW - Alternating Image/Text Layout */
.service-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.service-row:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #0066cc;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row-reverse {
  flex-direction: row-reverse;
}

.service-image {
  flex: 0 0 40%;
  max-width: 40%;
}

.service-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-content {
  flex: 1;
}

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

.service-text {
  font-size: 1.125rem;
  color: #5c6c75;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.service-features li {
  font-size: 1rem;
  color: #3d4f58;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.service-features li:last-child {
  border-bottom: none;
}

/* Responsive for Service Rows */
@media (max-width: 768px) {
  .service-row,
  .service-row-reverse {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-image {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .service-image img {
    height: 180px;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
  
  .service-text {
    font-size: 1rem;
  }
}

/* CARD SYSTEM - Rounded Corners */
.card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1d29;
  margin-bottom: 0.75rem;
}

.card-text {
  color: #5c6c75;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* FEATURE BOXES */
.feature-box {
  background-color: #f8f9fa;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1d29;
  margin-bottom: 0.5rem;
}

.feature-text {
  color: #5c6c75;
  font-size: 0.95rem;
}

/* STATS SECTION */
.stats-section {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
  padding: 3rem 0;
  border-radius: 1rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1d29;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.25rem;
  color: #5c6c75;
  margin-bottom: 2rem;
}

/* FOOTER */
.site-footer {
  background-color: #1a1d29;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-title {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0066cc;
  text-decoration: none;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* UTILITIES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
  .col-lg-3, .col-lg-4, .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .carousel-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
  }
  
  .col-md-6, .col-md-4, .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .carousel-title {
    font-size: 2rem;
  }
  
  .carousel-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .carousel-title {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
}
