/* --- Place all your custom CSS here --- */
/* Root Variables - White Primary Theme */
: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);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

/* WhatsApp Float with pulse animation */
.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;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

.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);
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 80px;
        right: 15px;
    }
}

/* Header Styling */
.header-triangle {
    display: none;
}

/* Infinite Sliding Logos */
.client-logos {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.logo-slide {
    display: inline-block;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logos img {
    height: 50px;
    margin: 0 20px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logos img:hover {
    filter: grayscale(0%);
}

/* Footer Styling - Professional & Compact */
.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);
}

.accreditations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 15px 0;
}

.accreditations img {
    height: 40px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.7;
    transition: all var(--transition-speed);
}

.accreditations img:hover {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
    transform: scale(1.1);
}

.footer .row:last-child p {
    font-size: 0.8rem;
    margin: 5px 0;
    opacity: 0.8;
}

/* General Styling - Enhanced Header */
.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;
}

.jumbotron {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: var(--accent-black);
    border-bottom: 3px solid var(--accent-red);
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(204, 0, 0, 0.03) 0%, transparent 50%);
    z-index: 0;
}

@keyframes pulse-bg {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.jumbotron .container {
    position: relative;
    z-index: 1;
}

.jumbotron h1 {
    animation: fadeInDown 1s ease;
    color: var(--accent-black);
    font-weight: 800;
}

.jumbotron p {
    animation: fadeInUp 1s ease 0.3s both;
    color: var(--text-dark);
}

.jumbotron .lead {
    color: var(--accent-red);
    font-weight: 600;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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);
}

.btn-outline-light {
    border: 2px solid var(--accent-black);
    color: var(--accent-black);
    background: transparent;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    border-radius: 6px;
}

.btn-outline-light:hover {
    background: var(--accent-black);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Card Enhancements */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    height: 100%;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.15);
    border-color: var(--accent-red);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-top {
    transition: transform 0.6s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(204, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-body {
    background: linear-gradient(to bottom, white 0%, #f9f9f9 100%);
    padding: 1.5rem;
}

.card-title {
    color: var(--accent-black);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card-title i {
    color: var(--accent-red);
}

.card .btn-primary {
    width: 100%;
    margin-top: auto;
}

/* Section Animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    background: var(--accent-red);
    color: white;
    border: 2px solid white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-chat {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(204, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(204, 0, 0, 0.5);
    }
}

.chatbot-button:hover {
    transform: scale(1.1);
    background: var(--accent-black);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.chatbot-window {
    display: none;
    width: 320px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    font-weight: bold;
    background: var(--accent-red);
    color: white;
    padding: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) #f0f0f0;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 3px;
}

.chatbot-messages div {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chatbot-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-top: 1px solid #e0e0e0;
    background: white;
    font-size: 14px;
    transition: all var(--transition-speed);
}

.chatbot-input:focus {
    outline: none;
    border-top-color: var(--accent-red);
}

/* Loader Styles */
#maticel-loader {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-black) 60%, var(--accent-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s;
}

#maticel-loader .loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-shield {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50% 50% 60% 60% / 60% 60% 100% 100%;
    box-shadow: 0 0 40px #c00, 0 0 0 8px #000 inset;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: shieldPulse 1.2s infinite alternate;
}

@keyframes shieldPulse {
    0% {
        box-shadow: 0 0 40px #c00, 0 0 0 8px #000 inset;
    }

    100% {
        box-shadow: 0 0 80px #c00, 0 0 0 12px #000 inset;
    }
}

.loader-text {
    font-family: 'Roboto', 'Orbitron', Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #c00;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 8px #000, 0 0 10px #fff;
}

.loader-bar {
    width: 120px;
    height: 8px;
    background: linear-gradient(90deg, #fff 0%, #c00 50%, #000 100%);
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar::before {
    content: "";
    position: absolute;
    left: -60px;
    top: 0;
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    filter: blur(2px);
    animation: barMove 1.2s linear infinite;
}

@keyframes barMove {
    0% {
        left: -60px;
    }

    100% {
        left: 120px;
    }
}

/* Statistics Section */
.stat-item {
    padding: 20px;
    transition: transform var(--transition-speed);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

/* Testimonials */
.testimonial-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .stars {
    font-size: 1.2rem;
}

.testimonial-author strong {
    color: var(--accent-red);
    font-size: 1rem;
}

/* Hero Section Buttons */
.hero-buttons {
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .jumbotron {
        padding: 80px 0;
    }

    .jumbotron h1 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
}

/* Add all other custom styles here (chatbot, loader, etc.) */