/* Comprehensive Hero Text Visibility Fix */

/* Override hero section with guaranteed visibility */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-content {
    max-width: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
    padding: 1rem;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Guaranteed visible hero title */
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: heroTextReveal 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: center;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* Responsive font sizes that guarantee visibility */
@media (min-width: 480px) {
    .hero h1 {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 2.25rem !important;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }
}

/* Ensure text never overflows */
.hero h1 * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Force line breaks at appropriate points */
.hero h1 br {
    display: block;
}

/* Ensure highlight text also wraps properly */
.hero .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
    word-wrap: break-word;
    overflow-wrap: break-word;
}



/* Gold Pulsating Effect for "we invest in people" */
.gold-pulse {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldPulse 2.5s ease-in-out infinite alternate;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

@keyframes goldPulse {
    0% { 
        filter: brightness(1) drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
        transform: scale(1);
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
        transform: scale(1.02);
    }
    100% { 
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
        transform: scale(1.05);
    }
}

/* Ensure three-line hero title layout with proper spacing and optimal font */
.hero h1 {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem !important;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: heroTextReveal 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
    padding: 0 1rem;
    margin-bottom: 2.5rem;
}

/* Add proper spacing between lines */
.hero h1 br {
    display: block;
    margin-bottom: 0.5rem;
    content: "";
}

/* Responsive font sizes for three-line layout with optimal readability */
@media (min-width: 480px) {
    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.4;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.4;
        letter-spacing: 0.01em;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 2.25rem !important;
        line-height: 1.3;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.3;
    }
}



/* Enhanced Hero Animations and Effects */

/* Typewriter Animation Styles */
.typewriter-line {
    display: inline-block;
    border-right: 2px solid #fbbf24;
    animation: blink 1s infinite;
}

.typewriter-complete {
    border-right: none !important;
    animation: none !important;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #fbbf24; }
}

/* Cinematic Entrance Animations */
@keyframes heroTextReveal {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Enhanced Hover Effects */
.hero h1 span:hover,
.hero h1 .highlight:hover {
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Particle Canvas Styling */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Gold Pulse with Hover */
.gold-pulse {
    transition: all 0.3s ease;
    cursor: default;
}

.gold-pulse:hover {
    transform: scale(1.1);
    filter: brightness(1.3) drop-shadow(0 0 25px rgba(251, 191, 36, 0.9));
}

/* Click Burst Animation */
@keyframes clickBurst {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.click-burst {
    animation: clickBurst 0.6s ease-out forwards;
}

/* Animated Statistics */
.stat-number {
    transition: all 0.3s ease;
    display: inline-block;
}

.stat-number:hover {
    transform: scale(1.1);
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Enhanced Hero Content Animation */
.hero-content {
    animation: heroContentFloat 6s ease-in-out infinite alternate;
}

@keyframes heroContentFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Improved Text Shadows and Depth */
.hero h1 {
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(16, 185, 129, 0.3),
        0 0 80px rgba(16, 185, 129, 0.1);
}

/* Enhanced Highlight Animation */
.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: highlightPulse 3s ease-in-out infinite alternate;
    position: relative;
}

@keyframes highlightPulse {
    0% { 
        filter: brightness(1) drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
    }
    100% { 
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-content {
        animation: none; /* Disable floating on mobile for performance */
    }
    
    #particle-canvas {
        display: none; /* Disable particles on mobile for performance */
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .typewriter-line {
        animation: none;
        border-right: none;
    }
    
    .hero-content {
        animation: none;
    }
    
    .gold-pulse {
        animation: none;
    }
    
    .highlight {
        animation: none;
    }
    
    #particle-canvas {
        display: none;
    }
}

