/* Custom CSS for RudrraServices Home Page */

/* --- General & Variables --- */
:root {
    --rudrra-blue: #007bff; /* Primary Blue */
    --rudrra-dark-blue: #0056b3; /* Darker Blue */
    --rudrra-light-blue: #e6f0ff; /* Lighter Blue for backgrounds */
    --rudrra-yellow: #ffc107; /* Warning/Accent Yellow */
    --rudrra-dark-yellow: #e0a800; /* Darker Yellow on hover */
    --rudrra-green: #28a745; /* Success Green */
    --rudrra-red: #dc3545; /* Danger Red (for Angular icon) */
    --rudrra-info: #17a2b8; /* Info Blue (for React icon) */
    --rudrra-purple: #6f42c1; /* Custom Purple */
    --rudrra-orange: #fd7e14; /* Custom Orange */

    --text-dark: #343a40;
    --text-muted: #6c757d;
    --text-secondary: #495057;
    --bg-light: #f8f9fa;
    --section-padding: 80px;
}

body {
    font-family: 'Poppins', sans-serif; /* Using Poppins for a modern feel */
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
}

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

.text-success {
    color: var(--rudrra-green) !important;
}

.text-warning {
    color: var(--rudrra-yellow) !important;
}

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

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

.text-danger {
    color: var(--rudrra-red) !important;
}

.text-info {
    color: var(--rudrra-info) !important;
}

.text-purple {
    color: var(--rudrra-purple) !important;
}

.text-orange {
    color: var(--rudrra-orange) !important;
}


/* --- Reusable Styles (for consistency across sections) --- */
section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1; /* Ensure content is above any background elements */
}

.bg-light-gradient {
    background: linear-gradient(to bottom, var(--bg-light), #e9ecef);
}

.bg-gradient-light-to-dark {
    background: linear-gradient(135deg, var(--rudrra-blue), var(--rudrra-dark-blue));
    color: #fff;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* WOW.js Integration for scroll animations */
.wow {
    visibility: hidden;
}

/* --- Hero Section with Carousel --- */
.hero-carousel-section {
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    position: relative;
}

#heroCarousel {
    height: 100%;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 50, 0.85), rgba(0, 123, 255, 0.5)); /* Stronger overlay */
    z-index: 0;
}

.carousel-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

    .carousel-content h1 {
        font-size: 4rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
    }

    .carousel-content p.lead {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

.btn-group-lg .btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px; /* Make outline button border visible */
}

.btn-group-lg .btn-warning:hover {
    background-color: var(--rudrra-dark-yellow) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

.btn-group-lg .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Carousel Controls */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

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


/* --- About Us Section --- */
#about {
    background-color: #fff;
}

.about-image {
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

    .about-image:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25) !important;
    }

#about h2.display-5 {
    font-size: 3.2rem;
}

#about h3.h4 {
    font-size: 1.8rem;
}


/* --- Our Services Section --- */
.services-section {
    background-color: var(--bg-light);
}

#services h2.display-5 {
    font-size: 3.2rem;
}

.service-card-link {
    text-decoration: none;
    display: block;
    height: 100%; /* Ensure card takes full height of column */
}

.service-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        border-color: var(--rudrra-blue);
    }

    .service-card .icon-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 90px;
        height: 90px;
        background-color: var(--rudrra-light-blue);
        border-radius: 50%;
        margin-bottom: 20px;
        transition: all 0.3s ease;
    }

    .service-card:hover .icon-wrapper {
        background-color: var(--rudrra-blue);
        transform: rotate(5deg);
    }

    .service-card .icon-wrapper i {
        font-size: 2.8rem;
        color: var(--rudrra-blue); /* Default icon color */
        transition: all 0.3s ease;
    }
    /* Specific icon color overrides for hover */
    .service-card:hover .icon-wrapper .text-primary {
        color: #fff !important;
    }

    .service-card:hover .icon-wrapper .text-danger {
        color: #fff !important;
    }

    .service-card:hover .icon-wrapper .text-info {
        color: #fff !important;
    }

    .service-card:hover .icon-wrapper .text-success {
        color: #fff !important;
    }

    .service-card:hover .icon-wrapper .text-warning {
        color: #fff !important;
    }

    .service-card:hover .icon-wrapper .text-purple {
        color: #fff !important;
    }

    .service-card:hover .icon-wrapper .text-orange {
        color: #fff !important;
    }


    .service-card h5 {
        font-size: 1.5rem;
        color: var(--text-dark); /* Ensure text remains dark */
    }


