/* Responsive CSS for Home Section */

/* Base styles for all devices */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Large Screens (default) */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        gap: 20px;
    }
    
    .hero-features {
        gap: 40px;
    }
}

/* Medium Screens (laptops, smaller desktops) */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        max-width: 700px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
}

/* Tablets and Small Laptops */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-features {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Tablets Portrait and Large Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }
    
    .hero-features .feature {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h1::after {
        width: 60px;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-features .feature {
        font-size: 0.9rem;
    }
    
    .hero-features .feature i {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero h1::after {
        width: 50px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-buttons .btn {
        max-width: 220px;
    }
}

/* Adjust shooting stars for smaller screens */
@media (max-width: 768px) {
    .night .shooting_star {
        display: none;
    }
    
    .night .shooting_star:nth-child(1),
    .night .shooting_star:nth-child(3),
    .night .shooting_star:nth-child(5),
    .night .shooting_star:nth-child(7),
    .night .shooting_star:nth-child(9) {
        display: block; /* Show only some stars on mobile for better performance */
    }
}

/* Fix for very tall screens */
@media (min-height: 1000px) {
    .hero {
        height: 90vh;
    }
}

/* Fix for very short screens */
@media (max-height: 600px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-features {
        margin-top: 20px;
    }
}
