/* ============================================
   REDESIGNED HERO SECTION - MODERN & CLEAN
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --hero-primary: #5b00aa;
    --hero-primary-dark: #7B3FA7;
    --hero-primary-light: #5b00aa;
    --hero-accent: #5b00aa;
    --hero-text-dark: #2c3e50;
    --hero-text-gray: #6c757d;
    --hero-text-light: #8e9aaf;
    --hero-bg-light: #f8f9fa;
    --hero-bg-white: #ffffff;
    --hero-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --hero-shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --hero-shadow-lg: 0 15px 40px rgba(146, 85, 206, 0.15);
    --hero-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-border-radius: 16px;
}

/* ============================================
   HERO SECTION LAYOUT
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    overflow: visible;
    padding: 0;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 160px);
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    max-width: 100%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    width: 100%;
    overflow: visible;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--hero-text-dark);
    margin-bottom: 30px;
    letter-spacing: -1.5px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.gradient-text {
    background: linear-gradient(135deg, #5b00aa 0%, #5b00aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--hero-text-gray);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    flex-wrap: nowrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5b00aa 0%, #7B3FA7 100%);
    color: white;
    padding: 16px 32px;
    border-radius: var(--hero-border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--hero-transition);
    box-shadow: var(--hero-shadow-md);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--hero-shadow-lg);
    color: white;
}

.btn-primary i {
    font-size: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(146, 85, 206, 0.1);
    color: #5b00aa;
    padding: 16px 32px;
    border: 2px solid #5b00aa;
    border-radius: var(--hero-border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--hero-transition);
    flex-shrink: 0;
}

.btn-secondary:hover {
    background: #5b00aa;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--hero-shadow-md);
}

.btn-secondary i {
    font-size: 18px;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.social-proof {
    display: flex;
    align-items: center;
    gap: 25px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.user-avatars {
    display: flex;
    align-items: center;
    gap: -10px;
}

.user-avatars img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--hero-shadow-sm);
    margin-left: -10px;
}

.user-avatars img:first-child {
    margin-left: 0;
}

.more-users {
    background: var(--hero-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-left: -10px;
    box-shadow: var(--hero-shadow-sm);
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars i {
    color: #5b00aa;
    font-size: 18px;
}

.stars span {
    font-size: 16px;
    font-weight: 700;
    color: var(--hero-text-dark);
    margin-left: 8px;
}

.rating-info p {
    font-size: 14px;
    color: var(--hero-text-gray);
    margin: 0;
}

/* ============================================
   HERO VISUAL
   ============================================ */

.main-dashboard {
    position: relative;
    z-index: 5;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.4s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-dashboard img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--hero-shadow-lg);
    position: relative;
    z-index: 2;
}


/* ============================================
   BACKGROUND ELEMENTS
   ============================================ */

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(146, 85, 206, 0.08) 0%, rgba(255, 107, 53, 0.08) 100%);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -40px;
    animation-delay: 0s;
    opacity: 0.4;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: -30px;
    animation-delay: 3s;
    opacity: 0.3;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(146, 85, 206, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 184, 0, 0.05) 0%, transparent 50%);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-4px) scale(1.01);
    }
    50% {
        transform: translateY(-6px) scale(1.02);
    }
    75% {
        transform: translateY(-3px) scale(1.01);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199px) {
    .hero-container {
        gap: 50px;
        grid-template-columns: 1fr 1fr;
        padding: 80px 30px 50px 30px;
        max-width: 100%;
    }
    
    .hero-content {
        padding-right: 15px;
    }
    
    .hero-visual {
        padding-left: 15px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-actions {
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 15px;
    }
    
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        min-height: auto;
        padding: 60px 20px 40px 20px;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
        padding-right: 0;
    }
    
    .hero-visual {
        order: 1;
        min-height: 500px;
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-description {
        font-size: 17px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .social-proof {
        justify-content: center;
    }
    
}

@media (max-width: 767px) {
    .hero-container {
        padding: 50px 15px 30px 15px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-visual {
        min-height: 400px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 16px 24px;
    }
    
}

@media (max-width: 575px) {
    .hero-container {
        padding: 50px 15px 30px 15px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-visual {
        min-height: 350px;
    }
    
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.hero-section * {
    will-change: transform;
}

.floating-element {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section * {
        animation: none !important;
        transition: none !important;
    }
}
