:root{
    --dark-green:#043a27d8;
    --light-green:#f9f9f9ac;
    --white:#ffffff;
}

/* GLOBAL RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:var(--white);
    color:#043a27;
    overflow-x:hidden; /* prevent horizontal scroll */
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

/* ================= HEADER ================= */

header{
    background:rgba(0, 0, 0, 0);
    height:100px;
    padding:0 5%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    backdrop-filter:blur(6px);
    transition:0.4s ease;
}

header.scrolled{
    background: rgba(2, 58, 3, 0.8);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.logo img{
    height:clamp(60px, 8vw, 100px);
}

nav{
    display:flex;
    align-items:center;
}

nav a{
    color:#fff;
    text-decoration:none;
    margin-left:clamp(15px, 2vw, 25px);
    position:relative;
    font-weight:500;
    font-size:clamp(14px, 1.5vw, 16px);
}

nav a::after{
    content:"";
    width:0%;
    height:2px;
    background:#fff;
    position:absolute;
    left:0;
    bottom:-5px;
    transition:0.3s;
}

nav a:hover::after{
    width:100%;
}

/* ================= HERO ================= */

.hero{
    position:relative;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
    padding:0 5%;
}

.slider{
    position:absolute;
    width:100%;
    height:100%;
}

.slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1.0s ease-in-out;
}

.slide.active{
    opacity:1;
}

.slide::after{
    content:"";
    position:absolute;
    inset:0;  /* THIS is the best way */
    background:rgba(0, 0, 0, 0.8);
}
/* ================= HERO TYPEWRITER ================= */

.hero-content{
    position:relative;
    z-index:2;
    color:#ffffff;
    max-width:1400px;

    opacity:0;
    transform:translateX(-80px);
    animation:heroSlide 1.5s ease forwards;
}

/* Slide from left */
@keyframes heroSlide{
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* Typewriter animation */
.flash-in.delay1 {
  animation-delay: 0.3s;
}

.flash-in.delay2 {
  animation-delay: 0.6s;
}

.flash-in.delay3 {
  animation-delay: 0.9s;
}

/* The structural animation frames */
@keyframes smoothFlash {
  0% {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px); /* Adds a premium subtle soft-focus lens effect on start */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}



/* typing */

@keyframes typing{
    from{width:10%}
    to{width:100%}
}

/* cursor blink */
.hero-content{
    position:relative;
    z-index:2;
    gap:15px;
    color:#ffffff;
    max-width:1400px;
}

.hero h1{
    font-size:clamp(28px, 5vw, 48px);
    margin-bottom:15px;
}

.hero h2{
    font-size:clamp(16px, 3vw, 28px);
    margin-bottom:20px;
}

.hero p{
    font-size:clamp(14px, 2vw, 18px);
    margin-bottom:30px;
}

.btn{
    background:#fff;
    color:#043a27;
    padding:12px 30px;
    text-decoration:none;
    border-radius:4px;
    font-weight:600;
    font-size:clamp(14px, 2vw, 16px);
    transition:0.9s ease;
}

.btn:hover{
    background:#ddd;
}

/* ================= ABOUT ================= */

.about-section{
    padding:5% 5%;
}

.about-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    max-width:1200px;
    margin:auto;
}

.about-content{
    flex:1;
}

.section-title{
    font-size:clamp(24px, 3vw, 32px);
    margin-bottom:20px;
}

.section-text{
    line-height:1.8;
    text-align:justify;
    font-size:clamp(14px, 2vw, 16px);
}

.about-images{
    position:relative;
    width:100%;
    max-width:500px;
    aspect-ratio: 4/3; /* keeps consistent container ratio */
}

/* All images */
.about-images .img{
    position:absolute;
    width:85%;           /* responsive width */
    border-radius:10px;
    transition:0.4s ease;
}


.img1{
    top:10%;
    right:5%;
}

.about-images .img:hover{
    transform:scale(1.05);
}

.company-stats{
    background:#ffffff;
    padding:80px 5%;
    }
    
    .stats-wrapper{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    text-align:center;
    flex-wrap:wrap;
    }
    
    .stat{
    flex:1;
    padding:20px;
    position:relative;
    }
    
    .stat:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:25%;
    height:50%;
    width:1px;
    background:#ddd;
    }
    
    .stat h2{
    font-size:48px;
    font-weight:700;
    color:#043a27;
    margin-bottom:10px;
    }
    
    .stat p{
    font-size:16px;
    color:#444;
    line-height:1.6;
    }
/* ================= PRODUCTS ================= */

.products-section {
    padding: 50px 20px;
    background: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #043a27;
}

/* Make cards responsive */

/* Grid styling */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
    gap: 20px;
    justify-content: center;
}

/* Card container */
.card {
    position: relative;
    width: 100%;
    height: 300px;
    color: white;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Gradient overlay */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(2, 80, 29, 0.293), rgba(2, 80, 29, 0.156));
    transition: height 0.6s ease;
    z-index: 1;
    border-radius: 10px;
}

/* Title styling */
.card h3 {
    position: absolute;
    bottom: 0;           /* stick to bottom initially */
    left: 0;
    width: 100%;         /* full width */
    text-align: center;
    padding: 15px 0;     /* more padding for full-width background */
    background: rgba(2, 80, 29, 0.6); /* covers full width */
    color: #fff;
    margin: 0;
    z-index: 2;
    border-radius: 0;    /* optional: no border-radius for full width */
    transition: all 0.6s ease; /* smooth floating */
    transform: translateY(0);  /* start at bottom */
}

