/* Custom Styles for Active Contracting LLC */

/* Navigation Styles */
nav {
    background-color: #000000;
    border-bottom: 2px solid #facc15;
}

.navbar-nav .nav-link {
    color: white;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #facc15, #eab308);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: #facc15;
    transform: translateY(-3px);
    background: rgba(250, 204, 21, 0.1);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Phone Icon and Number Styles */
.nav-phone {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: linear-gradient(135deg, transparent, rgba(250, 204, 21, 0.1));
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.nav-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-phone:hover::before {
    left: 100%;
}

.nav-phone i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.nav-phone:hover {
    color: #facc15;
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.2));
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 5px 20px rgba(250, 204, 21, 0.3);
}

.nav-phone:hover i {
    transform: scale(1.1) rotate(10deg);
    animation: phoneRing 0.5s ease-in-out;
}

@keyframes phoneRing {
    0%, 100% { transform: scale(1.1) rotate(10deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(15deg); }
}

/* Cool Mobile Navigation Styles */
@media (max-width: 767px) {
    /* Custom hamburger menu */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        position: relative;
        z-index: 1001;
        background: transparent;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Custom animated hamburger icon */
    .navbar-toggler-icon {
        background: none;
        width: 30px;
        height: 20px;
        position: relative;
        display: block;
    }

    .navbar-toggler-icon,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 30px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
        display: block;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .navbar-toggler-icon::before {
        top: -8px;
    }

    .navbar-toggler-icon::after {
        top: 8px;
    }

    /* Hamburger to X animation */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background: transparent;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Cool slide-in mobile menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        backdrop-filter: blur(10px);
        padding: 100px 2rem 2rem;
        transition: right 0.3s ease-out;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .navbar-collapse.show {
        right: 0;
    }

    /* Mobile menu overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Cool animated nav items */
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 0;
        opacity: 0;
        transform: translateX(50px);
        animation: slideInNav 0.6s ease-out forwards;
    }

    .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }

    @keyframes slideInNav {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navbar-nav .nav-link {
        color: white;
        font-size: 1.25rem;
        font-weight: 500;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 0.5rem;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        text-decoration: none;
        display: block;
    }

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .navbar-nav .nav-link:hover::before {
        left: 100%;
    }

    .navbar-nav .nav-link:hover {
        color: #facc15;
        background: rgba(250, 204, 21, 0.1);
        transform: translateX(10px);
        box-shadow: 0 5px 15px rgba(250, 204, 21, 0.2);
    }

    /* Cool phone button */
    .navbar-nav .nav-phone {
        font-size: 1.125rem;
        padding: 1rem 1.5rem;
        color: #1a1a1a;
        background: linear-gradient(135deg, #facc15, #eab308);
        border-radius: 25px;
        margin-top: 1rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 700;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
        border: 2px solid #facc15;
    }

    .navbar-nav .nav-phone:hover {
        color: #1a1a1a;
        background: linear-gradient(135deg, #eab308, #facc15);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(250, 204, 21, 0.6);
        border-color: #eab308;
    }

    .nav-phone i {
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }




}

/* Slideshow Parallax and Ken Burns Effect */
#slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-image.active {
    opacity: 1;
}

/* Cinematic slideshow effect for Desktop */
@media (min-width: 768px) {
    #home {
        height: 600px;
        border-bottom: 6px solid #facc15;
    }

    .slideshow-image {
        transform: scale(1);
        transition: opacity 1.5s ease-in-out;
    }

    .slideshow-image.active {
        animation: cinematicZoom 8s ease-out forwards;
    }
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    #home {
        height: 400px;
        border-bottom: 6px solid #facc15;
    }

    /* Keep slideshow working on mobile - ensure proper display */
    .slideshow-image {
        /* Ensure slideshow works on mobile */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .slideshow-image.active {
        opacity: 1;
        /* Subtle zoom effect for mobile */
        animation: mobileZoom 6s ease-out forwards;
    }

    @keyframes mobileZoom {
        0% {
            transform: scale(1);
        }
        100% {
            transform: scale(1.05);
        }
    }

    /* Adjust hero text for mobile */
    .hero-overlay h1 {
        font-size: 2rem !important;
    }

    .hero-overlay p {
        font-size: 1.1rem !important;
    }
}

/* Hidden class for scroll animations */
.hidden-animate {
    opacity: 0;
}

/* Service Card Hover Effects */
.service-card {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #facc15;
}

.service-card h3,
.service-card h5 {
    color: #e2e8f0;
}

.service-card p {
    color: #cbd5e0;
}

.service-card .btn {
    background-color: #facc15;
    border-color: #facc15;
    color: #1a1a1a;
    font-weight: 600;
}

.service-card .btn:hover {
    background-color: #eab308;
    border-color: #eab308;
}

/* Service Thumbnail */
.service-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Logo Styles */
.logo-img {
    width: 200px;
    height: 68px;
    object-fit: contain;
}

/* Custom Adjustments for Bootstrap */
.navbar-brand {
    padding: 0;
}

.navbar-nav .nav-item {
    margin-left: 1rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay .btn {
    background-color: #facc15;
    color: #1a1a1a;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-overlay .btn:hover {
    background-color: #eab308;
}

.footer {
    background-color: #212529;
    border-top: 6px solid #facc15;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: #facc15;
}

.footer-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-thumbnail:hover {
    border-color: #facc15;
    transform: scale(1.05);
}

/* Adjust section padding to account for sticky navbar */
section {
    scroll-margin-top: 80px; /* Adjust based on navbar height */
}

/* Contact Section Phone Styling */
#contact .nav-phone {
    color: #1a1a1a; /* Dark color for visibility */
    font-weight: bold;
}

