/* CSS Variables for Premium Design System */
:root {
    --zaf-blue: #0062E6;
    --zaf-blue-hover: #004fb8;
    --zaf-dark: #0A192F;
    --zaf-dark-light: #172A45;
    --zaf-gray-dark: #333333;
    --zaf-gray-light: #F8F9FA;
    --zaf-muted: #666666;
    --zaf-border: #E5E5E5;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Styles */
html,
body {
    font-family: var(--font-body);
    color: var(--zaf-gray-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
}

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

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

.bg-primary {
    background-color: var(--zaf-blue) !important;
}

.btn-primary {
    background-color: var(--zaf-blue);
    border-color: var(--zaf-blue);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 2px;
    padding: 0.8rem 1.8rem;
    transition: var(--transition-smooth);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--zaf-blue-hover);
    border-color: var(--zaf-blue-hover);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 2px;
    padding: 0.8rem 1.8rem;
    transition: var(--transition-smooth);
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--zaf-dark);
}

/* Navbar Styling */
.navbar-custom {
    background-color: transparent !important;
    backdrop-filter: none;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-custom.scrolled {
    background-color: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adjust overlay banners padding to accommodate absolute navigation overlay */
.calculator-cta-overlay {
    padding: 7rem 10% 4rem 10% !important;
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.navbar-custom .logo-text-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 0.75rem;
}

.navbar-custom .logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.navbar-custom .logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.navbar-custom .nav-link {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-item.active .nav-link {
    color: var(--zaf-blue);
}

.navbar-custom .contact-phone {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-right: 1.5rem;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--zaf-dark);
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.85) 40%, rgba(10, 25, 47, 0.2) 100%);
    z-index: 1;
}

.hero-carousel .slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ken Burns Zoom Effect */
.hero-carousel .carousel-item.active .slide-img {
    transform: scale(1.12);
}

.hero-carousel .carousel-caption-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    right: 10%;
    z-index: 2;
    color: #ffffff;
    max-width: 650px;
}

.hero-carousel .slide-title {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-carousel .slide-description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-carousel .carousel-item .d-flex.gap-3 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Active states with animation delays for staggered text entry */
.hero-carousel .carousel-item.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-carousel .carousel-item.active .slide-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.hero-carousel .carousel-item.active .d-flex.gap-3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.0s;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: var(--transition-smooth);
    background: transparent;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-carousel .carousel-control-prev {
    left: 3%;
}

.hero-carousel .carousel-control-next {
    right: 3%;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
    transition: var(--transition-smooth);
}

.hero-carousel .carousel-indicators .active {
    background-color: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Flashing Offer Bar */
@keyframes slideInBanner {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.flashing-offer-bar {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--zaf-border);
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Slide-in entry animation */
    animation: slideInBanner 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes badgePulse {
    0%, 100% {
        background-color: var(--zaf-blue);
        box-shadow: 0 0 0 0 rgba(0, 98, 230, 0.4);
    }
    50% {
        background-color: #004FB8;
        box-shadow: 0 0 15px 5px rgba(0, 98, 230, 0.2);
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.flashing-offer-bar .offer-badge {
    background-color: var(--zaf-blue);
    color: #ffffff;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    min-width: 220px;
    
    /* Animations: Flash (pulsing bg/shadow) + Float (bobbing up/down) */
    animation: badgePulse 2s infinite ease-in-out, floatBadge 3s infinite ease-in-out;
}

@keyframes textFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.flashing-offer-bar .offer-text {
    font-weight: 600;
    color: #333333;
    font-size: 0.9rem;
    animation: textFlash 2s infinite ease-in-out;
}

.flashing-offer-bar .btn-get-offer {
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.flashing-offer-bar .btn-get-offer:hover {
    background-color: #222222;
}

.flashing-offer-bar .close-offer {
    background: none;
    border: none;
    color: var(--zaf-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.flashing-offer-bar .close-offer:hover {
    color: #000000;
}

/* Who We Are Section */
.who-we-are-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.section-subtitle {
    color: var(--zaf-blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--zaf-dark);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #E2E8F0;
}

@media (max-width: 991px) {
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 0;
    }
    .stat-item {
        flex: 1 1 50%;
    }
    .stat-item:nth-child(2n)::after {
        display: none;
    }
    .stat-item:last-child::after {
        display: none;
    }
}

.stat-icon-wrapper {
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    color: var(--zaf-blue);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--zaf-dark);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--zaf-muted);
}

/* Our Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--zaf-gray-light);
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--zaf-border);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition-smooth);
}

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

.service-icon-wrapper {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--zaf-dark);
}

.service-card .service-desc {
    font-size: 0.9rem;
    color: var(--zaf-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card .service-link {
    color: var(--zaf-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.service-card .service-link:hover {
    color: var(--zaf-blue-hover);
    transform: translateX(5px);
}

/* Calculate CTA Banner */
.calculator-cta-banner {
    position: relative;
    background: url('assets/calculator_cta.png') no-repeat center center;
    background-size: cover;
    min-height: 320px;
    overflow: hidden;
}

.calculator-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 58%;
    background: linear-gradient(110deg, #0A192F 85%, transparent 85.1%);
    color: #ffffff;
    display: flex;
    align-items: center;
    z-index: 2;
    padding-left: 10%;
    padding-right: 5%;
}

@media (max-width: 991px) {
    .calculator-cta-overlay {
        width: 100%;
        background: rgba(10, 25, 47, 0.9);
        padding: 3rem;
    }
}

.calculator-cta-content {
    max-width: 500px;
}

.calculator-cta-content h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.calculator-cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.calculator-cta-content .btn-calculate {
    background-color: #ffffff;
    color: var(--zaf-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 2px;
    padding: 0.8rem 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.calculator-cta-content .btn-calculate:hover {
    background-color: var(--zaf-blue);
    color: #ffffff;
}

/* Recent Projects */
.projects-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.project-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #ffffff;
    z-index: 2;
}

.project-overlay h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-view-all {
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-view-all:hover {
    background: #000000;
    color: #ffffff;
}

/* Trust Features Bar */
.trust-bar {
    background-color: var(--zaf-dark);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #ffffff;
    position: relative;
}

.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .trust-item:not(:last-child)::after {
        display: none;
    }
    .trust-item {
        margin-bottom: 2rem;
    }
}

.trust-icon-wrapper {
    color: var(--zaf-blue);
    flex-shrink: 0;
}

.trust-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.trust-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Sustainability Banner */
.sustainability-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1200&q=80') no-repeat center center;
    background-size: cover;
    padding: 5rem 0;
    color: #ffffff;
    overflow: hidden;
}

.sustainability-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 45%, rgba(10, 25, 47, 0.6) 100%);
    z-index: 1;
}

.sustainability-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.sustainability-content h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.sustainability-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.sustainability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sustainability-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.sustainability-tag i {
    color: #2ECC71; /* green leaf color */
}

/* Footer Copyright */
.footer-copyright {
    background-color: #050E1A;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modals Styling */
.modal-content-custom {
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header-custom {
    background-color: var(--zaf-dark);
    color: #ffffff;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-header-custom .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.modal-body-custom {
    padding: 2rem;
    background-color: #ffffff;
}

.modal-body-custom label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--zaf-dark);
    margin-bottom: 0.4rem;
}

.modal-body-custom .form-control,
.modal-body-custom .form-select {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--zaf-border);
}

.modal-body-custom .form-control:focus,
.modal-body-custom .form-select:focus {
    border-color: var(--zaf-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 230, 0.15);
}

/* Custom Vector Icons (as SVGs) for Stats */
.svg-stat-worker {
    width: 48px;
    height: 48px;
    fill: var(--zaf-blue);
}
.svg-stat-buildings {
    width: 48px;
    height: 48px;
    fill: var(--zaf-blue);
}
.svg-stat-clients {
    width: 48px;
    height: 48px;
    fill: var(--zaf-blue);
}
.svg-stat-award {
    width: 48px;
    height: 48px;
    fill: var(--zaf-blue);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translateX(-50px);
}

.reveal.reveal-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) !important;
}

