:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

input, textarea, select {
    text-transform: uppercase;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
    background: var(--primary-color);
}

    .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.search-box-wrapper {
    position: relative;
    z-index: 10001;
}

.search-box-wrapper .input-group {
    position: relative;
}

#searchResults {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: 300px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10002;
    display: none;
    border: 1px solid #e2e8f0;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.search-box .btn-primary {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--primary-color);
    border: none;
    transition: var(--transition);
}

.search-box .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.section-title span {
    color: var(--primary-color);
}

.worker-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.worker-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.worker-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.worker-card-body {
    padding: 1.5rem;
}

.worker-card .category-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.worker-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.worker-card .location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.worker-card .location i {
    color: var(--accent-color);
    margin-right: 5px;
}

.worker-card .experience {
    background: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 600;
}

.worker-card .contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.worker-card .contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.worker-card .contact-info i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
}

.worker-card .btn-details {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.worker-card .btn-details:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.worker-detail-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.worker-detail-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.worker-detail-body {
    padding: 2rem;
}

.worker-detail-body .category-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.worker-detail-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.worker-detail-body .meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.worker-detail-body .meta-info .item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.worker-detail-body .meta-info i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.worker-detail-body .description {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.worker-detail-body .contact-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

.worker-detail-body .contact-section h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.worker-detail-body .contact-section a {
    color: var(--primary-color);
    font-weight: 600;
}

.worker-detail-body .btn-contact {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.worker-detail-body .btn-contact:hover {
    background: #059669;
    color: var(--white);
    transform: translateY(-2px);
}

.categories-section {
    background: var(--white);
    padding: 80px 0;
}

.category-card {
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    color: var(--dark-color);
}

.category-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.features-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    color: var(--white);
    padding: 80px 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    opacity: 0.8;
}

.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text .btn-about {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.about-text .btn-about:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-section-page {
    padding: 80px 0;
    background: var(--white);
}

.contact-info-box {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
}

.contact-info-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-box h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-box p {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-form .btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 50px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
    opacity: 0.7;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.filters-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-bar .form-control,
.filters-bar .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 15px;
    transition: var(--transition);
}

.filters-bar .form-control:focus,
.filters-bar .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.no-results {
    text-align: center;
    padding: 4rem;
}

.no-results i {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .search-box {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .search-box .form-select,
    .search-box .form-control {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .worker-detail-card img {
        height: 250px;
    }
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--light-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-info strong {
    color: var(--dark-color);
    font-size: 1rem;
}

.search-result-info small {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.search-result-info small i {
    color: var(--accent-color);
    margin-right: 5px;
}

#imageModal .modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

#imageModal .modal-title {
    font-weight: 600;
}

#imageModal .modal-body img {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#imageModal .btn-close-white {
    filter: invert(1);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-top: 2px;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #128c7e;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
