/* ============================
   CLIENT PAGE STYLES - UPDATED TOGGLE SYSTEM
   ============================ */

/* Header Section */
.client-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 50%, #20c997 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.header-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    font-weight: 700;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Header */
.section-header .section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    border-radius: 2px;
    margin-top: 1rem;
}

/* Modern Simple Client Card Styles */
.simple-client-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.simple-client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-client-card:hover::before {
    opacity: 1;
}

.simple-client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.client-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.client-location-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.client-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.client-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.simple-client-card:hover .client-image-container img {
    transform: scale(1.08);
}

.client-content-simple {
    padding: 24px;
}

.client-company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.client-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button Wrapper and Toggle Buttons - UPDATED */
.button-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.qualification-btn {
    flex: 1;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qualification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.qualification-btn:hover::before {
    left: 100%;
}

.qualification-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    color: white !important;
    text-decoration: none;
}

.qualification-btn.about-company {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.qualification-btn.about-company:hover {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.3);
}

.qualification-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.qualification-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(249, 250, 251, 0.9);
}

/* Company Info Toggle Content - UPDATED */
.company-info {
    background: rgba(249, 250, 251, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    display: none; /* Initially hidden */
    opacity: 0;
    transform: translateY(-15px);
    max-height: 0;
    overflow: hidden;
}

.company-info.showing {
    display: block;
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    padding: 20px;
    margin-top: 16px;
}

.company-info.hiding {
    opacity: 0;
    transform: translateY(-15px);
    max-height: 0;
    padding: 0 20px;
    margin-top: 0;
}

.company-info ul {
    margin: 0;
    padding: 0;
}

.company-info ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.4);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 8px;
}

.company-info ul li:last-child {
    border-bottom: none;
}

.company-info ul li:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding-left: 12px;
}

.company-info ul li i {
    font-size: 1rem;
    margin-right: 8px;
}

/* Company Detail Info */
.company-detail-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.company-detail-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.company-detail-info .info-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding-left: 8px;
}

.company-detail-info .info-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    color: white !important;
    text-decoration: none;
}

/* Section Titles */
.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-subtitle-modern {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon-modern {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.empty-icon-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.empty-icon-modern i {
    font-size: 3rem;
    color: white;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Partnership CTA Section */
.partnership-cta {
    background: linear-gradient(135deg, #6f42c1 0%, #0d6efd 50%, #20c997 100%);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.partnership-cta .cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
}

.benefit-item {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    margin-bottom: 1rem;
}

.benefit-item h5 {
    margin-bottom: 0.5rem;
}

.cta-button-primary {
    background: #ffc107;
    border: none;
    color: #212529;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button-primary:hover {
    background: #ffcd39;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button-primary:hover::before {
    left: 100%;
}

.cta-button-secondary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    font-size: 1.2rem;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
        padding: 0 20px;
        margin-top: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
        padding: 20px;
        margin-top: 16px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
        padding: 20px;
        margin-top: 16px;
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
        max-height: 0;
        padding: 0 20px;
        margin-top: 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-down {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .simple-client-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .client-header {
        min-height: 50vh;
        text-align: center;
    }

    .header-stats {
        justify-content: center;
    }

    .stat-item {
        padding: 0 0.5rem;
    }

    .client-image-container {
        height: 180px;
    }

    .section-title-modern {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .client-header {
        min-height: 40vh;
        padding: 3rem 0;
    }

    .header-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .button-wrapper {
        flex-direction: column;
    }

    .qualification-btn {
        flex: none;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .client-content-simple {
        padding: 20px;
    }

    .company-info {
        padding: 16px;
        margin-top: 12px;
    }

    .company-info.showing {
        padding: 16px;
        margin-top: 12px;
    }

    .company-info ul li {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .client-image-container {
        height: 170px;
    }

    .partnership-cta {
        min-height: 400px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .client-header {
        padding: 2rem 0;
    }

    .client-content-simple {
        padding: 16px;
    }

    .client-company-name {
        font-size: 1.1rem;
    }

    .client-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .qualification-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .company-info {
        padding: 12px;
    }

    .company-info.showing {
        padding: 12px;
    }

    .whatsapp-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .client-image-container {
        height: 160px;
    }

    .section-title-modern {
        font-size: 1.8rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

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

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Text Shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
