/*==================================================
SMD ENERGIES SOLUTION
Professional Responsive CSS
==================================================*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*====================
RESET
====================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f8f9fb;
    color:#333;
    overflow-x:hidden;
    line-height:1.7;
}

/*====================
CONTAINER
====================*/

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:100px 0;
}

/*====================
SECTION TITLE
====================*/

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    color:#ff9800;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
}

.section-title h2{
    margin-top:10px;
    font-size:42px;
    color:#0b5d2a;
}

.section-text{
    max-width:700px;
    margin:20px auto 0;
    color:#666;
}

/*====================
HEADER
====================*/

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:#ffffff;

    z-index:9999;

    transition:.35s;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.header-container{

    height:90px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/*====================
LOGO
====================*/

.logo{

    display:flex;

    align-items:center;

}

.logo img{

    width:65px;

    margin-right:15px;

}

.logo-text h2{

    font-size:28px;

    color:#0b5d2a;

}

.logo-text p{

    color:#ff9800;

    font-size:13px;

    font-weight:600;

}

/*====================
NAVIGATION
====================*/

nav{

    position:relative;

}

.nav-links{

    display:flex;

    list-style:none;

    gap:35px;

}

.nav-links li{

    list-style:none;

}

.nav-links a{

    text-decoration:none;

    color:#333;

    font-weight:600;

    transition:.3s;

    position:relative;

}

.nav-links a:hover,
.nav-links a.active{

    color:#0b8b43;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-5px;

    width:0;

    height:3px;

    background:#ff9800;

    transition:.3s;

}

.nav-links a:hover::after{

    width:100%;

}

/*====================
HAMBURGER
====================*/

.menu-toggle{

    display:none;

    font-size:30px;

    cursor:pointer;

    color:#0b5d2a;

}

/*====================
RESPONSIVE NAVBAR
====================*/

@media(max-width:768px){

    .header-container{

        height:70px;

    }

    .logo img{

        width:50px;

    }

    .logo-text h2{

        font-size:18px;

    }

    .logo-text p{

        display:none;

    }

    .menu-toggle{

        display:block;

    }

    .nav-links{

        display:none;

        position:absolute;

        top:70px;

        right:0;

        width:260px;

        background:#fff;

        flex-direction:column;

        padding:20px;

        border-radius:12px;

        box-shadow:0 10px 25px rgba(0,0,0,.15);

        gap:0;

    }

    .nav-links.active{

        display:flex;

    }

    .nav-links li{

        margin:12px 0;

    }

}
/*==================================================
HERO SECTION
==================================================*/

.hero{
    position:relative;
    min-height:100vh;
    background:url("bg.jpg") center center/cover no-repeat;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    padding-top:90px;
}

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65));
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:900px;
}

.hero-subtitle{
    display:inline-block;
    background:#ff9800;
    color:#fff;
    padding:12px 28px;
    border-radius:50px;
    font-size:15px;
    font-weight:600;
    margin-bottom:25px;
}

.hero h1{
    font-size:70px;
    line-height:1.15;
    margin-bottom:25px;
    font-weight:800;
}

.hero p{
    font-size:20px;
    max-width:760px;
    margin:auto;
    margin-bottom:40px;
    color:#f1f1f1;
}

/*==================================================
BUTTONS
==================================================*/

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centers the buttons */
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.hero-buttons .btn {
    width: 90%;
    max-width: 420px;
    text-align: center;
}

.btn,
.btn2{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:10px;

    padding:16px 40px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}

.btn{

    background:#0b8b43;

    color:#fff;

}

.btn:hover{

    background:#087436;

    transform:translateY(-4px);

}

.btn2{

    background:#ff9800;

    color:#fff;

}

.btn2:hover{

    background:#e28700;

    transform:translateY(-4px);

}

/*==================================================
ABOUT SECTION
==================================================*/

#about{

    background:#fff;

}

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.about-image{

    overflow:hidden;

    border-radius:20px;

}

.about-image img{

    width:100%;

    border-radius:20px;

    transition:.5s;

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.about-image:hover img{

    transform:scale(1.05);

}

.about-text h3{

    font-size:34px;

    color:#0b5d2a;

    margin-bottom:20px;

}

.about-text p{

    margin-bottom:20px;

    color:#666;

    font-size:17px;

}

/*==================================================
TABLET
==================================================*/

@media(max-width:992px){

.hero h1{

    font-size:55px;

}

.about-grid{

    grid-template-columns:1fr;

    gap:50px;

}

}

/*==================================================
MOBILE
==================================================*/

@media(max-width:768px){

.hero{

    min-height:100vh;

    padding:120px 20px 80px;

}

.hero h1{

    font-size:38px;

}

.hero p{

    font-size:17px;

}

.hero-buttons{

    flex-direction:column;

}

.btn,
.btn2{

    width:240px;

}

.about-text{

    text-align:center;

}

}

@media(max-width:480px){

.hero h1{

    font-size:30px;

}

.hero-subtitle{

    font-size:13px;

    padding:10px 20px;

}

.hero p{

    font-size:16px;

}

.about-text h3{

    font-size:28px;

}

}
/*==================================================
SERVICES
==================================================*/

#services{
    background:#f8f9fb;
}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.card{

    background:#ffffff;

    padding:40px 30px;

    border-radius:18px;

    text-align:center;

    position:relative;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.4s;

}

