/* ===================================
   HERO SECTION STYLES - IMAGE BACKGROUND
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Background with Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform var(--transition-slow);
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 102, 204, 0.3) 30%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 212, 255, 0.2) 100%);
    z-index: 2;
}

/* Hero Content */
.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-5xl) 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    width: 100%;
}

.hero-text {
    margin-bottom: var(--spacing-4xl);
}

.hero-title {
    font-size: var(--fs-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-description {
    font-size: var(--fs-xl);
    line-height: 1.7;
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(0, 102, 204, 0.4);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.feature-item i {
    color: var(--accent-color);
    font-size: var(--fs-xl);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
}

.hero-actions .btn {
    min-width: 250px;
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--fs-lg);
    font-weight: 700;
    text-shadow: none;
    backdrop-filter: blur(10px);
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Hero Stats Cards */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 150px;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(0, 102, 204, 0.3);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: var(--white);
    font-size: var(--fs-xl);
}

.stat-info {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--white);
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
    opacity: 0.8;
    backdrop-filter: blur(5px);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.scroll-indicator span {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Placeholder styling for testing */
.hero-bg-image[src*="placeholder"],
.hero-bg-image[src=""],
.hero-bg-image:not([src]) {
    background: linear-gradient(135deg, 
        #2d3748 0%, 
        #1a202c 50%,
        #2d3748 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--fs-5xl);
    }
    
    .hero-description {
        font-size: var(--fs-lg);
    }
    
    .hero-features {
        gap: var(--spacing-lg);
    }
    
    .feature-item {
        font-size: var(--fs-base);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-actions .btn {
        min-width: 220px;
        font-size: var(--fs-base);
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 0;
    }
    
    .hero .container {
        padding: var(--spacing-4xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--fs-4xl);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-description {
        font-size: var(--fs-base);
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }
    
    .feature-item {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .stat-card {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero .container {
        padding: var(--spacing-3xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: var(--fs-3xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--fs-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .feature-item {
        font-size: var(--fs-sm);
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .hero-actions .btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--fs-base);
    }
    
    .stat-card {
        padding: var(--spacing-md);
        min-width: auto;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: var(--fs-lg);
    }
    
    .stat-number {
        font-size: var(--fs-xl);
    }
    
    .stat-label {
        font-size: var(--fs-xs);
    }
}

/* Animation Keyframes */
@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-10px);
    }
    70% {
        transform: translateX(-50%) translateY(-5px);
    }
    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* High Performance Animations */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-image,
    .scroll-indicator {
        animation: none;
    }
    
    .scroll-wheel {
        animation: none;
    }
    
    .feature-item:hover,
    .stat-card:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(0, 102, 204, 0.4) 30%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 212, 255, 0.3) 100%);
    }
}