/* ==========================================================================
   HERO SECTION - MODERN SAAS REDESIGN
   ========================================================================== */

.hero-saas {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #0F4C75, #4DD5D9);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4DD5D9, #0F4C75);
    bottom: -150px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #0F4C75, #1876AE);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.06;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.08;
    }
}

/* Container */
.hero-saas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* LEFT: Visual Column */
.hero-visual {
    position: relative;
    order: 1;
}

.hero-mockup {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(15, 76, 117, 0.25);
    border: 1px solid rgba(15, 76, 117, 0.1);
    background: white;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 213, 217, 0.2), transparent 60%);
    pointer-events: none;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(15, 76, 117, 0.08);
    backdrop-filter: blur(10px);
    animation: floatCard 6s ease-in-out infinite;
}

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

.floating-card .card-text {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

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

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

.card-3 {
    top: 50%;
    right: -5%;
    animation-delay: 4s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* RIGHT: Content Column */
.hero-content-saas {
    order: 2;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(77, 213, 217, 0.15), rgba(15, 76, 117, 0.1));
    border: 1px solid rgba(15, 76, 117, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title-saas {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle-saas {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.btn-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary-saas {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(15, 76, 117, 0.3);
}

.btn-primary-saas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 76, 117, 0.4);
}

.btn-secondary-saas {
    background: white;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary-saas:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 76, 117, 0.25);
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.trust-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* RTL Support */
html[dir="rtl"] .hero-saas-container {
    grid-template-columns: 1fr 1fr;
}

html[dir="rtl"] .hero-visual {
    order: 2;
}

html[dir="rtl"] .hero-content-saas {
    order: 1;
}

html[dir="rtl"] .hero-mockup {
    transform: perspective(1000px) rotateY(5deg);
}

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

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

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

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

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

    .hero-visual {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-content-saas {
        order: 1;
        text-align: center;
        max-width: 100%;
    }

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

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

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

    .hero-mockup {
        transform: perspective(1000px) rotateY(0deg);
    }

    html[dir="rtl"] .hero-visual {
        order: 2;
    }

    html[dir="rtl"] .hero-content-saas {
        order: 1;
    }

    html[dir="rtl"] .hero-mockup {
        transform: perspective(1000px) rotateY(0deg);
    }
}

@media (max-width: 768px) {
    .hero-saas {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-saas-container {
        padding: 0 var(--spacing-lg);
    }

    .hero-title-saas {
        font-size: 2.5rem;
    }

    .hero-subtitle-saas {
        font-size: 1.1rem;
    }

    .btn-saas {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .floating-card {
        display: none;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
}

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

    .hero-subtitle-saas {
        font-size: 1rem;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
}