/* =========================================
   Variables & Global Settings (60-30-10 Rule)
========================================= */
:root {
    --color-dominant: #F8F9FA; /* 60% */
    --color-secondary: #0056B3; /* 30% */
    --color-dark: #1A1D20;
    --color-accent: #FF9F1C; /* 10% */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scroll */
    font-family: var(--font-body);
    background-color: var(--color-dominant);
    color: #333;
}

.logo {
    max-height: 50px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a { text-decoration: none; }

/* =========================================
   Topbar & Navbar
========================================= */
.topbar {
    background-color: var(--color-secondary);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar a { color: #fff; margin-right: 15px; transition: color 0.3s; }
.topbar a:hover { color: var(--color-accent); }

.navbar {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-weight: 800;
    color: var(--color-secondary) !important;
    font-size: 1.5rem;
}
.nav-link {
    font-weight: 600;
    color: var(--color-dark) !important;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--color-accent) !important; }

/* =========================================
   Hero Section
========================================= */
.hero-slide {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 30, 70, 0.6);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.hero-content h1 { font-size: 3.5rem; text-transform: uppercase; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }

/* =========================================
   Buttons
========================================= */
.btn-custom {
    background-color: var(--color-accent);
    color: #fff;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* =========================================
   About Overlapping Images
========================================= */
.about-image-group {
    position: relative;
    height: 500px;
}
.about-img {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}
.about-img:hover { transform: translateY(-10px); z-index: 10; }
.img-1 { width: 60%; top: 0; left: 0; z-index: 3; }
.img-2 { width: 50%; top: 20%; right: 0; z-index: 2; }
.img-3 { width: 55%; bottom: 0; left: 20%; z-index: 4; border: 5px solid #fff; }
.experience-badge {
    position: absolute;
    bottom: -20px; right: 20px;
    background: var(--color-accent);
    color: #fff;
    padding: 20px;
    border-radius: 50%;
    text-align: center;
    width: 120px; height: 120px;
    display: flex; flex-direction: column; justify-content: center;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(255,159,28,0.4);
}
.experience-badge h3 { margin: 0; font-size: 2rem; }

/* =========================================
   Parallax CTA Banner
========================================= */
.parallax-banner {
    background-image: url('https://images.unsplash.com/photo-1545259733-41a334cbdf08?auto=format&fit=crop&q=80'); /* AC/Cooling related bg */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: #fff;
    text-align: center;
}
.parallax-banner::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 86, 179, 0.85); /* 30% color overlay */
}
.parallax-content { position: relative; z-index: 2; }

/* =========================================
   Why Us (Dark Section)
========================================= */
.why-us-section {
    background-color: var(--color-dark);
    color: #fff;
    padding: 80px 0;
}
.icon-box {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.icon-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: var(--color-accent);
}
.icon-box i { font-size: 3rem; color: var(--color-accent); margin-bottom: 20px; }

/* =========================================
   Services Cards
========================================= */
.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
}
.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-img { 
    height: 100%; overflow: hidden; }
.service-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.1); }
.service-body { padding: 25px; text-align: center; }
.service-body h4 { color: var(--color-secondary); }

/* =========================================
   Page Headers (Internal Pages)
========================================= */
.page-header {
    background: linear-gradient(135deg, rgba(0, 87, 179, 0.589) 0%,  rgba(26, 29, 32, 0.692) 100%), url('img/carousel-1.jpg') top/cover;
    padding: 120px 0 60px;
    color: #fff;
    text-align: center;
}
.breadcrumb { justify-content: center; background: transparent; }
.breadcrumb-item a { color: var(--color-accent); }
.breadcrumb-item.active { color: #fff; }

/* =========================================
   Floating Buttons
========================================= */
.floating-btns {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.btn-whatsapp { background-color: #25D366; }
.btn-call { background-color: var(--color-secondary); }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-image-group { height: 350px; margin-bottom: 50px; }
    .hero-content h1 { font-size: 2.25rem !important;  
        white-space: normal; text-align: center; 
    }
    .experience-badge { width: 90px; height: 90px; right: 0; }
    .experience-badge h3 { font-size: 1.5rem; }
    .topbar { display: none; } /* hide on very small screens for cleaner mobile view */
}



/* =========================================
   Custom Hero Animations (Triggers on Active Slide)
========================================= */
.carousel-item .hero-content h1,
.carousel-item .hero-content p,
.carousel-item .hero-content a {
    opacity: 0; /* Hidden by default */
}

.carousel-item.active .hero-content h1 {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.3s;
}

.carousel-item.active .hero-content p {
    animation: slideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.6s;
}

.carousel-item.active .hero-content a {
    animation: slideInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.9s;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-150px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(150px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   New Step-by-Step Section
========================================= */
.step-box {
    position: relative;
    padding: 40px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    z-index: 2;
}
.step-box:hover {
    transform: translateY(-10px);
}
.step-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 5px solid var(--color-dominant);
    z-index: 3;
}
.step-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin: 20px 0;
}




/* =========================================
   Cinematic Hero Section & Animations
========================================= */
.hero-slide {
    height: 85vh; /* Slightly taller for more impact */
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Keeps the zoom effect contained */
}

/* 1. Ken Burns Background Zoom Effect */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1);
    transition: transform 7s linear; /* Smooth, continuous zoom */
}
.carousel-item.active .hero-bg {
    transform: scale(1.15); /* Zooms in when slide is active */
}

/* 2. Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Darker on the left for text readability, fading to right */
    background: linear-gradient(90deg, rgba(0, 30, 70, 0.9) 0%, rgba(0, 30, 70, 0.4) 100%);
    z-index: 2;
}

/* 3. Content Staggered Animations */
.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}
.hero-content .hero-badge,
.hero-content h1,
.hero-content p,
.hero-content .hero-btn-group {
    opacity: 0; /* Hidden initially */
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 159, 28, 0.15);
    color: var(--color-accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid var(--color-accent);
    backdrop-filter: blur(5px);
}

/* Animation Triggers */
.carousel-item.active .hero-badge {
    animation: slideInDown 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.2s;
}
.carousel-item.active h1 {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.5s;
    font-size: 4rem; /* Larger heading */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.carousel-item.active p {
    animation: slideInRight 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.8s;
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.carousel-item.active .hero-btn-group {
    animation: slideInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 1.1s;
}

/* 4. Button Pulse Effect */
.btn-pulse {
    box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.7);
    animation: pulseGlow 2s infinite;
}

/* Custom Indicators (Dots) */
.carousel-indicators {
    margin-bottom: 2rem;
    z-index: 10;
}
.carousel-indicators [data-bs-target] {
    width: 30px;
    height: 5px;
    border-radius: 5px;
    background-color: #fff;
    margin: 0 5px;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: none;
}
.carousel-indicators .active {
    opacity: 1;
    background-color: var(--color-accent);
    width: 45px; /* Active dot is wider */
}

/* Keyframes */
@keyframes slideInDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-150px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(150px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 159, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 28, 0); }
}