/* ================================================================
   RESPONSIVE CSS - Mobile & Tablet Styles
   ================================================================ */

/* Tablet & Mobile Styles (Max Width: 768px) */
@media (max-width: 768px) {
    
    /* 1. LAYOUT ADJUSTMENTS */
    /* -------------------------------- */
    
    /* Global Section Spacing */
    .section {
        padding: 3rem 0; /* Reduce vertical padding on mobile */
    }

    /* Container Padding */
    .container {
        padding: 0 20px; /* Ensure content doesn't touch edges */
    }

    /* 2. HERO SECTION */
    /* -------------------------------- */
    .hero {
        height: 500px; /* Slightly shorter on mobile */
        background-position: center;
    }

    .hero-title {
        font-size: 2.5rem; /* Smaller font so it fits */
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* 3. ABOUT SECTION (Stacking) */
    /* -------------------------------- */
    .about-content {
        grid-template-columns: 1fr; /* Force 1 column instead of 2 */
        gap: 2rem;
    }

    /* 4. CONTACT SECTION (Stacking) */
    /* -------------------------------- */
    .contact-container {
        grid-template-columns: 1fr; /* Force 1 column */
        gap: 3rem;
    }

    /* Order change: Put Form first, then Info? 
       Uncomment lines below if you want Form on top */
    /* .contact-form-wrapper { order: -1; } 
    */

    /* 5. NAVIGATION (Mobile Menu) */
    /* -------------------------------- */
    .mobile-menu-toggle {
        display: flex !important; /* Show the hamburger icon */
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(20, 20, 20, 0.95); /* Dark semi-transparent bg */
        backdrop-filter: blur(10px); /* Cool blur effect */
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        transform: translateY(-150%); /* Hide upwards */
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        transform: translateY(0); /* Slide down */
    }

    /* 6. UTILITIES */
    /* -------------------------------- */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile Styles (Max Width: 480px) */
@media (max-width: 480px) {
    
    /* Adjust Project Grid for very small screens */
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 project per row */
    }

    /* Adjust About Stats to be 2x2 or 1x4 stack */
    .about-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem; /* Even smaller for iPhone SE etc */
    }
}