/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .container {
        max-width: 720px;
    }
    
    .service-card img {
        height: 300px;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 4.5rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    .service-card img {
        height: 350px;
    }
    
    .navbar-nav {
        margin-left: auto;
    }
}

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

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

/* Mobile-specific styles */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .price-card {
        padding: 1.5rem;
    }
    
    .service-card img {
        height: 200px;
    }
    
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Tablet-specific styles */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        margin-bottom: 2rem;
    }
    
    .service-card img {
        height: 250px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Desktop-specific styles */
@media (min-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .service-card img {
        height: 300px;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    .review-card {
        margin-bottom: 2rem;
    }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../NUT_images/hero-bg@2x.webp');
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer {
        display: none;
    }
    
    .hero-section,
    section {
        break-inside: avoid;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    h4 {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none;
    }
    
    .animate-fade-in-up {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #008000;
        --accent-color: #ff8c00;
        --text-primary: #000000;
        --text-secondary: #000000;
        --border-color: #000000;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card,
    .contact-form {
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        border: 2px solid var(--border-color);
    }
}

/* Dark mode support */

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 374.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1.5rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
}

/* Focus states for accessibility */
@media (any-hover: hover) {
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card,
    .feature-card,
    .service-card,
    .price-card,
    .team-member,
    .review-card {
        transform: none;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
    
    .form-control {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Container max-widths for better readability */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

/* Flexible grid adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* Team member responsive adjustments */
@media (min-width: 992px) {
    .team-member {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Service grid responsive behavior */
@media (min-width: 576px) and (max-width: 767.98px) {
    .service-card {
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

/* Gallery responsive behavior */
@media (max-width: 575.98px) {
    #gallery .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
    }
}

/* Contact form responsive behavior */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* FAQ responsive behavior */
@media (max-width: 575.98px) {
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .accordion-body {
        padding: 0.75rem;
    }
}

/* Price cards responsive behavior */
@media (max-width: 767.98px) {
    .price-card {
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

/* Reviews responsive behavior */
@media (max-width: 991.98px) {
    .review-card {
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

/* New sections responsive behavior */
@media (max-width: 575.98px) {
    .casestudy-card,
    .process-item,
    .timeline-item,
    .career-card,
    .coreinfo-card,
    .blog-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .year {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .casestudy-card,
    .career-card,
    .coreinfo-card,
    .blog-card {
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 991.98px) {
    .process-item,
    .timeline-item {
        margin-bottom: 2rem;
    }
}

/* DISABLE ALL ANIMATIONS - RESPONSIVE */
*, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
}

/* Remove transform animations */
*[data-sal] {
    transform: none !important;
    opacity: 1 !important;
}

/* Remove animation classes */
.animate-fade-in-up,
.animate-in,
.fade-in,
.animate-on-scroll {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Ensure images are visible - fix lazy loading issues */
img,
img.lozad,
img[data-src] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
} 