html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
  color: #161618;
}


/* Main content area */
.main-content {
  flex: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Sections */
section {
  width: 100%;
}

.about {
  padding: 3rem 0;
}

.py-5 {
  padding: 3rem 0 !important;
}

.py-4 {
  padding: 2.5rem 0 !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

@media (min-width: 992px) {
  .p-lg-4 {
    padding: 1.5rem !important;
  }
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* About section styling */
.about-heading {
  font-weight: 700;
  font-size: 2.5rem;
  color: #161618;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #46464A;
  max-width: 700px;
}

/* Dark background section */
.bg-dark {
  background-color: #212529 !important;
  color: #ffffff;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: #ffffff !important;
}

/* ==================== CAROUSEL ==================== */
.carousel-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #161618;
    text-align: center;
    font-weight: 700;
}

.carousel-container {
    position: relative;
}

.carousel {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.carousel-item {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.carousel-item.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.carousel-item-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.carousel-item-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.carousel-item-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 119, 182, 0.95);
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 180, 216, 0.7);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.carousel-control:hover {
    background-color: rgba(0, 119, 182, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: #00b4d8;
    border-color: white;
    transform: scale(1.3);
}

/* Carousel Info */
.carousel-info {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    color: #46464A;
    border-top: 2px solid #00b4d8;
}

.slide-counter {
    font-weight: 600;
    color: #0077b6;
}

.auto-play-status {
    color: #00b4d8;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-section {
        padding: 40px 20px;
    }

    .carousel-section h2 {
        font-size: 1.7rem;
    }

    .carousel-inner {
        height: 320px;
    }

    .carousel-item-icon {
        font-size: 3rem;
    }

    .carousel-item-title {
        font-size: 1.4rem;
    }

    .carousel-control {
        padding: 10px 14px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }
}

@media (max-width: 576px) {
    .carousel-inner {
        height: 250px;
    }

    .carousel-item-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .carousel-item-title {
        font-size: 1.1rem;
    }

    .carousel-control {
        padding: 8px 10px;
        font-size: 1rem;
    }

    .carousel-caption {
        font-size: 0.85rem;
        padding: 12px 15px;
    }

    .carousel-info {
        font-size: 0.85rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Typography */
.h4,
.h5,
.h6 {
  font-weight: 600;
}

.h4 {
  font-size: 1.5rem;
}

.h5 {
  font-size: 1.25rem;
}

.h6 {
  font-size: 1rem;
}

/* Color system */
.text-primary,
.btn-primary {
  color: #3447F6 !important;
}

.bg-primary {
  background-color: #3447F6 !important;
}

.btn-primary {
  background-color: #3447F6 !important;
  border-color: #3447F6 !important;
}

.btn-primary:hover {
  background-color: #2537d5 !important;
  border-color: #2537d5 !important;
}

.btn-outline-primary {
  color: #3447F6 !important;
  border-color: #3447F6 !important;
}

.btn-outline-primary:hover {
  background-color: #3447F6 !important;
  border-color: #3447F6 !important;
  color: #ffffff !important;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

/* Footer */
footer {
  flex-shrink: 0;
  background-color:linear-gradient(135deg, #0077b6, #00b4d8)
;
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-heading {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .carousel-item img {
    height: 250px;
    max-width: 500px;
  }

  .carousel-heading {
    font-size: 1.5rem;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 576px) {
  .about-heading {
    font-size: 1.75rem;
  }

  .carousel-item img {
    height: 200px;
    max-width: 100%;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .carousel-indicators li {
    width: 6px;
    height: 6px;
  }

  .d-none {
    display: none !important;
  }

  .d-md-block {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .d-none.d-md-block {
    display: block !important;
  }
}



/* _________________________________ */
/* ==================== DARK MODE ==================== */
/* General elements */
.dark-theme body {
  background-color: #121212;
  color: #eaeaea;
}

.dark-theme .about-heading {
  color: #ffffff;
}

.dark-theme .about-text {
  color: #cfcfcf;
}

/* Containers and sections */
.dark-theme .carousel-section {
  background-color: #1e1e1e;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.dark-theme .carousel {
  background-color: #1b1b1b;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

.dark-theme .carousel-section h2 {
  color: #e4e4e4;
}

/* Carousel captions and controls */
.dark-theme .carousel-caption {
  background-color: rgba(0, 119, 182, 0.85);
  color: #ffffff;
}

.dark-theme .carousel-control {
  background-color: rgba(0, 180, 216, 0.6);
}

.dark-theme .carousel-control:hover {
  background-color: rgba(0, 180, 216, 0.9);
}

/* Carousel info */
.dark-theme .carousel-info {
  background-color: #222;
  color: #bcbcbc;
  border-top: 2px solid #00b4d8;
}

/* Buttons */
.dark-theme .btn-primary {
  background-color: #005f73 !important;
  border-color: #00b4d8 !important;
  color: #ffffff !important;
}

.dark-theme .btn-primary:hover {
  background-color: #00b4d8 !important;
  border-color: #00b4d8 !important;
}

/* Footer */
.dark-theme footer {
  background: linear-gradient(135deg, #001f33, #00324e);
  color: #eaeaea;
}

/* Optional subtle animations */
.dark-theme .about-heading,
.dark-theme .carousel-section h2 {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* ============================================
   TASK 5: ANIMATED NUMBER COUNTER STYLES
   ============================================ */

.stats-section {
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
  padding: 60px 20px;
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.2);
}

.stats-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 35px 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00b4d8, #0077b6);
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 0;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 119, 182, 0.3);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
  animation: bounceIcon 2s ease infinite;
}

@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #0077b6;
  margin: 15px 0 10px 0;
  line-height: 1;
  display: block;
  min-height: 60px;
}

.stat-label {
  font-size: 1.1rem;
  color: #495057;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  display: block;
}

/* Animation for counting */
.stat-number.counting {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-section h2 {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }
  
  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .stat-item {
    padding: 25px 15px;
  }
  
  .stat-number {
    font-size: 2.5rem;
    min-height: 45px;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .stat-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 40px 15px;
    margin: 30px 0;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
}
/* === Scroll Progress Bar (under header) === */
#scrollProgress {
  position: fixed;
  top: 73px;
  left: 0;
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #003366, #004c99, #0066cc);
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.6);
  transition: width 0.25s ease-out;
  z-index: 9999;
}


.dark-theme #scrollProgress {
  background: linear-gradient(90deg, #66a6ff, #007cf0, #00dfd8);
  box-shadow: 0 0 10px rgba(0, 124, 240, 0.6);
}