/* ========================================
   MODERN HERO SECTION STYLES
   ========================================*/

/* Hero Section Base */
.modern-hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
    padding: 60px 0 40px;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #001a2e 0%,
        #000814 25%,
        #000000 50%,
        #0f0f0f 75%,
        #001122 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
    z-index: 2;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    width: 150px;
    height: 150px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.9;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 4;
    color: white;
    padding: 20px 0;
    text-align: center;
    /* max-width: 900px; */
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Make all title parts inline to reduce vertical space */
.title-highlight,
.title-main, 
.title-subtitle {
    display: inline;
    margin-right: 0.5rem;
    font-size: inherit;
    line-height: inherit;
}

.title-highlight {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.title-main {
    color: white;
}

.title-subtitle {
    color: #0d6efd;
}

/* Only stack on very small mobile screens */
@media (max-width: 575.98px) {
    .title-highlight {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .title-main {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .title-subtitle {
        display: block;
        margin-right: 0;
    }
}

/* Hero Description */
.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.text-highlight {
    background: linear-gradient(135deg, #20c997, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: #0d6efd;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Button Ripple Effect */
.btn-hero-primary::before,
.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover::before,
.btn-hero-secondary:hover::before {
    left: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 4;
    padding: 2rem;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: rotate 8s linear infinite;
    opacity: 0.7;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-content {
    position: relative;
    z-index: 2;
    color: white;
}

.visual-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #0d6efd;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.visual-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.visual-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: floatAround 8s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.element-2 {
    top: 70%;
    right: -10%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-10px) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 0.7;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
}

.scroll-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.scroll-link:hover {
    color: white;
    transform: translateY(-5px);
}

.scroll-link span {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ========================================*/

/* Large Desktop */
@media (min-width: 1400px) {
    .modern-hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .modern-hero-section {
        margin-top: 70px;
        padding: 40px 0 30px;
        text-align: center;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-badge {
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
}

/* Mobile Large */
@media (max-width: 767.98px) {
    .modern-hero-section {
        margin-top: 60px;
        padding: 30px 0 20px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .title-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Mobile Small */
@media (max-width: 575.98px) {
    .modern-hero-section {
        margin-top: 50px;
        padding: 20px 0 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ========================================*/

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .hero-particles::before,
    .hero-particles::after,
    .floating-element,
    .card-glow,
    .scroll-arrow {
        animation: none;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary,
    .visual-card {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .hero-badge,
    .visual-card {
        border: 2px solid white;
    }
    
    .btn-hero-secondary {
        border: 3px solid white;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .btn-hero-primary {
        background: linear-gradient(135deg, #f8f9fa, #dee2e6);
        color: #0d6efd;
    }
    
    .btn-hero-primary:hover {
        background: linear-gradient(135deg, #e9ecef, #ced4da);
    }
}

/* Print Styles */
@media print {
    .modern-hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-background,
    .hero-overlay,
    .hero-particles,
    .floating-elements,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-content {
        color: black !important;
    }
    
    .title-highlight,
    .text-highlight {
        color: #0d6efd !important;
        -webkit-text-fill-color: #0d6efd !important;
    }
}

/* Performance Optimization */
.modern-hero-section,
.hero-background,
.visual-card,
.floating-element {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* GPU Acceleration */
.hero-particles::before,
.hero-particles::after,
.card-glow,
.floating-element {
    transform: translateZ(0);
}