/* AI Business Name Generator - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Shapes - Hide on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card,
    .info-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team Photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline - Stack vertically on mobile */
    .timeline {
        overflow-x: hidden;
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 2.5rem !important;
        padding-right: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0 !important;
        padding-left: 2.5rem !important;
        padding-right: 1rem !important;
    }
    
    .timeline-item::before {
        left: 9px !important;
        top: 1rem;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 9px !important;
    }
    
    .timeline-content {
        margin-left: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Metric Numbers */
    .metric-number {
        font-size: 2.5rem;
    }
    
    /* Price Values */
    .price-value {
        font-size: 2.5rem;
    }
    
    /* Contact Form */
    .contact-form .btn {
        width: 100%;
    }
    
    /* Footer */
    #footer .text-end {
        text-align: start;
    }
    
    /* Gallery - 2 columns on mobile */
    .gallery-image {
        margin-bottom: 0.5rem;
    }
    
    /* Navigation - No animations on mobile */
    .navbar-nav .nav-link {
        transition: none;
    }
    
    /* Hover effects disabled on mobile */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .info-card:hover,
    .solution-card:hover,
    .tech-card:hover,
    .metric-card:hover,
    .cta-card:hover,
    .resource-card:hover,
    .tool-card:hover,
    .support-card:hover,
    .knowledge-card:hover,
    .premium-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .gallery-image:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    #hero {
        padding: 4rem 0;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-cta .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Timeline adjustments for landscape phones */
    .timeline {
        overflow-x: hidden;
        padding: 1.5rem 0;
    }
    
    .timeline::before {
        left: 20px;
        width: 2px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 1rem !important;
    }
    
    .timeline-item::before {
        left: 14px !important;
        top: 1rem;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 14px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    #hero {
        padding: 5rem 0;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* Timeline - Still stacked but with more space on tablets */
    .timeline {
        overflow-x: hidden;
        padding: 2rem 0;
    }
    
    .timeline::before {
        left: 30px;
        width: 2px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 2rem !important;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 2rem !important;
    }
    
    .timeline-item::before {
        left: 24px !important;
        top: 1.5rem;
    }
    
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 24px !important;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    section {
        padding: 5rem 0;
    }
    
    /* Timeline - Full layout */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        width: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 2rem;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: -6px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -6px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 7rem 0;
    }
}

/* Height-based media queries for hero section */
@media (max-height: 700px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
}

@media (min-height: 900px) {
    #hero {
        min-height: 100vh;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    .btn,
    #footer {
        display: none;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card,
    .feature-card,
    .service-card,
    .pricing-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .team-photo,
    .service-image,
    .case-study-image,
    .blog-image,
    .gallery-image,
    .industry-image,
    .tool-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Dark mode support */

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    /* Already handled in main.css, but reinforced here */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .solution-card,
    .tech-card,
    .metric-card,
    .cta-card,
    .resource-card,
    .tool-card,
    .support-card,
    .knowledge-card,
    .premium-card,
    .gallery-image {
        transition: none;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* Focus indicators for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container adjustments for different breakpoints */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Specific component responsive adjustments */

/* Services grid */
@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Pricing cards */
@media (max-width: 991.98px) {
    .pricing-card.featured {
        transform: none;
        margin-top: 0;
    }
}

/* Team grid */
@media (max-width: 991.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Blog grid */
@media (max-width: 767.98px) {
    .blog-card {
        margin-bottom: 2rem;
    }
}

/* FAQ grid */
@media (max-width: 767.98px) {
    .faq-card {
        margin-bottom: 1.5rem;
    }
}

/* Gallery responsive columns */
@media (max-width: 575.98px) {
    [data-lightbox="gallery"] {
        margin-bottom: 0.5rem;
    }
}

/* Contact section */
@media (max-width: 991.98px) {
    .contact-info {
        margin-top: 2rem;
    }
}

/* Additional pages specific responsive styles */
.breadcrumb-section {
    padding: 0.5rem 0;
}

@media (max-width: 767.98px) {
    .breadcrumb-icon {
        width: 20px;
        height: 20px;
    }
} 