/* Additional mobile-specific fixes for home section */

/* Mobile responsiveness improvements */
@media screen and (max-width: 480px) {
    /* Smaller screens need further optimization */
    .hero h1 {
        font-size: 2.2rem;
        margin-right: 0;
    }
    
    .expertise-badge {
        margin-top: 10px;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1.2rem !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .tag-container {
        justify-content: center;
    }
    
    .skill-tag {
        font-size: 0.8rem;
    }
    
    /* Further reduce animation size for very small screens */
    .security-animation {
        width: 220px;
        height: 220px;
    }
    
    .digital-fortress {
        width: 220px;
        height: 220px;
    }
    
    .security-layers {
        width: 160px;
        height: 160px;
    }
}

/* Fix for medium-sized devices like tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Fix for portrait orientation on mobile */
@media screen and (max-height: 700px) and (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .security-animation {
        transform: scale(0.85);
    }
}

/* Ensure the matrix animation background covers the area properly */
.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Fix for the hacker cursor on mobile */
@media (hover: none) {
    .cursor-dot, .cursor-circle, .targeting-reticle {
        display: none;
    }
}
