/* 
 * HERO SECTION - PREMIERE MEDICAL SAAS
 * Aesthetic: Apple Cleanliness + 3D Isometric + Glass
 */

.hero-saas {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f5f5f7 100%);
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

/* Background Atmosphere */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary-soft);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 210, 255, 0.15);
    /* Accent Soft */
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

/* Container */
.hero-saas-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* More space for visual */
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* CONTENT COLUMN */
.hero-content-saas {
    max-width: 650px;
    animation: fadeUp 1s var(--transition-smooth) forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 114, 255, 0.1);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(5px);
}

.hero-title-saas {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    background: linear-gradient(180deg, var(--text-primary) 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-saas {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-icon {
    width: 24px;
    height: 24px;
    background: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0px;
    margin-left: 0px;
    flex-shrink: 0;
    font-size: 14px;
    fill: #f5f5f7;
}


/* VISUAL COLUMN (3D Mockup) */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 1.2s var(--transition-smooth) forwards;
}

.hero-mockup {
    width: 100%;
    max-width: 900px;
    transform: perspective(2000px) rotateY(-12deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.hero-mockup img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Hardware border */
}

.hero-mockup:hover {
    transform: perspective(2000px) rotateY(-8deg) rotateX(2deg) scale(1.02);
}

/* Floating Elements (Glass Cards) */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 1.5rem;
}

.floating-card .card-text {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.card-1 {
    top: 15%;
    right: -5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 0%;
    animation-delay: 2s;
}

.card-3 {
    top: 45%;
    right: -10%;
    animation-delay: 4s;
    background: var(--color-primary);
    color: white;
}

.card-3 .card-text {
    color: white;
}

/* RTL Support */
html[dir="rtl"] .hero-mockup {
    transform: perspective(2000px) rotateY(12deg) rotateX(5deg);
}

html[dir="rtl"] .hero-mockup:hover {
    transform: perspective(2000px) rotateY(8deg) rotateX(2deg) scale(1.02);
}

html[dir="rtl"] .card-1 {
    right: auto;
    left: -5%;
}

html[dir="rtl"] .card-2 {
    left: auto;
    right: 0%;
}

html[dir="rtl"] .card-3 {
    right: auto;
    left: -10%;
}


/* Responsive */
@media (max-width: 1024px) {
    .hero-saas-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-content-saas {
        margin: 0 auto;
    }

    .hero-subtitle-saas {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        height: auto;
        margin-top: var(--space-lg);
    }

    .floating-card {
        display: none;
        /* Hide floaters on tablet to prevent overflow */
    }
}

@media (max-width: 768px) {
    .hero-title-saas {
        font-size: 2.5rem;
    }

    .hero-bg-shapes {
        opacity: 0.2;
    }
}