/* Mobile Responsive Styles for Auto Mechanik Pro */

/* Mobile First Approach */
@media screen and (max-width: 768px) {
    
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.2rem;
        padding: 8px;
        transform: rotate(-1deg);
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* Header mobile adjustments */
    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .logo img {
        height: 50px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    /* Mobile Navigation */
    nav {
        order: 2;
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 12px 15px;
        transform: rotate(0deg);
        box-shadow: 3px 3px 0px var(--memphis-yellow);
    }
    
    nav a:hover {
        transform: scale(1.02);
        box-shadow: 5px 5px 0px var(--memphis-pink);
    }
    
    /* Hero section mobile */
    .hero {
        padding: 60px 0;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        transform: rotate(-1deg);
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 90%;
        transform: rotate(2deg);
        box-shadow: 6px 6px 0px var(--memphis-pink);
    }
    
    /* Button mobile adjustments */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        margin: 10px 0;
        transform: rotate(0deg);
        box-shadow: 4px 4px 0px var(--memphis-pink);
    }
    
    .btn:hover {
        transform: scale(1.02);
        box-shadow: 6px 6px 0px var(--memphis-purple);
    }
    
    /* Container mobile adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Section spacing */
    .section {
        padding: 50px 0;
    }
    
    /* Remove floating shapes on mobile for performance */
    .section:nth-child(odd)::before,
    .section:nth-child(even)::before {
        display: none;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    
    .service-card {
        padding: 25px;
        transform: rotate(0deg);
        box-shadow: 5px 5px 0px var(--memphis-yellow);
    }
    
    .service-card:hover {
        transform: scale(1.02);
        box-shadow: 7px 7px 0px var(--memphis-pink);
    }
    
    .service-card:nth-child(2n) {
        transform: rotate(0deg);
        box-shadow: 5px 5px 0px var(--memphis-teal);
    }
    
    .service-card:nth-child(2n):hover {
        transform: scale(1.02);
        box-shadow: 7px 7px 0px var(--memphis-purple);
    }
    
    /* Gallery mobile */
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .gallery-item {
        transform: rotate(0deg);
        box-shadow: 4px 4px 0px var(--memphis-yellow);
    }
    
    .gallery-item:nth-child(2n) {
        transform: rotate(0deg);
        box-shadow: 4px 4px 0px var(--memphis-teal);
    }
    
    .gallery-item:nth-child(3n) {
        transform: rotate(0deg);
        box-shadow: 4px 4px 0px var(--memphis-pink);
    }
    
    .gallery-item:hover {
        transform: scale(1.02);
        box-shadow: 6px 6px 0px var(--memphis-purple);
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 25px;
        transform: rotate(0deg);
        box-shadow: 6px 6px 0px var(--memphis-teal);
        margin-top: 30px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        box-shadow: 3px 3px 0px var(--memphis-yellow);
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        box-shadow: 5px 5px 0px var(--memphis-pink);
        transform: translateX(1px) translateY(1px);
    }
    
    .form-group textarea {
        height: 100px;
    }
    
    /* GDPR checkbox mobile */
    .gdpr-checkbox {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gdpr-checkbox label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Contact info mobile */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .contact-item {
        padding: 20px;
        transform: rotate(0deg);
        box-shadow: 4px 4px 0px var(--memphis-orange);
    }
    
    .contact-item:nth-child(2n) {
        transform: rotate(0deg);
        box-shadow: 4px 4px 0px var(--memphis-blue);
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .contact-item a {
        font-size: 1.1rem;
        word-break: break-all;
    }
    
    /* Footer mobile */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    
    .social-links a {
        padding: 8px;
    }
    
    .footer-bottom {
        margin-top: 25px;
        padding-top: 15px;
        font-size: 0.85rem;
    }
    
    /* Hide decorative Memphis shapes on mobile */
    .memphis-shapes {
        display: none;
    }
    
    /* Mobile utility classes */
    .mobile-hidden {
        display: none;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    .container {
        padding: 0 30px;
    }
    
    .header-container {
        padding: 0 30px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav a {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }
}

/* Large mobile/small tablet */
@media screen and (max-width: 480px) {
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
    
    nav a {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Larger touch targets */
    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .gallery-item:hover,
    .contact-item:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Simplify animations for touch devices */
    .service-card,
    .gallery-item,
    .contact-item {
        transition: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .hero-image img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Performance optimizations for mobile */
@media screen and (max-width: 768px) {
    
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.1s !important;
    }
    
    /* Simplify box shadows */
    .service-card,
    .gallery-item,
    .contact-form,
    .contact-item {
        box-shadow: 3px 3px 0px var(--memphis-yellow);
    }
    
    /* Reduce transform complexity */
    .hero h1,
    .service-card,
    .gallery-item {
        transform: none;
    }
}