/*
* Rapid IT - Responsive Styles
* Media queries for responsive design
* Optimized for small screens
*/

/* Large Devices, Wide Screens */
@media only screen and (max-width: 1199px) {
    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 10px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width: 991px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 28px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .header-area {
        padding: 15px 0;
    }
    
    .navbar-nav .nav-link:after {
        display: none;
    }
    
    .navbar-nav .btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero-area {
        padding: 150px 0 80px;
    }
    
    .hero-content {
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .about-image .experience {
        left: 0;
    }
    
    /* Improved dropdown menu for mobile */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        background-color: #f8f9fa;
        border-radius: 0;
    }
    
    .dropdown-item {
        padding: 10px 15px 10px 25px;
    }
    
    .navbar-collapse {
        padding: 15px 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .service-sidebar {
        margin-top: 40px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width: 767px) {
    h1 {
        font-size: 36px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .navbar-brand img {
        max-height: 60px;
        width: auto;
    }
    
    .cta-area {
        padding: 60px 0;
    }
    
    .footer-area {
        padding-top: 60px;
    }
    
    .copyright-area {
        text-align: center;
    }
    
    .copyright-area .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
    
    .contact-form {
        padding: 30px;
        margin-top: 30px;
    }
    
    /* Improved responsive styling for team members */
    .team-member {
        margin-bottom: 30px;
    }
    
    /* Better spacing for partner logos on small screens */
    .partner-item {
        margin-bottom: 20px;
    }
    
    /* Improved spacing for vision & mission boxes */
    .vision-box, .mission-box {
        margin-bottom: 30px;
    }
    
    /* Enhanced readability for content */
    p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Improved padding for all sections */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Optimize page banner for small screens */
    .page-banner {
        padding: 80px 0;
    }
    
    .page-banner h1 {
        margin-bottom: 15px;
    }
    
    /* Adjust spacing between rows */
    .row > [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    /* Enhance testimonial display on mobile */
    .testimonial-box {
        padding: 25px 20px;
    }
    
    /* Optimize footer widgets on mobile */
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        text-align: center;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 575px) {
    h1 {
        font-size: 30px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 18px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-area {
        padding: 120px 0 50px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0 auto 15px;
        max-width: 200px;
    }
    
    .cta-buttons .btn {
        display: block;
        margin: 0 auto 15px;
        max-width: 200px;
    }    
    .about-image .experience {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        display: inline-block;
        width: 100%;
        max-width: 200px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    .portfolio-filter li {
        display: block;
        margin: 0 0 10px;
    }
    
    /* Enhanced text readability for extra small screens */
    p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Optimize button sizing */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Adjust section title spacing */
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        margin-bottom: 15px;
    }
    
    /* Optimize content containers */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Better spacing in service page content */
    .service-content h3 {
        font-size: 22px;
        margin: 30px 0 15px;
    }
    
    /* Optimize list styling for better readability */
    ul:not(.navbar-nav, .footer-links, .service-list) li {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    /* Optimize mobile navbar */
    .navbar-toggler {
        padding: 6px 10px;
    }
    
    .navbar-brand img {
        max-height: 50px;
    }
    
    /* Optimize header padding for small screens */
    .header-area {
        padding: 10px 0;
    }
}/* Contact Form Responsive Improvements */
.contact-form .form-control {
    padding: 12px 15px;
    height: auto;
    font-size: 15px;
}

.contact-form textarea.form-control {
    min-height: 120px;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 16px;
}

/* Add proper spacing for form elements on mobile */
@media only screen and (max-width: 767px) {
    .contact-form .form-group {
        margin-bottom: 20px;
    }
    
    .contact-form .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .alert {
        padding: 12px;
        font-size: 14px;
    }
}

/* Responsive accordion improvements */
@media only screen and (max-width: 575px) {
    .accordion-button {
        padding: 15px;
        font-size: 15px;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 14px;
    }
}