/* 
 * SVAION Website Responsive Stylesheet
 * ----------------------------------- 
 */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-heading {
        text-align: center;
    }
    
    .footer-links ul, .footer-services ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links li, .footer-services li {
        margin: 0 var(--spacing-sm) var(--spacing-sm);
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 540px;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--color-white);
        overflow: hidden;
        transition: height var(--transition-normal);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        height: calc(100vh - 70px);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: var(--spacing-lg);
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-md) 0;
        font-size: 1.2rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid, .features-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        flex-direction: column;
    }
    
    .achievement-image {
        height: 150px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-copyright {
        margin-bottom: var(--spacing-sm);
    }
}
