/* ========== LABORATORY BILLING SERVICES STYLES ========== */

/* Hero Section */
.lab-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a5fb4, #0b5fa5, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    color: white;
}

.lab-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lab-hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 0),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 2px, transparent 0),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 0),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 0);
    background-size: 300px 300px;
    animation: floatParticles 20s infinite linear;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-300px) translateX(300px);
    }
}

.lab-hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.lab-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.lab-hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.lab-hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

.lab-hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.4s;
}

.lab-hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.lab-hero-button.primary {
    background: white;
    color: #0b5fa5;
}

.lab-hero-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.lab-hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.lab-hero-visual {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-hero-icon {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 30px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.lab-hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.lab-hero-dna {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 70%),
        conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Features Section */
.lab-features {
    padding: 100px 5%;
    background: #f8fbff;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0b5fa5;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.lab-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.lab-feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
}

.lab-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0b5fa5, #02a7d9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.lab-feature-card:hover::before {
    transform: scaleX(1);
}

.lab-feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.lab-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #0b5fa5, #02a7d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.lab-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.lab-feature-description {
    color: #666;
    margin-bottom: 20px;
}

.lab-feature-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #e6f7ff;
    color: #0b5fa5;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Process Section - IMPROVED */
.lab-process {
    padding: 100px 5%;
    background: white;
}

.lab-process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lab-process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.lab-process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #0b5fa5, #02a7d9);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step:nth-child(odd) {
    flex-direction: row;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0b5fa5, #02a7d9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(11, 95, 165, 0.3);
}

.step-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    margin: 0 20px;
    max-width: 400px;
}

.process-step:nth-child(odd) .step-content {
    margin-left: calc(50% + 40px);
}

.process-step:nth-child(even) .step-content {
    margin-right: calc(50% + 40px);
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0b5fa5, #02a7d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0b5fa5;
}

.step-description {
    color: #666;
    line-height: 1.6;
}

/* Benefits Section */
.lab-benefits {
    padding: 100px 5%;
    background: #f8fbff;
}

.lab-benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lab-benefits-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lab-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateX(-50px);
}

.lab-benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0b5fa5, #02a7d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lab-benefit-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.lab-benefit-text p {
    color: #666;
    line-height: 1.6;
}

.lab-benefits-visual {
    opacity: 0;
    transform: translateX(50px);
}

.lab-benefits-chart {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.lab-benefits-bar {
    margin-bottom: 30px;
}

.lab-benefits-bar-fill {
    height: 20px;
    background: linear-gradient(90deg, #0b5fa5, #02a7d9);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    margin-bottom: 10px;
}

.lab-benefits-bar-label {
    font-weight: 600;
    color: #333;
}

/* Specialties Section */
.lab-specialties {
    padding: 100px 5%;
    background: white;
}

.lab-specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.lab-specialty-card {
    background: #f8fbff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.lab-specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.lab-specialty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #0b5fa5, #02a7d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.lab-specialty-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.lab-specialty-card p {
    color: #666;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1200px) {
    .lab-hero-title {
        font-size: 3.5rem;
    }
    
    .lab-process-timeline::before {
        left: 40px;
    }
    
    .process-step:nth-child(odd) .step-content,
    .process-step:nth-child(even) .step-content {
        margin-left: 80px;
        margin-right: 20px;
        max-width: calc(100% - 100px);
    }
    
    .step-number {
        left: 40px;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .lab-hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 50px;
    }
    
    .lab-hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .lab-hero-visual {
        width: 300px;
        height: 300px;
    }
    
    .lab-hero-icon {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }
    
    .lab-hero-dna {
        width: 250px;
        height: 250px;
    }
    
    .lab-benefits-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lab-process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
    }
    
    .process-step:nth-child(odd) .step-content,
    .process-step:nth-child(even) .step-content {
        margin-left: 80px;
        margin-right: 20px;
        max-width: calc(100% - 100px);
    }
    
    .step-number {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .lab-hero-title {
        font-size: 2.5rem;
    }
    
    .lab-hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .lab-features-grid {
        grid-template-columns: 1fr;
    }
    
    .lab-specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        padding: 25px 20px;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .lab-hero-title {
        font-size: 2rem;
    }
    
    .lab-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .lab-hero-button {
        width: 100%;
        max-width: 300px;
    }
    
    .lab-feature-card {
        padding: 30px 20px;
    }
    
    .lab-process-timeline::before {
        left: 20px;
    }
    
    .process-step:nth-child(odd) .step-content,
    .process-step:nth-child(even) .step-content {
        margin-left: 60px;
        margin-right: 10px;
    }
    
    .step-number {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}