/* --- Meet Our Team Section --- */
.team-section {
    /* Using the gradient background already defined */
    padding-bottom: var(--section-padding);
}

.team-card {
    background-color: #fff;
    border: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    }

.team-img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images fill without distortion */
    border-bottom: 5px solid var(--rudrra-yellow); /* Accent line */
}

.team-card .card-body {
    padding: 25px;
}

.team-card .card-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.team-card .text-muted {
    font-size: 1rem;
}

.team-card .btn {
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 8px 20px;
}

    .team-card .btn:hover {
        background-color: var(--rudrra-blue);
        color: #fff;
    }


/* --- Contact Us Section --- */
.contact-section {
    background-color: #f0f2f5; /* Slightly darker light background */
}

.contact-image {
    max-height: 550px;
    object-fit: contain; /* Ensure image fits well */
    transition: transform 0.4s ease-in-out;
}

    .contact-image:hover {
        transform: scale(1.02);
    }

.contact-form-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

    .contact-form-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }

.form-floating .form-control {
    border-radius: 8px;
    height: calc(3.5rem + 2px); /* Standard Bootstrap floating label height */
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-floating textarea.form-control {
    min-height: 120px; /* Ensure textarea has enough height */
}

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

    .btn-primary:hover {
        background-color: var(--rudrra-dark-blue);
        border-color: var(--rudrra-dark-blue);
    }


/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .carousel-content h1 {
        font-size: 3.5rem;
    }

    .carousel-content p.lead {
        font-size: 1.6rem;
    }

    .display-5 {
        font-size: 2.8rem;
    }

    .service-card h5 {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel-section, .carousel-item {
        height: 75vh;
    }

    .carousel-content h1 {
        font-size: 2.8rem;
    }

    .carousel-content p.lead {
        font-size: 1.4rem;
    }

    .btn-group-lg .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    #about .col-md-6.order-md-2, #about .col-md-6.order-md-1 {
        order: unset !important; /* Reset order on mobile for natural flow */
    }

    .about-image {
        margin-bottom: 30px;
    }

    .about-image {
        max-height: 400px;
    }

    #about h2.display-5 {
        font-size: 2.5rem;
    }

    #about h3.h4 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 2.5rem;
    }

    .service-card .icon-wrapper {
        width: 80px;
        height: 80px;
    }

        .service-card .icon-wrapper i {
            font-size: 2.5rem;
        }

    .team-img {
        height: 200px;
    }

    .team-card .card-title {
        font-size: 1.4rem;
    }

    .team-card .text-muted {
        font-size: 0.9rem;
    }

    .contact-image {
        margin-bottom: 30px;
    }

    .contact-form-card {
        padding: 30px !important;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section, .carousel-item {
        height: 65vh;
    }

    .carousel-content h1 {
        font-size: 2.2rem;
    }

    .carousel-content p.lead {
        font-size: 1.2rem;
    }

    .btn-group-lg .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 60px 0;
    }

    #about h2.display-5 {
        font-size: 2.2rem;
    }

    #about h3.h4 {
        font-size: 1.3rem;
    }

    .display-5 {
        font-size: 2.2rem;
    }

    .service-card h5 {
        font-size: 1.3rem;
    }

    .team-img {
        height: 180px;
    }

    .team-card .card-title {
        font-size: 1.2rem;
    }

    .contact-image {
        max-height: 400px;
    }

    .contact-form-card {
        padding: 25px !important;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section, .carousel-item {
        height: 60vh;
    }

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

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

    .btn-group-lg .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    section {
        padding: 40px 0;
    }

    #about h2.display-5 {
        font-size: 1.8rem;
    }

    #about h3.h4 {
        font-size: 1.1rem;
    }

    #about p.lead {
        font-size: 1rem;
    }

    #about .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .service-card .icon-wrapper {
        width: 70px;
        height: 70px;
    }

        .service-card .icon-wrapper i {
            font-size: 2rem;
        }

    .service-card h5 {
        font-size: 1.1rem;
    }

    .team-img {
        height: 220px; /* Adjust height for smaller screens */
    }

    .team-card .card-title {
        font-size: 1.1rem;
    }

    .team-card .text-muted {
        font-size: 0.8rem;
    }

    .contact-form-card {
        padding: 20px !important;
    }

    .btn-primary.btn-lg {
        font-size: 1rem;
        padding: 12px 25px;
    }
}