.card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:#ff9800;

    transform:scaleX(0);

    transform-origin:left;

    transition:.4s;

}

.card:hover::before{

    transform:scaleX(1);

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 50px rgba(0,0,0,.15);

}

.card i{

    width:80px;
    height:80px;

    margin:auto;
    margin-bottom:25px;

    display:flex;

    justify-content:center;
    align-items:center;

    border-radius:50%;

    background:#0b8b43;

    color:#fff;

    font-size:34px;

}

.card h3{

    color:#0b5d2a;

    font-size:24px;

    margin-bottom:15px;

}

.card p{

    color:#666;

    font-size:16px;

    line-height:1.8;

}

/*==================================================
WHY CHOOSE US
==================================================*/

#why{

    background:#ffffff;

}

#why .card{

    border-top:4px solid transparent;

}

#why .card:hover{

    border-top-color:#ff9800;

}

/*==================================================
PROJECTS
==================================================*/

#projects{

    background:#f8f9fb;

}

.gallery{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:25px;

}

.gallery div{

    overflow:hidden;

    border-radius:18px;

    position:relative;

}

.gallery img{

    width:100%;

    height:260px;

    object-fit:cover;

    transition:.45s;

    display:block;

}

.gallery div:hover img{

    transform:scale(1.08);

}

.gallery div::after{

    content:"View Project";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

    font-size:22px;

    font-weight:700;

    opacity:0;

    transition:.4s;

}

.gallery div:hover::after{

    opacity:1;

}

/*==================================================
PRODUCTS
==================================================*/

#products{

    background:#ffffff;

}

.product-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

}

.product-grid div{

    background:#0b8b43;

    color:#fff;

    text-align:center;

    padding:30px 20px;

    border-radius:15px;

    font-weight:600;

    transition:.35s;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

}

.product-grid div:hover{

    background:#086c34;

    transform:translateY(-8px);

}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:992px){

.cards{

    grid-template-columns:repeat(2,1fr);

}

.gallery{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.cards{

    grid-template-columns:1fr;

}

.gallery{

    grid-template-columns:1fr;

}

.product-grid{

    grid-template-columns:1fr;

}

.card{

    padding:35px 25px;

}

.gallery img{

    height:230px;

}

}

@media(max-width:480px){

.card h3{

    font-size:22px;

}

.card i{

    width:70px;
    height:70px;

    font-size:30px;

}

.gallery img{

    height:210px;

}

}
/*==================================================
SOLAR CALCULATOR
==================================================*/

#calculator{
    background:#eef8ef;
}

.calc-text{
    text-align:center;
    max-width:700px;
    margin:0 auto 40px;
    color:#666;
    font-size:18px;
}

.calculator{

    max-width:700px;

    margin:auto;

    background:#fff;

    padding:40px;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.input-box{

    margin-bottom:25px;

}

.input-box label{

    display:block;

    font-weight:600;

    margin-bottom:10px;

    color:#0b5d2a;

}

.input-box input{

    width:100%;

    padding:15px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:16px;

    transition:.3s;

}

.input-box input:focus{

    border-color:#ff9800;

    outline:none;

    box-shadow:0 0 12px rgba(255,152,0,.2);

}

.result{

    margin-top:30px;

    background:#f7fff8;

    border-left:5px solid #0b8b43;

    border-radius:12px;

    padding:25px;

    font-size:17px;

    line-height:2;

}

/*==================================================
SUBSIDY TABLE
==================================================*/

#subsidy{

    background:#ffffff;

}

table{

    width:100%;

    border-collapse:collapse;

    margin-top:40px;

    overflow:hidden;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

table th{

    background:#0b8b43;

    color:#fff;

    padding:18px;

    font-size:17px;

}

table td{

    padding:18px;

    text-align:center;

    border-bottom:1px solid #eee;

}

table tr:nth-child(even){

    background:#f9f9f9;

}

table tr:hover{

    background:#eef8ef;

}

/*==================================================
CONTACT
==================================================*/

#contact{

    background:#f8f9fb;

}

.contact-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

}

