#about {
    max-width: 1000px;
    padding: 120px 20px;
    margin: 0px auto;
    text-align: center;
}

#about h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

#about p {
    text-align: start;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 15px;
    line-height: 1.7;
}

.highlights {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 30px 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0px 8px 25px var(--shadow-primary);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

#contact {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    padding: 120px 10% 50px 10%;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
    margin: auto;
    align-items: flex-start;
}

.contact-text {
    flex: 1 1 300px;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info p a {
    text-decoration: none;
    color: var(--text-muted);
}

.contact-info p a:active{
    color: var(--text-primary);
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 14px;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-btn {
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    padding: 14px 0;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-btn:hover {
    box-shadow: 0px 8px 25px var(--shadow-primary);
    transform: translateY(-4px);
    background: var(--primary-light);
}

.contact-btn.sending {
    background: var(--primary-light);
    cursor: not-allowed;
    opacity: 0.8;
}

.contact-btn.success {
    background: #28a745;
}

.contact-btn.error {
    background: #dc3545;
}

@media (max-width: 768px) {
    #about h2 {
        font-size: 2.2rem;
        text-align: left;
    }

    .contact-text h2 {
        font-size: 2.2rem;
    }

    #contact {
        padding: 120px 25px;
    }
}

.modal-container {
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.75); */
    background: var(--bg-glass);
    backdrop-filter: blur(15px) saturate(150%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
    padding: 24px;
}

.modal-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(0);
}

.modal-content {
    width: 700px; 
    height: 80vh; 
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 0 35px var(--shadow-darker);
    overflow-y: auto;
    padding: 45px 50px;
    position: relative;
    color: var(--text-primary);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: modalFadeIn 0.45s cubic-bezier(0.22, 1.61, 0.36, 1) forwards;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.modal-container.hidden .modal-content {
    animation: modalFadeOut 0.35s ease forwards;
}

/* ===== OPEN ANIMATION ===== */
@keyframes modalFadeIn {
    0% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===== CLOSE ANIMATION ===== */
@keyframes modalrFadeOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
}

/* ===== TITLE ===== */
#recipe-details-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-align: center;
}

/* ===== IMAGE ===== */
#recipe-details-content img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

/* ===== SECTION TITLES ===== */
#recipe-details-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 25px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== INGREDIENTS LIST ===== */
#recipe-details-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

#recipe-details-content ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.97rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
/* #recipe-details-content ul li:last-child{
    border-bottom: none;
} */

#recipe-details-content ul li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ===== INSTRUCTIONS ===== */
#recipe-details-content p {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 20px;
}

#recipe-details-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

#recipe-details-content a:hover {
    color: var(--primary-lighter);
    text-decoration: underline;
    text-shadow: 0 0 10px var(--shadow-primary);
}

#recipe-details-content .video-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}

@media (max-width: 600px) {

    .modal-content {
        height: 650px;
        padding: 30px 15px;
        border-radius: 15px;
    }

    #recipe-details-content h2 {
        font-size: 1.6rem;
    }

    .modal-container {
        padding: 50px 10px;
    }
}