/* 
* Responsive Stylesheet for Innogenius Website
* This file contains all the responsive styling for different screen sizes
*/

/* Large Devices (less than 1200px) */
@media only screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Medium Devices (less than 992px) */
@media only screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    nav ul li {
        margin-left: 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 0;
    }
    .hero .primary-btn {
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Feature Boxes */
    .feature-boxes {
        margin-top: -40px;
    }
    
    .feature-boxes .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .feature-box {
        max-width: 500px;
    }
    
    /* Features Section */
    .features .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Page */
    .about-description {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: none;
        width: 100%;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services Page */
    .services-list .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Articles Page */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Page */
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        flex: none;
        width: 100%;
    }
}

/* Small Devices (less than 768px) */
@media only screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Header */
    header .container {
        position: relative;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem;
        display: none;
        z-index: 1000;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section */
    .hero .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    /* Stats Section */
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Features Section */
    .features .container {
        grid-template-columns: 1fr;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Vision & Mission */
    .vm-container {
        flex-direction: column;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services Page */
    .services-list .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Articles Page */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        width: 100%;
    }
}

/* Extra Small Devices (less than 576px) */
@media only screen and (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Value Items */
    .value-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* FAQ Section */
    .faq-question h3 {
        font-size: 1rem;
    }
}