/* Responsive Design for xHourSystems */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-visual {
        width: 350px;
        height: 350px;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-visual {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-features {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .privacy-content,
    .terms-content {
        padding: 80px 0 40px;
    }
    
    .content-body {
        padding: 1.5rem;
    }
    
    .content-header h1 {
        font-size: 2.5rem;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-description {
        font-size: 1.1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .content-body {
        padding: 1rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .policy-section p,
    .policy-section li {
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero {
        padding: 70px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about {
        padding: 50px 0;
    }
    
    .services {
        padding: 50px 0;
    }
    
    .contact {
        padding: 50px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .privacy-content,
    .terms-content {
        padding: 70px 0 30px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about,
    .services,
    .contact {
        padding: 50px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-actions,
    .lang-switch,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .about,
    .services,
    .contact,
    .privacy-content,
    .terms-content {
        background: white !important;
        padding: 20px 0;
    }
    
    .service-card,
    .contact-info,
    .contact-form-container,
    .content-body {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .btn {
        border: 1px solid #333 !important;
        background: white !important;
        color: black !important;
    }
    
    .stat-item {
        border: 1px solid #ddd;
        box-shadow: none !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --accent-color: #667eea;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .about {
        background: var(--bg-secondary);
    }
    
    .contact {
        background: var(--bg-secondary);
    }
    
    .service-card,
    .contact-info,
    .contact-form-container,
    .content-body {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .form-group input,
    .form-group textarea {
        background: var(--bg-primary);
        color: var(--text-primary);
        border-color: #444;
    }
    
    .stat-item {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.lang-switch:focus,
.mobile-menu-toggle:focus,
.form-group input:focus,
.form-group 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: 1001;
}

.skip-link:focus {
    top: 6px;
} 