/* Responsive Design for VideoStory Pro Template */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .timeline::before {
        display: block;
    }
    
    .timeline-item::before {
        display: block;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .section-title {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Mobile Specific Styles (up to 767px) */
@media (max-width: 767.98px) {
    /* Typography adjustments for mobile */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* NO ANIMATIONS ON MOBILE - Following strict requirement */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .career-card,
    .btn,
    .service-detail-card,
    .innovation-card,
    .industry-card,
    .partnership-card,
    .future-card {
        transition: none !important;
        transform: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .career-card:hover,
    .service-detail-card:hover,
    .innovation-card:hover,
    .industry-card:hover,
    .partnership-card:hover,
    .future-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-light) !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        padding: 3rem 0;
        min-height: 100vh;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Card spacing adjustments */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .career-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team section mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline mobile adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
        transform: translateY(-50%);
    }
    
    .timeline-content {
        margin-left: 3rem;
    }
    
    .timeline-date {
        text-align: left !important;
        margin-bottom: 1rem;
    }
    
    /* Process steps mobile */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .contact-info .contact-item {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .text-end {
        text-align: center !important;
    }
    
    /* Additional pages mobile adjustments */
    .service-detail-card,
    .tech-feature,
    .workflow-step,
    .quality-feature,
    .partnership-card,
    .innovation-card,
    .industry-card,
    .global-feature,
    .analytics-feature,
    .future-card {
        margin-bottom: 1.5rem;
    }
    
    .workflow-step,
    .tech-feature,
    .global-feature {
        text-align: center;
    }
    
    .quality-feature,
    .analytics-feature {
        text-align: center;
        flex-direction: column;
    }
    
    .quality-feature .feature-icon,
    .analytics-feature .feature-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Tablet Specific Styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Service cards tablet layout */
    .service-card img {
        height: 180px;
    }
    
    /* Blog cards tablet layout */
    .blog-card img {
        height: 180px;
    }
    
    /* Case study cards tablet layout */
    .case-study-card img {
        height: 180px;
    }
}

/* Small mobile devices (max-width: 575px) */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Container padding adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Card padding adjustments */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .career-card,
    .service-detail-card,
    .innovation-card,
    .industry-card,
    .partnership-card,
    .future-card {
        padding: 1.5rem;
    }
    
    /* Contact form small mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer small mobile */
    #footer {
        padding: 3rem 0;
    }
    
    /* Breadcrumb small mobile */
    .breadcrumb-section {
        padding: 1rem 0;
    }
    
    .breadcrumb-icon {
        max-width: 30px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero-shapes .shape {
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hero-buttons,
    .btn,
    .contact-form,
    #footer {
        display: none !important;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    overflow-x: hidden;
}
    
    .section-title {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .section-subtitle {
        font-size: 14pt;
    }
    
    /* Ensure cards break properly */
    .feature-card,
    .service-card,
    .review-card,
    .case-study-card {
        page-break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-desc {
        margin-bottom: 1rem;
    }
}

/* Extra small screens adjustments */
@media (max-width: 320px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Ultra compact layout */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .career-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #4c3db8;
        --neutral-color: #000000;
        --neutral-dark: #000000;
        --background-light: #ffffff;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .career-card {
        border: 2px solid #000000;
    }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Dark mode considerations (if needed in future) */

.hero-content {
    padding-top: 275px;
}