/* Hero Section Mobile Fixes */

/* General Hero Section Mobile Fixes */
@media only screen and (max-width: 767px) {
    /* Improve hero section layout */
    .modern-hero-section {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust container positioning */
    .hero-container {
        margin-top: 0;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    /* Fix row alignment */
    .hero-container .row {
        width: 100%;
        margin: 0;
        padding: 0 15px;
    }
    
    /* Center align hero content */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        top: -20px; /* Move content up slightly to center better */
    }
    
    /* Improve hero title */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Improve hero subtitle */
    .hero-subtitle {
        font-size: 1.5rem !important;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Fix dynamic text container */
    .dynamic-text-container {
        min-width: 180px;
        text-align: center;
        margin: 0 auto;
    }
    
    /* Improve hero description */
    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6;
        margin-bottom: 30px;
        text-align: center;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Fix hero actions */
    .hero-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        width: 100%;
        margin-top: 20px;
    }
    
    /* Fix hero buttons */
    .hero-btn {
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 10px;
        min-width: 140px;
    }
    
    /* Fix hero visual */
    .hero-visual {
        display: none;
    }
    
    /* Hide floating cards on mobile */
    .floating-cards {
        display: none !important;
    }
    
    /* Hide scroll indicator */
    .scroll-indicator {
        display: none !important;
    }
    
    /* Fix modern text animation */
    .modern-text-animation {
        display: inline-flex;
        justify-content: center;
    }
    
    /* Fix text slide items */
    .text-slide-item {
        left: 0;
        text-align: center;
    }
}

/* Adjust spacing for header to prevent content from being too high */
@media only screen and (max-width: 767px) {
    .header-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: transparent;
    }
    
    /* Adjust spacing for content */
    .hero-title {
        margin-top: 0;
    }
}

/* Extra Small Devices */
@media only screen and (max-width: 480px) {
    /* Further reduce title size */
    .hero-title {
        font-size: 2rem !important;
    }
    
    /* Reduce subtitle size */
    .hero-subtitle {
        font-size: 1.25rem !important;
    }
    
    /* Fix hero description */
    .hero-description {
        font-size: 0.95rem !important;
    }
    
    /* Stack buttons on very small screens */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    /* Make buttons full width */
    .hero-btn {
        width: 100%;
        max-width: 220px;
    }
    
    /* Fix dynamic text container */
    .dynamic-text-container {
        min-width: 160px;
    }
    
    /* Fix text slide items */
    .text-slide-item {
        font-size: 1.25rem !important;
    }
}

/* Very Small Devices */
@media only screen and (max-width: 360px) {
    /* Further reduce title size */
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    /* Reduce subtitle size */
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    /* Fix hero description */
    .hero-description {
        font-size: 0.9rem !important;
    }
}

/* Ensure proper vertical alignment for all elements */
@media only screen and (max-width: 767px) {
    /* Fix vertical alignment of row */
    .row.align-items-center.min-vh-100 {
        min-height: calc(100vh - 60px) !important; /* Account for header height */
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    /* Ensure proper spacing for buttons */
    .hero-actions {
        margin-bottom: 20px;
    }
}

/* Fix Background Video on Mobile */
@media only screen and (max-width: 767px) {
    .video-background video {
        object-position: center top;
    }
    
    /* Improve hero overlay */
    .hero-overlay {
        opacity: 0.75;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(18, 18, 18, 0.8) 100%);
    }
    
    /* Fix particles effect */
    .hero-particles {
        opacity: 0.7;
    }
}

/* Fix for different screen heights */
@media only screen and (max-height: 700px) and (max-width: 767px) {
    .hero-content {
        top: 0; /* Adjust for smaller screen heights */
    }
}

@media only screen and (min-height: 800px) and (max-width: 767px) {
    .hero-content {
        top: 100px; /* Move content up more on taller screens */
    }
}

/* Fix for landscape mode on mobile */
@media only screen and (max-height: 480px) and (orientation: landscape) {
    .modern-hero-section {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }
    
    .hero-description {
        margin-bottom: 15px;
        font-size: 0.9rem !important;
    }
    
    .hero-actions {
        margin-top: 10px;
    }
    
    .hero-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
