@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    color: #fff;
    background: linear-gradient(-45deg, #1b3a1c, #3b6a3c, #2a472c, #3b6a3c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
body.page-fade-out {
    animation: fadePageOut 0.5s forwards;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1b3a1c; 
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1s forwards 1.5s;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #43ec49;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ---------------- HEADER (UNCHANGED) ---------------- */
#header{
    width: 100%;
    height:100vh;
    background-image: url("../images/background.png.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container{
    padding: 0px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo{
    width: 140px;
    border-radius: 80%;
    margin: 10px ;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
   content: '';
    width: 100%;
    height: 3px;
    background: #43ec49;
    position: absolute;
    left: 0;
    bottom: -6px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}
nav ul li a:hover{
    color: black;
    transform: translateY(-5px);
}
nav ul li a:hover::after{
   transform: scaleX(1);
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span{
    color: #43ec49;
    background: linear-gradient(45deg, #43ec49, #a8ffac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------about------------------- */
#about{
    padding: 80px 0;
    color: #fff;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 35px;
    margin-top: 65px;
}

.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 80px;
    font-weight: 600;
    color: #fff;
}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;   
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;   
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #43ec49;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin:10px 0;
} 

.tab-contents ul li span{
    color:#57b658;
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/* ---------------services------------ */
#services{
    padding: 30px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div{
    background: rgba(42, 71, 44, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

/* 🌟✨ NEW COOL HOVER EFFECT ✨🌟 */
.services-list div:hover {
    background: rgba(60, 173, 98, 0.9);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.services-list div::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 12px;
    background: linear-gradient(120deg, #57b658, #a6ffb0, #57b658);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: -1;
}

.services-list div:hover::before {
    opacity: 0.5;
}

.services-list div i {
    transition: transform 0.5s ease;
}
.services-list div:hover i {
    transform: scale(1.15) rotate(3deg);
}

.services-list div h2 {
    transition: transform 0.4s ease;
}
.services-list div:hover h2 {
    transform: translateY(-4px);
}

/* -----------ourWork-------- */
#ourWork{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #2a472c);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin: 20px;
    color: #2a472c;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background-color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #fff;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #2a472c;
}

/* ------------------contact--------------- */
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #57b658;
    font-size: 25px;
    margin-right: 15px;
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #fff;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: black;
    transform: translateY(-5px);
}
.btn.btn2{
    display: inline-block;
    background: #3b6a3c;
    transition: background 0.5s;
}
.btn.btn2:hover{
    background: #2a472c;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #fff;
    padding: 15px;
    margin: 15px 0;
    color: black;
    font-size: 18px;
    border-radius: 6px;
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #3b6a3c;
    font-size: 300;
    margin-top: 20px;
}
.copyright i{
    color: #57b658;
}

/* -------------chatbot section------------ */
#chatbox {
    position: fixed; 
    bottom: 50px; 
    right: 50px; 
    width: 100px; 
    height: 100px; 
}

#chatbox img {
    width: 100%;
    height: 100%; 
    border-radius: 100%;
    animation: pulse 2s infinite;
}
/* --- Toast Notification --- */
#toast-notification {
    position: fixed;
    
    /* CHANGED: Positioned from the top */
    top: 3rem; /* 48px */
    left: 50%;
    
    /* CHANGED: Starts *above* the screen and slightly scaled down */
    transform: translateX(-50%) translateY(-100px) scale(0.8);
    
    background-color: goldenrod;
    color: var(--text-dark); /* Dark text on your light green */
    padding: 1rem 1.875rem; /* 16px 30px */
    border-radius: 0.375rem; /* 6px */
    font-weight: 500;
    z-index: 1001; /* Make sure it's on top */
    
    /* ADDED: A strong shadow to make it pop */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    visibility: hidden;
    opacity: 0;
    
    /* CHANGED: Using a custom 'cubic-bezier' for a spring/bounce effect */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast-notification i {
    margin-right: 0.5rem; /* 8px */
}

/* This class will be added by JavaScript */
#toast-notification.show {
    visibility: visible;
    opacity: 1;
    
    /* CHANGED: Final transform to match the new animation */
    transform: translateX(-50%) translateY(0) scale(1); /* Drops into view */
}

.header-text, .login-form {
    display: inline-block;
    vertical-align: top;
    margin: 0 10px;
}

/* Fade-in animations */
.services-list div,
.work {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.services-list div.is-visible,
.work.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect */
.services-list div:nth-child(1) { transition-delay: 0.1s; }
.services-list div:nth-child(2) { transition-delay: 0.2s; }
.services-list div:nth-child(3) { transition-delay: 0.3s; }

.work:nth-child(1) { transition-delay: 0.1s; }
.work:nth-child(2) { transition-delay: 0.2s; }
.work:nth-child(3) { transition-delay: 0.3s; }

/* ------------------ RESPONSIVE ------------------ */
@media only screen and (max-width: 600px) {

    #header {}
    
    .header-text {
        margin-top: 30%;
        font-size: 18px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 120px;
        margin-bottom: 10px;
    }

    nav ul {
        padding: 0;
        text-align: center;
    }

    nav ul li {
        margin: 10px 15px;
    }

    .sub-title {
        font-size: 40px;
        text-align: center;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 img {
        margin-top: 20px;
    }

    .tab-titles {
        justify-content: center;
        margin: 20px 0 20px;
    }

    .tab-links {
        margin-right: 25px;
        font-size: 16px;
    }

    .services-list div {
        padding: 25px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .contact-left {
        text-align: center;
    }
    
    .social-icons {
        text-align: center;
    }

    .contact-right {
        margin-top: 30px;
    }

    form .btn2 {
        width: 100%;
    }

    .copyright {
        font-size: 14px;
        padding: 20px 10px;
    }

    #chatbox {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
}

/* ----------------- KEYFRAMES ----------------- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 236, 73, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(67, 236, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 236, 73, 0);
    }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { 
        opacity: 0; 
        visibility: hidden;
    }
}
@keyframes fadePageOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
