/* Responsive Design Enhancement */

/* Extra Large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .feature-icon,
    .method-icon,
    .ai-icon,
    .tech-icon,
    .community-icon,
    .assessment-icon,
    .tool-icon,
    .culture-icon,
    .resource-icon,
    .app-icon,
    .support-icon,
    .info-icon {
        font-size: 3rem;
    }
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .hero-image {
        max-height: 500px;
    }
    
    .service-image,
    .blog-image,
    .case-study-image {
        height: 220px;
    }
    
    .gallery-image {
        height: 280px;
    }
}

/* Medium screens (992px and up) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .hero-section {
        min-height: 600px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 60%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60%;
    }
}

/* Small screens (768px and down) */
@media (max-width: 767.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .navbar-nav .nav-link {
        color: var(--black) !important;
        text-align: center;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--primary-light);
        color: var(--white) !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
    }
    
    .hero-image {
        margin-top: 2rem;
        transform: none;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .method-card,
    .ai-feature-card,
    .tech-card,
    .community-card,
    .assessment-card,
    .tool-card,
    .culture-card,
    .resource-card,
    .app-card,
    .support-card,
    .info-card,
    .blog-card,
    .case-study-card {
        margin-bottom: 1.5rem;
    }
    
    .service-image,
    .blog-image,
    .case-study-image {
        height: 180px;
    }
    
    .gallery-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Team */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -20px;
        border-right-color: var(--white);
        border-left-color: transparent;
    }
    
    /* Process Steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Price Cards */
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured::before {
        top: -15px;
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 70px;
        padding: 0.75rem 0;
    }
}

/* Extra Small screens (576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .feature-card h4,
    .service-card h4,
    .team-member h5,
    .review-card .review-author,
    .process-step h5,
    .career-card h4,
    .info-card h4,
    .blog-card h4,
    .case-study-card h4,
    .price-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p,
    .service-card p,
    .team-member p,
    .review-card p,
    .process-step p,
    .career-card p,
    .info-card p,
    .blog-card p,
    .case-study-card p,
    .price-card p {
        font-size: 0.9rem;
    }
    
    /* Icons */
    .feature-icon,
    .method-icon,
    .ai-icon,
    .tech-icon,
    .community-icon,
    .assessment-icon,
    .tool-icon,
    .culture-icon,
    .resource-icon,
    .app-icon,
    .support-icon,
    .info-icon,
    .contact-icon {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-decorative-shapes .shape {
        display: none;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .review-card,
    .method-card,
    .ai-feature-card,
    .tech-card,
    .community-card,
    .assessment-card,
    .tool-card,
    .culture-card,
    .resource-card,
    .app-card,
    .support-card,
    .info-card,
    .blog-card,
    .case-study-card,
    .career-card,
    .price-card {
        padding: 1rem;
    }
    
    .service-image,
    .blog-image,
    .case-study-image {
        height: 150px;
    }
    
    .gallery-image {
        height: 160px;
    }
    
    /* Team */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Process */
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5,
    .footer h6 {
        margin-bottom: 1rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-nav {
        margin-top: 65px;
        padding: 0.5rem 0;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-image {
        max-height: 200px;
        margin-top: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-nav {
        margin-top: 60px;
        padding: 0.25rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    .hero-decorative-shapes,
    .btn,
    .footer {
        display: none !important;
    }
    
    .hero-section,
    .py-5 {
        padding: 1rem 0 !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .feature-card,
    .service-card,
    .review-card,
    .blog-card,
    .case-study-card,
    .price-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .bg-light,
    .bg-primary,
    .bg-success {
        background: #f8f9fa !important;
    }
    
    .text-white,
    .navbar-nav .nav-link {
        color: #000 !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066CC;
        --secondary-color: #009900;
        --accent-color: #FF6600;
        --success-color: #00AA88;
        --warning-color: #AA0099;
        --black: #000000;
        --white: #FFFFFF;
        --gray: #555555;
        --dark-gray: #333333;
        --light-gray: #EEEEEE;
    }
    
    .feature-card,
    .service-card,
    .review-card,
    .blog-card,
    .case-study-card,
    .price-card,
    .contact-form {
        border: 2px solid var(--black);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .navbar {
        border-bottom: 2px solid var(--black);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-decorative-shapes .shape {
        animation: none !important;
    }
    
    .hero-image {
        transform: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .team-member:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .price-card:hover,
    .career-card:hover,
    .info-card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card,
    .service-card,
    .review-card,
    .team-member,
    .blog-card,
    .case-study-card,
    .price-card,
    .career-card,
    .info-card {
        padding: 1.25rem;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-image {
        cursor: pointer;
    }
    
    .accordion-button {
        min-height: 48px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Dark mode support (if user prefers) */

/* Animation delays for staggered effects */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }
.fade-in:nth-child(6) { transition-delay: 0.6s; }

.slide-up:nth-child(1) { transition-delay: 0.1s; }
.slide-up:nth-child(2) { transition-delay: 0.2s; }
.slide-up:nth-child(3) { transition-delay: 0.3s; }
.slide-up:nth-child(4) { transition-delay: 0.4s; }
.slide-up:nth-child(5) { transition-delay: 0.5s; }

.zoom-in:nth-child(1) { transition-delay: 0.1s; }
.zoom-in:nth-child(2) { transition-delay: 0.2s; }
.zoom-in:nth-child(3) { transition-delay: 0.3s; }
.zoom-in:nth-child(4) { transition-delay: 0.4s; }
.zoom-in:nth-child(5) { transition-delay: 0.5s; }

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.navbar-nav .nav-link:focus,
.accordion-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.success {
    border-color: var(--success-color) !important;
    background-color: #f0fff4 !important;
}

.success-message {
    color: var(--success-dark);
    font-size: 0.875rem;
    margin-top: 0.25rem;
} 