/* ==========================================================================
   Digital Calligraphy Course - Responsive CSS
   ========================================================================== */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 2.13rem; }
    h2 { font-size: 1.82rem; }
    h3 { font-size: 1.57rem; }
    
    .display-4 { font-size: 2.61rem; }
    .lead { font-size: 1.14rem; }
    
    /* Header */
    .navbar-brand {
        font-size: 1.14rem !important;
    }
    
    /* Hero Section */
    .hero-section {
  padding-top: 50px;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2.23rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .service-card, .price-card, .feature-card {
        margin-bottom: 1.67rem;
    }
    
    /* Team members */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2.23rem;
    }
    
    .step-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.10rem;
    }
    
    /* Contact form */
    .contact-section .col-lg-8 {
        padding: 0 1rem;
    }
    
    /* Gallery */
    .gallery-section .col-6 {
        padding: 0.25rem;
    }
    
    .gallery-section img {
        height: 150px;
    }
    
    /* Footer */
    .footer .text-end {
        text-align: start !important;
        margin-top: 1.19rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 2.38rem; }
    h2 { font-size: 2.13rem; }
    
    /* Gallery */
    .gallery-section img {
        height: 200px;
    }
    
    /* Team members */
    .team-member img {
        width: 180px;
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
  padding-top: 50px;
        min-height: 85vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Process steps - better spacing on tablets */
    .process-section .row > .col-md-6 {
        margin-bottom: 1.67rem;
    }
    
    /* Swiper on mobile/tablet - disable autoplay and effects */
    .reviews-swiper {
        --swiper-navigation-size: 24px;
    }
    
    /* Gallery optimized for tablets */
    .gallery-section img {
        height: 220px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full height hero on desktop */
    .hero-section {
  padding-top: 50px;
        min-height: 100vh;
    }
    
    /* Better spacing for larger screens */
    section {
        padding: 6rem 0;
    }
    
    /* Cards hover effects enhanced */
    .service-card:hover, .price-card:hover, .feature-card:hover {
        transform: translateY(-8px);
    }
    
    /* Team grid adjustments */
    .team-section .col-lg-4:last-child:nth-child(5) {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced typography for larger screens */
    .display-4 {
        font-size: 3.56rem;
    }
    
    /* Better spacing */
    section {
        padding: 7rem 0;
    }
    
    /* Hero decorative elements */
    .hero-section .position-absolute {
        right: -5rem;
        top: -3rem;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

/* Swiper Responsive Adjustments */
@media (max-width: 767.98px) {
    /* Mobile: Disable autoplay and effects as per requirements */
    .reviews-swiper {
        --swiper-theme-color: var(--color-primary);
    }
    
    .swiper-slide {
        margin-bottom: 1.09rem;
    }
    
    .swiper-pagination {
        position: relative;
        margin-top: 2.23rem;
    }
}

/* Orientation specific styles */
@media (orientation: landscape) and (max-height: 500px) {
    /* Landscape mobile optimization */
    .hero-section {
  padding-top: 50px;
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina */
    .service-card, .feature-card, .price-card {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {
    /* Hide unnecessary elements when printing */
    .navbar, .footer, .hero-section .btn, .contact-section {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card, .feature-card {
        page-break-inside: avoid;
        margin-bottom: 1.09rem;
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Accessibility: High contrast mode */
@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    .btn-primary {
        background: #1914ff !important;
        border-color: #0c00ff !important;
    }
    
    .text-primary {
        color: #170dff !important;
    }
    
    .feature-card, .service-card, .price-card {
        border-color: #000000 !important;
        border-width: 2px !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    .swiper-slide,
    .service-card,
    .feature-card,
    .price-card,
    .team-member,
    .gallery-section img {
        transition: none !important;
        transform: none !important;
    }
    
    .swiper-wrapper {
        transform: none !important;
    }
    
    /* Keep functional focus indicators */
    .btn:focus,
    .form-control:focus {
        transition: box-shadow 0.15s ease-in-out;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizing */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .feature-card:hover,
    .price-card:hover,
    .team-member:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Enhanced tap targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Gallery touch optimization */
    .gallery-section a {
        display: block;
        min-height: 44px;
    }
} 