* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    height: auto;
    background-color: black;
    color: aliceblue;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 15px;
}

.nav-name {
    height: 50px;
    width: 200px;
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    display: flex;
    align-items: center;
}

.nav-search {
    display: flex;
    justify-content: space-evenly;
    background-color: #4ea9f3;
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    height: 40px;
    flex: 1 1 250px;
    min-width: 200px;
}

.nav-search:hover {
    border: 1.8px solid #f04343;
}

.search {
    background-color: whitesmoke;
    width: 50px;
    text-align: center;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: none;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    border: none;
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: 5px 10px;
    flex: 1;
}

.search-icon {
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ec4242;
    font-size: 1.2rem;
    color: black;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    flex-shrink: 0;
}

.border {
    border: 1px solid transparent;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.border:hover {
    border: 1px solid #f5be08;
    border-radius: 5px;
}

.add-f {
    color: #cccccc;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    margin-left: clamp(8px, 2vw, 18px);
    white-space: nowrap;
}

.place {
    font-size: clamp(0.8rem, 2vw, 1rem);
    margin-left: 3px;
}

.icon {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-help {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 5px;
}

.help {
    text-decoration: none;
    color: white;
    font-size: clamp(0.75rem, 2vw, 1rem);
}

a {
    text-decoration: none;
    color: whitesmoke;
}

a:hover {
    cursor: pointer;
    color: #e7c010;
}

.nav-cart i {
    font-size: clamp(28px, 8vw, 35px);
    transition: color 0.3s ease;
}

.nav-cart:hover {
    color: #e7c010;
    cursor: pointer;
}

.nav-add {
    cursor: pointer;
    font-size: clamp(0.75rem, 2vw, 1rem);
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Main Food Section */
.main {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.food {
    margin: 10px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(240, 81, 81, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 250px;
    max-width: 300px;
}

.food:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px #492323;
}

.img-t {
    height: 182px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.text-f {
    font-size: clamp(1.5rem, 5vw, 25px);
    color: #363636;
    margin-top: 10px;
}

.text-f:hover {
    color: #7bc6f8;
}

.text-s {
    font-size: clamp(0.9rem, 3vw, 16px);
    color: #4f4f4f;
}

/* Learn Section */
.learn {
    min-height: 250px;
    text-align: center;
    background-image: url('https://img.freepik.com/premium-photo/photo-closeup-shot-delicious-food_829042-89.jpg');
    padding: clamp(20px, 5vw, 60px) clamp(15px, 3vw, 25px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.header {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
    color: #faf4f4;
}

.header:hover {
    color: #2caafd;
}

.para {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #f1ebeb;
    margin-bottom: 30px;
}

.button {
    padding: 10px 20px;
    background-color: #4040eb;
    color: whitesmoke;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.button:hover {
    background-color: #030441;
}

/* Collections Section */
.collections {
    margin: 10px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(240, 81, 81, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 250px;
    max-width: 300px;
}

.collections:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px #492323;
}

.imag {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Discount Section */
.main-discount {
    display: flex;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.discount {
    min-height: 150px;
    width: 100%;
    max-width: 750px;
    padding: clamp(20px, 5vw, 60px) clamp(15px, 3vw, 25px);
    background-image: url("https://static.vecteezy.com/system/resources/previews/037/236/579/non_2x/ai-generated-beautuful-fast-food-background-with-copy-space-free-photo.jpg");
    background-position: center;
    background-size: cover;
    color: whitesmoke;
    border-radius: 5px;
}

.button-o {
    padding: 10px 20px;
    background-color: #f33730;
    color: #e2d4de;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.button-o:hover {
    background-color: #bd165c;
}

.offer {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
    color: whitesmoke;
}

.offer-s {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: white;
    margin-bottom: 30px;
}

/* Footer */
footer {
    margin-top: 20px;
}

.foot-panel {
    background-color: black;
    color: white;
    min-height: 300px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
}

.panel {
    margin-top: 15px;
    display: block;
    flex: 1 1 150px;
    min-width: 150px;
}

.foot-text {
    margin-top: 18px;
    font-size: clamp(12px, 2vw, 14px);
    text-decoration: none;
    cursor: pointer;
    display: block;
}

.foot-text:hover {
    color: #f5be08;
}

.about {
    font-size: clamp(18px, 4vw, 22px);
    font-style: italic;
    font-weight: 100;
}

.links-ab {
    margin-top: 15px;
}

.icons {
    margin-top: 15px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 10px;
}

.end {
    background-color: black;
    border-top: 1px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.copy {
    margin-top: 10px;
    font-size: clamp(12px, 2vw, 14px);
}

/* Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px;
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .nav-name {
        width: 100%;
        height: 40px;
        order: 1;
        margin-bottom: 10px;
    }
    
    .nav-search {
        width: 100%;
        max-width: none;
        order: 2;
        margin-bottom: 10px;
        height: 38px;
    }
    
    .nav-help, .nav-add, .nav-cart {
        flex: 0 1 auto;
        font-size: 0.8rem;
    }
    
    .add-f {
        margin-left: 0;
        display: none;
    }
    
    .border {
        padding: 3px 5px;
    }
    
    .place {
        margin-left: 0;
        display: none;
    }
    h1{
        font-size: 15px;
    }
}

/* Tablet Devices (481px to 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
        gap: 12px;
        justify-content: space-between;
    }
    
    .nav-name {
        height: 45px;
        width: 160px;
    }
    
    .nav-search {
        flex: 1 1 200px;
        max-width: 400px;
        height: 38px;
    }
    
    .nav-help, .nav-add, .nav-cart {
        flex-shrink: 0;
    }
    
    .add-f {
        margin-left: 10px;
        font-size: 0.75rem;
    }
    
    .place {
        font-size: 0.85rem;
    }
    
    .search {
        width: 45px;
    }
    
    .search-icon {
        width: 40px;
    }
        h1{
        font-size: 20px;
    }
}

/* Medium Devices (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 15px 18px;
        justify-content: space-around;
    }
    
    .nav-name {
        width: 180px;
        height: 48px;
    }
    
    .nav-search {
        flex: 1 1 250px;
        max-width: 500px;
    }
        h1{
        font-size: 20px;
    }
}

/* Large Devices (1025px and above) */
@media (min-width: 1025px) {
    .navbar {
        padding: 15px 20px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .nav-name {
        flex-shrink: 0;
        width: 200px;
        height: 50px;
    }
    
    .nav-search {
        flex: 1 1 auto;
        max-width: 600px;
        margin: 0 20px;
    }
    
    .nav-help, .nav-add, .nav-cart {
        flex-shrink: 0;
        margin-left: 15px;
    }
}
