/* Mobile First Responsive Design */

/* Base mobile styles (up to 575.98px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile for reduced motion */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Hero section mobile */
    #hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    #hero-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    #hero-image {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Navigation adjustments */
    #navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Section spacing */
    section {
        padding: 60px 0;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Services cards mobile */
    #services .card {
        margin-bottom: 1.5rem;
    }
    
    #services .card:hover {
        transform: none;
    }
    
    /* Team section mobile */
    #team .card:hover {
        transform: none;
    }
    
    /* Gallery mobile */
    #gallery img {
        margin-bottom: 1rem;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* FAQ mobile */
    #faq .card {
        margin-bottom: 1rem;
    }
    
    #faq .card:hover {
        transform: none;
    }
    
    /* Contact form mobile */
    #contact-form .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    #contact-form .btn:hover {
        transform: none;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn:hover {
        transform: none;
    }
    
    /* Card hover effects disabled */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #hero-title {
        font-size: 2.5rem;
    }
    
    #hero-description {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 70px 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero-title {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    /* Reduce animation intensity on tablets */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #services .card:hover {
        transform: translateY(-5px);
    }
    
    #team .card:hover {
        transform: translateY(-5px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #hero-title {
        font-size: 3rem;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced animations for larger screens */
    #services .card:hover {
        transform: translateY(-10px);
    }
    
    #team .card:hover {
        transform: translateY(-10px);
    }
}

/* High DPI displays */
@media (min-resolution: 192dpi), (min-resolution: 2dppx) {
    /* Optimize for high DPI displays */
    .card {
        backface-visibility: hidden;
    }
}

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

/* Print styles */
@media print {
    .navbar,
    #hero-cta,
    .btn,
    #contact-form,
    .hero-shapes {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Accessibility enhancements */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
    
    .card {
        border: 2px solid var(--primary-color);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
}

/* Dark mode support */

/* Focus management for keyboard navigation */
@media (hover: none) {
    .card:hover,
    .btn:hover,
    #services .card:hover,
    #team .card:hover {
        transform: none;
    }
}

/* Reduced data usage */
@media (prefers-reduced-data) {
    .hero-shapes,
    .shape {
        display: none;
    }
    
    #hero-image,
    .card-img-top,
    #gallery img {
        filter: contrast(0.8);
    }
} 

.hero-section h1 {
    padding-top: 225px;
}