/* services */
.solar-section {
    position: relative;
    margin-top: -80px;
    /* pulls section into hero */
    z-index: 10;
    padding-bottom: 60px;
}

/* CARD STYLE (GLASS + GRADIENT) */
.solar-card {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;

    background: #fff;
    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);

    position: relative;
    overflow: hidden;
}

/* LEFT IMAGE */
.solar-left {
    flex: 1;
}

.solar-left img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* RIGHT CONTENT */
.solar-right {
    position: relative;
    z-index: 3;
}

.solar-right h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 18px;
}

/* LIST */
.solar-right ul {
    list-style: none;
    padding: 0;
}

.solar-right ul li {
    font-size: 15px;
    margin-bottom: 10px;
    color: #444;
    display: flex;
    align-items: center;
}

/* GREEN CHECK */
.solar-right ul li::before {
    content: "✔";
    color: #22c55e;
    margin-right: 10px;
    font-weight: bold;
}

/* RIGHT HOUSE IMAGE */
.solar-house {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 260px;
    z-index: 2;

    /* MAGIC BLEND */
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.solar-card::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.35) 100%
    );

    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .solar-card {
        flex-direction: column;
        text-align: center;
    }

    .solar-house {
        display: none;
    }
}

.solar-features-section {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

/* SECTION TITLE */
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
}

/* FEATURE GRID */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* FEATURE CARD - UPDATED FOR CIRCULAR IMAGES */
.feature-card {
    width: 210px;
    min-height: 180px;
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    
    color: #2c3e50;
    position: relative;
    overflow: hidden;

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
    
    padding: 25px 15px;
    cursor: pointer;
}

/* Remove old icon styles */
.feature-card i {
    display: none;
}

.feature-card h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
}

/* Circular image styling for features */
.feature-image-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

/* Hover effect for images */
.feature-card:hover .feature-image-circle {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Wrapper for better spacing */
.feature-image-wrapper {
    margin-bottom: 18px;
    display: inline-block;
}

/* Card hover effect */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

/* Keep color classes but make them affect border or subtle background */
.feature-card.lime {
    border-bottom: 4px solid #84cc16;
}

.feature-card.orange {
    border-bottom: 4px solid #f97316;
}

.feature-card.green {
    border-bottom: 4px solid #22c55e;
}

.feature-card.teal {
    border-bottom: 4px solid #14b8a6;
}

.feature-card.blue {
    border-bottom: 4px solid #3b82f6;
}

/* Remove old gradient backgrounds from feature cards */
.feature-card.blue,
.feature-card.orange,
.feature-card.green,
.feature-card.lime,
.feature-card.teal {
    background: rgba(255, 255, 255, 0.95);
}

/* FULL WIDTH SECTION */
.tech-section {
    width: 100%;
    padding: 60px 0;

 /*   background: linear-gradient(135deg, #74b9ff 0%, #80ffd1 40%, #ffeaa7 100%);*/
}

/* TITLE */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* FULL WIDTH BOX */

.tech-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.tech-box {
    width: 100%;
    padding: 30px 60px;
    /* side spacing */

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 60px;
}

/* ITEMS */
.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* LEFT SIDE */
.tech-item span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ICON */
.tech-item i {
    color: #22c55e;
    font-size: 16px;
}

/* VALUE */
.tech-item strong {
    font-weight: 600;
}

/* REMOVE LAST ROW BORDER */
.tech-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tech-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tech-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        width: 160px;
        min-height: 160px;
        padding: 20px 12px;
    }
    
    .feature-image-circle {
        width: 65px;
        height: 65px;
    }
    
    .feature-card h4 {
        font-size: 13px;
    }
}

/* GRID LAYOUT (FORCE 4 IN ROW) */
.installations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* EXACT 4 */
    gap: 20px;

    width: 100%;
    padding: 0 60px;
    /* spacing from edges */
}

/* IMAGE STYLE */
.installations-grid img {
    width: 100%;
    height: 160px;

    object-fit: cover;
    border-radius: 12px;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

/* HOVER EFFECT */
.installations-grid img:hover {
    transform: scale(1.05);
}

/* SECTION BACKGROUND */
.why-section {
    width: 100%;
    padding: 70px 20px;
    text-align: center;

    background: #fff;
}

/* TITLE */
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
}

/* GRID */
.why-grid {
    display: flex;
    justify-content: center;

    gap: 36px;
    flex-wrap: wrap;
}

/* CARD */
.why-card {
    width: 220px;
    padding: 30px 20px 20px;
    background: rgba(255, 255, 255, 0.7);

    border-radius: 16px;
    backdrop-filter: blur(10px);

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);

    position: relative;
    transition: 0.3s;
}

