/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    scroll-behavior: smooth;
    background: linear-gradient(90deg, #f9f9f9, #fff);
}

.top-bar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar img {
    height: 150px; /* Adjusted to a more standard size */
    transition: transform 0.3s;
}

.top-bar img:hover {
    transform: scale(1.1);
}

.top-bar nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar nav ul li {
    margin: 0 15px;
}

.top-bar nav ul li a {
    text-decoration: none;
    color: #1c5328;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-bar nav ul li a:hover {
    color: #14501f; /* Updated hover color for better visual effect */
}

/* Hero Section */
.hero {
    background: center/cover fixed no-repeat;
    color: #fff;
    padding: 150px 10%;
    min-height: 600px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: fadeIn 2s;
}
.hero video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Adds a dark overlay */
        z-index: 2;
    }

    .hero .content {
        position: relative;
        z-index: 3;
    }

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}
@media(max-width:724px){
    .hero h1 {
        font-size: 2.5rem;}
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: left;
}

.hero .btn {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 25px;
    background: #1c5328;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background: #14501f;
    transform: scale(1.05);
}

/* What is Grocereo Section */
#about {
    background: #fff;
    padding: 80px 10%;
    text-align: center;
    animation: fadeIn 2s;
}

#about h2 {
    font-size: 2.5rem;
    color: #1c5328;
    margin-bottom: 20px;
    position: relative;
}

@media(max-width:724px){
    .hero h1 {
        font-size: 2.5rem;}
    #about h2 {
        font-size: 1.8rem;
}
}

#about h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #1c5328;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

#about p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#about img {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

#about img:hover {
    transform: scale(1.05);
}

/* Key Features Section */
#key-features {
    background: linear-gradient(120deg, #f1f1f1, #e9f7ed);
    padding: 100px 10%;
    text-align: center;
}

#key-features h2 {
    font-size: 2.5rem;
    color:#1c5328 ;
    margin-bottom: 20px;
    position: relative;
    animation: slideInFromLeft 2s;
}
/* Invest in Grocereo Section */
#invest {
    background: #fff;
    padding: 100px 10%;
    text-align: center;
}
.feature-box i{
    font-size: 1.6rem;
    margin-bottom: 10px;
}
#invest h2 {
    font-size: 2.5rem;
    color: #1c5328;
    margin-bottom: 20px;
}
@media(max-width:724px){
    .hero h1 {
        font-size: 2.5rem;}
    #about h2,
    #key-features h2,
    #invest h2  {
        font-size: 1.8rem;
}
}
#invest canvas {
    max-width: 800px;
    margin: 20px auto;
}
#invest .btn {
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 25px;
    background: #1c5328;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

#invest .btn:hover {
    background: #14501f;
    transform: scale(1.05);
}
/* Footer */
footer {
    background: #1c5328;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    animation: fadeIn 2s;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* navigation bar  */
/*==nav-bar=============================*/
.navigation{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: auto;
    padding: 20px 0px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e2e26e;
}
.logo{
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: #222222;
}
.logo img{
    max-width: 180px;
    max-height: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    object-fit: contain;
    object-position: center;
}
.menu{
    display: flex;
    align-items: center;
}
.menu li a{
    margin: 0px 10px;
    color: #1c5328;
    transition: all ease 0.3s !important;
}
.menu li a:hover{
    opacity: 0.8;
}
.menu li a i{
    margin-right: 6px;
}
/*==making-responsive============*/
.menu-icon,
.menu-btn{
    display: none;
}
@media(max-width:850px){
    .navigation{
        justify-content: space-between;
        padding: 20px;
        position: relative;
        width: 100%;
        z-index: 103;
    }
    .logo img{
        max-height: 30px;}

    .navigation .menu{
        display: none;
        position: absolute;
        left: 0px;
        top:calc(100% + 1px);
        background-color: #ffffff;
        width: 100%;
        padding: 0px;
        margin: 0px;
        z-index: 104;
    }
    .navigation .menu li{
        width:100%;
        margin: 0px;
        padding: 0px;
    }
    .navigation .menu li a{
        width: 100%;
        display: flex;
        align-items: center;
        margin: 0px;
        padding: 20px;
        border-bottom: 1px solid #e2e2e26e;
    }
    .menu li a i{
        margin-right: 9px;
    }
    .menu-icon{
        display: block;
    }
    .navigation .menu-icon{
        cursor: pointer;
        float: right;
        padding: 10px 0px;
        position: relative;
        user-select: none;
        z-index: 106;
    }
    .navigation .menu-icon .nav-icon{
        background-color: #181818;
        display: block;
        position: relative;
        height: 2px;
        transition: background 0.2s ease-out;
        width: 25px;
    }
    .navigation .menu-icon .nav-icon::before,
    .navigation .menu-icon .nav-icon::after{
        background-color: #181818;
        content: '';
        position: absolute;
        height: 100%;
        transition: all ease-out 0.2s;
        width: 100%;
    }

    .navigation .menu-icon .nav-icon::before{
        top: 9px;
    }
    .navigation .menu-icon .nav-icon::after{
        top: -9px;
    }
    .navigation .menu-icon:checked ~ .menu-icon .nav-icon,
    .navigation .menu-btn:checked ~ .menu-icon .nav-icon{
        background-color: transparent;
    }
    .navigation .menu-btn:checked ~ .menu-icon .nav-icon::before{
        transform: rotate(-45deg);
        top: 0px;
    }
    .navigation .menu-btn:checked ~ .menu-icon .nav-icon::after{
        transform: rotate(45deg);
        top: 0px;
    }
 
    .navigation .menu-btn:checked ~ .menu{
        display: block;
    }
    
}
