/*
* FP Webdevelopment - Responsive Stylesheet
* Author: FP Webdevelopment
* Version: 1.0
*/

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-wrapper {
        gap: 20px;
    }

    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .header-cta {
        display: none;
    }

    .hero-section {
        padding: 150px 0 80px;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper {
        flex-direction: column;
    }

    .about-image,
    .about-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-image {
        margin-bottom: 50px;
        order: 1;
    }

    .about-content {
        order: 2;
    }

    .about-content .section-header {
        text-align: center;
    }

    .about-content .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    .container2 {
        max-width: 540px;
    }

    .section-padding {
        padding: 60px 0;
        position:relative;
        top:60px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--light-color);
        padding: 80px 20px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 998;
        overflow-y: auto;
    }
    
    .mobile-close-btn {
        display:block !important; 
        position: absolute;
        top: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--text-color);
        cursor: pointer;
        padding: 5px;
        transition: color 0.3s ease;
    }
    
    .mobile-close-btn:hover {
        color: var(--primary-color);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
    }

    .nav-link::after {
        left: 0;
        right: auto;
        width: 30px;
    }

    .services-wrapper {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-step {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .btn {
        padding: 10px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .service-card {
        padding: 20px;
    }

    .process-step {
        padding: 20px;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    #scroll-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}