:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f43f5e;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

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

.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-primary-soft {
    background-color: rgba(99, 102, 241, 0.1);
}

.bg-success-soft {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-danger-soft {
    background-color: rgba(239, 68, 68, 0.1);
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.hero-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

.min-vh-50 {
    min-height: 50vh;
}

.search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box .form-select,
.search-box .form-control {
    border: none;
    border-radius: 0.75rem;
    height: 56px;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.animation-delay-1 {
    animation-delay: 0.2s;
}

.animation-delay-2 {
    animation-delay: 0.4s;
}

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

.profile-card {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

.profile-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18) !important;
}

.card-img-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.profile-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.card-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.image-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.profile-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.shadow-hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-meta {
    font-size: 0.9rem;
}

.services-tags .badge,
.service-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 1rem;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.btn-whatsapp-large:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.pagination .page-link {
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
    margin: 0 4px;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

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

.pagination .page-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
}

.cta-section {
    background: var(--gradient-primary);
}

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    border-radius: 1.5rem;
    overflow: hidden;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.auth-form .input-group-text {
    background: white;
    border-right: none;
    color: var(--primary-color);
}

.auth-form .form-control {
    border-left: none;
}

.auth-form .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.auth-form .input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    border-radius: 0.375rem;
}

.auth-form .input-group:focus-within .input-group-text,
.auth-form .input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

.submit-profile-page .card-header {
    background: var(--gradient-primary);
}

.service-check {
    background: rgba(99, 102, 241, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-check:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.service-check input:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.service-check:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.profile-page .main-image img {
    border-radius: 1.25rem;
    max-height: 500px;
    object-fit: cover;
}

.thumbnail-img {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    height: 80px;
    object-fit: cover;
}

.thumbnail-img:hover,
.thumbnail-img.active {
    opacity: 1;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.footer {
    background: var(--dark-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.admin-page .stat-card {
    border-radius: 1rem;
}

.admin-page .table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

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

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

@media (max-width: 1200px) {
    .card-img-wrapper {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .card-img-wrapper {
        height: 260px;
    }
    
    .profile-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-img-wrapper {
        height: 300px;
    }
    
    .search-box {
        padding: 1.25rem;
    }
    
    .profile-page .main-image img {
        max-height: 350px;
    }
    
    .profile-page .display-5 {
        font-size: 1.75rem;
    }
    
    .profile-card:hover {
        transform: translateY(-5px);
    }
    
    .pagination .page-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card-img-wrapper {
        height: 350px;
    }
    
    .profile-card .card-body {
        padding: 1.25rem;
    }
    
    .profile-card .card-title {
        font-size: 1.25rem;
    }
    
    .btn-whatsapp {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .services-tags .badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .profile-page .stat-card {
        padding: 1rem !important;
    }
    
    .profile-page .stat-card h4 {
        font-size: 1rem;
    }
    
    .profile-page .stat-card i {
        font-size: 1.5rem !important;
    }
    
    .search-box .form-select {
        margin-bottom: 0.5rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.shake-on-hover:hover {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.existing-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.border-dashed {
    border-style: dashed !important;
}
