/* ========================================
   Modern Hero Section - Premium Design
   ======================================== */

/* Hero Variables */
:root {
    --hero-min-height: calc(100vh - var(--header-height));
    --hero-padding-top: calc(var(--header-height) + 60px);
    --hero-padding-bottom: 60px;
    --hero-text-color: #ffffff;
    --hero-text-muted: rgba(255, 255, 255, 0.85);
    --hero-cta-primary: #4FC13C;
    --hero-cta-primary-hover: #2EA26D;
    --hero-cta-secondary-bg: rgba(255, 255, 255, 0.12);
    --hero-cta-secondary-border: rgba(255, 255, 255, 0.3);
}

/* Hero Base Styles */
.hero-modern {
    position: relative;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
    overflow: hidden;
}

/* Background Image Container */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroZoom 15s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Premium Overlay with Soft Gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

/* Premium Blur Shapes for Depth */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
    will-change: transform;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #1762BE 0%, #122A54 100%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #4FC13C 0%, #2EA26D 100%);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00D4FF 0%, #1762BE 100%);
    top: 50%;
    left: 30%;
    opacity: 0.25;
    animation-delay: -10s;
}

.hero-shape-4 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4FC13C 0%, #00D4FF 100%);
    bottom: 20%;
    right: 10%;
    opacity: 0.2;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -40px) scale(1.08);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(40px, 40px) scale(1.05);
    }
}

/* Subtle Grid Pattern Overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Radial Glow at Center */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(14, 146, 210, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Content Container */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* Hero Label/Badge - Enhanced */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hero-cta-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hero Title - Enhanced Contrast */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--hero-text-color);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Hero Title Line 1 - White */
.hero-title-line1 {
    display: block;
    color: #ffffff !important;
    font-weight: 600;
    -webkit-text-fill-color: #ffffff;
}

/* Hero Title Line 2 - White with Gradient Highlight */
.hero-title-line2 {
    display: block;
    color: #ffffff !important;
    font-weight: 600;
    -webkit-text-fill-color: #ffffff;
}

/* Highlighted Text - Green Gradient */
.hero-title-highlight {
    background: linear-gradient(135deg, #4FC13C 0%, #22c55e 50%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(79, 193, 60, 0.4));
    font-weight: 700;
    color: transparent !important;
}

/* Hero Description - Enhanced Readability */
.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.8;
    color: var(--hero-text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.hero-description p {
    margin: 0;
}

/* Hero Actions (CTA Buttons) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Primary CTA Button - Enhanced */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4FC13C 0%, #2EA26D 100%);
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(54, 179, 126, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #2EA26D 0%, #25925C 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(54, 179, 126, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:active {
    transform: translateY(-1px) scale(1);
}

/* Secondary CTA Button - Enhanced */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary:active {
    transform: translateY(-1px) scale(1);
}

/* Hero Stats - Enhanced */
.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 56px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    padding-bottom: 30px;
}

.hero-stat {
    text-align: center;
    position: relative;
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--hero-text-color);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.hero-stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.hero-scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --hero-padding-top: calc(var(--header-height) + 60px);
        --hero-padding-bottom: 80px;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        padding: 16px 28px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .hero-stat:not(:last-child)::after {
        display: none;
    }
    
    .hero-stat-value {
        font-size: 2.25rem;
    }
    
    .hero-shape {
        filter: blur(60px);
        opacity: 0.3;
    }
    
    .hero-shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero-shape-2 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shape-3,
    .hero-shape-4 {
        display: none;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-label {
        font-size: 0.75rem;
        padding: 8px 14px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .hero-actions {
        gap: 12px;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 14px 20px;
        font-size: 0.9375rem;
    }
    
    .hero-stats {
        gap: 16px;
        padding-top: 28px;
    }
    
    .hero-stat {
        min-width: 70px;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-bg img,
    .hero-label,
    .hero-title,
    .hero-description,
    .hero-actions,
    .hero-stats,
    .hero-scroll-indicator,
    .hero-shape {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .hero-label::before {
        animation: none;
    }
    
    .hero-scroll-indicator svg {
        animation: none;
    }
}
