/* Responsive Design */

/*
 * SENIOR DEV NOTE:
 * The primary breakpoint has been updated from 768px to 1024px.
 * This ensures tablets like the iPad render the mobile-first layout.
 * Rules from the previous 768px and 1024px blocks have been merged and cleaned up.
*/
@media (max-width: 1024px) {
    /* --- Styles for Tablets and All Mobile Devices --- */

    /* General Layout & Navigation */
    .container {
        padding: 0 15px;
    }

    .nav-menu, .login-btn {
        display: none;
    }

    nav {
        padding: 0.8rem 0;
    }

    .mobile-menu {
        display: flex;
    }
    
    /* Audio Controls Visibility */
    .audio-controls {
        display: none !important;
    }
    
    .mobile-audio-control {
        display: flex !important;
    }

    /* Hero Section Adjustments */
    .hero {
        padding: 45px 30px;
        margin: 15px 10px 25px 10px;
        background-attachment: scroll; /* Use scroll for better performance on mobile/tablet */
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    /* Service Panels Layout */
    .services-panels {
        grid-template-columns: 1fr; /* Force a single-column layout */
        padding: 15px 15px 40px 15px;
        gap: 30px;
    }

    .service-panel {
        margin: 0 10px;
    }

    .panel-image {
        height: 220px;
    }

    .panel-content {
        padding: 2rem 1.8rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: -40px auto 20px auto; /* Icon overlaps the image */
    }

    .panel-content .subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .unified-content {
        padding: 22px;
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* --- Styles for Smaller Mobile Phones --- */
@media (max-width: 480px) {
    .hero {
        padding: 35px 20px;
        margin: 10px 5px 20px 5px;
    }

    .services-panels {
        padding: 10px 10px 30px 10px;
        gap: 25px;
    }

    .panel-image {
        height: 200px;
    }
    
    .panel-content {
        padding: 1.8rem 1.5rem;
    }

    .panel-content h3 {
        font-size: 1.0rem; /* Adjusted from previous version for consistency */
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .unified-content {
        padding: 18px;
       /* 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.
 * This ensures the mobile controls are hidden only on true desktop screens.
*/
@media (min-width: 1025px) {
    .mobile-audio-control {
        display: none !important;
    }
}