/* Responsive Styles */

/* Tablets and smaller laptops */
@media screen and (max-width: 1024px) {
    .container {
        padding:1rem 5px;
    }

    /* Header adjustments */
    .header-content {
        padding: 15px;
        position: relative;
    }

    .nav-toggle {
        display: block;
    }
    .footer-top{
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        display: block;
        margin: 10px 20px;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    /* Hero section adjustments */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .hero-main-image {
        width: 100%;
        margin-top: 30px;
    }

    /* Services grid adjustments */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 95vw;
    }

    /* Contact form adjustments */
    .form-content-wrapper {
        flex-direction: column;
    }

    .form-images {
        display: none;
    }

    .form-content {
        width: 100%;
    }

    /* Footer adjustments */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Renewable Energy Page Specific */
    .renewable-energy .service-hero .service-hero-image .video-wrapper {
        width: 100%;
        width: 320px;
        height: 180px;
        margin: 0 auto;
        border-radius: 0px;
    }

    .renewable-energy .service-hero .service-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile devices */
@media screen and (max-width: 640px) {
    /* Header adjustments */
    .logo span {
        display: none;
    }
    .header-cta {
        display: none;
    }
    
    .feature{
        justify-content: center;
        justify-items: center;
    }
    .about-hero{
        justify-content: center;
    }
    .about-image-wrapper{
        width: 80vw;
        border-radius: 0;
    }

    .nav-links {
        padding: 15px 0;
    }

    .nav-links li {
        margin: 5px 15px;
    }
    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }

    .dropdown-menu {
        padding-left: 15px;
    }

    /* Hero section */
    .hero-text h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* Services section */
    .features-grid {
       width: 90vw;
       gap: 5rem;
       padding: 5rem 0;
    }

    .feature {
        text-align: center;
    }

    /* Split layouts */
    .split-layout {
        flex-direction: column;
        gap: 30px;
    }

    .service-hero-text,
    .service-hero-image {
        width: 100%;
        border-radius: 0px;
    }

    /* Form adjustments */
    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Footer adjustments */
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .footer-logo {
        margin: 0 auto 15px;
    }

    .footer-newsletter {
        margin-top: 30px;
        width: 100%;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 300px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        justify-content: center;
    }

    .footer-col ul {
        align-items: center;
    }

    .contact-info {
        align-items: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal,
    .footer-credit {
        width: 100%;
        text-align: center;
    }

    /* Blog grid adjustments */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post.featured {
        grid-column: auto;
    }
    .footer-bottom{
        justify-content: center;
    }
    .renewable-energy .service-hero .service-hero-text {
        padding: 0 1rem;
    }

    .renewable-energy .service-hero .service-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .renewable-energy .service-hero .feature-item {
        justify-content: center;
    }

    .renewable-energy .service-hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .renewable-energy .service-hero .service-intro {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Small mobile devices */

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Service Hero Section */
    .service-hero .split-layout {
        flex-direction: column;
        gap: 30px;
    }

    .service-hero-text {
        padding: 20px;
        text-align: center;
    }

    .service-hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .service-hero-image {
        margin-top: 20px;
        padding: 0 20px;
    }

    .service-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .feature-item {
        min-width: 140px;
    }

    /* Logos Section */
    .logos-section {
        padding: 40px 20px;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        padding: 0 10px;
    }

    .logo-item img {
        max-width: 120px;
    }

    .logo-item span {
        font-size: 14px;
    }

    /* Service Details */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .benefits-list ul {
        padding-left: 20px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Additional Features Section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 5px;
    }

    .feature-card {
        padding: 20px;
    }

    /* Contact Form Section */
    .form-content-wrapper {
        flex-direction: column;
    }

    .form-content {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-images {
        display: none;
    }
}

/* Tablet Responsive Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
