/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    padding-top: 250px;
}
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Disable hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .solution-card:hover,
    .industry-card:hover,
    .tech-spec-card:hover,
    .metric-card:hover,
    .resource-card:hover,
    .support-card:hover,
    .kb-category:hover,
    .sla-card:hover,
    .partner-card:hover {
        transform: none;
        box-shadow: 0 4px 20px var(--shadow-color);
    }
    
    .btn-primary:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover {
        transform: none;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Process Steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Timeline */
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-date {
        margin: 0 0 1rem 0;
        position: absolute;
        left: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Metric Cards */
    .metric-number {
        font-size: 2.5rem;
    }
    
    /* Breadcrumbs */
    .breadcrumbs-section {
        padding: 80px 0 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-date {
        left: 0;
        width: 60px;
        height: 60px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3.2rem;
    padding-top: 250px;
}
    
    .section-padding {
        padding: 70px 0;
    }
    
    /* Timeline adjustments for tablets */
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 2rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full desktop experience with animations enabled */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Pricing card featured scaling */
    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    /* Timeline full layout */
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 3rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    padding-top: 250px;
}
    
    .container {
        max-width: 1140px;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .section-padding {
        padding: 100px 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-shapes {
        opacity: 0.05;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-shapes {
        display: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    .section-padding {
        padding: 20px 0;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
}

/* Focus styles for accessibility */
.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;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

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

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Success states */
.success {
    border-color: #059669 !important;
    color: #059669;
}

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