/* استایل های رسپانسیو */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
    .hero-content {
        position: static;
        margin: -1rem;
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        /* padding: 1rem; */
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .platform-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-buttons .btn {
        min-width: 250px;
        margin: 0.5rem 0;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }
}


/* منوی موبایل */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(12, 12, 12, 0.98);
        width: 100%;
        padding: 1rem;
        border-top: 2px solid #e62424;
    }
}
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: center center;
        height: 90vh;
        /* برای حل مشکل Safari */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* استایل خاص برای Safari موبایل */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
        height: -webkit-fill-available;
        min-height: 100vh;
    }
}

/* حل مشکل آیفون های خاص */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero {
        background-size: cover !important;
        background-position: top center;
    }
}