/* Custom CSS for improved text readability on header */

/* Enhance header text contrast without overriding background image */
.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Ensure text is above overlay */
.masthead .container {
    position: relative;
    z-index: 2;
}

/* Enhanced text styling for header */
.masthead h1 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    color: #ffffff !important;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.masthead .intro-text {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #f8f9fa !important;
    margin-bottom: 30px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .masthead h1 {
        font-size: 2.5rem;
    }
    
    .masthead .intro-text {
        font-size: 1.2rem;
    }
}

/* Button styling for better visibility */
.masthead .btn {
    background: linear-gradient(45deg, #ff6900, #ff8f00);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.3);
    text-shadow: none;
    transition: all 0.3s ease;
}

.masthead .btn:hover {
    background: linear-gradient(45deg, #e55100, #ef6c00);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 105, 0, 0.4);
}

/* Automotive theme colors */
.text-primary {
    color: #2c3e50 !important;
}

.bg-primary {
    background-color: #2c3e50 !important;
}

/* Service icons styling */
.service-heading {
    color: #2c3e50;
}

/* Portfolio item hover effects */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item .portfolio-hover {
    background: rgba(255, 105, 0, 0.9) !important;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1 !important;
}

.portfolio-item .portfolio-hover-content {
    color: white !important;
    text-align: center;
    font-size: 3rem;
    z-index: 3;
}

.portfolio-item .portfolio-hover-content i {
    color: white !important;
}

.portfolio-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Ensure portfolio link covers the whole area */
.portfolio-item .portfolio-link {
    display: block;
    position: relative;
}

/* Fix for portfolio icons */
.portfolio-item .fa-plus {
    color: white !important;
    font-size: 3rem !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b954;
    color: #FFF !important;
    transform: scale(1.1);
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin: 0;
    line-height: 1;
}

/* Phone number in navigation styling */
.navbar-nav .nav-link[href^="tel"] {
    background-color: #ff6900;
    color: white !important;
    border-radius: 5px;
    margin: 0 5px;
    padding: 8px 12px !important;
}

.navbar-nav .nav-link[href^="tel"]:hover {
    background-color: #e55100;
    color: white !important;
}

.navbar-nav .nav-link[href^="https://wa.me"] {
    background-color: #25d366;
    color: white !important;
    border-radius: 5px;
    margin: 0 5px;
    padding: 8px 12px !important;
}

.navbar-nav .nav-link[href^="https://wa.me"]:hover {
    background-color: #20b954;
    color: white !important;
}

/* Enhanced Contact Information Styling */
.contact-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 80px;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.2);
    border-color: #ff6900;
}

.contact-icon {
    font-size: 2.2rem;
    color: #ff6900;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.whatsapp-color {
    color: #25d366 !important;
}

.contact-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    word-break: break-all;
}

.contact-number:hover {
    color: #ff6900;
    text-decoration: none;
    transform: scale(1.05);
}

.whatsapp-link:hover {
    color: #25d366 !important;
}

/* Mobile responsive design for contact info */
@media (max-width: 768px) {
    .contact-info-enhanced {
        gap: 20px;
        margin: 20px auto;
        padding: 15px;
    }
    
    .contact-item {
        padding: 15px 20px;
    }
    
    .contact-icon {
        font-size: 2rem;
        margin-right: 15px;
        min-width: 50px;
    }
    
    .contact-label {
        font-size: 1rem;
    }
    
    .contact-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-details {
        align-items: center;
    }
}

/* Inline Contact Info Styling */
.contact-info-inline {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-line {
    margin: 15px 0;
    font-size: 1.2rem;
    line-height: 1.6;
}

.contact-label {
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
}

.contact-value {
    color: #ff6900;
    font-weight: 600;
}

.contact-link {
    color: #ff6900;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #e55100;
    text-decoration: none;
    transform: scale(1.02);
}

.contact-link.whatsapp {
    color: #25d366 !important;
}

.contact-link.whatsapp:hover {
    color: #20b954 !important;
}

@media (max-width: 768px) {
    .contact-info-inline {
        margin: 20px auto;
        padding: 20px;
    }
    
    .contact-line {
        font-size: 1.1rem;
        margin: 12px 0;
    }
}

/* Language Switcher Dropdown */
.navbar-nav .dropdown-menu {
    background-color: #212529;
    border: 1px solid #ff6900;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar-nav .dropdown-item {
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #ff6900;
    color: #ffffff !important;
}

.navbar-nav .dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 8px;
}

/* Language dropdown positioning */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 150px;
    }
}

/* Mobile language switcher */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .navbar-nav .dropdown-item {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 105, 0, 0.2);
    }
}