/* SkillTracker Pro - Responsive CSS */

/* Mobile-first approach with Bootstrap 5 breakpoints */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Conservative navbar brand size */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Section padding */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Cards and components */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-top: 0;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Team photos */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin-left: 0.5rem;
        padding-left: 1.5rem;
    }
    
    /* Contact form */
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    /* NO ANIMATIONS ON MOBILE - respect user preferences */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Disable scroll animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Reduced animations on small screens */
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    /* Moderate animations on tablets */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: translateY(-3px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled on desktop */
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-5px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #008000;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .btn-outline-primary,
    .btn-outline-secondary {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 3px;
    }
}

/* Dark mode support */

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .contact-form {
        display: none;
    }
    
    .hero-section,
    .section-padding {
        padding: 20px 0;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    p {
        color: #333;
    }
}

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

/* Skip to content link for screen readers */
.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;
}

/* Ensure proper spacing on all screen sizes */
.mb-mobile {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .mb-mobile {
        margin-bottom: 0;
    }
}

/* Gallery responsive adjustments */
@media (max-width: 767.98px) {
    .gallery-image {
        margin-bottom: 0.5rem;
    }
}

/* Team member responsive grid */
@media (max-width: 575.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Process steps responsive layout */
@media (max-width: 767.98px) {
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step:last-child {
        margin-bottom: 0;
    }
}

/* Timeline responsive adjustments */
@media (max-width: 575.98px) {
    .timeline-item {
        border-left-width: 2px;
    }
    
    .timeline-item::before {
        width: 8px;
        height: 8px;
        left: -5px;
    }
}

/* Contact section responsive layout */
@media (max-width: 991.98px) {
    .contact-info {
        margin-top: 2rem;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 100px 0 30px;
    }
    
    .breadcrumb-icon {
        height: 30px;
    }
}

/* Ensure proper touch targets on mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
} 

body {
    overflow-x: hidden;
}