/* Media Queries - Responsive Styles */

/* Extra Small Devices (320px and up) */
@media (min-width: 320px) and (max-width: 575px) {

    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Header and Navbar */
    .header {
        padding: 8px 0;
    }

    .header .container {
        padding: 0 5px;
    }

    .logo-icon {
        width: 15px;
        height: 15px;
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }

    .nav-links {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 50px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: var(--transition);
        z-index: 999;
        margin-right: 0;
    }

    body.dark-mode .nav-links {
        background: #1a1a1a;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links a {
        font-size: 12px;
        padding: 8px 0;
    }

    .nav-buttons {
        display: none;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Theme Toggle Container */
    .theme-container {
        margin-right: 30px;
    }

    .theme-toggle {
        width: 30px;
        height: 30px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    /* Preloader */
    .loader {
        width: 60px;
        height: 60px;
    }

    .loader-text {
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h4 {
        font-size: 0.9rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        max-width: 100%;
    }

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

    .feature-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .feature-text h3 {
        font-size: 0.8rem;
    }

    .slideshow-container {
        width: 100%;
        height: 250px;
    }

    .experience-badge {
        width: 80px;
        height: 80px;
        bottom: 10px;
        left: -10px;
    }

    .experience-badge .number {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.6rem;
    }

    /* Second Hero Section */
    .second-hero {
        padding: 50px 0;
    }

    .second-hero .container {
        grid-template-columns: 1fr;
    }

    .second-hero-content {
        order: 1;
        text-align: center;
    }

    .second-hero-image {
        order: 0;
        margin-bottom: 30px;
    }

    .second-hero-content h1 {
        font-size: 1.5rem;
    }

    .second-hero-content h4 {
        font-size: 0.9rem;
    }

    .second-hero-content p {
        font-size: 0.9rem;
    }

    .second-slideshow {
        width: 100%;
        height: 250px;
    }

    /* Clients Section */
    .clients {
        padding: 30px 0;
    }

    .clients-title h4 {
        font-size: 0.9rem;
    }

    /* Services Section */
    .services {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-features li {
        font-size: 0.8rem;
    }

    .service-link {
        font-size: 0.8rem;
    }

    .services-cta {
        padding: 20px;
    }

    .services-cta h3 {
        font-size: 1.4rem;
    }

    .services-cta p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* About Section */
    .about {
        padding: 50px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-image img {
        border-radius: 10px;
        margin-left: -10px;
    }

    .about-experience {
        padding: 10px;
        gap: 10px;
        bottom: -20px;
        right: 10px;
    }

    .leading_company {
        font-size: 10px !important;
    }

    .experience-item h3 {
        font-size: 1.5rem;
    }

    .experience-item p {
        font-size: 0.7rem;
    }

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

    .feature-item .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .feature-item .feature-text h3 {
        font-size: 0.9rem;
    }

    .feature-item .feature-text p {
        font-size: 0.8rem;
    }

    /* Process Section */
    .process {
        padding: 50px 0;
    }

    .process-steps {
        flex-direction: column;
        gap: 20px;
    }

    .process-step {
        width: 100%;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .step-number {
        font-size: 3rem;
    }

    .process-step h3 {
        font-size: 1rem;
    }

    .process-step p {
        font-size: 0.8rem;
    }

    /* Projects Section */
    .projects {
        padding: 50px 0;
    }

    .project-filter {
        margin-bottom: 20px;
    }

    .filter-btn {
        padding: 6px 15px;
        font-size: 0.7rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-img img {
        height: 200px;
    }

    /* Counter Section */
    .counter {
        padding: 40px 0;
    }

    .counter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .counter-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .counter-item h3 {
        font-size: 1rem;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 50px 0;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text p {
        font-size: 0.9rem;
    }

    .author-info h3 {
        font-size: 0.9rem;
    }

    .author-info p {
        font-size: 0.7rem;
    }

    /* FAQ Section */
    .faq {
        padding: 50px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-question h3 {
        font-size: 0.9rem;
    }

    .faq-icon {
        width: 25px;
        height: 25px;
    }

    .faq-answer p {
        font-size: 0.8rem;
    }

    /* Contact Section */
    .contact {
        padding: 50px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .info-details h3 {
        font-size: 1rem;
    }

    .info-details p {
        font-size: 0.8rem;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }

    .contact-form {
        padding: 20px;
    }

    .map-container h3 {
        font-size: 1.2rem;
    }

    .google-map {
        height: 250px;
    }

    /* Newsletter Section */
    .newsletter {
        padding: 30px 0;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text h2 {
        font-size: 1.5rem;
    }

    .newsletter-text p {
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 50px;
        padding: 10px;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 50px;
        padding: 10px;
        font-size: 0.8rem;
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-logo h2 {
        font-size: 1.5rem;
    }

    .footer-about p {
        font-size: 0.9rem;
    }

    .footer-social a {
        width: 30px;
        height: 30px;
    }

    .footer-links h3,
    .footer-services h3,
    .footer-contact h3 {
        font-size: 1.1rem;
    }

    .footer-links ul li,
    .footer-services ul li,
    .footer-contact ul li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        padding: 10px 0;
    }

    .copyright p {
        font-size: 0.8rem;
    }

    .footer-bottom-links a {
        font-size: 0.8rem;
        margin: 0 5px;
    }

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Devices (380px and up) */

/* Medium Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
        padding: 15px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Second Hero Section */
    .second-hero .container {
        grid-template-columns: 1fr;
    }

    .second-hero-content {
        order: 1;
        text-align: center;
        margin-top: 30px;
    }

    .second-hero-image {
        order: 0;
    }

    .second-hero-content h1 {
        font-size: 2.2rem;
    }

    .second-hero-content p {
        margin: 0 auto 30px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Process Steps */
    .process-steps {
        flex-wrap: wrap;
    }

    .process-step {
        width: 48%;
        margin-bottom: 30px;
    }
}

/* Large Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .header .container {
        padding: 0 15px;
    }

    .theme-container {
        margin-right: 50px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: var(--transition);
        z-index: 999;
        margin-right: 0;
    }

    body.dark-mode .nav-links {
        background: #1a1a1a;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-buttons {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .process-step {
        width: 45%;
        margin-bottom: 30px;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        margin-bottom: 30px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-bottom-links {
        margin-top: 10px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }

    /* Hero and About Sections */
    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

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

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

    /* Second Hero Section */
    .second-hero .container {
        grid-template-columns: 1fr;
    }

    .second-hero-content {
        order: 1;
        text-align: center;
        margin-top: 30px;
    }

    .second-hero-image {
        order: 0;
    }

    .second-hero-content p {
        margin: 0 auto 30px;
    }

    /* About Section */
    .about-text .section-header {
        text-align: center;
    }

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

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Testimonial Slider */
    .testimonial-slider .swiper-slide {
        height: auto;
    }
}

/* Extra Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        width: 30%;
    }

    /* Second Hero Section */
    .second-hero .container {
        gap: 30px;
    }

    .second-slideshow {
        width: 450px;
        height: 450px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* XX-Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1220px) {
    .container {
        max-width: 1140px;
    }

    /* Second Hero Section */
    .second-slideshow {
        width: 480px;
        height: 480px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* XXX-Large Devices (1220px and up) */
@media (min-width: 1221px) {

    /* Hero Sections */
    .hero-content h1,
    .second-hero-content h1 {
        font-size: 3.5rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Process Steps */
    .process-steps {
        justify-content: space-between;
    }

    .process-step {
        width: 18%;
    }
}