/* ============================================ */
/* HERO COMPONENT - AFRIPRECISION */
/* Premium hero sections for all pages */
/* ============================================ */

/* ============================================ */
/* 1. BASE HERO STYLES */
/* ============================================ */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 160px 0 100px;
}

.hero__container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================ */
/* 2. PREMIUM HERO (Homepage) */
/* ============================================ */

.hero-premium {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-950) 0%, var(--gray-900) 50%, #2d1f35 100%);
    overflow: hidden;
    padding: 160px 0 100px;
}

/* Video Background */
.hero-premium__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.06;
    filter: grayscale(50%) blur(3px);
    z-index: 0;
}

/* Video Fallback */
.hero-premium__video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* Gradient Overlay */
.hero-premium__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.97) 0%, 
        rgba(26, 31, 58, 0.94) 50%,
        rgba(196, 30, 40, 0.12) 100%);
    z-index: 1;
}

/* Floating Shapes */
.hero-premium__shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-premium__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: floatShape 25s ease-in-out infinite;
    will-change: transform;
}

.hero-premium__shape--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-premium__shape--2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff3d47 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: 8s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Container */
.hero-premium__container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
}

/* Content Column */
.hero-premium__content {
    color: white;
}

/* Badge */
.hero-premium__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: var(--space-8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-premium__badge i {
    color: var(--color-primary);
    font-size: var(--text-base);
}

/* Main Title */
.hero-premium__title {
    font-family: var(--font-primary);
    font-size: var(--text-hero);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: white;
    margin-bottom: var(--space-7);
}

.hero-premium__title-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff3d47 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.hero-premium__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff3d47 50%, transparent 100%);
    border-radius: var(--radius-full);
}

/* Subtitle */
.hero-premium__subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--font-normal);
    line-height: var(--leading-loose);
    color: var(--text-inverse-secondary);
    margin-bottom: var(--space-10);
    max-width: 580px;
}

/* CTA Buttons */
.hero-premium__actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

/* Trust Indicators */
.hero-premium__trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-premium__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--text-inverse-secondary);
}

.hero-premium__trust-item i {
    color: var(--color-primary);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

/* Hero Image Column */
.hero-premium__image {
    position: relative;
    z-index: 5;
}

.hero-premium__image-placeholder {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4),
                0 0 60px var(--color-primary-light);
}

.hero-premium__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-card);
    filter: brightness(0.9) contrast(1.1);
}

.hero-premium__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(196, 30, 40, 0.3) 0%, 
        rgba(10, 14, 39, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-premium__image-placeholder:hover .hero-premium__image-overlay {
    opacity: 1;
}

.hero-premium__image-overlay i {
    font-size: 80px;
    color: white;
    opacity: 0.8;
}

/* ============================================ */
/* 3. PAGE HEADER (Subpages) */
/* ============================================ */

.page-header {
    position: relative;
    padding: 180px 0 100px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 40%, rgba(196, 30, 40, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(196, 30, 40, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.page-header > .container {
    position: relative;
    z-index: 2;
}

.page-header__title {
    font-family: var(--font-primary);
    font-size: var(--text-hero);
    font-weight: var(--font-black);
    letter-spacing: var(--tracking-tight);
    color: white;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header__breadcrumb {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-header__breadcrumb li {
    color: var(--text-inverse-muted);
    font-size: var(--text-base);
}

.page-header__breadcrumb li a {
    color: var(--text-inverse-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-header__breadcrumb li a:hover {
    color: var(--color-primary);
}

.page-header__breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-3);
    color: var(--text-inverse-muted);
    opacity: 0.5;
}

.page-header__breadcrumb li:last-child {
    color: white;
}

/* ============================================ */
/* 4. SAAS HERO (Services page) */
/* ============================================ */

.hero-saas {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 180px 0 100px;
}

.hero-saas__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(196, 30, 40, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(196, 30, 40, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-saas__shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-saas__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: floatShape 20s ease-in-out infinite;
    will-change: transform;
}

.hero-saas__shape--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.hero-saas__shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff3d47 0%, transparent 70%);
    bottom: 15%;
    right: 10%;
    animation-delay: 5s;
}

.hero-saas__shape--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

.hero-saas__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-saas__title {
    font-family: var(--font-primary);
    font-size: var(--text-hero);
    font-weight: var(--font-black);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: white;
    margin-bottom: var(--space-7);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-saas__subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-2xl);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--text-inverse-secondary);
    margin-bottom: var(--space-6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-saas__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--text-inverse-muted);
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-saas__breadcrumb a {
    color: var(--text-inverse-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero-saas__breadcrumb a:hover {
    color: var(--color-primary);
}

.hero-saas__breadcrumb span:last-child {
    color: white;
}

/* ============================================ */
/* 5. RESPONSIVE ADJUSTMENTS */
/* ============================================ */

@media (max-width: 1199px) {
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: var(--text-5xl);
    }
}

@media (max-width: 991px) {
    .hero-premium {
        padding: 140px 0 80px;
        min-height: 80vh;
    }
    
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: var(--text-4xl);
        letter-spacing: -0.02em;
    }
    
    .hero-premium__subtitle,
    .hero-saas__subtitle {
        font-size: var(--text-lg);
        max-width: 100%;
    }
    
    .page-header {
        padding: 160px 0 80px;
    }
    
    .hero-saas {
        padding: 140px 0 80px;
        min-height: 55vh;
    }
    
    /* Stack image on top on tablet/mobile */
    .hero-premium .col-lg-6:last-child {
        order: -1;
        margin-bottom: var(--space-10);
    }
}

@media (max-width: 767px) {
    .hero-premium {
        padding: 120px 0 60px;
        min-height: 100vh;
    }
    
    .hero-premium__title,
    .page-header__title,
    .hero-saas__title {
        font-size: var(--text-3xl);
        letter-spacing: -0.01em;
    }
    
    .hero-premium__subtitle,
    .hero-saas__subtitle {
        font-size: var(--text-base);
    }
    
    .hero-premium__actions {
        flex-direction: column;
    }
    
    .hero-premium__badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-5);
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header__title {
        font-size: var(--text-3xl);
    }
    
    .hero-saas {
        padding: 120px 0 60px;
    }
}

/* ============================================ */
/* 6. DARK MODE (Already dark, minimal changes) */
/* ============================================ */

[data-theme="dark"] .hero-premium,
[data-theme="dark"] .page-header,
[data-theme="dark"] .hero-saas {
    background: var(--gradient-dark);
}

/* ============================================ */
/* END HERO COMPONENT */
/* ============================================ */

