/* Mobile First Responsive Design */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .display-4 {
        font-size: 3.64rem;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.58rem; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.86rem;
    }
    
    h1 { font-size: 2.40rem; }
    h2 { font-size: 1.98rem; }
    
    .py-5 {
        padding-top: 2.67rem;
        padding-bottom: 2.64rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.35rem;
    }
    
    h1 { font-size: 1.98rem; }
    h2 { font-size: 1.53rem; }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 1.94rem;
    }
    
    h1 { font-size: 1.53rem; }
    h2 { font-size: 1.39rem; }
    h3 { font-size: 1.17rem; }
    
    .py-5 {
        padding-top: 1.66rem;
        padding-bottom: 1.70rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 1.00rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile navbar adjustments */
    .navbar-brand {
        font-size: 1.21rem !important;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Form adjustments for mobile */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Card spacing for mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 85vh;
        padding-top: 80px;
    }
    
    /* Gallery mobile grid */
    #gallery .col-6 {
        margin-bottom: 0.59rem;
    }
    
    /* Contact section mobile */
    #contact .col-lg-4 {
        margin-top: 2rem;
    }
    
    /* Team cards mobile */
    .team .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Pricing cards mobile */
    .pricing .card {
        margin-bottom: 1.73rem;
    }
    
    /* Process section mobile */
    .process .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile */
    .timeline .card {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer h5 {
        font-size: 1.19rem;
    }
}

/* Mobile-specific: NO scroll animations */
@media (max-width: 767.98px) {
    /* Disable all scroll-triggered animations on mobile */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Ensure no parallax or scroll effects */
    * {
        transform: none !important;
        transition: none !important;
    }
    
    /* Re-enable only essential transitions */
    .navbar-nav .nav-link,
    .btn,
    .form-control,
    footer a {
        transition: color 0.38s ease, background-color 0.53s ease, border-color 0.94s ease;
    }
}

/* Tablet and desktop hover effects */
@media (min-width: 768px) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Dark mode considerations */

/* Landscape phone specific */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Very large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .display-4 {
        font-size: 4rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
    }
} 