/* Hero Actions (CTA Buttons) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: slideInLeft 0.8s ease-out 0.8s both;
}

.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    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.6s;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary-modern:hover .btn-icon {
    transform: translateX(5px);
}

.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: #2c5aa0;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(44, 90, 160, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    background: rgba(44, 90, 160, 0.05);
    border-color: #2c5aa0;
    transform: translateY(-2px);
}

.play-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Clean Title Styles */
.hero-title-clean {
    font-size: clamp(2.6rem, 4.8vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.title-main {
    display: block;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.title-highlight {
    display: block;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

/* Left column visual refinement */
.hero-content-left .content-wrapper {
    position: relative;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-content-left .content-wrapper::before {
    content: none;
}

/* Underline accent for the highlighted word */
.title-highlight {
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 42%;
    max-width: 220px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(44, 90, 160, 0.3), rgba(30, 63, 115, 0.6));
    box-shadow: 0 6px 18px rgba(44, 90, 160, 0.25);
}

.hero-description-clean {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2.5rem;
    animation: slideInLeft 0.8s ease-out 0.6s both;
    max-width: 52ch;
}

/* Hero logo */
.hero-logo {
    display: block;
    height: 28px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
    animation: fadeInUp 0.6s ease-out both;
}

/* Clean CTA Button */
.hero-action-clean {
    margin-bottom: 3rem;
    animation: slideInLeft 0.8s ease-out 0.8s both;
}

.btn-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25d366;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-clean i {
    font-size: 1.1rem;
}

.btn-clean:hover {
    background: #128c7e;
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Patient Testimonials */
.patient-testimonials {
    animation: slideInLeft 0.8s ease-out 1s both;
}

.testimonial-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}

.patient-avatars {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-left: -10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Visual Content */
.hero-content-right {
    padding-left: 2rem;
}

/* Mobile-only visual hidden by default */
.hero-mobile-visual {
    display: none;
}

.visual-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

/* Image right-side stats - modern card */

/* Modern dark-glass stats card */
.image-stats {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    padding: 14px 18px 14px 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.42));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.25), inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}

.image-stats::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

.image-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: 10px;
}

.image-stat + .image-stat {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.image-stat strong {
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 40%, #1e3f73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-stat span {
    font-size: 0.78rem;
    color: rgba(241, 245, 249, 0.9);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #ffffff;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem;
    color: white;
}

.slide-tag {
    background: rgba(44, 90, 160, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float i {
    font-size: 26px;
}

.wa-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}

/* WhatsApp Mini Chat */
.wa-mini {
    position: fixed;
    right: 18px;
    bottom: 88px;
    width: 320px;
    max-width: calc(100% - 36px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-mini.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wa-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 14px;
    background: #25d366;
    color: #fff;
}

.wa-mini-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.wa-mini-title i { font-size: 18px; }

.wa-mini-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.wa-mini-body {
    padding: 0;
    background: #e5ddd5;
    background-image: 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");
}

.wa-conversation {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.wa-message {
    margin-bottom: 8px;
    display: flex;
}

.wa-message-received {
    justify-content: flex-start;
}

.wa-message-bubble {
    background: #ffffff;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 8px 12px;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-message-text {
    color: #303030;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.wa-message-time {
    color: #999;
    font-size: 11px;
    text-align: right;
    margin-top: 2px;
}

.wa-mini-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25d366;
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.wa-mini-cta:hover {
    background: #128c7e;
}

.wa-mini-cta i {
    font-size: 16px;
}

@media (max-width: 480px) {
    .wa-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
    .wa-mini {
        right: 14px;
        bottom: 78px;
        width: calc(100% - 28px);
    }
}

.control-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2c5aa0;
    transform: scale(1.3);
}

.control-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #2c5aa0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Visual Decorations */
.visual-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(44, 90, 160, 0.05));
    animation: decorationFloat 8s ease-in-out infinite;
}

.decoration-1 {
    width: 150px;
    height: 150px;
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 100px;
    height: 100px;
    bottom: -5%;
    left: -5%;
    animation-delay: 2s;
}

.decoration-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: -15%;
    animation-delay: 4s;
}

@keyframes decorationFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #64748b;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounceArrow 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-2px); }
}

/* Advanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements - Reduced */
.float-element {
    opacity: 0.3;
}

.float-1, .float-3 {
    display: none;
}

/* Minimal Decorations */
.decoration-2, .decoration-3 {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 4rem;
    }

    .hero-content-left,
    .hero-content-right {
        padding: 0;
    }

    .hero-content-left .content-wrapper {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .image-carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content-right {
        display: none;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn-clean {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .patient-avatars {
        justify-content: center;
    }

    .title-highlight::after {
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
    }

    .image-carousel {
        height: 300px;
        border-radius: 20px;
    }

    .image-stats {
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        gap: 6px;
        padding: 10px 14px;
        border-radius: 14px;
    }
    .image-stat strong {
        font-size: 1.35rem;
    }
    .image-stat span {
        font-size: 0.76rem;
    }

    .float-element {
        display: none;
    }
    
    /* Show the mobile-only visual above CTA */
    .hero-mobile-visual {
        display: block;
        margin-bottom: 1.25rem;
    }
    .image-carousel-mobile {
        position: relative;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
        background: #ffffff;
    }
    .image-carousel-mobile .slide-image,
    .image-carousel-mobile .slide-image img {
        width: 100%;
        height: 100%;
    }
    .image-carousel-mobile .slide-image img {
        object-fit: contain;
        object-position: center;
        display: block;
        background: #ffffff;
    }
    
    .hero-logo {
        height: 24px;
        margin-bottom: 1.4rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 1rem;
    }

    .hero-title-clean {
        font-size: 2.1rem;
    }

    .hero-description-clean {
        font-size: 1.05rem;
    }

    .image-carousel {
        height: 250px;
    }
    .image-carousel-mobile {
        border-radius: 14px;
    }

    .image-stats {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        gap: 4px;
        padding: 8px 12px;
        border-radius: 12px;
    }
    .image-stat strong {
        font-size: 1.15rem;
    }
    .image-stat span {
        font-size: 0.72rem;
    }

    .visual-decorations {
        display: none;
    }
    
    .hero-logo {
        height: 22px;
        margin-bottom: 1.2rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Redundant safety: ensure hidden on smallest screens */
    .scroll-indicator {
        display: none;
    }
}