/* TimeTracker Pro - Responsive CSS */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-section {
        padding-top: 80px;
    }
    
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2.25rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        --font-size-base: 15px;
    }
    
    /* Typography Adjustments */
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.25rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .lead {
        font-size: 16px;
    }
    
    /* Navbar Brand Size Reduction */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 60px;
        text-align: center;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Button Adjustments */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Card Adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Team Member Images */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Form Adjustments */
    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Contact Info Stacking */
    .contact-info-item {
        margin-bottom: 2rem;
    }
    
    /* Footer Adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        justify-content: center;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    :root {
        --section-padding: 30px;
        --font-size-base: 14px;
    }
    
    /* Typography - Conservative Mobile Sizes */
    .display-1 { font-size: 2rem; }
    .display-2 { font-size: 1.875rem; }
    .display-3 { font-size: 1.75rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.25rem; }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.938rem; }
    h6 { font-size: 0.875rem; }
    
    p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .lead {
        font-size: 15px;
    }
    
    /* Navbar - Conservative Brand Size */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 40px;
        min-height: auto;
    }
    
    .hero-section .btn {
        margin-bottom: 1rem;
    }
    
    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Icon Sizes */
    .fa-3x {
        font-size: 2.5rem;
    }
    
    .fa-2x {
        font-size: 1.75rem;
    }
    
    /* Card Adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 120px;
    }
    
    /* Team Members */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Form Elements */
    .form-control {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    /* Reviews/Testimonials */
    .card-text {
        font-size: 14px;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    footer p, footer li {
        font-size: 14px;
    }
    
    /* FAQ Cards */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Spacing Adjustments */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Breadcrumb Images */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Extra Small Mobile (max-width: 400px) */
@media (max-width: 400px) {
    :root {
        --section-padding: 20px;
        --font-size-base: 13px;
    }
    
    /* Ultra Conservative Typography */
    .display-1, .display-2, .display-3, .display-4, .display-5 {
        font-size: 1.125rem;
    }
    
    h1, h2 { font-size: 1.25rem; }
    h3, h4, h5, h6 { font-size: 1rem; }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Tighter Spacing */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Smaller Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Smaller Icons */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.5rem;
    }
    
    /* Compact Cards */
    .card-body {
        padding: 0.75rem;
    }
    
    /* Smaller Team Images */
    .rounded-circle {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Disable animations on mobile for performance and accessibility */
@media (max-width: 768px) {
    /* No scroll animations on mobile */
    [data-sal] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable hover effects that don't work well on touch */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .rounded-circle:hover {
        transform: none;
    }
}

/* High DPI Display Adjustments */
@media (min-resolution: 2dppx) {
    /* Sharper borders and shadows for high DPI */
    .card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    }
    
    .shadow-sm {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p {
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800080;
        --accent-color: #008000;
        --dark-text: #000000;
        --muted-text: #333333;
        --border-color: #666666;
    }
    
    .btn-primary {
        background-color: #000080;
        border-color: #000080;
    }
    
    .btn-outline-primary {
        color: #000080;
        border-color: #000080;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .min-vh-100 {
        min-height: auto !important;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
