/* Responsive Styles for Mobile and Tablet */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Header */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    #hero-title-1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    #hero-desc-1 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.8rem;
        padding: 12px 20px;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title, h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle, h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .pricing-card, .review-card, 
    .case-study-card, .career-card, .info-card, .blog-card, .faq-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Team */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .team-member h5 {
        font-size: 1rem;
    }
    
    .team-member p {
        font-size: 0.85rem;
    }
    
    /* Process Steps */
    .process-step, .process-item {
        margin-bottom: 2rem;
    }
    
    .step-number, .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step h5 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-left: 2.5rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h5 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info .info-item {
        margin-bottom: 2rem;
    }
    
    .contact-info .info-item h5 {
        font-size: 1rem;
    }
    
    .contact-info .info-item p {
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 0 2rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    footer ul li a {
        font-size: 0.85rem;
    }
    
    /* Additional Page Items */
    .info-item, .tech-item, .assessment-item, .development-phase, 
    .wind-benefit, .wind-service, .project-type, .benefit-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-item h5, .tech-item h5, .assessment-item h5, .development-phase h5, 
    .wind-benefit h5, .wind-service h5, .project-type h5, .benefit-item h5 {
        font-size: 0.95rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .info-item p, .tech-item p, .assessment-item p, .development-phase p, 
    .wind-benefit p, .wind-service p, .project-type p, .benefit-item p {
        font-size: 0.8rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero-title-1 {
        font-size: 2.2rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.3rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin-right: 1rem;
    }
    
    /* Team Grid */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .step-number, .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Additional Page Items */
    .info-item, .tech-item, .assessment-item, .development-phase, 
    .wind-benefit, .wind-service, .project-type, .benefit-item {
        padding: 1.2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    #hero-title-1 {
        font-size: 2.3rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.4rem;
    }
    
    /* Team Grid */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-left: 3rem;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    #hero-title-1 {
        font-size: 2.4rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.45rem;
    }
    
    /* Team Grid Adjustments */
    .team-member img {
        width: 115px;
        height: 115px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    #hero-title-1 {
        font-size: 2.5rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.5rem;
    }
}

/* Mobile-specific Animations (Disabled for Performance) */
@media (max-width: 768px) {
    /* Disable animations on mobile for better performance */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .info-item:hover,
    .tech-item:hover,
    .assessment-item:hover,
    .development-phase:hover,
    .wind-benefit:hover,
    .wind-service:hover,
    .project-type:hover,
    .benefit-item:hover,
    #gallery img:hover {
        transform: none;
    }
    
    /* Sal.js animations disabled on mobile */
    [data-sal] {
        opacity: 1;
        transform: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Form elements */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero-section::before {
        background-size: 2000px 2000px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    #hero-title-1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    #hero-desc-1 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and non-essential elements */
    .navbar,
    .hero-buttons,
    .btn,
    footer {
        display: none;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Ensure images fit on page */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Add page breaks */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    *,
    *::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,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .info-item:hover,
    .tech-item:hover,
    .assessment-item:hover,
    .development-phase:hover,
    .wind-benefit:hover,
    .wind-service:hover,
    .project-type:hover,
    .benefit-item:hover,
    #gallery img:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    :root {
        --primary-color: #000080;
        --primary-dark: #000040;
        --secondary-dark: #000060;
    }
    
    .card,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000080;
        border-color: #000080;
        color: white;
    }
    
    .btn-outline-primary {
        color: #000080;
        border-color: #000080;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}