/**
 * ChatMaxima Home Hero Section - Modern SaaS Design
 * Author: ChatMaxima Team
 * Version: 2.0
 */

/* ============================================
   HERO SECTION BASE STYLES
   ============================================ */

.cm1-home-hero-section-modern
{
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fd 100%);
    min-height: 90vh;
}

/* Background Decorative Elements */
.cm1-home-hero-bg-gradient
{
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 125, 221, 0.15) 0%, rgba(59, 125, 221, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.cm1-home-hero-bg-pattern
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(59, 125, 221, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.cm1-home-hero-section-modern .container
{
    position: relative;
    z-index: 1;
}

/* ============================================
   TRUST BADGE
   ============================================ */

.cm1-home-hero-trust-badge
{
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 125, 221, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #152c5b;
    box-shadow: 0 4px 12px rgba(59, 125, 221, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cm1-home-hero-trust-badge:hover
{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 125, 221, 0.15);
}

/* ============================================
   CHANNEL ICONS
   ============================================ */

.cm1-home-hero-channels-container
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 992px)
{
    .cm1-home-hero-channels-container
    {
        justify-content: flex-start;
    }
}

.cm1-home-hero-channel-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 20px;
    color: #3b7ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cm1-home-hero-channel-icon:hover
{
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(59, 125, 221, 0.2);
    border-color: #3b7ddd;
}

.cm1-home-hero-channel-icon i
{
    font-size: 22px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.cm1-home-hero-title
{
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #152c5b;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cm1-home-hero-gradient-text
{
    background: linear-gradient(135deg, #3b7ddd 0%, #5081ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.cm1-home-hero-subtitle
{
    font-size: 20px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 32px;
    font-weight: 400;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.cm1-home-hero-cta-container
{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.cm1-home-hero-btn-primary
{
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b7ddd 0%, #4267f6 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(59, 125, 221, 0.3);
    transition: all 0.3s ease;
}

.cm1-home-hero-btn-primary:hover
{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 125, 221, 0.4);
    color: #ffffff;
}

.cm1-home-hero-btn-secondary
{
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #3b7ddd;
    background: #ffffff;
    border: 2px solid #3b7ddd;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cm1-home-hero-btn-secondary:hover
{
    background: #3b7ddd;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59, 125, 221, 0.2);
}

/* ============================================
   TRUST INDICATORS
   ============================================ */

.cm1-home-hero-trust-indicators
{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
    justify-content: center;
}

.cm1-home-hero-trust-item
{
    display: flex;
    align-items: center;
    gap: 6px;
}

.cm1-home-hero-trust-item i
{
    font-size: 16px;
}

/* ============================================
   STATS CARDS
   ============================================ */

.cm1-home-hero-stats-grid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px)
{
    .cm1-home-hero-stats-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cm1-home-hero-stat-card
{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 125, 221, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cm1-home-hero-stat-card:hover
{
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 125, 221, 0.15);
    border-color: rgba(59, 125, 221, 0.3);
}

.cm1-home-hero-stat-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b7ddd 0%, #5081ff 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
}

.cm1-home-hero-stat-content
{
    flex: 1;
}

.cm1-home-hero-stat-number
{
    font-size: 32px;
    font-weight: 700;
    color: #152c5b;
    line-height: 1;
    margin-bottom: 4px;
}

.cm1-home-hero-stat-label
{
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* ============================================
   HERO IMAGE
   ============================================ */

.cm1-home-hero-image-container
{
    position: relative;
    width: 100%;
    height: 100%;
}

.cm1-home-hero-image-wrapper
{
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.cm1-home-hero-main-image
{
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: floatImage 6s ease-in-out infinite;
}

/* Floating Cards */
.cm1-home-hero-floating-card
{
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: #ffffff;
    padding: 8px;
    animation: float 8s ease-in-out infinite;
}

.cm1-home-hero-floating-card-1
{
    width: 200px;
    top: 10%;
    right: -10%;
    animation-delay: -2s;
}

.cm1-home-hero-floating-card-2
{
    width: 180px;
    bottom: 5%;
    left: -8%;
    animation-delay: -4s;
}

/* ============================================
   DASHBOARD PREVIEW SECTION
   ============================================ */

.cm1-home-hero-dashboard-preview
{
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cm1-home-hero-dashboard-tabs
{
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #f8f9fd;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.cm1-home-hero-dashboard-tab
{
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cm1-home-hero-dashboard-tab:hover
{
    border-color: #3b7ddd;
    color: #3b7ddd;
}

.cm1-home-hero-dashboard-tab.active
{
    background: linear-gradient(135deg, #3b7ddd 0%, #4267f6 100%);
    border-color: transparent;
    color: #ffffff;
}

.cm1-home-hero-dashboard-content
{
    position: relative;
    padding: 24px;
    min-height: 400px;
}

.cm1-home-hero-dashboard-panel
{
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.cm1-home-hero-dashboard-panel.active
{
    display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float
{
    0%, 100%
    {
        transform: translateY(0px);
    }
    50%
    {
        transform: translateY(-20px);
    }
}

@keyframes floatImage
{
    0%, 100%
    {
        transform: translateY(0px);
    }
    50%
    {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn
{
    from
    {
        opacity: 0;
        transform: translateY(10px);
    }
    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 991px) */
@media (max-width: 991px)
{
    .cm1-home-hero-section-modern
    {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .cm1-home-hero-title
    {
        font-size: 42px;
    }

    .cm1-home-hero-subtitle
    {
        font-size: 18px;
    }

    .cm1-home-hero-cta-container
    {
        justify-content: center;
    }

    .cm1-home-hero-stats-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .cm1-home-hero-floating-card
    {
        display: none;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px)
{
    .cm1-home-hero-section-modern
    {
        padding: 60px 0 40px;
    }

    .cm1-home-hero-title
    {
        font-size: 32px;
    }

    .cm1-home-hero-subtitle
    {
        font-size: 16px;
    }

    .cm1-home-hero-btn-primary,
    .cm1-home-hero-btn-secondary
    {
        width: 100%;
        text-align: center;
    }

    .cm1-home-hero-cta-container
    {
        flex-direction: column;
        width: 100%;
    }

    .cm1-home-hero-trust-indicators
    {
        flex-direction: column;
        gap: 12px;
    }

    .cm1-home-hero-stats-grid
    {
        grid-template-columns: 1fr;
    }

    .cm1-home-hero-stat-card
    {
        flex-direction: column;
        text-align: center;
    }

    .cm1-home-hero-dashboard-tabs
    {
        flex-direction: column;
        gap: 8px;
    }

    .cm1-home-hero-dashboard-tab
    {
        width: 100%;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

body[data-theme="dark"] .cm1-home-hero-section-modern
{
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body[data-theme="dark"] .cm1-home-hero-title,
body[data-theme="dark"] .cm1-home-hero-stat-number
{
    color: #ffffff;
}

body[data-theme="dark"] .cm1-home-hero-subtitle,
body[data-theme="dark"] .cm1-home-hero-trust-item,
body[data-theme="dark"] .cm1-home-hero-stat-label
{
    color: #cbd5e1;
}

body[data-theme="dark"] .cm1-home-hero-trust-badge,
body[data-theme="dark"] .cm1-home-hero-channel-icon,
body[data-theme="dark"] .cm1-home-hero-stat-card
{
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body[data-theme="dark"] .cm1-home-hero-dashboard-preview
{
    background: #1e293b;
}

body[data-theme="dark"] .cm1-home-hero-dashboard-tab
{
    background: #0f172a;
    color: #cbd5e1;
}
