/* AI Personalization Template - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section */
    #hero h1 {
        font-size: 1.8rem;
    }
    
    #hero h2 {
        font-size: 1.2rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    /* Section titles */
    section h2 {
        font-size: 1.75rem;
    }
    
    section h3 {
        font-size: 1.25rem;
    }
    
    section p {
        font-size: 1rem;
    }
    
    /* Cards and items spacing */
    .feature-card,
    .service-card,
    .pricing-card,
    .case-study-card,
    .career-item,
    .info-item,
    .solution-item,
    .process-item,
    .industry-item,
    .tech-spec,
    .metric-item,
    .resource-item,
    .training-item,
    .tool-item,
    .community-item,
    .partner-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 1rem;
        padding-left: 50px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 1rem;
    }
    
    .timeline-item::before {
        left: 14px;
        transform: none;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Team members */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer {
        text-align: center;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Service card image height */
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 150px;
    }
    
    /* Pricing card featured scaling */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero section */
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    /* Section titles */
    section h2 {
        font-size: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 24px;
        transform: none;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Reduce hero shapes opacity */
    .hero-shapes {
        opacity: 0.5;
    }
    
    /* Service and blog card images */
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero h2 {
        font-size: 1.4rem;
    }
    
    /* Timeline back to center for tablets */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item:nth-child(odd) {
        text-align: right;
        padding-right: 50%;
        padding-left: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 50%;
        padding-right: 2rem;
    }
    
    /* Team member grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery responsive adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Fine-tune spacing */
    .feature-card,
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Process steps in a row */
    .process-step {
        margin-bottom: 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum content width */
    .container {
        max-width: 1200px;
    }
    
    /* Hero section enhancements */
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h2 {
        font-size: 1.75rem;
    }
    
    /* Section titles */
    section h2 {
        font-size: 2.5rem;
    }
    
    section h3 {
        font-size: 1.75rem;
    }
    
    /* Enhanced card hover effects */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .case-study-card:hover,
    .career-item:hover,
    .info-item:hover,
    .solution-item:hover,
    .process-item:hover,
    .industry-item:hover,
    .tech-spec:hover,
    .metric-item:hover,
    .resource-item:hover,
    .training-item:hover,
    .tool-item:hover,
    .community-item:hover,
    .partner-item:hover {
        transform: translateY(-8px);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Hide decorative elements */
    .hero-shapes {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images remain sharp */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-item:hover,
    .info-item:hover,
    .solution-item:hover,
    .process-item:hover,
    .industry-item:hover,
    .tech-spec:hover,
    .metric-item:hover,
    .resource-item:hover,
    .training-item:hover,
    .tool-item:hover,
    .community-item:hover,
    .partner-item:hover,
    .blog-card:hover,
    .faq-card:hover,
    #gallery img:hover {
        transform: none;
    }
    
    /* Remove floating animation */
    .shape-1,
    .shape-2 {
        animation: none;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements */
    #header,
    #footer,
    .breadcrumb-nav,
    .hero-shapes,
    .btn {
        display: none;
    }
    
    /* Ensure good contrast */
    * {
        color: black !important;
        background: white !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    /* Remove shadows and effects */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-item,
    .info-item,
    .solution-item,
    .process-item,
    .industry-item,
    .tech-spec,
    .metric-item,
    .resource-item,
    .training-item,
    .tool-item,
    .community-item,
    .partner-item,
    .blog-card,
    .faq-card,
    .contact-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Dark mode support (if user prefers dark color scheme) */

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 275px;
}