/* =============================================================================
   HEALIX LANDING PAGE SECTIONS
   Hero, Features Showcase, How It Works, Testimonials
   ============================================================================= */

/* -------------------------------------------------------------------------
   AOS Animation Fix - Ensure pointer events work
   ------------------------------------------------------------------------- */

[data-aos] {
    pointer-events: auto !important;
}

[data-aos] * {
    pointer-events: auto !important;
}

/* -------------------------------------------------------------------------
   Section Common Styles
   ------------------------------------------------------------------------- */

section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------------- */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-pink) 100%);
    padding: 8rem 0 6rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-highlight {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.trust-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    height: 500px;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: -20px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 80px;
    left: 50px;
    animation-delay: 2s;
}

.floating-card .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* All floating card icons use blue */
.card-1 .card-icon,
.card-2 .card-icon,
.card-3 .card-icon {
    background: linear-gradient(135deg, var(--accent-blue), #42A5F5);
}

.card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Hero Illustration */
.hero-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: white;
    animation-delay: 0s;
}

.circle-2 {
    width: 240px;
    height: 240px;
    background: white;
    top: 30px;
    left: 30px;
    animation-delay: 1s;
}

.circle-3 {
    width: 180px;
    height: 180px;
    background: white;
    top: 60px;
    left: 60px;
    animation-delay: 2s;
}

.illustration-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Hero Waves */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
}

.hero-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* -------------------------------------------------------------------------
   Features Showcase Section
   ------------------------------------------------------------------------- */

.features-showcase {
    background: white;
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-block {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 3rem;
    transition: all var(--transition-normal);
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.feature-block:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(106, 13, 173, 0.1);
    transform: translateY(-8px);
}

/* Ensure all child elements can receive pointer events */
.feature-block * {
    pointer-events: auto !important;
}

.block-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.patient-block .block-icon {
    background: linear-gradient(135deg, #6A0DAD, #8934D4);
}

.clinic-block .block-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.corporate-block .block-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.pharmacy-block .block-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.block-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.block-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.block-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.block-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.block-features li i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.block-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

.block-cta:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   How It Works Section
   ------------------------------------------------------------------------- */

.how-it-works {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.steps-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item:last-child .step-connector {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    z-index: 2;
}

.step-connector {
    position: absolute;
    left: 40px;
    top: 80px;
    width: 3px;
    height: calc(100% + 4rem - 80px);
    background: linear-gradient(to bottom, var(--primary-light), var(--accent-pink), var(--gray-300));
    z-index: 1;
}

.step-content {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gray-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-features li i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* How It Works CTA */
.how-it-works-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.how-it-works-cta::before,
.how-it-works-cta::after {
    pointer-events: none;
}

.how-it-works-cta h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer !important;
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
}

.cta-buttons .btn-primary *,
.cta-buttons .btn-outline-primary * {
    pointer-events: none;
}

.cta-buttons .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-buttons .btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------------------
   Testimonials Section
   ------------------------------------------------------------------------- */

.testimonials {
    background: white;
    padding: 6rem 0;
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 1.5rem;
    padding: 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all var(--transition-normal);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.clinic-avatar {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.corporate-avatar {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.pharmacy-avatar {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.testimonial-name {
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.875rem;
}

.testimonial-body {
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    padding-left: 2rem;
}

.testimonial-footer {
    display: flex;
    gap: 2rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.testimonial-location,
.testimonial-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-location i,
.testimonial-type i {
    color: var(--primary-color);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    width: 3rem;
    height: 3rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--gray-300);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Testimonials Stats */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* -------------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------------- */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* -------------------------------------------------------------------------
   Responsive Design
   ------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 1.5rem;
    }

    .trust-divider {
        width: 40px;
        height: 1px;
    }

    .feature-block {
        padding: 2rem;
    }

    .step-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-number {
        margin: 0 auto;
    }

    .step-connector {
        display: none;
    }

    .carousel-container {
        height: auto;
        min-height: 500px;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
