/* AR User Manual Creator Template - Responsive CSS */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Services Grid */
    .services-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Section Padding */
    .section-padding {
        padding: 2rem 0;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process Steps */
    .process-step {
        padding: 1.5rem 0.5rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    /* Decorative Blobs */
    .decorative-blob {
        display: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 85vh;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    /* Services Grid */
    .services-item {
        padding: 1.75rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 130px;
        height: 130px;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Section Padding */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Decorative Blobs */
    .blob-1 {
        width: 200px;
        height: 200px;
    }
    
    .blob-2 {
        width: 150px;
        height: 150px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    h1 {
        font-size: 2.35rem;
    }
    
    h2 {
        font-size: 1.95rem;
    }
    
    /* Navigation */
    .navbar-expand-md .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Services Grid */
    .services-item {
        padding: 1.85rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.7rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    /* Decorative Blobs */
    .blob-1 {
        width: 250px;
        height: 250px;
    }
    
    .blob-2 {
        width: 180px;
        height: 180px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 95vh;
    }
    
    h1 {
        font-size: 2.45rem;
    }
    
    h2 {
        font-size: 1.98rem;
    }
    
    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0.5rem 1.25rem;
    }
    
    /* Services Grid */
    .services-item {
        padding: 1.95rem;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Team Section */
    .team-member {
        padding: 1.75rem;
    }
    
    /* Process Steps */
    .process-step {
        padding: 2.25rem 1.25rem;
    }
    
    /* Review Cards */
    .review-card {
        padding: 2.25rem;
    }
    
    /* Decorative Blobs */
    .blob-1 {
        width: 280px;
        height: 280px;
    }
    
    .blob-2 {
        width: 190px;
        height: 190px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Full size headings */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .navbar-expand-xl .navbar-nav .nav-link {
        padding: 0.5rem 1.5rem;
    }
    
    /* Services Grid */
    .services-item {
        padding: 2rem;
    }
    
    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Team Photos */
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    /* Process Steps */
    .process-step {
        padding: 2.5rem 1.5rem;
    }
    
    /* Review Cards */
    .review-card {
        padding: 2.5rem;
    }
    
    /* Full size decorative blobs */
    .blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .blob-2 {
        width: 200px;
        height: 200px;
    }
}

/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    /* Adjust hero section for landscape mobile */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    /* Reduce vertical padding in landscape */
    .section-padding {
        padding: 2rem 0;
    }
    
    /* Smaller team photos in landscape */
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    /* Remove backgrounds and shadows */
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Hide navigation and decorative elements */
    .navbar,
    .decorative-blob,
    .btn,
    .footer {
        display: none !important;
    }
    
    /* Adjust typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    /* Avoid page breaks inside elements */
    .card,
    .services-item,
    .team-member,
    .review-card {
        page-break-inside: avoid;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Reduced Motion Preferences - all animations removed already */
@media (prefers-reduced-motion: reduce) {
    /* All animations have been removed */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Increase contrast for accessibility */
    :root {
        --primary-color: #0000ff;
        --secondary-color: #008000;
        --accent-color: #ff6600;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
        --border-color: #000000;
    }
    
    /* Stronger borders */
    .card,
    .form-control,
    .btn {
        border-width: 2px !important;
    }
    
    /* Remove subtle shadows */
    .card,
    .services-item {
        box-shadow: none !important;
    }
}

/* Dark Mode Preferences */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .nav-link,
    .card {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .services-item:hover,
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    /* Increase padding for touch */
    .nav-link {
        padding: 1rem;
    }
    
    /* Larger form inputs */
    .form-control {
        padding: 1rem;
        font-size: 16px;
    }
}

/* Container Max-Width Overrides for Better Responsiveness */
@media (min-width: 1400px) {
    .container-xl {
        max-width: 1200px;
    }
}

/* Utility Classes for Responsive Display */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
    
    .d-desktop-none {
        display: none;
    }
}

/* Responsive Typography Scaling */
@media (min-width: 320px) and (max-width: 1200px) {
    html {
        font-size: calc(16px + (20 - 16) * ((100vw - 320px) / (1200 - 320)));
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive Embed */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive iframe,
.embed-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
} 

.hero-content {
    padding-top: 100px;
}