/* Patent Illustration & Formatting Service - Responsive CSS */

/* Mobile First Approach - Base styles are for mobile */

/* Extra Small Devices (phones, 0px and up) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
    padding-top: 150px;
}
    
    .section-title {
        font-size: 1.84rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.60rem;
    }
    
    h3 {
        font-size: 1.29rem;
    }
    
    /* Spacing */
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 0 15px;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    padding-top: 150px;
}
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.61rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Cards and Items */
    .about-feature,
    .service-item,
    .feature-item,
    .priceplan-item,
    .team-member,
    .review-item,
    .casestudy-item,
    .process-item,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .faq-item,
    .blog-item {
        margin-bottom: 1.56rem;
    }
    
    /* Contact Form */
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.29rem;
    }
    
    .navbar-nav .nav-link {
        padding: 6px 12px;
        margin: 2px 0;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 1.70rem;
        text-align: center;
    }
    
    /* Price Plans */
    .priceplan-item-price {
        font-size: 2.57rem;
    }
    
    /* Process Items */
    .process-item {
        padding: 1.5rem;
    }
    
    .process-item-number {
        top: -15px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 200px;
    }
    
    /* Team Members */
    .team-member-image {
        height: 200px;
    }
    
    /* Service Items */
    .service-item-image {
        height: 150px;
    }
    
    /* Case Study Items */
    .casestudy-item-image {
        height: 150px;
    }
    
    /* Blog Items */
    .blog-item-image {
        height: 150px;
    }
    
    /* Contact Info */
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 0.57rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.34rem;
    padding-top: 150px;
}
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Spacing */
    .section {
        padding: 70px 0;
    }
    
    /* Cards and Items */
    .about-feature,
    .service-item,
    .feature-item,
    .priceplan-item,
    .team-member,
    .review-item,
    .casestudy-item,
    .process-item,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .faq-item,
    .blog-item {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 220px;
    }
    
    /* Team Members */
    .team-member-image {
        height: 220px;
    }
    
    /* Service Items */
    .service-item-image {
        height: 180px;
    }
    
    /* Case Study Items */
    .casestudy-item-image {
        height: 180px;
    }
    
    /* Blog Items */
    .blog-item-image {
        height: 180px;
    }
    
    /* Contact Info */
    .contact-info-item {
        flex-direction: row;
        text-align: left;
    }
    
    .contact-info-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.60rem;
    padding-top: 150px;
}
    
    .section-title {
        font-size: 2.29rem;
    }
    
    /* Spacing */
    .section {
        padding: 80px 0;
    }
    
    /* Cards and Items */
    .about-feature,
    .service-item,
    .feature-item,
    .priceplan-item,
    .team-member,
    .review-item,
    .casestudy-item,
    .process-item,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .faq-item,
    .blog-item {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 240px;
    }
    
    /* Team Members */
    .team-member-image {
        height: 240px;
    }
    
    /* Service Items */
    .service-item-image {
        height: 200px;
    }
    
    /* Case Study Items */
    .casestudy-item-image {
        height: 200px;
    }
    
    /* Blog Items */
    .blog-item-image {
        height: 200px;
    }
    
    /* Navbar */
    .navbar-nav .nav-link {
        padding: 8px 16px;
        margin: 0 4px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 2rem;
        text-align: left;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.79rem;
    padding-top: 150px;
}
    
    .section-title {
        font-size: 2.56rem;
    }
    
    /* Spacing */
    .section {
        padding: 80px 0;
    }
    
    /* Cards and Items */
    .about-feature,
    .service-item,
    .feature-item,
    .priceplan-item,
    .team-member,
    .review-item,
    .casestudy-item,
    .process-item,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .faq-item,
    .blog-item {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 250px;
    }
    
    /* Team Members */
    .team-member-image {
        height: 250px;
    }
    
    /* Service Items */
    .service-item-image {
        height: 200px;
    }
    
    /* Case Study Items */
    .casestudy-item-image {
        height: 200px;
    }
    
    /* Blog Items */
    .blog-item-image {
        height: 200px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    .hero-title {
        font-size: 3rem;
    padding-top: 150px;
}
    
    .section-title {
        font-size: 2.56rem;
    }
    
    /* Spacing */
    .section {
        padding: 80px 0;
    }
    
    /* Cards and Items */
    .about-feature,
    .service-item,
    .feature-item,
    .priceplan-item,
    .team-member,
    .review-item,
    .casestudy-item,
    .process-item,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .faq-item,
    .blog-item {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 250px;
    }
    
    /* Team Members */
    .team-member-image {
        height: 250px;
    }
    
    /* Service Items */
    .service-item-image {
        height: 200px;
    }
    
    /* Case Study Items */
    .casestudy-item-image {
        height: 200px;
    }
    
    /* Blog Items */
    .blog-item-image {
        height: 200px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1320px;
    }
    
    /* Typography for ultra-wide screens */
    .hero-title {
        font-size: 3.64rem;
    padding-top: 150px;
}
    
    .section-title {
        font-size: 2.84rem;
    }
    
    /* Spacing for ultra-wide screens */
    .section {
        padding: 100px 0;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 280px;
    }
    
    /* Team Members */
    .team-member-image {
        height: 280px;
    }
    
    /* Service Items */
    .service-item-image {
        height: 220px;
    }
    
    /* Case Study Items */
    .casestudy-item-image {
        height: 220px;
    }
    
    /* Blog Items */
    .blog-item-image {
        height: 220px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 150px;
}
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 0.94rem;
        margin-bottom: 1.66rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .hero-image img,
    .service-item-image,
    .team-member-image,
    .casestudy-item-image,
    .blog-item-image,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Print Styles */
@media print {
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    .header,
    .footer,
    .btn,
    .navbar,
    .breadcrumb {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .hero-title,
    .section-title {
        font-size: 24px;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .about-feature,
    .service-item,
    .feature-item,
    .priceplan-item,
    .team-member,
    .review-item,
    .casestudy-item,
    .process-item,
    .timeline-item,
    .career-item,
    .coreinfo-item,
    .faq-item,
    .blog-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .gallery-item,
    .hero-image {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
    
    .about-feature:hover,
    .service-item:hover,
    .feature-item:hover,
    .priceplan-item:hover,
    .team-member:hover,
    .review-item:hover,
    .casestudy-item:hover,
    .process-item:hover,
    .timeline-item:hover,
    .career-item:hover,
    .coreinfo-item:hover,
    .faq-item:hover,
    .blog-item:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus,
    a:focus {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .about-feature:hover,
    .service-item:hover,
    .feature-item:hover,
    .priceplan-item:hover,
    .team-member:hover,
    .review-item:hover,
    .casestudy-item:hover,
    .process-item:hover,
    .timeline-item:hover,
    .career-item:hover,
    .coreinfo-item:hover,
    .faq-item:hover,
    .blog-item:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Container Adjustments for Better Spacing */
@media (max-width: 1399.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Flexbox Adjustments for Better Responsive Layout */
@media (max-width: 991.98px) {
    .d-lg-flex {
        display: flex !important;
    }
    
    .flex-lg-column {
        flex-direction: column !important;
    }
    
    .flex-lg-row {
        flex-direction: row !important;
    }
}

@media (max-width: 767.98px) {
    .d-md-flex {
        display: flex !important;
    }
    
    .flex-md-column {
        flex-direction: column !important;
    }
    
    .flex-md-row {
        flex-direction: row !important;
    }
}

@media (max-width: 575.98px) {
    .d-sm-flex {
        display: flex !important;
    }
    
    .flex-sm-column {
        flex-direction: column !important;
    }
    
    .flex-sm-row {
        flex-direction: row !important;
    }
} 