/* Custom Styles for Sourav Engineers Website */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 100px; /* Adjusted for top bar and navbar */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Top Bar */
.container-fluid.bg-dark {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #212529 !important; /* Matches navbar bg-dark */
    font-size: 0.9rem;
    z-index: 1000; /* Below navbar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.container-fluid.bg-dark p, .container-fluid.bg-dark a {
    color: #fff;
}

.container-fluid.bg-dark i {
    margin-right: 8px;
    color: #4caf50;
}

.container-fluid.bg-dark a:hover {
    color: #4caf50;
}

.container-fluid.bg-dark .col-md-4 {
    padding: 0.5rem 0; /* Consistent spacing */
}

/* Navbar */
.navbar {
    top: 40px; /* Below top bar */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
    border-radius: 5px;
    height: 60px;
    width: 60px
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    color: #fff !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #4caf50 !important;
}

.navbar .btn-success {
    padding: 0.5rem 1.5rem;
}

/* Hero Carousel */
.carousel-item img {
    height: 70vh;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    bottom: 2rem;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1rem;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-indicators button {
    background-color: #4caf50 !important;
}

/* General Section Styling */
.section {
    padding: 5rem 0;
}

.section h6 {
    color: #4caf50;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a3c34;
    margin-bottom: 2rem;
}

/* Stats Section */
.stats {
    background: #f8f9fa;
}

.stats h3 {
    font-size: 3rem;
    color: #4caf50;
    font-weight: bold;
}

.stats h5 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #1a3c34;
}

.stats p {
    font-size: 0.9rem;
    color: #666;
}

/* About Section */
.about ul {
    list-style: none;
    padding-left: 0;
}

.about li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about li i {
    color: #4caf50;
    margin-right: 10px;
}

.about img {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services .card {
    border: none;
    transition: transform 0.3s;
}

.services .card:hover {
    transform: translateY(-10px);
}

.services .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.services .card-body {
    padding: 1.5rem;
}

.services .card-body h5, .services .card-body p {
    color: #333;
}

.services .btn-outline-success {
    border-color: #4caf50;
    color: #4caf50;
}

.services .btn-outline-success:hover {
    background: #4caf50;
    color: #fff;
}

/* Features Section */
.features .row > div:first-child {
    padding-right: 2rem;
}

.features img {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.features h5 {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: #1a3c34;
}

/* Projects Section */
.projects {
    background: #f8f9fa;
}

.projects .nav-pills .nav-link {
    background: #e9ecef;
    color: #333;
    margin: 0 5px;
    border-radius: 20px;
}

.projects .nav-pills .nav-link.active {
    background: #4caf50;
    color: #fff;
}

.projects .card {
    border: none;
    transition: transform 0.3s;
}

.projects .card:hover {
    transform: translateY(-10px);
}

.projects .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.projects .card-body h5, .projects .card-body p {
    color: #333;
}

/* Quote Section */
.quote form {
    max-width: 500px;
}

.quote .form-control, .quote .form-select {
    border-radius: 5px;
    margin-bottom: 1rem;
}

.quote .btn-success {
    padding: 0.75rem 2rem;
}

.quote img {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Team Section */
.team {
    background: #f8f9fa;
}

.team .card {
    border: none;
    transition: transform 0.3s;
}

.team .card:hover {
    transform: translateY(-10px);
}

.team .card-img-top {
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.team .card-body {
    padding: 1.5rem;
}

.team .card-body h5, .team .card-body p {
    color: #333;
}

/* Testimonial Section */
.testimonial .card {
    border: none;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.testimonial .card i {
    font-size: 2rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.testimonial .card p {
    font-style: italic;
    color: #666;
}

.testimonial .card h5 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #1a3c34;
}

.testimonial .card p:last-child {
    font-size: 0.9rem;
    color: #4caf50;
}

/* Footer */
footer {
    background: #1a3c34;
}

footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #4caf50;
}

footer .social-icons i {
    font-size: 1.5rem;
}

footer .input-group .form-control {
    border-radius: 5px 0 0 5px;
}

footer .input-group .btn {
    border-radius: 0 5px 5px 0;
}

footer img {
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .container-fluid.bg-dark {
        top: 0;
    }

    .navbar {
        top: 60px;
    }

    .container-fluid.bg-dark .col-md-4 {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .container-fluid.bg-dark .text-md-end {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .carousel-item img {
        height: 50vh;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .stats h3 {
        font-size: 2rem;
    }

    .features .row > div:first-child {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .container-fluid.bg-dark .row {
        text-align: center;
    }

    .container-fluid.bg-dark .col-md-4 {
        margin-bottom: 0.5rem;
    }

    .carousel-caption {
        padding: 0.8rem;
        bottom: 1rem;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
}
.blink {
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}