/* ICON CIRCLE */
.icon-circle {
    border-radius: 50%;

    width: 80px;
    /* was 55 */
    height: 70px;
    /* was 55 */

    font-size: 26px;
    /* icon size */
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);

    color: white;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* COLORS */
.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.blue {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.lime {
    background: linear-gradient(135deg, #84cc16, #4d7c0f);
}

.sky {
    background: linear-gradient(135deg, #06b6d4, #0f766e);
}

/* TEXT */
.why-card p {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

/* HOVER */
.why-card:hover {
    transform: translateY(-8px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .why-grid {
        gap: 15px;
    }

    .why-card {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .why-card {
        width: 100%;
    }
}

/* ========== ADDED COMPREHENSIVE RESPONSIVE MEDIA QUERIES ========== */
/* Tablet Styles (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /*nav {
        padding: 12px 30px;
    }*/

    .hero-section {
        min-height: 500px !important;
    }

    .hero-content-wrapper h1 {
        font-size: clamp(32px, 5vw, 42px) !important;
    }

    .solar-card {
        width: 95%;
        gap: 30px;
        padding: 25px;
    }

    .feature-card {
        width: 170px;
        min-height: 165px;
    }
    
    .feature-image-circle {
        width: 65px;
        height: 65px;
    }

    .tech-box {
        padding: 25px 40px;
        gap: 20px 40px;
    }

    .installations-grid {
        padding: 0 40px;
        gap: 18px;
    }

    .installations-grid img {
        height: 150px;
    }

    .why-card {
        width: 200px;
    }

   /* .footer-form {
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-form input,
    .phone-field {
        width: 220px;
    }

    .footer-bottom {
        padding: 10px 15px;
    }*/
}

/* Mobile Landscape & Tablet Small (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
 /*   nav {
        padding: 12px 25px;
    }*/

    .hero-section {
        min-height: 450px !important;
        padding-top: 100px !important;
    }

    .hero-content-wrapper h1 {
        font-size: 32px !important;
    }

    .hero-content-wrapper p {
        font-size: 14px !important;
    }

    .solar-card {
        width: 95%;
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .solar-house {
        display: none;
    }

    .solar-right ul li {
        justify-content: center;
    }

    .features-grid {
        gap: 18px;
    }

    .feature-card {
        width: calc(33.33% - 18px);
        min-width: 150px;
        min-height: 155px;
        padding: 18px 12px;
    }
    
    .feature-image-circle {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h4 {
        font-size: 13px;
    }

    .tech-box {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .tech-item {
        font-size: 14px;
    }

    .installations-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
        gap: 20px;
    }

    .installations-grid img {
        height: 160px;
    }

    .why-grid {
        gap: 25px;
    }

    .why-card {
        width: calc(50% - 25px);
        min-width: 180px;
    }

  /*  .footer-form {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-form input,
    .phone-field {
        width: 280px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }*/
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
  /*  nav {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }*/

    .hero-section {
        min-height: 400px !important;
        padding-top: 90px !important;
    }

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

    .hero-content-wrapper h1 {
        font-size: 28px !important;
    }

    .hero-content-wrapper p {
        font-size: 13px !important;
    }

    .hero-content-wrapper .d-flex {
        justify-content: center;
    }

    .solar-section {
        margin-top: -50px;
        padding-bottom: 40px;
    }

    .solar-card {
        width: 92%;
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 20px;
    }

    .solar-house {
        display: none;
    }

    .solar-left img {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }

    .solar-right h2 {
        font-size: 20px;
    }

    .solar-right ul li {
        justify-content: center;
        font-size: 14px;
    }

    .solar-features-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .features-grid {
        gap: 15px;
        margin-bottom: 30px;
    }

    .feature-card {
        width: calc(50% - 15px);
        min-width: 140px;
        min-height: 150px;
        padding: 18px 12px;
    }
    
    .feature-image-circle {
        width: 55px;
        height: 55px;
    }
    
    .feature-card h4 {
        font-size: 12px;
    }

    .tech-section {
        padding: 40px 0;
    }

    .tech-box {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 12px;
    }

    .tech-item {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tech-item span {
        gap: 8px;
    }

    .tech-item i {
        font-size: 14px;
    }

    .installations-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
        gap: 15px;
    }

    .installations-grid img {
        height: 130px;
    }

    .why-section {
        padding: 50px 15px;
    }

    .why-grid {
        gap: 30px;
    }

    .why-card {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .icon-circle {
        width: 65px;
        height: 55px;
        font-size: 22px;
        top: -22px;
    }

    .why-card p {
        font-size: 13px;
        margin-top: 15px;
    }

    .footer-overlay {
        padding: 40px 15px 25px;
    }

    .footer-overlay h2 {
        font-size: 26px;
    }

 /*   .footer-form {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-form input,
    .phone-field {
        width: 90%;
        max-width: 280px;
    }

    .phone-field {
        width: 90%;
        max-width: 280px;
    }

    .phone-field input {
        width: 100%;
    }

    .request-btn {
        width: 200px;
        height: 42px;
        font-size: 14px;
    }

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

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 12px;
    }

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

    .footer-social {
        justify-content: center;
    }

    .footer-social i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }*/

    .scroll-top {
        width: 38px;
        height: 38px;
        bottom: 15px;
        right: 15px;
    }
}

/* Extra Small Devices (up to 380px) */
@media (max-width: 380px) {
    .feature-card {
        width: calc(50% - 10px);
        min-width: 130px;
        min-height: 140px;
        padding: 15px 10px;
    }
    
    .feature-image-circle {
        width: 50px;
        height: 50px;
    }
    
    .feature-card h4 {
        font-size: 11px;
    }

    .installations-grid {
        gap: 12px;
    }

    .installations-grid img {
        height: 110px;
    }

    .solar-right h2 {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    } 
} 

/* Ensure navbar collapse works properly on mobile with existing Bootstrap */
@media (max-width: 991px) {
    /*.navbar-collapse {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }

    .navbar-nav {
        gap: 12px !important;
    }

    .navbar-nav .nav-link {
        color: white !important;
        text-align: center;
    }*/
}

.custom-toggler {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
}

.custom-toggler i {
    color: #004985;
    font-size: 22px;
}

/* Specification icon image styling */
.spec-icon-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

/* Optional hover effect */
.tech-item:hover .spec-icon-image {
    transform: scale(1.1);
}

/* Ensure consistent spacing with text */
.tech-item span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Adjust for mobile responsiveness */
@media (max-width: 768px) {
    .spec-icon-image {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 575px) {
    .spec-icon-image {
        width: 18px;
        height: 18px;
    }
}
/* Fix for mobile highlight alignment */
@media (max-width: 768px) {
    .solar-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .solar-right {
        width: 100%;
        text-align: left; /* Change from center to left for better alignment */
    }

    .solar-right h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Fix for unordered list alignment */
    .solar-right ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    /* Each list item - left aligned with proper spacing */
    .solar-right ul li {
        font-size: 14px;
        margin-bottom: 12px;
        color: #444;
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Left align items */
        text-align: left;
        padding: 0 10px;
        gap: 10px;
    }

    /* Green check mark styling */
    .solar-right ul li::before {
        content: "✔";
        color: #22c55e;
        margin-right: 10px;
        font-weight: bold;
        flex-shrink: 0; /* Prevents checkmark from shrinking */
        font-size: 14px;
    }

    /* Long text handling */
    .solar-right ul li span {
        flex: 1;
        word-wrap: break-word;
        word-break: break-word;
    }
}

/* For smaller mobile devices (under 480px) */
@media (max-width: 480px) {
    .solar-card {
        padding: 20px 15px;
    }

    .solar-right h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .solar-right ul li {
        font-size: 13px;
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .solar-right ul li::before {
        font-size: 12px;
        margin-right: 8px;
    }
}

/* For very small devices (under 360px) */
@media (max-width: 360px) {
    .solar-right ul li {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .solar-right ul li::before {
        align-self: flex-start;
        margin-top: 2px;
    }
}

/* Alternative if you want bullet points centered with text left */
@media (max-width: 768px) {
    .solar-right ul li {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
}

/* If you want the entire list to have consistent left margin */
@media (max-width: 768px) {
    .solar-right ul {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .solar-right ul li {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* For devices between 576px and 768px (tablet) */
@media (min-width: 576px) and (max-width: 767px) {
    .solar-card {
        width: 95%;
        padding: 25px 20px;
    }

    .solar-right ul {
        max-width: 90%;
        margin: 0 auto;
    }

    .solar-right ul li {
        justify-content: flex-start;
        padding: 0 15px;
    }
}

/* Alternative styling for better mobile list appearance */
@media (max-width: 768px) {
    .solar-right ul li {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 8px;
        padding: 10px 15px;
        margin-bottom: 8px;
    }
    
    .solar-right ul li::before {
        margin-right: 12px;
    }
}