#contact .nav-phone:hover {
    color: #facc15; /* Brand yellow on hover */
    transform: none; /* Remove transform for consistency */
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_excavator.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    margin-top: -80px;
    padding-top: 180px;
    border-bottom: 6px solid #facc15;
}

/* Specific page header backgrounds */
.page-header.about-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_excavator.jpg');
}

.page-header.services-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_land_clearing.jpg');
}

.page-header.contact-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_rolloffdumpster.jpg');
}

.page-header.gallery-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_demolition1.jpg');
}

.page-header.demolition-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_demolition1.jpg');
}

.page-header.dumpster-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_rolloffdumpster.jpg');
}

.page-header.snow-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_snow_removal.jpg');
}

.page-header.tree-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_woodchipper.jpg');
}

.page-header.concrete-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_demolition1.jpg');
}

.page-header.excavation-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_excavator.jpg');
}

.page-header.land-clearing-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_land_clearing.jpg');
}

.page-header.asphalt-header {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent), url('/images/banners/active_banner_demolition1.jpg');
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #facc15;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

/* Image Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

/* Fancybox customization for dark theme */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.fancybox__toolbar {
    background: rgba(45, 55, 72, 0.9);
    backdrop-filter: blur(10px);
}

.fancybox__button {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.fancybox__button:hover {
    background: rgba(250, 204, 21, 0.2);
    color: #eab308;
}

.fancybox__infobar {
    background: rgba(45, 55, 72, 0.9);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.fancybox__thumbs {
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
}

/* Gallery skip button */
.gallery-skip {
    position: relative;
    z-index: 10;
}

.gallery-skip:focus {
    position: relative;
    z-index: 1000;
    background: #facc15;
    color: #1a1a1a;
    border-color: #facc15;
}

/* Contact Form Styles */
.contact-form {
    background: #2d3748;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #4a5568;
}

.contact-form .form-label {
    color: #e2e8f0;
    font-weight: 500;
}

.contact-form .form-control,
.contact-form .form-select {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: #4a5568;
    border-color: #facc15;
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25);
}

.contact-form .form-control::placeholder {
    color: #a0aec0;
}

.contact-form .form-check-label {
    color: #e2e8f0;
}

.form-control:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25);
}

.btn-primary {
    background-color: #facc15;
    border-color: #facc15;
    color: #1a1a1a;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #eab308;
    border-color: #eab308;
}

/* Service Detail Styles */
.service-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Service detail cards (6-card grids on service pages) */
.content-section .bg-white {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.content-section .bg-white h3,
.content-section .bg-white h5 {
    color: #e2e8f0;
}

.content-section .bg-white p {
    color: #cbd5e0;
}

.content-section .bg-white .text-warning {
    color: #facc15 !important;
}

.content-section .bg-white:hover {
    border-color: #facc15;
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.2);
}

.service-features {
    background: #2d3748;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li i {
    color: #facc15;
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
        padding-top: 160px;
    }

    .content-section {
        padding: 40px 0;
    }

    .contact-form {
        padding: 20px;
    }
}

/* General card styling for consistency */
.bg-light {
    background-color: #2d3748 !important;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: #e2e8f0;
}

.bg-light p,
.bg-light small {
    color: #cbd5e0;
}

.bg-light .text-muted {
    color: #a0aec0 !important;
}

/* Service area cards */
.border {
    border-color: #4a5568 !important;
    background-color: #2d3748;
    color: #e2e8f0;
}

.border h3,
.border h5 {
    color: #e2e8f0;
}

.border p {
    color: #cbd5e0;
}

/* Home page services section custom background */
#services.bg-light {
    background-color: #cacaca !important;
}

/* Testimonials section custom background */
#testimonials.bg-light {
    background-color: #cacaca !important;
}

/* Gallery page custom background */
.gallery-bg-light {
    background-color: #cacaca !important;
}

#services.bg-light h2,
#services.bg-light .display-5 {
    color: #1a1a1a !important;
    font-weight: bold;
}

#services.bg-light p.lead {
    color: #2d2d2d !important;
}

/* Testimonials section heading - make dark card color */
#testimonials.bg-light h2,
#testimonials.bg-light .display-5 {
    color: #2d3748 !important;
    font-weight: bold;
}
    font-weight: 500;
}

/* Testimonials styling - Simple and readable */
.testimonial-card {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #facc15;
}

.testimonial-card p {
    color: #1a1a1a !important;
}

.testimonial-card .fw-semibold {
    color: #2d3748 !important;
}

/* Testimonials Slider */
.testimonials-slider-container {
    position: relative;
    padding: 0 60px;
}

.testimonials-slider {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #facc15;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.testimonial-nav:hover {
    background: #eab308;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.5);
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

/* Mobile adjustments for testimonials - Simple and easy */
@media (max-width: 768px) {
    .testimonials-slider-container {
        padding: 0;
    }

    .testimonials-slider {
        overflow: visible;
    }

    .testimonials-track {
        display: block !important;
        transform: none !important;
    }

    .testimonial-slide {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }

    .testimonial-nav {
        display: none;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-slide {
        width: calc(50% - 0.75rem) !important;
        margin-right: 1.5rem !important;
    }

    .testimonials-slider-container {
        padding: 0 50px;
    }
}
