/* HERO SECTION MOBILE FIXES - CRITICAL */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
                url('/images/very-nice.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(248, 249, 250, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    display: block;
    color: white;
}

.hero h1 span:first-child {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero h1 span:nth-child(2) {
    font-size: 4rem;
    color: #d9a566;
    margin-bottom: 0.5rem;
}

.hero h1 span:nth-child(3) {
    font-size: 2.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile specific hero fixes */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        background-attachment: scroll; /* Fix for iOS */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 span:first-child {
        font-size: 1.5rem;
    }
    
    .hero h1 span:nth-child(2) {
        font-size: 2.5rem;
    }
    
    .hero h1 span:nth-child(3) {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h1 span:first-child {
        font-size: 1.3rem;
    }
    
    .hero h1 span:nth-child(2) {
        font-size: 2rem;
    }
    
    .hero h1 span:nth-child(3) {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Language Toggle Mobile Fix */
@media (max-width: 768px) {
    .language-toggle {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 1002 !important;
        background: linear-gradient(135deg, #2a6d4e 0%, #3a8e6a 100%) !important;
        backdrop-filter: blur(10px);
        padding: 5px 10px;
        border-radius: 20px;
        display: flex !important;
        align-items: center;
        gap: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }
    
    .language-toggle i {
        color: white;
        font-size: 1rem;
    }
    
    .language-options {
        display: flex;
        gap: 3px;
    }
    
    .language-option {
        cursor: pointer !important;
        padding: 3px 8px;
        border-radius: 12px;
        color: white;
        font-weight: 600;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        pointer-events: auto !important;
    }
    
    .language-option.active {
        background: rgba(217, 165, 102, 0.9) !important;
    }
    
    .language-option:hover:not(.active) {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Fallback for devices that don't support background-attachment: fixed */
@media (hover: none) and (pointer: coarse) {
    .hero {
        background-attachment: scroll;
    }
}

/* Critical: Force hero and content visibility on all devices */
.hero,
.hero-content,
.hero-btns {
    opacity: 1 !important;
    visibility: visible !important;
}