/* Hover effect */
.card:hover::after {
    height: 100%; /* gradient grows */
}

.card:hover h3 {
    width: 100%;                  /* shrink to text width */
    padding: 10px 20px;           /* nice floating box */
    border-radius: 5px;
    transform: translateY(-120px); /* float to center */
    left: 50%;
    background: rgba(2, 80, 29, 0.073);
    transform: translate(-50%, -120px); /* center horizontally and float up */
}

/* — Projects & Applications Section — */
/* ================= PROJECT ZOOM ================= */
/* ================= PROJECTS SECTION ================= */

/* ================= PROJECTS SECTION ================= */

.projects-applications{
    padding:80px 20px;
    background:#f9f9f9;
    text-align:center;
    }
    
    .section-title{
    font-size:32px;
    color:#043a27;
    margin-bottom:40px;
    font-weight:700;
    }
    
    /* GRID */
    
    .projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
    max-width:1200px;
    margin:auto;
    }
    
    /* CARD */
    
    .project-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    cursor:pointer;
    transition:transform 0.35s ease, box-shadow 0.35s ease;
    }
    
    /* CARD ZOOM */
    
    .project-card:hover{
    transform:translateY(-8px) scale(1.08);
    box-shadow:0 15px 35px rgba(0,0,0,0.25);
    }
    
    /* VIDEO CONTAINER */
    
    .video-container{
    position:relative;
    width:100%;
    height:200px;
    overflow:hidden;
    }
    
    /* IMAGE */
    
    .video-thumb{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    }
    
    /* VIDEO */
    
    .project-video{
        display:none;
        width:100%;
        height:100%;
        object-fit:cover;
    }
    
    /* TITLE */
    
    .project-card h3{
    padding:15px;
    font-size:20px;
    color:#043a27;
    background:rgba(2,80,29,0.1);
    margin:0;
    font-weight:600;
    transition:0.3s;
    }
    
    .project-card:hover h3{
    background:#043a27;
    color:#fff;
    }
/* .projects-applications {
    margin-top: -10%;
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.projects-applications .section-title {
    font-size: 32px;
    color: #043a27;
    margin-bottom: 40px;
    font-weight: 700;
}

/* GRID */

/* .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
} */

/* CARD */

/* .project-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    cursor:pointer;
} */

/* IMAGE */

/* .project-card img{
    width:100%;
    height:200px;
    object-fit:cover;
    transition:transform 0.4s ease;
} */

/* HOVER ZOOM */

/* .project-card:hover img{
    transform:scale(1.12);
} */

/* TITLE */

/* .project-card h3{
    padding:15px;
    font-size:20px;
    color:#043a27;
    background:rgba(2,80,29,0.1);
    margin:0;
    font-weight:600;
    transition:0.3s;
}

.project-card:hover h3{
    background:#043a27;
    color:#fff;
} */ 


/* ================= CLIENT TESTIMONIAL ================= */

.clients-say{
    padding:100px 20px;
    background:#ffffff;
    text-align:center;
}

.clients-container{
    max-width:900px;
    margin:auto;
}

.testimonial-wrapper{
    position:relative;
    min-height:160px;
}

.testimonial-slide{
    position:absolute;
    width:100%;
    opacity:0;
    transform:translateY(30px);
    transition:all 0.8s ease;
}

.testimonial-slide.active{
    opacity:1;
    transform:translateY(0);
}

.testimonial-slide p{
    font-size:22px;
    line-height:1.8;
    font-style:italic;
    color:#333;
    margin-bottom:20px;
}

.testimonial-slide span{
    font-weight:600;
    color:#043a27;
}

/* dots */

.testimonial-dots{
    margin-top:40px;
}

.dot{
    height:10px;
    width:10px;
    margin:0 6px;
    display:inline-block;
    border-radius:50%;
    background:#ccc;
    transition:0.4s;
}

.dot.active{
    background:#043a27;
}
/* ================= FOOTER ================= */

.site-footer{
    background:#043a27;
    color:#fff;
    padding:60px 5% 20px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    max-width:1200px;
    margin:auto;
    gap:40px;
}

.footer-section{
    flex:1 1 250px;
}

.footer-section h3{
    margin-bottom:20px;
}

.footer-section ul{
    list-style:none;
}

.footer-section ul li{
    margin-bottom:10px;
}

.footer-section a{
    color:#fff;
    text-decoration:none;
}

.footer-section a:hover{
    color:#a5f17c;
}

.footer-bottom{
    text-align:center;
    border-top:1px solid #a5f17c;
    margin-top:40px;
    padding-top:20px;
    font-size:14px;
}

/* ================= MOBILE OPTIMIZATION ================= */

@media(max-width:900px){

    .about-container{
        flex-direction:column;
        text-align:center;
    }

    .about-images{
        position:relative;
        display:flex;
        flex-direction:column;
        gap:20px;
        min-height:auto;
        margin-top:30px;
    }

    .about-images .img{
        position:relative;
        width:100%;
        max-width:400px;
        margin:auto;
    }
}

/* ================= SCROLL APPEAR EFFECT ================= */

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:all 0.8s ease;
}

.reveal-left{
    opacity:0;
    transform:translateX(-80px);
    transition:all 0.8s ease;
}

.reveal-right{
    opacity:0;
    transform:translateX(80px);
    transition:all 0.8s ease;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active{
    opacity:1;
    transform:translate(0,0);
}