/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 3rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 90%;
    }
    
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .history-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .history-stats {
        margin-top: 1rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-container {
        margin-top: 3rem;
    }
    
    .server-animation {
        height: 350px;
    }
    
    .mobile-menu i {
        padding: 10px;
        font-size: 24px;
    }
    
    .nav-links.active {
        padding: 20px;
    }
    
    .nav-links.active li {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: all 0.5s ease-in-out;
        z-index: 2;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Increase touch target size for buttons and links */
    .btn, 
    nav a, 
    .footer-links a, 
    .testimonial-controls .arrow, 
    .testimonial-dots .dot {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure adequate spacing between touch elements */
    .nav-links li,
    .footer-links li,
    .contact-social a,
    .testimonial-dots .dot {
        margin: 0 10px;
    }
    
    /* Improve readability for mobile */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    p {
        font-size: 16px;
    }
    
    /* Improve form usability on mobile */
    input, 
    select, 
    textarea, 
    button {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
    }
    
    /* Make sure tables are responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 80%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 8rem 0 5rem;
    }
    
    .hero-legacy {
        font-size: 1.2rem;
    }
    
    .service-card, 
    .feature-item, 
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .service-content, 
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.4rem;
    }
    
    .server-animation {
        height: 250px;
    }
    
    .server-rack {
        width: 250px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    /* Make sure content doesn't overflow on very small screens */
    img, video {
        max-width: 100%;
        height: auto;
    }
} 