/**
 * MarineStream Hero Framework
 * 
 * Unified hero section styling for consistent design across all pages
 * Supports video backgrounds, static images, and gradient overlays
 * 
 * Usage:
 * 1. Add class "ms-hero" to your hero section
 * 2. Add modifier classes for specific styling:
 *    - "ms-hero--video" for video background heroes
 *    - "ms-hero--image" for static image heroes  
 *    - "ms-hero--gradient" for gradient-only heroes
 * 3. Set data-video attribute for video background source
 * 
 * @author MarineStream Development Team
 * @version 1.0.0
 */

/* ========================
   HERO FRAMEWORK BASE
   ======================== */

.ms-hero {
    position: relative;
    /* Use flexible height for better accessibility */
    min-height: clamp(80vh, 100vh, 120vh);
    height: auto;
    color: var(--text-on-accent, #ffffff);
    /* Use responsive padding that scales with viewport */
    padding: var(--hero-padding-top, clamp(6rem, 12vh, 10rem)) 0 var(--hero-padding-bottom, clamp(3rem, 6vh, 6rem));
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    
    /* Ensure consistent z-index layering */
    z-index: 1;
    
    /* Add safe areas for screen magnification */
    box-sizing: border-box;
}

/* Hero container - standardized grid layout with accessibility improvements */
.ms-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl, 4.8rem);
    height: 100%;
    align-items: center;
    /* Remove fixed height calculation for better screen magnification support */
    min-height: fit-content;
    max-width: 1200px;
    margin: 0 auto;
    /* Use responsive padding system */
    padding: var(--safe-padding-vertical, 2rem) var(--safe-padding-horizontal, 2rem);
    
    /* Ensure content doesn't get cut off */
    overflow: visible;
    box-sizing: border-box;
}

/* Content area */
.ms-hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

/* Typography - Enhanced for accessibility */
.ms-hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2; /* Improved readability */
    margin-bottom: var(--hero-text-margin, 1.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Stronger shadow for better contrast */
    position: relative;
    
    /* Ensure text doesn't break awkwardly */
    word-wrap: break-word;
    hyphens: auto;
}

.ms-hero-title::after {
    content: "";
    position: absolute;
    bottom: calc(-1 * var(--hero-text-margin, 1.5rem) / 2);
    left: 0;
    width: clamp(60px, 8vw, 100px); /* Responsive accent line */
    height: 4px;
    background: var(--accent-color, #FF6600);
}

.ms-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6; /* Better readability */
    margin-bottom: var(--hero-text-margin, 2.5rem);
    max-width: 65ch; /* Character-based width for optimal reading */
    color: rgba(255, 255, 255, 0.95); /* Slightly better contrast */
    
    /* Ensure readable text flow */
    word-wrap: break-word;
    hyphens: auto;
}

/* Call-to-action buttons */
.ms-hero-cta,
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ms-hero .btn-primary {
    background-color: var(--accent-color, #FF6600);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md, 0.6rem);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-md, 0 5px 10px rgba(0, 0, 0, 0.08));
    z-index: 100;
}

.ms-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 10px 20px rgba(0, 0, 0, 0.1));
    background-color: var(--accent-dark, #E05A00);
}

.ms-hero .btn-outline {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md, 0.6rem);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ms-hero .btn-outline:hover {
    background-color: var(--accent-color, #FF6600);
    color: var(--text-on-accent, #ffffff);
    border-color: var(--accent-color, #FF6600);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ========================
   VIDEO BACKGROUND VARIANT
   ======================== */

.ms-hero--video {
    /* Video specific overrides */
}

.ms-hero--video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Video overlay for better text readability */
.ms-hero--video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* ========================
   STATIC IMAGE VARIANT
   ======================== */

.ms-hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ms-hero--image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200px, cover;
    background-position: center;
    background-repeat: repeat, no-repeat;
    opacity: 0.65;
    z-index: 0;
    filter: blur(2px);
}

.ms-hero--image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

/* ========================
   GRADIENT VARIANT
   ======================== */

.ms-hero--gradient {
    background: linear-gradient(135deg, 
        var(--primary-color, #FF6600) 0%, 
        var(--primary-dark, #E05A00) 40%, 
        var(--accent-color, #FF6600) 100%
    );
    min-height: 60vh; /* Slightly smaller for content-focused pages */
}

.ms-hero--gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.ms-hero--gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 102, 0, 0.05) 100%);
    z-index: 1;
    animation: morph 8s ease-in-out infinite;
}

/* ========================
   HERO VISUAL ELEMENTS
   ======================== */

.ms-hero-visual {
    flex: 1;
    max-width: 650px;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-hero-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    border-radius: var(--radius-xl, 1.5rem);
    overflow: hidden;
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.12));
}

/* ========================
   HERO BADGES
   ======================== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg, 1rem);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.hero-badge i {
    color: var(--accent-color, #FF6600);
    font-size: 1rem;
}

/* ========================
   ADDITIONAL COMPONENTS
   ======================== */

.ms-hero-quick-access {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 1rem);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ms-hero-quick-access h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-md, 0.6rem);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    min-height: 44px; /* Touch target accessibility */
    justify-content: center;
}

