@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Poppins', sans-serif;

}

body {

    min-height: 100vh;
    /* background-color: lightgray; */
    
}

/*  */

/* ========== IMPROVED HEADER CSS ========== */

/* General Header Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%; /* Use percentage for better responsiveness */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease; /* Smooth transition for scroll effect */
}

/* Scrolled state for the header */
.header.scrolled {
    background-color: rgba(15, 23, 42, 0.85); /* A professional dark slate color */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Styling */
.logo {
    text-decoration: none;
}

.logo div { /* New container for better alignment */
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 28px;
    color: #7ed957;
    font-weight: 700;
}

.logo .subtext {
    font-size: 14px;
    color: #ffffff; /* White looks cleaner against the dark scroll background */
    font-weight: 400;
    letter-spacing: 1px;
}

/* Desktop Navigation Links */
.navbar .links-container-desktop {
    display: flex;
    align-items: center;
    gap: 10px; /* Use gap for spacing */
}

.navbar a {
    position: relative;
    font-size: 17px;
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 10px;
}

/* Underline hover effect */
.navbar a:not(.cta-button)::before {
    content: '';
    position: absolute;
    bottom: -2px; /* Positioned slightly below the text */
    left: 0;
    width: 0;
    height: 2px;
    background: #d4b504; /* The yellow from your original design */
    transition: width 0.4s ease;
}

.navbar a:not(.cta-button):hover::before {
    width: 100%;
}

/* Call-to-Action Button Styling */
.cta-button {
    background-color: #7ed957; /* Your primary green */
    color: #1a1a1a; /* Dark text for contrast */
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    margin-left: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 217, 87, 0.4);
}

/* Hide checkbox and mobile elements by default */
#sidebar-active {
    display: none;
}
.open-sidebar-button, .links-container-mobile {
    display: none;
}


/* ========== CORRECTED MOBILE & TABLET STYLES ========== */

@media (max-width: 900px) {
    /* Hide desktop links and show hamburger icon */
    .navbar .links-container-desktop { /* THIS IS THE KEY FIX - making the selector more specific */
        display: none;
    }
    
    .open-sidebar-button {
        display: block;
        cursor: pointer;
    }

    /* Mobile Sidebar Menu Styling */
    .links-container-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        z-index: 100;
        width: 300px;
        height: 100%;
        background-color: #1f2937; /* A cleaner, dark background */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding-top: 60px; /* Space for the close button */
    }

    /* When checkbox is checked, slide the menu in */
    #sidebar-active:checked ~ .links-container-mobile {
        right: 0;
    }

    .links-container-mobile a {
        box-sizing: border-box;
        width: 100%;
        padding: 20px 30px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .links-container-mobile .cta-button {
        margin: 20px auto; /* Center the button */
        width: calc(100% - 60px);
        text-align: center;
    }

    .close-sidebar-button {
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
    }

    /* Overlay for dimming the background */
    .overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        background-color: rgba(0, 0, 0, 0.6);
        transition: opacity 0.5s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    #sidebar-active:checked ~ .overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Adjust logo size for smaller screens */
    .logo div {
        font-size: 24px;
    }
    
    .logo .subtext {
        font-size: 12px;
    }
}

/*  */


/* carousel */


.carousel{
    height: 100vh;
    margin-top: -50px;
    /* width: 100vw; */
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #7ed957;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid rgb(212, 181, 4);
    color: rgb(212, 181, 4);
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 10;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    /* color: #fff; */
    color: white ;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #7ed957;
    color: white;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s;
}

/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #7ed957;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/* promo */

