/* Mobile Optimization CSS for GorillaCon Website */

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Navbar improvements */
    .navbar {
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    /* Logo optimization */
    .logo img {
        height: 60px;
        width: auto;
    }
    
    /* Mobile menu improvements */
    .nav-menu {
        top: 0;
        padding-top: 4rem;
        width: 85%;
        max-width: 320px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .cta-button {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    /* Hero section mobile */
    .hero {
        min-height: auto;
        padding: 2rem 0 3rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .typewriter {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    /* Service areas text */
    .service-areas {
        font-size: 0.9rem;
    }
    
    .key-areas {
        font-size: 0.85rem !important;
        line-height: 1.5;
    }
    
    /* Trust badge mobile */
    .trust-badge a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem !important;
    }
    
    /* Services section mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Gallery mobile */
    .multi-slideshow-container {
        margin: 0 -1rem;
    }
    
    .slide-item {
        flex: 0 0 85%;
    }
    
    .slideshow-controls {
        padding: 0 1rem;
    }
    
    .slideshow-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    /* Trust section mobile */
    .trust-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .trust-links .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    /* Calculator CTA mobile */
    .calculator-cta {
        padding: 2rem 0 !important;
    }
    
    .calculator-cta h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .calculator-cta p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .calculator-cta > div > div {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .calculator-cta .btn-primary {
        font-size: 1.1rem !important;
        padding: 1rem 2rem !important;
        width: 100%;
        max-width: 280px;
    }
    
    /* Testimonials mobile */
    .testimonial {
        padding: 1.5rem;
    }
    
    .testimonial p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .stars {
        font-size: 1.2rem;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-column ul li {
        margin-bottom: 0.75rem;
    }
    
    .footer-column a {
        font-size: 0.95rem;
    }
    
    /* Social proof badges mobile */
    .social-proof-badges {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .review-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .review-badge img {
        width: 20px;
        height: 20px;
    }
    
    /* Instant quote trigger mobile */
    .instant-quote-trigger {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Modal improvements */
    .instant-quote-modal {
        padding: 1rem;
    }
    
    .instant-quote-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 10px 10px 0 0;
    }
    
    .instant-quote-header {
        padding: 1.5rem 1rem;
    }
    
    .instant-quote-body {
        padding: 1.5rem 1rem;
    }
    
    .quote-option {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .quote-option h4 {
        font-size: 1.1rem;
    }
    
    .quote-option p {
        font-size: 0.9rem;
    }
    
    .size-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .size-btn {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Form improvements */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Sections spacing */
    section {
        padding: 2.5rem 0;
    }
    
    /* Headings mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Paragraphs mobile */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Loading screen mobile */
    .loading-logo {
        width: 150px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Even smaller screens */
    .hero h2 {
        font-size: 2rem;
    }
    
    .services h2,
    .why-choose h2,
    .gallery-showcase h2,
    .testimonials h2,
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    /* Calculator CTA adjustments */
    .calculator-cta div[style*="background: white"] {
        padding: 0.75rem 1rem !important;
    }
    
    .calculator-cta span[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
    
    /* Trust badge smaller */
    .trust-badge a {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem !important;
        gap: 0.25rem !important;
    }
    
    .trust-badge span[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: auto;
        padding: 0.75rem 1.5rem;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .feature:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    /* Better tap targets */
    .nav-menu a {
        padding: 1rem 1.5rem;
    }
    
    /* Scroll improvements */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* High resolution mobile screens */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .service-card,
    .feature,
    .btn-primary,
    .btn-secondary {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already have a dark theme, but can add specific adjustments here */
}

/* Print styles for mobile */
@media print {
    .mobile-menu-toggle,
    .instant-quote-trigger,
    .nav-menu,
    .particles,
    .cursor,
    .cursor-trail {
        display: none !important;
    }
}