/* --- Custom Variables --- */
:root {
    --primary-navy: #002147;
    --accent-red: #D32F2F;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --dark-text: #333;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: var(--dark-text);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-navy);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    margin-left: 15px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--accent-red);
}

/* --- Navbar --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0;
}

/* Logo Styling */
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    /* border-radius: 50%; */
    background: #f1f1f1;
    border: #f8f9fa;
}

/* Brand Text Styling */
.brand-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- COMPANY NAME & LOGO ANIMATION --- */

.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    overflow: hidden; /* For animation */
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color:rgba(165, 0, 52, 0.9);
    letter-spacing: 1px;
    animation: slideInRight 0.8s ease-out forwards;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color:var(--primary-navy);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: slideInLeft 1s ease-out forwards;
}

.logo-img {
    height: 60px; /* Navbar ke liye perfect height */
    width: auto;
    transition: all 0.5s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.1) rotate(5deg); /* Logo hover effect */
}

/* --- KEYFRAMES FOR BRAND TEXT --- */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- NAV LINKS ANIMATION --- */

.navbar-nav .nav-link {
    position: relative;
    padding: 10px 15px !important;
    color: #001d3d !important;
    transition: all 0.3s ease;
}

/* Animated Underline Effect */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #a50034;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover {
    color: #a50034 !important;
    transform: translateY(-2px);
}

/* Dropdown Animation */
.animate.slideIn {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

@keyframes slideIn {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: slideIn 0.4s ease;
}
/* Image ko bada aur fill dikhane ke liye */
.process-img-large {
    width: 100%;
    height: 550px; /* Aap ise apne hisaab se 600px bhi kar sakte hain */
    object-fit: cover; /* Isse image stretch nahi hogi, perfectly crop hokar fit hogi */
    display: block;
    transition: transform 0.5s ease;
}

/* Hover karne par halka zoom effect (Optional) */
.img-container:hover .process-img-large {
    transform: scale(1.05);
}

/* Mobile screens ke liye adjustment */
@media (max-width: 991px) {
    .process-img-large {
        height: 350px; /* Tablet aur mobile par height kam rakhi hai */
    }
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 576px) {
    .brand-name { font-size: 1rem; }
    .brand-sub { font-size: 0.5rem; }
    .logo-img { height: 45px; }
}
/* Nav Links Styling */
.nav-link {
    color: var(--primary-navy) !important;
    font-weight: 600;
    margin: 0 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red) !important;
}

/* Dropdown Customization */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    color: var(--accent-red);
    font-weight: bold;
    background-color: #f1f1f1;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* --- Mobile Responsiveness (320px) --- */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .logo-img {
        height: 50px;
    }

    .brand-main {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    .brand-text {
        margin-left: 8px;
    }

    .brand-main {
        font-size: 1rem;
    }

    .brand-sub {
        font-size: 0.6rem;
    }
}

/* --- Hero Slider --- */
.hero-slider .carousel-item {
    height: 90vh;
    position: relative;
    overflow: hidden;
}

/* Video as background */
.slider-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    /* same as background-size: cover */
    z-index: 0;
}

/* Overlay same as background gradient */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* Text above everything */
.carousel-caption {
    bottom: 30%;
    z-index: 2;
}

/* Button */
.btn-primary-custom {
    background-color: var(--accent-red);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid var(--accent-red);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* --- Services Cards --- */
.service-card {
    transition: var(--transition);
    border-left: 5px solid var(--accent-red) !important;
}

.service-card:hover {
    transform: translateX(10px);
    background-color: var(--primary-navy);
    color: white;
}

.service-card:hover h5 {
    color: white !important;
}

/* --- Experience Counter --- */
.experience-section {
    background: linear-gradient(45deg, var(--primary-navy), var(--accent-red));
}

/* --- Why Choose Us --- */
.why-card {
    background: white;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid #ddd;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent-red);
    box-shadow: 10px 10px 20px rgba(185, 0, 92, 0.3) !important;
}

.why-card i {
    color: var(--primary-navy);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-navy);
    color: white;
}

.footer-logo {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.social-links a {
    color: white;
    background: var(--accent-red);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-navy);
}

/* --- RESPONSIVENESS (320px Optimization) --- */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 70vh;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand .logo-img {
        height: 50px;
    }

    .top-bar {
        text-align: center;
    }

    .top-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }

    .experience-section .counter {
        font-size: 2rem;
    }
}

@media (max-width: 320px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .btn-primary-custom {
        width: 100%;
        text-align: center;
    }
}

/* --about section styles -start- */
.value-card {
    transition: 0.3s ease;
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #a50034;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card img {
    transition: 0.5s ease;
    height: 300px;
    object-fit: cover;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(transparent, rgba(165, 0, 52, 0.9)) !important;
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .timeline-item {
        margin-left: 0;
    }
}

/* --about section styles -end- */

/* --building section styles -start- */
.spec-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #a50034 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-card {
    transition: 0.3s ease;
}

.feature-card:hover {
    background-color: #001d3d !important;
}

.feature-card:hover h6,
.feature-card:hover p {
    color: white !important;
}

.feature-card:hover i {
    color: white !important;
}

@media (max-width: 576px) {
    .building-hero h1 {
        font-size: 1.8rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* --building section styles -end- */


/* --water supply section styles -start- */

.utility-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #a50034 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-card {
    transition: 0.3s ease;
}

.feature-card:hover {
    background-color: #001d3d !important;
}

.feature-card:hover h6,
.feature-card:hover p {
    color: white !important;
}

.feature-card:hover i {
    color: white !important;
}

@media (max-width: 576px) {
    .water-hero h1 {
        font-size: 1.8rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* --water supply section styles -end- */
/* --transformer section styles -start- */

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-top-width: 8px !important;
}

@media (max-width: 576px) {
    .power-hero h1 {
        font-size: 1.8rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* --transformer section styles -start- */
/* --wiring section styles -start- */

.text-red {
    color: #a50034 !important;
}

.service-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-box {
    transition: 0.3s ease;
}

.feature-box:hover {
    background-color: #001d3d !important;
    color: white !important;
}

.feature-box:hover p {
    color: #ccc !important;
}

@media (max-width: 576px) {
    .elec-hero h1 {
        font-size: 1.8rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* --wiring section styles -end- */
/* --contact section styles -start- */

.info-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #a50034 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #001d3d !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 29, 61, 0.1) !important;
}

.btn:hover {
    background-color: #8a002c !important;
    transform: scale(1.02);
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2rem !important;
    }

    .info-card {
        padding: 20px !important;
    }
}

/* --contact section styles -end- */