/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 0 0.5rem 0;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Cards */
    .service-card,
    .pricing-card,
    .review-card,
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team Photos */
    .team-photo img {
        width: 60px;
        height: 60px;
    }
    
    /* Process Steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Gallery */
    #gallery img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .contact-form .btn {
        width: 100%;
    }
    
    /* Footer */
    #footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Blog Cards */
    .blog-image img {
        height: 180px;
    }
    
    /* Timeline */
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
    
    /* Disable animations on mobile for better performance */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .team-member:hover,
    .process-step:hover,
    .faq-card:hover,
    .blog-card:hover,
    .career-card:hover,
    .info-card:hover,
    .resource-card:hover,
    .training-card:hover,
    .tool-card:hover,
    .tip-card:hover,
    .support-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-buttons .btn {
        min-width: 120px;
    }
    
    .team-photo img {
        width: 70px;
        height: 70px;
    }
    
    #gallery img {
        height: 220px;
    }
    
    .blog-image img {
        height: 190px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    /* Services Grid */
    .service-card {
        height: 100%;
    }
    
    /* Team Layout */
    .team-photo img {
        width: 75px;
        height: 75px;
    }
    
    /* Gallery */
    #gallery img {
        height: 240px;
    }
    
    /* Blog */
    .blog-image img {
        height: 195px;
    }
    
    /* Pricing Cards */
    .pricing-card.bg-primary {
        transform: scale(1.02);
    }
    
    .pricing-card.bg-primary:hover {
        transform: scale(1.05) translateY(-3px);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .display-4 {
        font-size: 2.4rem;
    }
    
    /* Full hover effects enabled */
    .service-image img {
        height: 180px;
    }
    
    .blog-image img {
        height: 200px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects for larger screens */
    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    }
    
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    }
    
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    }
    
    .pricing-card.bg-primary:hover {
        transform: scale(1.08) translateY(-8px);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 568px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .hero-shape {
        will-change: transform;
    }
    
    .feature-icon,
    .step-number,
    .timeline-year,
    .tip-number {
        backface-visibility: hidden;
        transform: translateZ(0);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    #footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-shape {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .team-member:hover,
    .process-step:hover,
    .faq-card:hover,
    .blog-card:hover,
    .career-card:hover,
    .info-card:hover,
    .resource-card:hover,
    .training-card:hover,
    .tool-card:hover,
    .tip-card:hover,
    .support-card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark Mode Support (if user prefers) */

/* Focus Visible for Better Accessibility */
@media (any-hover: hover) {
    .btn:focus-visible,
    .form-control:focus-visible,
    .form-select:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Responsive Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Specific Component Responsive Adjustments */
@media (max-width: 991.98px) {
    .pricing-card.bg-primary {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-section .col-lg-6:first-child {
        text-align: center;
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .contact-info .contact-item {
        text-align: center;
        margin-bottom: 1.5rem;
    }
} 

body {
    overflow-x: hidden;
}

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