:root {
    --primary-brown: #b87132;
    --primary-blue: #02055b;
    --light-brown: #c88548;
    --light-blue: #1a1f8a;
    --accent-brown: #b87132;
}

html {
    scroll-behavior: smooth;
}

.hero-section {
    /* background: linear-gradient(135deg, var(--primary-brown) 0%, var(--primary-blue) 100%); */
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/offset.jpg') center/cover;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #201a31; /* Dark blue-black color */
    opacity: 0.75;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.navbar {
    height: 186px;
    transition: all 0.5s ease; /* Add smooth transition */
}

.navbar.scrolled {
    height: 80px; /* Smaller height when scrolled */
}

.mb-15 {
    margin-bottom: 1.5em !important;
}

.navbar-brand img {
    border-radius: 5px;
    padding: 4px;
    max-height: 120px;
    height: 160px;
    transition: all 0.5s ease; /* Add smooth transition for logo */
}

.navbar.scrolled .navbar-brand img {
    max-height: 50px; /* Smaller logo when scrolled */
    height: 50px;
}

.navbar-dark {
    /* background-color: var(--primary-blue) !important; */
    transition: all 0.5s ease;
}

.navbar-dark.scrolled {
    background-color: rgba(2, 5, 91, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.5s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-brown) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-brown) !important;
    font-weight: 600;
}

.navbar-collapse {
    text-align: right;
    align-self: self-start;
}

.section-padding {
    padding: 60px 0 20px 0 ;
}

.section-title {
    color: var(--primary-brown);
    font-weight: bold;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
}

.card {
    transition: transform 0.5s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.bg-primary {
    background-color: var(--primary-brown) !important;
}

.bg-secondary {
    background-color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-brown);
    border-color: var(--primary-brown);
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--light-brown);
    border-color: var(--light-brown);
    transform: translateY(-2px);
}

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

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

.text-primary {
    color: var(--primary-brown) !important;
}

.text-secondary {
    color: var(--primary-blue) !important;
}

.text-brown {
    color: var(--primary-brown) !important;
}

.services-section {
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-brown) 100%); */
    color: white;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/offset.jpg') center/cover;
    z-index: 1;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #201a31; /* Dark blue-black color */
    opacity: 0.75;
    z-index: 2;
}

.services-section .container {
    position: relative;
    z-index: 3;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgb(195 123 10);
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.service-icon i {
    font-size: 24px;
    color: white;
}

.stats-section {
    background: var(--primary-brown);
    color: white;
}

.stats-counter {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.why-choose-section {
    background: #f8f9fa;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
}

p.testimonials::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-brown);
    font-family: Georgia, 'Times New Roman', serif;
}

p.testimonials::after {
    content: '”';
    position: absolute;
    bottom: 35px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-brown);
    font-family: Georgia, 'Times New Roman', serif;
}

footer {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

footer a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-brown) !important;
}

footer h5 {
    color: white !important;
}

footer .text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

.timeline-item {
    border-left: 3px solid var(--primary-brown);
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--primary-brown);
}

.mission-vision-values {
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-brown));
    color: white;
}

.quality-section {
    background-color: #f8f9fa;
}

.contact-info {
    background-color: var(--primary-brown);
    color: white;
    padding: 2rem;
    border-radius: 10px;
}

.specialist-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.infrastructure-feature {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-brown);
}

.sustainability-banner {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.sustainability-banner h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 186px; /* Default navbar height */
}

@media (max-width: 991px) {
    section {
        scroll-margin-top: 80px; /* Smaller offset for mobile */
    }
}

/* Image styling */
.about-image, .mission-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Vendor Carousel Styles */
.vendor-carousel-container {
    position: relative;
}

.vendor-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.vendor-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.vendor-card {
    flex: 0 0 calc(100% / 3); /* Show 3 items */
    box-sizing: border-box;
    padding: 0 15px;
    text-align: center;
}

.vendor-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.vendor-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.vendor-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: opacity 0.5s ease-in-out;
}

#vendorName {
    transition: opacity 0.3s ease-in-out;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    z-index: 10;
}

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

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

/* Navigation dots */
.vendor-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.vendor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.vendor-dot:hover {
    background-color: #8B4513;
    transform: scale(1.1);
}

.vendor-dot.active {
    background-color: #8B4513;
    transform: scale(1.2);
}

.area-image-wrapper {
    width: 225px;
    height: 225px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.area-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.py-5 {
    padding-top: 0.75rem !important;
    padding-bottom: 1px !important;
}

.hero-text {
    max-width: 800px;
    text-align: left;
}

.hero-title {
    font-size: 2.3rem;
    /* font-weight: bold; */
    margin-bottom: 1.5rem;
    color: var(--primary-brown);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: var(--primary-color-dark);
    text-decoration: none;
}

.gangue-d {
    max-width: 85px;
    background-color: var(--primary-brown);
    margin: 10px 0 20px;
    max-height: 25px;
    max-width: 140px;
    width: 113px;
    height: 3px;
}

/* Gallery Carousel Styles */
.gallery-carousel-container {
    position: relative;
    margin-bottom: 2rem;
}

.gallery-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-card {
    flex: 0 0 calc(100% / 3);
    box-sizing: border-box;
    padding: 0 10px;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(184, 113, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background-color: var(--light-brown);
    transform: scale(1.2);
}

.gallery-dot.active {
    background-color: var(--primary-brown);
    transform: scale(1.3);
}

/* Area cards improvements */
.area-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.area-header {
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.area-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.area-header .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-card {
        flex: 0 0 100%;
    }
    
    .gallery-image-wrapper {
        height: 200px;
    }
    
    .vendor-card {
        flex: 0 0 100%;
    }
    
    .area-header {
        padding: 1.5rem 1rem;
    }
    
    .area-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .gallery-card {
        flex: 0 0 50%;
    }
    
    .vendor-card {
        flex: 0 0 50%;
    }
}

.service-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
