/* Additional Responsive Styles */

/* Mobile First Approach */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .service-card,
    .team-member,
    .solution-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}

/* Small Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cert-item {
        min-width: 120px;
        max-width: 140px;
        padding: 1.5rem;
    }
    
    .about-story-centered {
        padding: 0 1rem;
    }
    
    .team-grid-centered {
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-content {
        gap: 3rem;
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .cert-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cert-item {
        min-width: 140px;
        max-width: 160px;
    }
    
    .team-grid-centered {
        max-width: 100%;
    }
}

/* Large Screens */
@media (min-width: 1025px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-graphic {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .service-card,
    .team-member,
    .solution-card {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .cta,
    .footer {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    .hero-content h1 {
        color: black;
    }
    
    .hero-content p {
        color: #666;
    }
    
    .page-header {
        background: white;
        padding: 20px 0;
    }
    
    .page-header h1 {
        color: black;
    }
    
    .page-header p {
        color: #666;
    }
    
    .service-card,
    .team-member,
    .solution-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .contact-form {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-graphic i {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-link {
        color: var(--text-color);
    }
    
    .service-card,
    .team-member,
    .solution-card,
    .case-study {
        background: var(--card-bg);
        color: var(--text-color);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--card-bg);
        color: var(--text-color);
        border-color: var(--border-color);
    }
    
    .faq-item {
        background: var(--card-bg);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .service-card,
    .team-member,
    .solution-card {
        border: 2px solid #000;
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    .hero-graphic {
        display: none;
    }
    
    .hero-image {
        display: none;
    }
    
    .image-placeholder {
        display: none;
    }
    
    .map-placeholder {
        display: none;
    }
}