.promo-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .promo-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .promo-modal {
        /* Note: These colors are hardcoded but you can replace them with your CSS variables like var(--card-background) */
        background: #ffffff; 
        color: #343a40;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        width: 90%;
        max-width: 500px;
        text-align: center;
        position: relative;
        transform: scale(0.9);
        transition: transform 0.4s ease;
    }
    
    .promo-modal-overlay.active .promo-modal {
         transform: scale(1);
    }

    .promo-modal .close-button {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2rem;
        color: #aaa;
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s ease;
    }

    .promo-modal .close-button:hover {
        color: #343a40;
    }

    .promo-modal h2 {
        color: #1a3a5d;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .promo-modal p {
        margin-bottom: 20px;
        font-size: 1.1rem;
    }

    .promo-modal img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .promo-modal .promo-button {
        display: inline-block;
        background-color: #d4af37;
        color: #1a3a5d;
        padding: 12px 30px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .promo-modal .promo-button:hover {
        background-color: #c5a22f; /* Darker gold */
        transform: scale(1.05);
    }

/* promo */

/* Counter */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- Stats Section Styling --- */
#stats {
    background-color: lightgray;
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
    /* You can add a background image for more flair */
    /* background-image: linear-gradient(rgba(26, 58, 93, 0.9), rgba(26, 58, 93, 0.9)), url('your-image.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-attachment: fixed; /* Parallax effect */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-item .counter-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    #stats {
        padding: 60px 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 20px;
    }
    .stat-item .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}



/* service section */

#services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.section-title h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

/* Underline for the main title */
.section-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-title .subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d; /* A softer grey for the subtitle */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-background);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: #6c757d;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .section-title h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #services {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
}


/* ------------------------------------------------------ */

/* ========== IMPROVED FOOTER CSS ========== */

.site-footer {
    background-color: #1f2937; /* A professional dark slate/charcoal color */
    color: #e5e7eb; /* A soft off-white for text */
    padding: 60px 5% 20px 5%;
    font-family: sans-serif; /* Ensure a consistent font */
}

/* Main flex container for the columns */
.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* Modern way to add space between columns */
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    margin-bottom: 40px;
}

.footer-column {
    flex: 1; /* Allows columns to grow and shrink as needed */
    min-width: 280px; /* Prevents columns from getting too squished */
}

/* Column 1: Left */
.footer-left h3 {
    color: #ffffff;
    font-size: 32px;
    margin: 0 0 20px 0;
    font-weight: 700;
}
.footer-left h3 span {
    color: #7ed957; /* Your primary green color */
}
.footer-links a {
    color: inherit;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #7ed957;
}

/* Social Media Icons */
.footer-icons {
    margin-top: 30px;
}
.footer-icons a {
    display: inline-flex; /* Use flex for perfect centering */
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #374151; /* A slightly lighter grey */
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    margin-right: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.footer-icons a:hover {
    background-color: #7ed957;
    transform: translateY(-3px); /* Add a nice lift effect */
}

/* Columns 2 & 3: Center & Right */
.footer-center h4, .footer-right h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.contact-item i {
    color: #7ed957;
    font-size: 20px;
    margin-right: 15px;
    width: 25px; /* Fixed width for alignment */
    text-align: center;
}
.contact-item p {
    margin: 0;
    line-height: 1.6;
}
.contact-item p span {
    display: block;
    font-weight: 600;
}
.contact-item a {
    color: inherit;
    text-decoration: none;
}
.footer-company-about {
    line-height: 1.8;
    font-size: 15px;
}

/* Bottom Bar: Copyright & Credit */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to stack on small screens */
    gap: 15px;
    font-size: 14px;
    color: #9ca3af; /* A muted grey for less important text */
}
.footer-developer-credit a {
    color: inherit;
    text-decoration: none;
}
.footer-developer-credit a:hover {
    color: #ffffff;
}

/* ========== MOBILE & TABLET STYLES ========== */
@media (max-width: 880px) {
    .footer-container {
        flex-direction: column; /* Stack columns vertically */
        text-align: center;
    }
    .footer-column {
        min-width: 100%; /* Make each column take full width */
        margin-bottom: 30px;
    }
    .footer-links, .footer-icons {
        justify-content: center;
    }
    .contact-item {
        justify-content: center; /* Center contact items */
    }
    .footer-bottom {
        flex-direction: column; /* Stack copyright and credit */
        text-align: center;
    }
}

/* -----------------------whatsapp-------------------------------- */

.whatsapp{
    text-decoration: none; 
    background-color: #59bb2f; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-size: 16px
}