:root {
    --primary-color: #4CAF50;
    --secondary-color: #3e8e41;
    --background-color: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;
    --gray-light: #eee;
    --gray-dark: #555;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

.hero {
    background: url('https://picsum.photos/id/1015/1600/900') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 8rem 1rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-small {
    background-color: var(--gray-light);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-small:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 4rem 1rem;
    background-color: var(--white);
}

.section:nth-child(even) {
    background-color: var(--gray-light);
}

.section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-card h3 {
    margin: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.recipe-card .recipe-description {
    margin: 0 1rem 1rem;
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gray-dark);
    cursor: pointer;
}

.close:hover {
    color: var(--text-color);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin: 1rem 0;
}

#modal-details {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    header nav ul {
        position: fixed;
        top: 70px;
        right: 0;
        background-color: var(--white);
        width: 200px;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        display: none;
    }
    
    header nav ul.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}