* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d6f50b;
    --secondary: #1e40af;
    --dark: #0f172a;
    --light: #f8fafc;
    --accent: #10b981; 
    --text: #334155;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(6, 145, 108, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 6px  rgba(6, 145, 108, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1rem 2rem; */
    gap: 4rem; /* Added gap between logo and navigation */
    /* border: 1px solid red; */
}
    /* Logo link hover/focus styles: clickable logo that navigates home */
    .logo-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: inherit;
        text-decoration: none;
        transition: transform 180ms ease, color 180ms ease;
    }
    .logo-link .logo-icon {
        width: 75px; /* keep existing layout, adapt if your site uses a different size */
        height: auto;
        display: block;
        transition: transform 180ms ease;
    }
    .logo-link:hover,
    .logo-link:focus {
        transform: translateY(-2px);
    }
    .logo-link:hover .logo-icon,
    .logo-link:focus .logo-icon {
        transform: scale(1.03);
    }
    .logo-link:focus {
        outline: 3px solid rgba(21, 126, 251, 0.12);
        outline-offset: 3px;
    }

    /* Ensure .active and :hover styles are visually distinct and not sticky.
         Keep hover-only effects in :hover and use script-controlled .active sparingly. */
    .nav-links a.active {
        /* sample active color — adapt to your theme variables if available */
        color: #0d6efd;
    }
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    min-width: 300px; /* Added minimum width for logo section */
}
.logo-text-div{
    align-items: center;
    text-align: center;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('assets/background.JPG'); /* fixed path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
    filter: brightness(0.55); /* Darken image to make text readable */
}

.hero-content {
    text-align: center;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.el-check-section {
    display: flex;
    align-items: center;
    gap: 10px; /* space between text and button */
    color: white;
    justify-content: flex-end; /* move to right side */
    padding: 10px 20px;
    border: 1px solid white ;
}
.el-check-section p {
    margin: 0;
    color: white;
}

.chk-button{
    display: inline-block;
    padding: .5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight:700;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(245, 159, 11, 0.456);
    border: none;
    cursor: pointer;
    font-size: .8rem; 
}
.chk-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Page Header */
.page-header {
    padding: 7rem 2rem 3rem;
    background: linear-gradient(135deg, var(--accent), var(--dark));
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Stats Section */
.stats-section {
    background: var(--light);
    padding: 4rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Features Section */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text);
}

/* Services Section */
.services-preview {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text);
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--primary);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent), var(--dark));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-section h3 {
    color: var(--dark);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* --- Trusted Solar Energy Partner Section --- */
.trusted-partner {
    text-align: center;
    background: #f9fafb;
    padding: 80px 20px;
}

.trusted-partner .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e2a38;
    margin-bottom: 10px;
}

.trusted-partner .section-subtitle {
    font-size: 1.1rem;
    color: #53a548;
    margin-bottom: 20px;
}

.trusted-partner .trusted-badge {
    display: inline-block;
    background-color: #273b8c;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    margin-bottom: 40px;
}

/* Partner logos */
.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 50px;
}

.partner-card {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 20px 30px;
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card img {
    max-width: 180px;
    height: auto;
}

/* Certifications */
.certifications {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.cert-card {
    text-align: center;
    /* background: #fff; */
    padding: 15px 20px;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
    width: 200px;
}

.cert-card img {
    width: 80px;
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.9rem;
    color: #555;
}


/* End of Trusted Solar Energy Partner Section */
/* Dropdown Base */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px 0;
    z-index: 2000;
    transition: opacity 0.2s;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 22px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Show dropdown on hover */
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    display: block;
    opacity: 1;
}


/*  */
/*  */

/* Dropdown Base */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px 0;
    z-index: 2000;
    transition: opacity 0.18s ease, transform 0.18s ease;
    opacity: 0;
    transform: translateY(6px);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.18s, color 0.18s;
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Show dropdown on hover or when parent has .open class */
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* When the body has this class, disable hover-driven dropdowns so
   JS can control opening/closing without :hover sticking the menu open. */
body.disable-dropdown-hover .dropdown:hover > .dropdown-menu,
body.disable-dropdown-hover .dropdown:focus-within > .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(6px) !important;
}


.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/*  */
.map-container {
    margin-top: 50px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

/* ========== ENHANCED RESPONSIVE DESIGN ========== */

/* Tablet devices (769px to 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        gap: 2rem;
        padding: 0.75rem 1.5rem;
    }

    .logo {
        min-width: 250px;
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-card {
        width: 220px;
        padding: 15px 25px;
    }

    .partner-card img {
        max-width: 150px;
    }
}

/* Small tablets and large phones (481px to 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .logo {
        min-width: 200px;
        font-size: 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .mobile-menu {
        display: flex;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card,
    .feature-box,
    .service-card,
    .card {
        padding: 1.5rem;
    }

    .partner-card {
        width: 100%;
        max-width: 200px;
    }

    .partner-card img {
        max-width: 120px;
    }

    .certifications {
        gap: 1rem;
    }

    .cert-card {
        width: 150px;
    }

    .cert-card img {
        width: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section {
        text-align: center;
    }
}

/* Mobile phones (320px to 480px) */
@media (max-width: 480px) {
    * {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .nav-container {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .logo {
        min-width: auto;
        font-size: 0.9rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .nav-links {
        padding: 1rem;
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .stats-grid,
    .features-grid,
    .services-grid,
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card,
    .feature-box,
    .service-card,
    .card {
        padding: 1rem;
    }

    .stat-card h3,
    .feature-box h3,
    .service-card h3,
    .card h3 {
        font-size: 1.2rem;
    }

    .stat-card p,
    .feature-box p,
    .service-card p,
    .card p {
        font-size: 0.85rem;
    }

    .partner-card {
        width: 100%;
        max-width: 180px;
        padding: 10px 15px;
    }

    .partner-card img {
        max-width: 100px;
    }

    .certifications {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cert-card {
        width: 120px;
        padding: 10px;
    }

    .cert-card img {
        width: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}