.quick-access-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-access-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color, #FF6600);
}

/* ========================
   ANIMATIONS
   ======================== */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes underlineExpand {
    to { transform: scaleX(1); }
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .ms-hero .container {
        max-width: 1400px;
    }
    
    .ms-hero-title {
        font-size: clamp(3.5rem, 4vw, 5rem);
    }
    
    .ms-hero-subtitle {
        font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .ms-hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl, 4.8rem);
        text-align: center;
    }
    
    .ms-hero-content {
        order: 2;
        max-width: 100%;
    }
    
    .ms-hero-visual {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Large tablet styles */
@media (max-width: 900px) and (min-width: 769px) {
    .ms-hero .container {
        gap: var(--space-xl, 4.8rem);
    }
    
    .ms-hero-title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile styles - Enhanced for accessibility */
@media (max-width: 768px) {
    .ms-hero {
        /* Responsive padding that scales better with viewport */
        padding: clamp(5rem, 15vh, 8rem) 0 clamp(2rem, 8vh, 4rem);
        min-height: clamp(60vh, 80vh, 100vh);
        
        /* Ensure content is never cut off */
        overflow: visible;
    }
    
    .ms-hero .container {
        gap: var(--space-lg, 2.4rem);
        padding: var(--safe-padding-vertical) var(--container-padding-mobile);
        
        /* Stack content vertically on mobile */
        min-height: fit-content;
    }
    
    .ms-hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: var(--hero-text-margin);
        line-height: 1.25; /* Better mobile readability */
        
        /* Prevent text overflow */
        word-break: break-word;
    }
    
    .ms-hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: var(--hero-text-margin);
        line-height: 1.5; /* Optimal mobile reading */
        max-width: 100%; /* Use full width on mobile */
    }
    
    .ms-hero-cta,
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: stretch; /* Full-width buttons */
    }
    
    .ms-hero-cta .btn,
    .hero-cta .btn {
        width: 100%;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        justify-content: center;
        min-height: 56px; /* Larger touch target for mobile */
        
        /* Better visual hierarchy */
        border-radius: var(--radius-lg, 1rem);
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    /* Knowledge Hub mobile optimizations */
    .hero-info-card, .blog-preview-card {
        padding: var(--safe-padding-horizontal);
        margin: 0 auto;
        max-width: 100%;
        
        /* Better mobile spacing */
        margin-bottom: var(--space-lg);
    }
    
    .info-stats {
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }
    
    .info-stats .stat-number {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .info-stats .stat-label {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Small mobile devices */
@media (max-width: 479px) {
    .ms-hero {
        padding: 80px 0 40px;
        min-height: 70vh;
    }
    
    .ms-hero .container {
        padding: 0 1rem;
    }
    
    .ms-hero-quick-access {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Extra small screen knowledge hub optimizations */
    .hero-info-card, .blog-preview-card {
        padding: 1.25rem;
    }
    
    .hero-info-card h3, .blog-preview-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .info-stats {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .info-stats .stat-number {
        font-size: 1.1rem;
    }
    
    .info-stats .stat-label {
        font-size: 0.6rem;
    }
    
    .info-badge, .preview-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ========================
   THEME SUPPORT
   ======================== */

/* Light theme adjustments */
[data-theme-mode="light"] .ms-hero--gradient {
    background: linear-gradient(135deg, 
        var(--bg-light, #F9F9F9) 0%, 
        var(--bg-white, #FFFFFF) 50%, 
        var(--bg-light, #F9F9F9) 100%
    );
}

[data-theme-mode="light"] .ms-hero-title {
    color: var(--text-primary, #000000);
}

[data-theme-mode="light"] .ms-hero-subtitle {
    color: var(--text-secondary, #333333);
    opacity: 0.85;
}

[data-theme-mode="light"] .ms-hero .btn-outline {
    color: var(--text-primary, #000000);
    border-color: var(--text-primary, #000000);
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] .ms-hero .btn-outline:hover {
    background-color: var(--text-primary, #000000);
    color: var(--bg-white, #ffffff);
    border-color: var(--text-primary, #000000);
}

/* ========================
   ENHANCED ACCESSIBILITY
   ======================== */

/* Screen magnification safe zones */
.ms-hero-content {
    /* Ensure content stays visible during magnification */
    margin: var(--safe-margin-top) 0 var(--safe-margin-bottom);
    overflow: visible;
}

/* Enhanced focus management for hero elements */
.ms-hero .btn:focus,
.ms-hero .btn:focus-visible,
.quick-access-item:focus,
.quick-access-item:focus-visible {
    outline: 3px solid var(--accent-color, #FF6600);
    outline-offset: 3px;
    z-index: 100;
    position: relative;
}

/* Remove focus outline for mouse users only */
.ms-hero .btn:focus:not(:focus-visible),
.quick-access-item:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to content link for keyboard users */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1000;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 6px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ms-hero::before,
    .ms-hero::after,
    .ms-hero .btn,
    .quick-access-item,
    .floating-element {
        animation: none !important;
        transition: none !important;
    }
    
    /* Keep essential transitions but make them instant */
    .ms-hero .btn:hover,
    .quick-access-item:hover {
        transition: none;
    }
}

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
    .ms-hero::after {
        background: rgba(0, 0, 0, 0.9); /* Darker overlay for better contrast */
    }
    
    .ms-hero-title,
    .ms-hero-subtitle {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
        color: #ffffff;
    }
    
    .ms-hero .btn {
        border: 2px solid currentColor;
        font-weight: 700;
    }
    
    .hero-badge,
    .hero-info-card,
    .blog-preview-card {
        border: 2px solid rgba(255, 255, 255, 0.5);
        box-shadow: none;
    }
}

/* Large text and zoom support */
@media (min-resolution: 120dpi) and (max-width: 768px) {
    .ms-hero-title {
        font-size: clamp(1.5rem, 4vw, 2.25rem);
        line-height: 1.3;
    }
    
    .ms-hero-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem);
        line-height: 1.6;
    }
    
    .ms-hero .btn {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        min-height: 60px;
    }
}

/* Enhanced touch targets for mobile devices */
@media (pointer: coarse) {
    .ms-hero .btn,
    .quick-access-item {
        min-height: 56px;
        min-width: 56px;
        padding: 1.25rem 1.5rem;
    }
    
    .quick-access-item {
        touch-action: manipulation;
    }
}

/* Dark mode system preference support */
@media (prefers-color-scheme: dark) {
    .ms-hero {
        background-color: #000;
    }
    
    .hero-info-card,
    .blog-preview-card {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .hero-badge,
    .info-badge,
    .preview-badge {
        background: var(--accent-color);
        color: #ffffff;
    }
}

/* ========================
   PRINT STYLES
   ======================== */

@media print {
    .ms-hero {
        min-height: auto;
        padding: 20px 0;
        background: none !important;
        color: #000 !important;
    }
    
    .ms-hero::before,
    .ms-hero::after,
    .ms-hero video {
        display: none !important;
    }
    
    .ms-hero-cta,
    .hero-cta,
    .ms-hero-quick-access {
        display: none !important;
    }
    
    .ms-hero-title,
    .ms-hero-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* ========================
   HERO VISUAL CARDS
   ======================== */

.hero-info-card, .blog-preview-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 1rem);
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-info-card:hover, .blog-preview-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.info-badge, .preview-badge {
    display: inline-block;
    background: var(--accent-color, #FF6600);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md, 0.6rem);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.hero-info-card h3, .blog-preview-card h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-info-card p, .blog-preview-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-stats .stat-item {
    text-align: center;
}

.info-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color, #FF6600);
    line-height: 1;
}

.info-stats .stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color, #FF6600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.preview-link:hover {
    color: var(--accent-light, #FF8533);
    transform: translateX(4px);
}

.preview-link i {
    transition: transform 0.3s ease;
}

.preview-link:hover i {
    transform: translateX(2px);
}

/* ========================
   UTILITY CLASSES
   ======================== */

.ms-hero--centered {
    text-align: center;
}

.ms-hero--left {
    text-align: left;
}

.ms-hero--compact {
    min-height: 60vh;
    padding: 80px 0 60px;
}

.ms-hero--full {
    min-height: 100vh;
}

/* Background video utilities */
.ms-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ms-hero-video--muted {
    /* Ensures autoplay compliance */
}

/* ========================
   PAGE-SPECIFIC OVERRIDES
   ======================== */

/* Team page specific styling */
.team-hero.ms-hero .ms-hero-title .highlight {
    color: var(--accent-color, #FF6600);
    position: relative;
}

.team-hero.ms-hero .ms-hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color, #FF6600);
    transform: scaleX(0);
    animation: underlineExpand 2s ease-out 0.5s forwards;
}

.team-hero.ms-hero {
    /* Allow video background to show through without orange overlay */
}

.team-hero.ms-hero::after {
    /* Use same dark overlay as other pages for text readability */
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

/* Floating elements for team hero */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

/* ========================
   DEBUG UTILITIES
   ======================== */

.ms-hero--debug {
    border: 2px solid red;
}

.ms-hero--debug .ms-hero-content {
    border: 1px solid blue;
}

.ms-hero--debug .ms-hero-visual {
    border: 1px solid green;
}
