/* ------------------ GLOBAL STYLES ------------------ */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body with background image + overlay */
body {
    padding-top: 90px; /* initial navbar height */
    overflow-x: hidden;
    overflow-y: auto;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("assets/images/dp-loxx-WpR5nQj8GNU-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Main container */
.main-container{
    width: 100%;
    min-height: 100vh;
}

/* ------------------ NAVBAR ------------------ */
.navbar{
    width: 100%;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    left: 0;
    background: #27ae60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 999;
}

/* Logo */
.navbar .logo{
    font-size: 30px;
    font-weight: bold;
    color: white;
}

.navbar .logo span{
    color: yellow;
}

/* Menu */
.navbar ul{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.navbar ul li{
    margin: 0 15px;
}

.navbar ul li a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.navbar ul li a:hover{
    color: #ffeb3b;
}

.navbar ul li a.active{
    color: yellow;
}

/* ------------------ HERO ------------------ */
.hero{
    width: 100%;
    padding: 80px 20px 60px 20px;
    text-align: center;
}

.hero h1{
    font-size: 60px;
    color: white;
    text-shadow: 2px 2px 8px black;
}

.hero p{
    font-size: 22px;
    color: #f1f1f1;
    margin-top: 15px;
}

/* Info Text */
.info{
    font-size: 20px;
    max-width: 700px;
    margin: 20px auto;
    color: #f1f1f1;
}

/* Button */
.btn{
    padding: 12px 25px;
    background: #e67e22;
    color: white;
    font-size: 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    display: inline-block;
}

.btn:hover{
    background: #d35400;
}

/* ------------------ SECTIONS ------------------ */
.fruits-section, .offers-section, .about-section, .contact-section {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.fruits-section h1, .offers-section h1, .about-section h1, .contact-section h1 {
    font-size: 45px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.fruits-section p, .offers-section p, .about-text, .contact-section p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #f1f1f1;
}

/* ------------------ CARDS ------------------ */
.fruits-container, .offers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.fruit-card, .offer-card {
    background: #f3f3f3;
    padding: 20px;
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    box-shadow: 0 0 10px #ccc;
    transition: 0.3s;
}

.fruit-card img, .offer-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.fruit-card h3, .offer-card h3 {
    color: green;
    margin-bottom: 5px;
}

.fruit-card p, .offer-card p {
    font-size: 16px;
    color: #555;
}

.fruit-card:hover, .offer-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #999;
}

/* About Text */
.about-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: #f1f1f1;
    line-height: 1.6;
}

/* Contact Box */
.contact-box {
    width: 100%;
    max-width: 450px;
    margin: auto;
    background: #f3f3f3;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px #ccc;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 16px;
}

.contact-box button {
    width: 100%;
    padding: 12px;
    border: none;
    background: green;
    color: white;
    font-size: 18px;
    border-radius: 6px;
}

.contact-box button:hover {
    background: darkgreen;
}

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-top: 10px;
    }

    .navbar ul li {
        margin: 8px 0;
    }

    body {
        padding-top: 160px;
    }

    .hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 160px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .info {
        font-size: 16px;
        padding: 0 10px;
    }

    .fruits-section h1,
    .offers-section h1,
    .about-section h1,
    .contact-section h1 {
        font-size: 30px;
    }

    .fruit-card, .offer-card {
        max-width: 90%;
    }

    .contact-box {
        width: 90%;
    }
}
