/* Course Outline AI - Responsive CSS */

/* Mobile First Approach */
/* Base styles are mobile, then scale up */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography adjustments */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.25rem; }
    
    .display-4 { font-size: 1.875rem; }
    .lead { font-size: 1rem; }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 80vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    
    /* Cards spacing */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Reduce padding for mobile */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .feature-card,
    .info-card {
        padding: 1.5rem;
    }
    
    /* Team member adjustments */
    .member-photo img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .contact-form-container,
    .contact-info {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 50px !important;
        margin-bottom: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* Gallery adjustments */
    .gallery-section .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Additional page items */
    .integration-card,
    .personalization-item,
    .quality-item,
    .innovation-item,
    .success-metric,
    .industry-card,
    .testimonial-card,
    .journey-step,
    .outcome-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Disable hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .feature-item:hover,
    .integration-card:hover,
    .personalization-item:hover,
    .quality-item:hover,
    .innovation-item:hover,
    .industry-card:hover,
    .testimonial-card:hover,
    .journey-step:hover,
    .outcome-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .blog-card:hover .card-img-top,
    .gallery-section img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 150px;
    }
    
    .feature-card,
    .info-card {
        padding: 1.75rem;
    }
    
    .member-photo img {
        width: 110px;
        height: 110px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 2rem;
    }
    
    .timeline-item {
        left: 80px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .feature-card,
    .info-card {
        padding: 2rem;
    }
    
    .member-photo img {
        width: 120px;
        height: 120px;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 2.5rem;
    }
    
    /* Timeline adjustments for tablet */
    .timeline-item {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 55%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Restore full hover effects on desktop */
    .feature-card:hover {
        transform: translateY(-10px);
    }
    
    .service-card:hover,
    .price-card:hover {
        transform: translateY(-10px);
    }
    
    .team-member:hover {
        transform: translateY(-10px);
    }
    
    .review-card:hover,
    .career-card:hover,
    .info-card:hover {
        transform: translateY(-5px);
    }
    
    .case-study-card:hover {
        transform: translateY(-10px);
    }
    
    .blog-card:hover {
        transform: translateY(-10px);
    }
    
    .blog-card:hover .card-img-top {
        transform: scale(1.05);
    }
    
    .faq-card:hover,
    .feature-item:hover {
        transform: translateX(10px);
    }
    
    .gallery-section img:hover {
        transform: scale(1.05);
    }
    
    .integration-card:hover,
    .personalization-item:hover,
    .quality-item:hover,
    .innovation-item:hover,
    .industry-card:hover,
    .testimonial-card:hover,
    .journey-step:hover,
    .outcome-card:hover {
        transform: translateY(-5px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .container {
        max-width: 1200px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-card,
    .info-card {
        padding: 2.5rem;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 3rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .py-5 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    .btn,
    .contact-form-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #28a745;
        --accent-color: #fd7e14;
        --neutral-dark: #000000;
        --border-color: #000000;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card {
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        background-color: #0056b3;
        border-color: #0056b3;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover states on touch devices */
    *:hover {
        transform: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive embeds */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before {
    padding-top: 56.25%;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
} 

.hero-section h1 {
    padding-top: 150px;
}