/* Shared Styles for All Pages - White Primary Theme */
/* This file should be linked in all HTML pages */

/* Infinite Sliding Logos */
.client-logos {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 40px 0;
    background: #fff;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-slide {
    display: inline-block;
    animation: slide 30s linear infinite;
}

.logo-slide:hover {
    animation-play-state: paused;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.client-logos img {
    height: 70px;
    width: auto;
    margin: 0 40px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

:root {
    --primary-color: #ffffff;
    --accent-red: #c00;
    --accent-black: #1a1a1a;
    --text-dark: #333333;
    --text-light: #666666;
    --gray-light: #f8f9fa;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

/* Enhanced Header Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 2px solid var(--gray-light);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--accent-red);
}

.navbar-brand {
    color: var(--accent-black) !important;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand:hover {
    color: var(--accent-red) !important;
    transform: translateY(-2px);
}

.navbar-brand img {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
}

.navbar-brand:hover img {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.navbar-toggler {
    border-color: var(--accent-red);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    position: relative;
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    color: var(--accent-red) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    border-top: 2px solid var(--accent-red);
}

.dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
    transition: all var(--transition-speed);
}

.dropdown-item:hover {
    background-color: var(--gray-light);
    color: var(--accent-red);
    padding-left: 25px;
}

/* Buttons */
.btn-primary {
    background: var(--accent-red);
    border: 2px solid var(--accent-red);
    color: white;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
    border-radius: 6px;
}

.btn-primary:hover {
    background: white;
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.2);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.15);
    border-color: var(--accent-red);
}

/* Professional Footer */
.footer {
    background-color: var(--accent-black);
    color: #ffffff;
    padding: 30px 0 15px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent-red);
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h5 {
    color: var(--accent-red);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin: 6px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section i {
    width: 18px;
    margin-right: 8px;
    color: var(--accent-red);
    font-size: 0.9rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-size: 0.85rem;
}

.footer-section a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-media a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: all var(--transition-speed);
    margin: 0;
}

.social-media a:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.accreditation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.accreditation-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-speed);
    backdrop-filter: blur(5px);
}

.accreditation-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.accreditation-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: invert(1) brightness(200%) grayscale(100%);
    transition: var(--transition-speed);
    opacity: 0.8;
}

.accreditation-item:hover img {
    filter: none;
    opacity: 1;
}

.footer .row:last-child p {
    font-size: 0.8rem;
    margin: 5px 0;
    opacity: 0.8;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1001;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* Page Header Styling */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 60px 0;
    border-bottom: 3px solid var(--accent-red);
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--accent-black);
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .footer-section {
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }

    .accreditations {
        gap: 15px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 80px;
        right: 15px;
    }
}

/* Cool Floating Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1002;
    /* Above WhatsApp */
}

.chatbot-button {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(204, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-red 2s infinite;
}

.chatbot-button:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.6);
}

.chatbot-button i {
    transition: transform 0.3s;
}

.chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatOpen 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-header {
    background: var(--accent-red);
    color: white;
    padding: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-header::before {
    content: '\f4ad';
    /* FontAwesome Comment Icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages div {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: msgSlide 0.3s ease;
    word-wrap: break-word;
}

/* User Message */
.chatbot-messages div[style*="color: #333"] {
    align-self: flex-end;
    background: var(--accent-black);
    color: white !important;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Bot Message */
.chatbot-messages div[style*="color: #c00"] {
    align-self: flex-start;
    background: white;
    color: var(--text-dark) !important;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.chatbot-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    outline: none;
    transition: background 0.3s;
}

.chatbot-input:focus {
    background: #fff;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(204, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
    }
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes msgSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust WhatsApp position to not overlap */
.whatsapp-float {
    bottom: 110px !important;
    /* Move up above chatbot */
    right: 32px !important;
    width: 60px;
    height: 60px;
}