/* ===== 60-30-10 THEME VARIABLES ===== */
:root {
    /* 60% Dominant: Clean Whites and Off-Whites for spacious, readable layouts */
    --dominant-bg: #ffffff;
    --dominant-light: #f4f7f6;
    
    /* 30% Secondary: Deep Industrial Blue for trust, headers, and structure */
    --primary: #0b3b5c;      
    --primary-dark: #07263b;
    
    /* 10% Accent: Electrical Gold/Orange for CTAs, highlights, and energy */
    --accent: #f5a623;       
    --accent-hover: #e67e22;

    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 35px rgba(11, 59, 92, 0.1);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

body, html {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--dominant-bg);
    overflow-x: hidden; /* Prevent horizontal overflow */
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary);
}

.text-accent { color: var(--accent) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-accent { background-color: var(--accent) !important; }
.section-padding { padding: 6rem 0; }

/* ===== BUTTONS ===== */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(245, 166, 35, 0.5);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== TOPBAR & NAVBAR ===== */
.topbar {
    background: var(--primary-dark);
    color: #e0e6ed;
    font-size: 0.85rem;
    padding: 10px 0;
    font-weight: 600;
}

.topbar a {
    color: #e0e6ed;
    text-decoration: none;
    transition: var(--transition);
}

.topbar a:hover { color: var(--accent); }
.topbar .social-links a { margin-left: 15px; font-size: 1rem; }

.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand img { max-height: 70px; }

.nav-link {
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 12px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::before, .nav-link.active::before { width: 100%; }
.nav-link:hover { color: var(--accent) !important; }

/* ===== HERO SECTION & RELIABLE ANIMATIONS ===== */
.hero-carousel .carousel-item {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 38, 59, 0.9) 0%, rgba(11, 59, 92, 0.6) 20%, transparent, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 8%;
    right: 8%;
    text-align: left;
    max-width: 800px;
}

/* Bulletproof CSS Animations triggered by Bootstrap's .active class */
.hero-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-item.active .hero-anim {
    opacity: 1;
    transform: translateY(0);
}

.carousel-item.active .delay-1 { transition-delay: 0.3s; }
.carousel-item.active .delay-2 { transition-delay: 0.5s; }
.carousel-item.active .delay-3 { transition-delay: 0.7s; }

.carousel-caption h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #e0e6ed;
    margin: 1.5rem 0 2.5rem;
    font-weight: 300;
}

/* ===== ABOUT SECTION ===== */
.about-images { position: relative; height: 500px; }
.about-images img {
    position: absolute;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}
.about-img-1 { width: 70%; height: 350px; top: 0; left: 0; z-index: 1; }
.about-img-2 { width: 60%; height: 300px; bottom: 0; right: 0; z-index: 2; border: 8px solid #fff; }
.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    text-align: center;
    line-height: 1.2;
}
.about-badge span { font-size: 2rem; }

.section-label {
    display: inline-block;
    background: rgba(245, 166, 35, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* ===== WHY US SECTION ===== */
.card-why {
    background: var(--primary-dark);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.card-why i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.card-why:hover {
    background: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-why:hover i { transform: scale(1.1) rotate(5deg); }

/* ===== SERVICES SECTION ===== */
.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.service-card .img-wrapper {
    overflow: hidden;
    height: 240px;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover img { transform: scale(1.08); }

.service-icon-float {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    margin-top: -30px;
    border: 4px solid #fff;
    z-index: 2;
}

/* ===== CTA BANNER (Parallax) ===== */
.parallax-cta {
    background: linear-gradient(rgba(11, 59, 92, 0.85), rgba(7, 38, 59, 0.95)), url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=1600&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.parallax-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

/* ===== TESTIMONIALS (Scrolling Left to Right) ===== */
.testimonial-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: var(--dominant-light);
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    /* Direction reversed for left-to-right as requested */
    animation: marquee-lr 30s linear infinite;
}

.testimonial-marquee:hover .marquee-track { animation-play-state: paused; }

.testimonial-item {
    display: inline-block;
    background: #fff;
    padding: 20px 40px;
    margin: 0 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    white-space: normal;
    width: 400px;
    vertical-align: top;
}

.testimonial-item i { color: var(--accent); }

@keyframes marquee-lr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===== FAQ ===== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 700;
    color: var(--primary);
    padding: 20px;
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.accordion-button::after { filter: invert(0); }
.accordion-button:not(.collapsed)::after { filter: invert(1) brightness(100); }

/* ===== FOOTER ===== */
.footer {
    background: #041522;
    color: #a0b0c0;
    padding: 80px 0 30px;
}
.footer h5 { color: #fff; margin-bottom: 25px; }
.footer a { color: #a0b0c0; text-decoration: none; transition: var(--transition); display: block; margin-bottom: 10px; }
.footer a:hover { color: var(--accent); padding-left: 5px; }
.footer .social-icons a { display: inline-block; padding: 0; margin-right: 15px; font-size: 1.2rem; }

/* ===== FLOATING BUTTONS ===== */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.float-whatsapp { background: #25D366; }
.float-call { background: var(--primary); }
.float-btn:hover { transform: scale(1.1) translateY(-5px); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .carousel-caption h1 { font-size: 3rem; }
    .about-images { height: 400px; margin-bottom: 40px; }
    .about-badge { width: 90px; height: 90px; padding: 10px; }
    .about-badge span { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .carousel-caption { left: 5%; right: 5%; text-align: center; }
    .carousel-caption h1 { font-size: 2.2rem; }
    .section-padding { padding: 4rem 0; }
    .parallax-cta { padding: 60px 0; }
}




/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, rgba(7, 38, 59, 0.92), rgba(11, 59, 92, 0.75)), url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 90px;
    color: #fff;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--accent);
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
    padding: 0;
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== MISSION & VISION CARDS ===== */
.mission-vision-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-bottom: 5px solid var(--accent);
    transition: var(--transition);
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mission-vision-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(245, 166, 35, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.mission-vision-card:hover .icon-wrapper {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}