/* Custom Styles for Vii Tech Solutions */

html {
    scroll-behavior: smooth;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    padding: 12px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover { 
    transform: scale(1.05); 
    color: #fff; 
    background-color: #128c7e; 
    text-decoration: none; 
}

/* --- Brand Category Titles (Merged & Cleaned) --- */
.brand-category-title {
    text-align: center;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #444;
    position: relative;
    padding-bottom: 10px;
}

.brand-category-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #1d809f; /* Vii Tech Blue */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Partner Logo Grid (Synced with Industry Style) --- */
.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Increased gap slightly to match industry spacing */
    width: 100%;
    margin: 0 auto;
}

.logo-item {
    /* Base style copied from .industry-item */
    background: #f8f9fa; 
    border-radius: 15px;
    width: 170px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid transparent;
    
    /* Matching the smooth lift transition */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-item:hover {
    /* Hover effect copied from .industry-item:hover */
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    border-color: #eee;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Industries Section Styling --- */
.industry-item {
    padding: 40px 30px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid transparent;
}

.industry-item:hover {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-10px);
    border-color: #eee;
}

.industry-item i {
    color: #1d809f;
    transition: transform 0.3s ease;
}

.industry-item:hover i {
    transform: scale(1.1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 576px) {
    .logo-item {
        width: 140px; /* Slightly smaller on mobile to fit 2-up better */
        height: 80px;
    }
    
    .whatsapp-float span {
        display: none; /* Hide text, show only icon on small phones if needed */
    }
    
    .whatsapp-float {
        padding: 12px;
        border-radius: 50%;
    }
}

#contact div, #contact a {
    color: #ffffff !important; /* Forces white text on the blue background */
    opacity: 1 !important;
    display: block !important;
}

/* Contact Section Form Styling */
#contact .form-control-lg {
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

#contact .form-control:focus {
    border-color: #1d809f;
    box-shadow: 0 0 0 0.2rem rgba(29, 128, 159, 0.25);
}

#contact .text-dark a {
    text-decoration: none;
    transition: 0.3s;
}

#contact .text-dark a:hover {
    color: #1d809f !important;
}

/* Ensure FontAwesome icons show correctly */
.mr-3 {
    margin-right: 1rem !important;
}

/* Fix for invisible phone/email on mobile */
#contact a, 
#contact div, 
#contact p,
#contact a[href^="tel:"], 
#contact a[href^="mailto:"] {
    color: #ffffff !important; /* Force text to be white */
    opacity: 1 !important;      /* Ensure it's not transparent */
    text-decoration: none;     /* Remove underlines */
    -webkit-text-fill-color: #ffffff !important; /* Fix for Safari/iPhone */
}

/* If you are using the white "Contact Card" from the previous step: */
#contact .text-dark a,
#contact .text-dark p,
#contact .text-dark a[href^="tel:"],
#contact .text-dark a[href^="mailto:"] {
    color: #444444 !important; /* Force dark text inside the white card */
    -webkit-text-fill-color: #444444 !important;
}

/* --- THE CONTACT FIX --- */

/* 1. Force all text and icons in the contact section to be white by default */
#contact, 
#contact h2, 
#contact p, 
#contact i, 
#contact .fas, 
#contact .fab {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 2. Fix for form inputs (Your Name, Subject, etc.) */
/* We want these to have dark text so they are readable inside the white boxes */
#contact .form-control {
    background-color: #ffffff !important;
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important; /* Fix for Safari */
    opacity: 1 !important;
}

/* 3. Placeholder text (The hints inside the boxes) */
#contact .form-control::placeholder {
    color: #999999 !important;
    -webkit-text-fill-color: #999999 !important;
    opacity: 1 !important;
}

/* 4. Fix for the Contact Card (The Option 1 white box) */
/* If you are using the white card, we need to force the text inside it to stay dark */
#contact .bg-white,
#contact .bg-white p,
#contact .bg-white a,
#contact .bg-white div,
#contact .bg-white h4 {
    color: #333333 !important;
    -webkit-text-fill-color: #333333 !important;
}

#contact .bg-white i {
    color: #1d809f !important; /* Keep the icons blue inside the white card */
    -webkit-text-fill-color: #1d809f !important;
}

/* Apply this to your section background images to make them professional */
.service-bg-image {
    filter: brightness(0.8) contrast(1.1); /* Adds punch and professional depth */
    transition: filter 0.5s ease;
}

/* Hover effect for a "Focus" feeling */
.service-bg-image:hover {
    filter: brightness(1) contrast(1);
}