*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "poppins",sans-serif;
}

body{
    display: flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.header {
    height: 90px;
    width: 100%;
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    margin-left: 40px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(-5deg);
}

.navbar{
    display: flex;
    margin-right: 60px;
    align-items: center;
}

.nav-list {
    display: flex; 
    align-items: center;
    font-family: "Poppins", sans-serif;
    gap: 3rem; 
    list-style: none;
    margin-right: 2rem;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown > a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.dropdown > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    margin-top: 5px;
}

.nav-list li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-content a {
    color: #333;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.right-nav{
    height: 50px;
    width: 80px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 25px;
    width: 90px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.fa-solid{
    color: #f5576c;
    font-size: 18px;
}

.cart p{
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.page-title {
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
}

.page-title h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-title h1 i {
    color: #ffd89b;
    -webkit-text-fill-color: #ffd89b;
}

.page-title p {
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.container{
    display: flex;
    width: 90%;
    max-width: 1400px;
    margin-bottom: 50px;
    padding: 0 20px;
}

#root{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 30px;
}

.box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.box:hover::before {
    transform: scaleX(1);
}

.box:hover{
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.img-box{
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 15px;
    position: relative;
}

.img-box::after {
    content: '🍽️';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.images{
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.box:hover .images {
    transform: scale(1.15);
}

.bottom{
    margin-top: 10px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 150px;
}

.bottom p{
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.price-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

h2{
    font-size: 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.restaurant-badge {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

button{
    flex: 1;
    position: relative;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.view-recipe-btn {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    box-shadow: 0 4px 15px rgba(25, 84, 123, 0.4);
}

.view-recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 84, 123, 0.6);
}

button:active {
    transform: scale(0.98);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    padding: 15px 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

#recipeDetails {
    padding: 30px 40px;
}

.recipe-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #f093fb 0%, #f5576c 100%) 1;
}

.recipe-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.restaurant-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    color: #f5576c;
    font-size: 18px;
}

.recipe-section {
    margin: 30px 0;
}

.recipe-section h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #f5576c;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 12px 20px;
    margin: 8px 0;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe9f0 100%);
    border-radius: 10px;
    border-left: 3px solid #f5576c;
    transition: all 0.3s ease;
}

.ingredients-list li:hover {
    background: linear-gradient(135deg, #ffe9f0 0%, #ffd9e5 100%);
    padding-left: 25px;
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe9f0 100%);
    border-radius: 15px;
    position: relative;
    padding-left: 70px;
    transition: all 0.3s ease;
}

.instructions-list li:hover {
    background: linear-gradient(135deg, #ffe9f0 0%, #ffd9e5 100%);
    transform: translateX(5px);
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.nutrition-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.nutrition-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.nutrition-item strong {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.nutrition-item span {
    font-size: 12px;
    opacity: 0.9;
}

.tips-section {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    color: white;
}

.tips-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.tips-section p {
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #root {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        grid-gap: 20px;
    }
    
    .nav-list {
        gap: 2rem;
    }
    
    .page-title h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 15px 20px;
    }
    
    .navbar {
        margin-right: 20px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
        margin-right: 0;
    }
    
    .logo {
        margin-left: 20px;
    }
    
    #root {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    #recipeDetails {
        padding: 20px;
    }
    
    .recipe-meta {
        gap: 15px;
    }
    
    .nutrition-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 16px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}