
html {
  scroll-behavior: smooth;
}

:root {
    --font: 'Poppins', sans-serif;
    
    --color: #9176FF;
    --bg-color: #f4f4f4;
    
    --primary-green: #2e8b57;
    --secondary-green: #3cb371;
    --primary-blue: #1e90ff;
    --secondary-blue: #4682b4;
    --primary-red: #ff4500;
    --secondary-red: #dc143c;
    --black: #212121;
    --light-gray: #f5f5f5;
}
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
}
.background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
}

body {
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--black);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    /*background-color: var(--light-gray);*/
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.navbar {
    /*background: rgba(255, 255, 255, 0.4);*/
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(2px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display:flex;
    justify-content: center;
    color:#f5f5f5
}


#dropdownMenu {
    transition: all 0.3s ease;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    display: block; 
}

#dropdownMenu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}

#dropdownMenu a {
    color: var(--black); /* Change to your desired text color */

}

#dropdownMenu a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Light hover effect */

}

.hero {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.5) 50%);
    color: white;
}

.card {
    transition: all 1.0s ease;
    background: transparent;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.urban-card {
    border-top: 4px solid var(--primary-blue);
}

.rural-card {
    border-top: 4px solid var(--primary-green);
    background: transparent;
}

.impact-card {
    border-top: 4px solid var(--primary-red);
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
}

.btn-secondary1 {
    background-color: transparent;
    color: white;
}

.btn-secondary {
    background-color: primary-blue;
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-blue);
}

.btn-alert {
    background-color: var(--primary-red);
    color: white;
}

.btn-alert:hover {
    background-color: var(--secondary-red);
}

.stat-item {
    border-left: 3px solid var(--primary-green);
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(20px); 
    
}

.stat-item:nth-child(2) {
    border-left-color: var(--primary-blue);
}

.stat-item:nth-child(3) {
    border-left-color: var(--primary-red);
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.mySlides {
    display: none; 
}

img {
    width: 100%;
    height: auto;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green), var(--primary-blue));
}

.footer {
    background-color: var(--black);
    color: white;
    margin-top: auto; 
    padding: 1rem
}

.footer a:hover {
    color: var(--primary-green);
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.9); /* 90% opaque */
}

.bg-gray-50 {
    background-color: rgba(245, 245, 245, 0.9); /* 90% opaque */
}

/* Our Work */
.work-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.work-area h3 {
  margin-bottom: 0.5rem;
}

.work-area p {
  margin-bottom: 0;
}

/* PROJECTS SECTIONN */
.mySwiper{
    max-width: 1120px;
    width: 100%;
    padding: 50px 10px;
    background: none !important;
    background-color: transparent !important;
}

.swiper.container{
    margin: 0 40px;
    overflow: hidden;
    background: none !important;
    background-color: transparent !important;
}
.swiper-slide{
    overflow: hidden;
    background: none !important;
        background-color: transparent !important;
}

.imageBox,
.card-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
    background: none !important;
    background-color: transparent !important;
}

.imageBox{
    position: relative;
    row-gap: 5px;
    padding: 25px 0;
}

.imageBox {
  position: relative;
  height: 300px; /* adjust as needed */
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.imageBox .image {
  height: 100%;
  width: 100%;
}

.imageBox .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; 
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.card-info{
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.card-info h2{
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    text-align: left;
}


.swiper-button-next::after,
.swiper-button-prev::after{
    position: absolute;
    font-style: 2rem;
    font-weight: bold;
    padding: 10px;
    color: #1e90ff;

}

.swiper-button-next::after{
    right: -15px;
}

.swiper-button-prev::after{
    left: -15px;
}

.swiper-pagination{
    width: 26px;
    height: 7px;
    border-radius: 25px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mySwiper {
        padding: 30px 5px; /* Reduced padding on mobile */
    }
    
    .swiper-container {
        margin: 0 10px; /* Even smaller margins on mobile */
    }
    
    .imageBox {
        height: 250px; /* Slightly smaller image height on mobile */
        padding: 15px 0;
    }
    
    .card-info {
        padding: 15px 0;
    }
    
    .card-info h2 {
        font-size: 18px; /* Slightly smaller text on mobile */
    }
    
    /* Make navigation arrows smaller and better positioned on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
        margin-top: -15px; /* Center vertically */
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem; /* Smaller arrows on mobile */
    }
    
    /* Hide navigation arrows on very small screens */
    @media (max-width: 480px) {
        .swiper-button-next,
        .swiper-button-prev {
            display: none;
        }
    }
    
    /* Adjust pagination for mobile */
    .swiper-pagination {
        bottom: 10px;
    }
    
    .swiper-pagination-bullet {
        width: 20px;
        height: 6px;
        margin: 0 3px;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
    .mySwiper {
        padding: 20px 5px;
    }
    
    .imageBox {
        height: 200px;
        padding: 10px 0;
    }
    
    .card-info {
        padding: 10px 0;
        gap: 6px;
    }
    
    .card-info h2 {
        font-size: 16px;
        line-height: 1.3;
    }
}

@media (min-width: 768px) {
    .timeline-item:nth-child(odd) {
        padding-right: 50px;
        padding-left: 0;
        text-align: right;
    }
    
    .timeline-item:nth-child(odd)::before {
        left: auto;
        right: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }
}
