/* Responsive Design - Mobile First Approach */

/* Logo Responsive Adjustments */
@media (max-width: 768px) {
    .nav-logo .logo-img,
    .navbar .nav-logo img.logo-img {
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-img,
    .navbar .nav-logo img.logo-img {
        max-width: 40px;
    }
}

/* Extra Small Devices (Phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-fast);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-cta {
        margin-top: 30px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section */
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-large {
        width: 100%;
        max-width: 250px;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    /* Artists section */
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .artist-card {
        max-width: 100%;
    }
    
    /* Gallery section */
    .gallery-filters {
        gap: 10px;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Booking section */
    .booking-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .booking-form {
        padding: 30px 20px;
    }
    
    /* Aftercare section */
    .timeline-item {
        gap: 20px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 20px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Blog section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Instagram section */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-map {
        min-height: 300px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 20px;
    }
    
    /* Back to top button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .nav-list {
        gap: 25px;
    }
    
    /* Hero section */
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Artists section */
    .artists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery section */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    
    /* Booking section */
    .booking-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Blog section */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Instagram section */
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Contact section */
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Artists section */
    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Gallery section */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Blog section */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Instagram section */
    .instagram-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        height: 120vh;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .feature-icon,
    .contact-icon {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-background,
    .scroll-indicator,
    .back-to-top,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        height: auto;
        padding: 50px 0;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
    
    .artist-card,
    .blog-card,
    .testimonial-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility improvements for larger text */
@media (min-width: 1200px) {
    .large-text-mode {
        font-size: 1.25em;
    }
    
    .large-text-mode .nav-link {
        font-size: 1.1rem;
    }
    
    .large-text-mode .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

/* Dark mode adjustments (if system preference) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Light mode adjustments (if system preference and override needed) */
@media (prefers-color-scheme: light) {
    .light-mode-override {
        --background-dark: #ffffff;
        --background-light: #f8f9fa;
        --text-primary: #212529;
        --text-secondary: #6c757d;
    }
}

/* Animation performance for mobile devices */
@media (max-width: 768px) {
    .hero-background video {
        display: none;
    }
    
    .hero-background {
        background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    }
    
    /* Reduce complex animations on mobile */
    .morphing-shape,
    .particle {
        display: none;
    }
    
    .artist-image img,
    .gallery-item img,
    .blog-image img {
        transition: none;
    }
    
    .artist-card:hover,
    .gallery-item:hover,
    .blog-card:hover {
        transform: none;
    }
}

/* Specific breakpoints for common devices */

/* iPhone SE */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .features-grid,
    .artists-grid,
    .blog-grid {
        gap: 20px;
    }
}

/* iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        height: 80vh;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .booking-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* iPad Pro */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 1200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .section-padding {
        padding: 120px 0;
    }
}

/* Hover device detection */
@media (hover: hover) and (pointer: fine) {
    /* Enable hover effects only on devices that support proper hovering */
    .hover-effects-enabled .artist-card:hover,
    .hover-effects-enabled .gallery-item:hover,
    .hover-effects-enabled .blog-card:hover {
        transform: translateY(-10px);
    }
}

@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .artist-overlay,
    .gallery-overlay {
        opacity: 0.8;
    }
    
    .artist-card,
    .gallery-item,
    .blog-card {
        transform: none !important;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    .nav-link:focus,
    .btn:focus,
    .filter-btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-background video {
        display: none;
    }
    
    .scroll-indicator::before {
        animation: none;
    }
    
    .testimonials-slider {
        scroll-behavior: auto;
    }
}