/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 320px and up) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    /* Header */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-fast);
        box-shadow: 0 5px 15px rgba(139, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 80px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .zodiac-wheel {
        width: 280px;
        height: 280px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
        text-align: left;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    /* Gallery */
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .contact-info {
        order: 2;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Testimonials */
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .zodiac-wheel {
        width: 320px;
        height: 320px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        height: auto;
        background: transparent;
        box-shadow: none;
        gap: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .zodiac-wheel {
        width: 350px;
        height: 350px;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content {
        gap: 3rem;
    }
    
    .zodiac-wheel {
        width: 380px;
        height: 380px;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .expertise-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content {
        gap: 4rem;
    }
    
    .zodiac-wheel {
        width: 400px;
        height: 400px;
    }
    
    .about-content {
        gap: 4rem;
    }
    
    .contact-content {
        gap: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .scroll-top,
    .lightbox {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid,
    .gallery-grid,
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator .scroll-arrow {
        animation: none;
    }
    
    .zodiac-wheel {
        animation: none;
    }
    
    .mandala-spinner,
    .mandala-spinner::before {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --text-primary: #000;
        --text-secondary: #000;
        --bg-primary: #fff;
        --bg-secondary: #fff;
        --white: #fff;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary,
    .btn-outline {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #E5E5E5;
        --text-secondary: #B8B8B8;
        --text-light: #888;
        --bg-primary: #1A1A1A;
        --bg-secondary: #2A2A2A;
        --white: #2A2A2A;
        --shadow: rgba(255, 255, 255, 0.1);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header.scrolled {
        background: var(--bg-secondary);
    }
    
    .service-card,
    .testimonial,
    .contact-item,
    .contact-form-container {
        background: var(--bg-secondary);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--bg-primary);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
    }
    
    .form-group label {
        background: var(--bg-primary);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .home-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .zodiac-wheel {
        width: 250px;
        height: 250px;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
}

/* Very Small Heights */
@media (max-height: 500px) {
    .section {
        padding: 1.5rem 0;
    }
    
    .home-section {
        min-height: auto;
        padding: 80px 0 30px;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .zodiac-wheel {
        width: 200px;
        height: 200px;
    }
}

/* Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .zodiac-wheel img,
    .about-image img,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}