/* Responsive Design - Mobile First Approach */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: var(--spacing-lg) 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    /* Cards and components mobile adjustments */
    .feature-card,
    .service-card .card-body,
    .element-card,
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .price-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .contact-form .btn {
        width: 100%;
        padding: 1rem;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
    
    /* Gallery mobile */
    .gallery-section .col-md-4 {
        margin-bottom: var(--spacing-sm);
    }
    
    /* NO animations on mobile scroll - disable all scroll animations */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Mobile navbar adjustments */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Section padding mobile */
    .page-section {
        padding-top: 60px;
        padding-bottom: var(--spacing-lg);
    }
    
    /* Contact section mobile */
    .contact-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .price-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Still no animations on small mobile devices */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .team-member {
        margin-bottom: var(--spacing-lg);
    }
    
    .price-card {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Enable animations on tablets and larger */
    [data-sal] {
        transition-duration: 0.5s;
        transition-timing-function: ease-out;
    }
    
    /* Contact form tablet */
    .contact-form {
        padding: var(--spacing-xl);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-4xl);
    padding-top: 250px;
}
    
    .price-card.featured {
        transform: scale(1.05);
    }
    
    .team-member:hover {
        transform: translateY(-5px);
    }
    
    /* Enhanced hover effects on desktop */
    .feature-card:hover,
    .service-card:hover,
    .element-card:hover {
        transform: translateY(-8px);
    }
    
    /* Desktop navigation enhancements */
    .navbar-nav .nav-link {
        position: relative;
    }
    
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .navbar-nav .nav-link:hover::after {
        width: 80%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding-top: 140px;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .page-section {
        padding-top: 100px;
        padding-bottom: var(--spacing-2xl);
    }
    
    /* Better team layout on large screens */
    .team-section .row {
        justify-content: center;
    }
    
    .team-member {
        max-width: 220px;
        margin: 0 auto var(--spacing-lg);
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .gallery-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .page-section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding: var(--spacing-lg) 0;
    }
    
    .contact-section {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    /* Reduce vertical spacing in landscape mobile */
    .page-section {
        padding-top: 40px;
        padding-bottom: var(--spacing-md);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp borders and shadows for high DPI */
    .feature-card,
    .service-card,
    .element-card,
    .review-card,
    .case-study-card,
    .faq-card,
    .blog-card,
    .contact-form {
        border-width: 0.5px;
    }
}

/* Dark mode support (if user prefers dark) */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .feature-card:hover,
    .service-card:hover,
    .element-card:hover,
    .team-member:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

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

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 1000;
}

.skip-to-content:focus {
    top: 6px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error states */
.error {
    border-color: var(--color-secondary) !important;
    background-color: var(--color-secondary-light);
}

.error-message {
    color: var(--color-secondary-dark);
    font-size: var(--font-size-small);
    margin-top: 0.25rem;
}

/* Success states */
.success {
    border-color: var(--color-success) !important;
    background-color: var(--color-success-light);
}

.success-message {
    color: var(--color-success-dark);
    font-size: var(--font-size-small);
    margin-top: 0.25rem;
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