.contact-info{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.contact-box{

    display:flex;

    align-items:flex-start;

    gap:20px;

    background:#fff;

    padding:25px;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.contact-box:hover{

    transform:translateY(-8px);

}

.contact-box i{

    width:60px;

    height:60px;

    border-radius:50%;

    background:#ff9800;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    flex-shrink:0;

}

.contact-box h3{

    color:#0b5d2a;

    margin-bottom:8px;

}

.contact-box p{

    color:#666;

}

/*==================================================
CONTACT FORM
==================================================*/

.contact-form{

    background:#fff;

    padding:40px;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:15px;

    margin-bottom:20px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:16px;

    font-family:'Poppins',sans-serif;

}

.contact-form textarea{

    min-height:180px;

    resize:vertical;

}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:#ff9800;

    outline:none;

}

/*==================================================
GOOGLE MAP
==================================================*/

#map iframe{

    width:100%;

    height:450px;

    border:none;

    display:block;

}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:992px){

.contact-grid{

    grid-template-columns:1fr;

}

}

@media(max-width:768px){

.calculator{

    padding:30px;

}

.contact-form{

    padding:30px;

}

.contact-box{

    flex-direction:column;

    align-items:center;

    text-align:center;

}

table{

    display:block;

    overflow-x:auto;

}

}

@media(max-width:480px){

.calculator{

    padding:20px;

}

.contact-form{

    padding:20px;

}

.calc-text{

    font-size:16px;

}

}
/*==================================================
FOOTER
==================================================*/

footer{

    background:#0b5d2a;
    color:#ffffff;
    padding:70px 20px 30px;
    text-align:center;

}

.footer-content{

    max-width:900px;
    margin:auto;

}

.footer-content h2{

    font-size:34px;
    margin-bottom:15px;

}

.footer-content p{

    color:#d9d9d9;
    line-height:1.8;

}

.footer-content hr{

    border:none;
    height:1px;
    background:rgba(255,255,255,.15);
    margin:35px 0;

}

/*==================================================
SOCIAL ICONS
==================================================*/

.social-links{

    margin:35px 0;

}

.social-links a{

    display:inline-flex;

    justify-content:center;
    align-items:center;

    width:50px;
    height:50px;

    margin:0 8px;

    background:#ffffff;
    color:#0b8b43;

    border-radius:50%;

    font-size:20px;

    text-decoration:none;

    transition:.35s;

}

.social-links a:hover{

    background:#ff9800;
    color:#ffffff;

    transform:translateY(-6px);

}

/*==================================================
WHATSAPP BUTTON
==================================================*/

.whatsapp{

    position:fixed;

    bottom:25px;
    right:25px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25D366;
    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    font-size:34px;

    box-shadow:0 15px 35px rgba(0,0,0,.25);

    z-index:999;

    transition:.35s;

}

.whatsapp:hover{

    transform:scale(1.12);

}

/*==================================================
BACK TO TOP
==================================================*/

.top-btn{

    position:fixed;

    left:25px;
    bottom:25px;

    width:55px;
    height:55px;

    background:#ff9800;

    color:#fff;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    text-decoration:none;

    font-size:22px;

    opacity:0;
    visibility:hidden;

    transition:.35s;

    z-index:998;

}

.top-btn:hover{

    background:#0b8b43;

}

/*==================================================
SCROLL ANIMATION
==================================================*/

.hidden{

    opacity:0;

    transform:translateY(50px);

    transition:all .8s ease;

}

.show{

    opacity:1;

    transform:translateY(0);

}

/*==================================================
BUTTON RIPPLE EFFECT
==================================================*/

.btn,
.btn2{

    position:relative;
    overflow:hidden;

}

.ripple{

    position:absolute;

    border-radius:50%;

    background:rgba(255,255,255,.4);

    transform:scale(0);

    animation:ripple .6s linear;

    pointer-events:none;

}

@keyframes ripple{

    to{

        transform:scale(4);

        opacity:0;

    }

}

/*==================================================
CUSTOM SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eeeeee;

}

::-webkit-scrollbar-thumb{

    background:#0b8b43;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#087437;

}

/*==================================================
TEXT SELECTION
==================================================*/

::selection{

    background:#ff9800;
    color:#ffffff;

}

/*==================================================
SMALL DEVICES
==================================================*/

@media(max-width:768px){

    section{

        padding:80px 0;

    }

    .section-title h2{

        font-size:30px;

    }

    .footer-content h2{

        font-size:26px;

    }

    .whatsapp{

        width:58px;
        height:58px;

        font-size:30px;

    }

    .top-btn{

        width:50px;
        height:50px;

    }

}

@media(max-width:480px){

    .section-title h2{

        font-size:26px;

    }

    .social-links a{

        width:45px;
        height:45px;

        font-size:18px;

    }

}
