:root {
    --primary-color: #037889 !important;
    --secondary-color: #e9ecef;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-dark) !important;
}

.navbar-brand span {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    margin-left: 1.5rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #037889 0%, #05a3b8 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-section h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

.hero-image,
.about-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-image {
    background-image: url('../images/aps.png') !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.column-banner {
    background-image: url('../images/column.webp') !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.lab-instruments-banner {
    background-image: url('../images/lab-instruments.png') !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.crm-banner {
    background-image: url('../images/hero.webp') !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-image {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-image: url('../images/hero-1.webp') !important;
}

.hero-image:hover {
    background-image: url('../images/hero.webp') !important;
    transition: background-image 1s ease-in-out;
}

/* Buttons */
.btn-light {
    transition: all 0.3s ease;
    color: #212529 !important;
    background-color: #ffffff;
    border-color: #ffffff;
}

.btn-light:hover {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #212529 !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
    border-color: var(--white);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #025a6b;
    border-color: #025a6b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 120, 137, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white) !important;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background-color: var(--white);
    color: var(--text-dark);
}

.card h5 {
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Highlight Cards */
.highlight-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
}

.highlight-card h5 {
    color: var(--text-dark);
}

.highlight-card p {
    color: var(--text-light);
}

.highlight-card i {
    color: var(--primary-color);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Cards */
.why-card {
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-dark);
}

.why-card h5 {
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-light);
}

.why-card i {
    color: var(--primary-color);
}

.why-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Client Logos */
.client-logo {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
}

.client-logo p {
    color: var(--text-light);
}

.client-logo i {
    color: #9c9c9c;
}

.client-logo:hover {
    transform: scale(1.05);
}

/* Form */
.contact-form {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
    background-color: var(--white);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(3, 120, 137, 0.25);
    color: var(--text-dark);
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Sections */
section {
    padding: 5rem 0;
}

section.bg-light {
    background-color: #f8f9fa !important;
}

section.bg-primary {
    background-color: var(--primary-color) !important;
}

section.bg-primary h2,
section.bg-primary p {
    color: var(--white);
}

section.bg-primary .lead {
    color: rgba(255, 255, 255, 0.95);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-dark);
}

.table thead th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.table tbody td {
    color: var(--text-dark);
    border-color: #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Testimonial Slider */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-container {
    position: relative;
    width: 100%;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.testimonial-avatar {
    flex-shrink: 0;
    background: linear-gradient(135deg, #037889 0%, #05a3b8 100%);
    color: var(--white);
}

.testimonial-avatar i {
    color: var(--white);
}

.testimonial-slide .card {
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--white);
    color: var(--text-dark);
}

.testimonial-slide .card h5 {
    color: var(--text-dark);
}

.testimonial-slide .card p {
    color: var(--text-light);
}

.testimonial-slide .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.testimonial-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.testimonial-btn:hover {
    background-color: #025a6b;
    transform: scale(1.1);
}

.testimonial-btn:active {
    transform: scale(0.95);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background-color: #adb5bd;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: var(--white);
}

/* Footer */
footer {
    background: #1a1a1a;
    border-top: 3px solid var(--primary-color);
    color: var(--white);
}

footer h5 {
    color: var(--white);
}

footer p {
    color: #d0d0d0;
}

footer a {
    color: #87ceeb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer .text-muted {
    color: #d0d0d0 !important;
}

footer .text-muted small {
    color: #d0d0d0 !important;
}

footer i {
    color: #87ceeb;
}

footer a i {
    color: #87ceeb;
}

footer a:hover i {
    color: var(--white);
}

footer hr {
    border-color: #444 !important;
}

/* Founder Profiles */
.founder-avatar {
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-avatar i {
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.portfolio-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(191, 64, 191, 0.15);
}

.portfolio-card:hover .portfolio-header {
    background: linear-gradient(135deg, #037889 0%, #05a3b8 100%);
}

.portfolio-card:hover .portfolio-header i {
    color: var(--white) !important;
}

.portfolio-card:hover .portfolio-header p {
    color: var(--white) !important;
}

.portfolio-header i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.portfolio-header p {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.portfolio-card .text-primary {
    color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Accordion */
.accordion-button {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(3, 120, 137, 0.25);
}

.accordion-body {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.accordion-item {
    border: none !important;
    border-radius: 15px !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions */
a,
button {
    transition: all 0.3s ease;
}

/* Emergency Support Section */
.bg-primary.text-white {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.bg-primary.text-white h5,
.bg-primary.text-white p {
    color: var(--white) !important;
}

.bg-primary.text-white strong {
    color: var(--white) !important;
    font-weight: 600;
}

.bg-primary.text-white i {
    color: var(--white) !important;
}

.page-title {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 500px;
        padding: 1.5rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-image,
    .about-image {
        min-height: 250px !important;

    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
        color: var(--text-dark) !important;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    section {
        padding: 3rem 0;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    .testimonial-slide .card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .testimonials-controls {
        gap: 1rem;
    }

    .testimonial-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .founder-avatar {
        width: 100px !important;
        height: 100px !important;
    }

    .founder-avatar i {
        font-size: 2.5rem !important;
    }

    .product-image {
        min-height: 150px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .testimonial-slide .card {
        padding: 1.5rem 1rem;
    }

    .testimonials-controls {
        gap: 0.5rem;
    }

    .testimonial-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 25px;
    }

    .founder-avatar {
        width: 80px !important;
        height: 80px !important;
    }

    .founder-avatar i {
        font-size: 2rem !important;
    }

    .product-image {
        min-height: 120px !important;
    }

    .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}