*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

.logo img{
    height:40px;
    max-width:150px;
    width:auto;
    display:block;
    border-radius:6px;
    border: .01px solid #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

body{
    background:#f4f6f9;
}

/* NAVBAR */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:7px 5%;
    background:#36755b;
    color:white;
    position:sticky;
    top:0;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    z-index:1000;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:25px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.nav-links a:hover{
    color:#38bdf8;
}


/* FEATURES */

.features{
    padding:30px;
    text-align:center;
}

.features h2{
    font-size:28px;
    margin-bottom: 20px;
}


.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:30px;
}

/* Base feature style */
.feature{
    color:white;
    padding:20px;
    background:rgb(46, 100, 9);
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease; /* <-- add smooth transition */
}

/* Hover effect */
.feature:hover{
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 50px rgba(0,0,0,0.25);
}

.feature-container{
    display:flex;
    gap:30px;
    justify-content:center;
    margin-top:10px;
    flex-wrap:wrap;
}


.card{
    color:#f4f6f9;
    background:rgb(63, 93, 47);
    padding:30px;
    width:270px;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.3s;
    animation:fadeUp 1s ease;
}

.card:hover{
    transform:translateY(-20px);
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

/* FOOTER */

footer{
    color:rgb(51, 46, 46);
    text-align:center;
    padding:10px;
    margin-top:0px;
    position:relative;  /* make it above background */
    z-index:1000;
}

/* ANIMATIONS */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
    opacity:1;
    transform:translateY(0);
    }
}


.slides{
    position: relative;
    width: 100%;
    height: 100%;
}

.slide{
    position: absolute;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease;
    width: 100%;           /* fill parent */
    height: auto;          /* fill parent */
    display: flex;
    justify-content: center;
    align-items: center;
}


.slide img{
    width: 80%;          /* relative to slide */
    max-width: 600px;    /* optional limit for large screens */
    height: auto;
    border-radius:12px;
    box-shadow:0 10px 10px rgba(0,0,0,0.25);
}

/* active slide */

.slide.active{
opacity:1;
transform:translateX(0);
}

/* leaving slide */

.slide.exit{
opacity:0;
transform:translateX(-100%);
}

.hero{
    position: relative;
    height: 30vh; /* adjust for larger screens */
    background: url("../images/bg.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before{
    content:"";
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index:0;
}

.hero::after{
    content:"";
    position: absolute;
    top:-50%;
    left:-50%;
    width:200%; height:200%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0.15) 100%
    );
    transform: rotate(25deg) translateX(-100%);
    animation: shine 3s infinite linear;
    z-index:1;
}

.hero-content{
    position: relative;
    z-index:2;
    padding:0 20px;
}

.hero-slider{
    width: 100%;
    height: 40vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content h1{
    font-size: 48px;
    animation: fadeInUp 1s ease forwards;
    opacity:0;
}

.hero-content p{
    animation: fadeInUp 1.2s ease forwards;
    opacity:0;
}


.secure-note{
    margin-top:15px;
    font-size:14px;
    opacity:0.85;
    animation: fadeInUp 1.4s ease forwards;
    opacity:0;
}

.btn-primary{
    padding:12px 30px;
    background:#2e7d32;
    color:white;
    border-radius:6px;
    text-decoration:none;
    display:inline-block;
    margin-top:20px;
    transition: 0.3s ease;
}

.btn-primary:hover{
    background:#256628;
    transform: translateY(-2px) scale(1.05);
}


@keyframes shine{
    0%{ transform: rotate(25deg) translateX(-100%); }
    100%{ transform: rotate(25deg) translateX(100%); }
}

/* Text fade in animation */
@keyframes fadeInUp{
    0%{
        opacity:0;
        transform: translateY(20px);
    }
    100%{
        opacity:1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px){
    .hero-content h1{ font-size: 40px; }
}

@media (max-width: 768px){
    .hero{ height: 50vh; }
    .hero-content h1{ font-size: 32px; }
    .btn-primary{ padding:10px 25px; }
}

@media (max-width: 480px){
    .hero{ height: 40vh; }
    .hero-content h1{ font-size: 24px; }
    .hero-content p{ font-size: 14px; }
    .btn-primary{ padding:8px 20px; }
}


