/* Mobile Responsive Styles for Rolety Master */

/* Mobile First Approach */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    /* Container */
    .container {
        padding: 0 0.5rem;
        max-width: 100%;
    }

    /* Navigation */
    nav {
        padding: 0.75rem 0;
    }
    
    nav .container {
        padding: 0 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    nav .logo {
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .futuristic-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Buttons */
    .btn, .retro-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .retro-btn {
        letter-spacing: 1px;
    }

    /* Cards */
    .card, .vaporwave-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Grid */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .gap-8 {
        gap: 1rem;
    }
    
    .gap-6 {
        gap: 0.75rem;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }

    /* Form */
    .retro-form input,
    .retro-form textarea {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    .retro-form label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Spacing */
    .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
    .py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .py-12 { padding-top: 2rem; padding-bottom: 2rem; }
    .py-8 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    
    .p-8 { padding: 1.5rem; }
    .p-6 { padding: 1rem; }
    .px-6 { padding-left: 1rem; padding-right: 1rem; }
    
    .mb-8 { margin-bottom: 1.5rem; }
    .mb-6 { margin-bottom: 1rem; }
    .mt-12 { margin-top: 2rem; }
    .mt-8 { margin-top: 1.5rem; }

    /* Text Sizes */
    .text-4xl { font-size: 1.8rem; }
    .text-3xl { font-size: 1.5rem; }
    .text-2xl { font-size: 1.3rem; }
    .text-xl { font-size: 1.1rem; }
    .text-lg { font-size: 1rem; }

    /* Neon Effects - Reduced for Mobile */
    .neon-text {
        text-shadow: 
            0 0 3px #00f5ff,
            0 0 6px #00f5ff,
            0 0 9px #00f5ff;
    }
    
    /* Reduce animations on mobile for performance */
    .floating {
        animation: none;
    }
    
    .vaporwave-grid {
        background-size: 25px 25px;
        animation-duration: 30s;
    }
}

/* Tablet Portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .btn, .retro-btn {
        width: auto;
        display: inline-block;
    }
}

/* Large Tablet / Small Desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    nav a {
        padding: 12px 16px;
        margin: 4px 0;
    }
    
    .btn, .retro-btn {
        min-height: 48px;
        padding: 12px 24px;
    }
    
    input, textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .vaporwave-card:hover {
        transform: none;
        border-color: rgba(131, 56, 236, 0.3);
        box-shadow: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .btn-primary:hover,
    .retro-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Reduce blur effects for performance */
    .vaporwave-card {
        backdrop-filter: blur(10px);
    }
    
    nav {
        backdrop-filter: blur(8px);
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
    }
    
    nav ul {
        flex-direction: row;
        gap: 1rem;
    }
    
    nav .logo {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .retro-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .vaporwave-card {
        padding: 0.75rem;
    }
    
    nav {
        padding: 0.5rem 0;
    }
    
    nav .logo {
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .vaporwave-grid,
    .neon-text,
    .holographic,
    .glow-border,
    nav,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .vaporwave-card,
    .card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    h1, h2, h3, h4 {
        color: black !important;
        text-shadow: none !important;
    }
}