/* Responsive Design */

/*
 * SENIOR DEV NOTE:
 * The primary breakpoint has been changed from 768px to 1024px.
 * This ensures that all tablets (e.g., iPads) will now render the stacked, mobile-first layout.
 * Styles from the old 768px block have been merged into this one.
*/
@media (max-width: 1024px) {
    /* --- Styles for Tablets and All Mobile Devices --- */

    /* Audio Controls & Navigation */
    .audio-controls {
        display: none !important;
    }
    
    .mobile-audio-control {
        display: flex !important;
    }

    .nav-menu, .login-btn {
        display: none;
    }

    nav {
        padding: 0.8rem 0;
    }

    .mobile-menu {
        display: flex;
    }

    /* General Layout */
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 25px;
        margin: 15px 10px 25px 10px;
        background-attachment: scroll; /* Better performance on mobile/tablet */
    }

    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: clamp(1rem, 2vw, 1.15rem);
    }

    /* Service Panels Layout */
    .services-panels {
        padding: 25px 0 60px 0;
        gap: 45px;
        grid-template-columns: 1fr; /* Stack panels on mobile */
    }

    .service-panel {
        margin: 0 10px;
    }
    
    .panel-image {
        height: 220px;
    }

    .panel-content {
        padding: 20px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        margin: -40px auto 25px auto;
        border-width: 5px;
    }
    
    .panel-content h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .panel-content .subtitle {
        font-size: 1.1rem;
    }

    .unified-content {
        padding: 25px;
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
    }
}

/* --- Styles for Smaller Mobile Phones --- */
@media (max-width: 480px) {
    .hero {
        padding: 35px 20px;
        margin: 10px 5px 20px 5px;
    }

    .services-panels {
        padding: 20px 0 50px 0;
        gap: 35px;
    }
    
    .panel-image {
        height: 180px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.9rem;
        margin: -35px auto 20px auto;
    }

    .panel-content h3 {
        font-size: 1.25rem;
    }
    
    .panel-content .subtitle {
        font-size: 1rem;
    }

    .unified-content {
        padding: 20px;
        font-size: 0.95rem;
    }

     #backToTopBtn {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
        font-size: 1rem;
    }
}

/*
 * SENIOR DEV NOTE:
 * Updated from 769px to 1025px to match the new tablet breakpoint.
*/
@media (min-width: 1025px) {
    .mobile-audio-control {
        display: none !important;
    }
}