/* --- Projects Portfolio Styles --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #E5E5E5;
    color: var(--zaf-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--zaf-blue);
    background-color: var(--zaf-blue);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 98, 230, 0.25);
}

.portfolio-grid .project-card {
    transition: var(--transition-smooth);
}

/* --- Project Details Page Styles --- */
.project-details-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.project-gallery-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.project-main-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.project-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.project-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.project-thumbnail:hover,
.project-thumbnail.active {
    border-color: var(--zaf-blue);
    opacity: 0.9;
    transform: scale(1.03);
}

.project-spec-card {
    background-color: var(--zaf-dark);
    color: #ffffff;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.15);
    position: sticky;
    top: 100px;
    z-index: 10;
}

.project-spec-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--zaf-blue);
    padding-bottom: 0.75rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.spec-value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

.project-narrative h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--zaf-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.project-narrative h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background-color: var(--zaf-blue);
    border-radius: 2px;
}

.project-narrative p {
    color: var(--zaf-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.challenge-solution-box {
    background-color: var(--zaf-gray-light);
    border-left: 4px solid var(--zaf-blue);
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
}

.challenge-box {
    border-left-color: #E74C3C;
    background-color: #FDEDEC;
}

.solution-box {
    border-left-color: #2ECC71;
    background-color: #EAFAF1;
}

.challenge-solution-box h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.challenge-box h4 {
    color: #C0392B;
}

.solution-box h4 {
    color: #27AE60;
}

.challenge-solution-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--zaf-gray-dark);
}

.project-cta-banner {
    background-color: var(--zaf-gray-light);
    border-radius: 8px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid var(--zaf-border);
}

.project-cta-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.project-cta-text p {
    color: var(--zaf-muted);
    margin-bottom: 0;
}

.breadcrumb-custom {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.breadcrumb-custom a {
    color: var(--zaf-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-custom a:hover {
    color: var(--zaf-blue-hover);
}

.breadcrumb-custom .separator {
    color: var(--zaf-muted);
    margin: 0 0.5rem;
}

.breadcrumb-custom .active {
    color: var(--zaf-muted);
}

/* --- Mobile Bottom Navigation Bar Styles --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0.25rem 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    flex: 1;
    min-width: 0;
    text-align: center;
}

.mobile-bottom-nav .nav-item span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--zaf-blue);
    transform: translateY(-2px);
}

/* Adjust page padding on mobile to prevent bottom nav from overlapping content */
@media (max-width: 991px) {
    body {
        padding-bottom: 75px !important;
    }
}

/* --- Site Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--zaf-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preloader-logo {
    margin-bottom: 1.5rem;
}

/* Color definitions for preloader SVG */
.preloader-logo .bar {
    fill: var(--zaf-blue);
    transform-origin: bottom;
    animation: barGrow 1.5s ease-in-out infinite alternate;
}

.preloader-logo .arc {
    stroke: var(--zaf-blue);
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: arcDraw 2s ease-in-out infinite;
}

/* Staggered delays for SVG bars */
.preloader-logo .bar-1 { animation-delay: 0.1s; }
.preloader-logo .bar-2 { animation-delay: 0.2s; }
.preloader-logo .bar-3 { animation-delay: 0.3s; }
.preloader-logo .bar-4 { animation-delay: 0.4s; }
.preloader-logo .bar-5 { animation-delay: 0.5s; }
.preloader-logo .bar-6 { animation-delay: 0.6s; }

@keyframes barGrow {
    0% {
        transform: scaleY(0.2);
    }
    100% {
        transform: scaleY(1.1);
    }
}

@keyframes arcDraw {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -200;
    }
}

.preloader-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.preloader-text .logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.2;
}

.preloader-text .logo-sub {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--zaf-blue);
    letter-spacing: 3px;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.preloader-spinner {
    width: 35px;
    height: 35px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--zaf-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide scrollbar during page load */
body.preloader-active {
    overflow: hidden;
}

/* Responsive adjustments for Hero section on tablet/mobile screens */
@media (max-width: 991px) {
    .hero-carousel .slide-title {
        font-size: 3rem;
    }
    .hero-carousel .slide-description {
        font-size: 1.05rem;
    }
    .hero-carousel .carousel-caption-custom {
        left: 8%;
        right: 8%;
    }
}

@media (max-width: 767px) {
    .hero-carousel {
        height: 85vh; /* slightly shorter to prevent overflow */
        min-height: 500px;
    }
    
    .hero-carousel .carousel-caption-custom {
        top: 55%; /* push slightly down to clear header logo */
        left: 5%;
        right: 5%;
    }
    
    .hero-carousel .slide-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-carousel .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 42px;
        height: 42px;
    }
    
    .hero-carousel .carousel-item .d-flex.gap-3 {
        gap: 0.5rem !important;
    }
    
    .hero-carousel .carousel-item .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel .slide-title {
        font-size: 1.8rem;
    }
    
    .hero-carousel .slide-description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1.25rem;
    }
}

/* Also adjustments for navbar brand text on small mobile screens */
@media (max-width: 430px) {
    .navbar-custom .logo-main {
        font-size: 1.2rem;
    }
    .navbar-custom .logo-sub {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
}

/* --- Design & Build Homes Packages Styles --- */
.packages-section {
    padding: 6rem 0;
    background-color: #F8FAFC;
    border-top: 1px solid var(--zaf-border);
    border-bottom: 1px solid var(--zaf-border);
}

.packages-intro {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.packages-intro .section-subtitle {
    color: var(--zaf-blue);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.packages-intro .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--zaf-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.packages-intro .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #CBD5E1; /* light gray bar */
}

.packages-intro p {
    color: var(--zaf-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.package-card {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
    border-color: var(--zaf-blue);
}

.package-header {
    padding: 1.5rem;
    text-align: center;
    background-color: #ffffff;
    border-bottom: 1px solid #F1F5F9;
}

.package-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--zaf-dark);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.package-price-box {
    padding: 1.75rem 1.5rem;
    text-align: center;
    color: #ffffff;
}

.package-price-box.theme-primary {
    background: linear-gradient(135deg, #0062E6 0%, #004FB8 100%);
}

.package-price-box.theme-dark {
    background: linear-gradient(135deg, #4B5563 0%, #1F2937 100%);
}

.package-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.package-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.package-price .currency {
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.package-area {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    margin: 0;
}

.package-features {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #F8FAFC);
}

.feature-line {
    font-size: 0.95rem;
    color: var(--zaf-gray-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-line-muted {
    font-size: 0.9rem;
    color: var(--zaf-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.feature-highlight-box {
    background-color: #EFF6FF;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--zaf-blue);
    font-weight: 700;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.feature-highlight-box.theme-dark {
    background-color: #F3F4F6;
    color: #374151;
    border-color: rgba(75, 85, 99, 0.1);
}

.package-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: #F8FAFC;
    border-top: 1px solid #F1F5F9;
}

.btn-package-quote {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* --- WhatsApp Floating Button Styles --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: floatBtnPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #0A192F;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes floatBtnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adjust bottom position on mobile screens to prevent overlapping the mobile bottom nav bar */
@media (max-width: 991px) {
    .whatsapp-float-btn {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltips on touch screens */
    }
}

