/* BODY */
:root{
    --primary:#e46033;
    --outline:#ff7a3d;
    --white:#fff;
    --black:#0e0000;
}
body {
    margin: 0;
    /* font-family: Arial, sans-serif; */
}


/* BUTTONS */
.hero .btn {
    padding: 8px 15px;
    background: var(--white);
    color: black !important;
    border-radius: 20px;
}

.hero .btn-outline {
    padding: 8px 15px;
    border: 1px solid var(--white);
    border-radius: 20px;
}

/* HERO BACKGROUND */
.hero {
    position: relative;
    height: 80vh;

    background: url("../img/homePhoto.jpeg") no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--black);
    opacity: 0.15;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin-left: 200px;
    color: var(--black);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

}

.content h1 {
    font-size: 70px;
    margin-bottom: 10px;
    color: var(--black);
}



.content p {
    font-size: 17px;
    margin-bottom: 25px;
    margin-left: 10px;
}

.buttons{
    margin-right: 15px;
    padding: 10px ;
    margin: 10px;
    text-decoration: none;

}
.buttons .btn{
    background-color: var(--primary);
    color: var(--black);

}
.buttons .btn-outline{
    color: var(--white);
    border-color: var(--white);
}
.buttons a:hover{
    opacity: 0.8;
}
.buttons .btn-outline:hover{
    background-color: var(--outline);
}
.search-box {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 12px;
    width: 250px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-box button {
    padding: 12px 20px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--outline);
}
.categories{
    display: flex;
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 25px;
    flex-wrap:wrap ;
    
}
.recipes{
    padding: 60px 40px;
    text-align: center;
    background: #f8f8f8;
}
.recipes h2 {
    font-size: 32px;
    margin-bottom: 40px;
}
/* CARD */
.categories article {
    position: relative;
    width: 250px;
    border-radius: 15px;
    overflow: hidden;
}

/* IMAGE */
.categories img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* OVERLAY */
.categories a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.categories h3 {
    position: absolute;
    bottom: 30px;
    width: 100%;
    margin: 0;
    color: var(--white);
    text-align: left;
    padding: 5px;
    z-index: 2;
    font-family: 'Times New Roman', Times, serif;
}

.categories h4 {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: left;
    color: #ddd;
    font-size: 12px;
    z-index: 2;
    padding: 5px;
    margin-bottom: 5px;
    font-family: 'Times New Roman', Times, serif;

}

.categories a {
    position: relative;
    display: block;
    text-decoration: none;
}

.categories article:hover {
    transform: scale(1.08);
    transition: 0.3s;
}
#popular_recipes {
    padding: 40px;
    text-align: center;
    background: #f8f8f8;
}
#popular_recipes h2{
    margin-bottom: 10px;
}
.recipes-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px;
    scroll-behavior: smooth;
}

.recipes-container article {
    min-width: 250px; 
    flex-shrink: 0;
    width: 100px;
    background: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.recipes-container article:hover {
    transform: scale(1.05);
}
.recipes-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.recipes-container h2 {
    font-size: 20px;
    margin: 10px;
}

.recipes-container p {
    font-size: 14px;
    color: #555;
    padding: 0 10px 10px;
}
.recipes-container a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.recipes-container::-webkit-scrollbar {
    height: 8px;
}

.recipes-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.img-container {
    position: relative;
}

.img-container img {
    width: 100%;
    border-radius: 10px;
}

/* القلب */
.fav {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.2); /* شفافية */
    backdrop-filter: blur(3px); /* glass effect 🔥 */
    
    border-radius: 50%;
    cursor: pointer;

    transition: 0.3s;
    z-index: 999;
}

.fav:hover {
    transform: scale(1.15);
}

.fav svg {
    width: 36px;
    height: 34px;
}

.fav.active {
    background: rgba(255, 255, 255, 0.3);
}

.fav.active svg path {
    fill: #EF4343;
    stroke: #EF4343;
}
/* #about{

    width: 100%;
    padding: 60px 40px;
    background:#f8f8f8 ;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#about h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
#about h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

#about p {
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 20px;
}
#about ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
}

#about li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

/* custom bullet */
/* #about li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #e46033;
    font-weight: bold;
}
#about strong {
    color: #ff7a3d;
}  */
 /* section */
#about {
    max-width: 900px;
    margin: 80px auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, #fffaf5, #fff0e8);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 5px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    opacity: 0;
    transform: translateY(60px);
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
    position: relative;
    backdrop-filter: blur(0px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.12), 0 8px 15px rgba(0, 0, 0, 0.08);
}

#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #ff6b35), var(--secondary, #ffb347));
    border-radius: 32px 32px 0 0;
}
#about h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black, #2d2a24);
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2d2a24, #5a4a3a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#about h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #ff6b35), var(--secondary, #ffb347));
    margin: 20px auto 0;
    border-radius: 4px;
    transition: width 0.3s ease;
}

#about:hover h1::after {
    width: 140px;
}
#about p {
    font-size: 18px;
    color: #5a5a5a;
    line-height: 1.8;
    margin: 25px 0;
    font-weight: 400;
}

#about p:first-of-type {
    font-size: 20px;
    color: #4a4a4a;
    font-weight: 500;
    margin-bottom: 30px;
}
#about h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary, #ff6b35);
    margin-top: 45px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    #about {
        margin: 40px 20px;
        padding: 35px 25px;
        border-radius: 24px;
    }
    
    #about h1 {
        font-size: 36px;
    }
    
    #about h1::after {
        width: 70px;
    }
    
    #about p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    #about p:first-of-type {
        font-size: 18px;
    }
    
    #about h2 {
        font-size: 24px;
    }
    
    #about h2::before,
    #about h2::after {
        display: none;
    }
}

@media (max-width: 480px) {
    #about {
        padding: 25px 20px;
        margin: 30px 15px;
    }
    
    #about h1 {
        font-size: 28px;
    }
    
    #about p {
        font-size: 15px;
    }
    
    #about p:first-of-type {
        font-size: 16px;
    }
    
    #about h2 {
        font-size: 22px;
        margin-top: 35px;
    }
}
#about > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

#about h1 { 
    animation-delay: 0.1s;
 }
#about p:first-of-type { 
    animation-delay: 0.2s; 
}
#about p:nth-of-type(2) { 
    animation-delay: 0.3s; 
}
#about h2 { 
    animation-delay: 0.4s;
 }
#about p:last-of-type { 
    animation-delay: 0.5s; 
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#about ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
#about ul li {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}
#about ul li:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px var(--outline);
}

#about ul li strong {
    display: block;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}
#about ul li {
    font-size: 15px;
    color: #444;
}
/*developers*/
.developers {
    padding: 60px 20px;
    text-align: center;
    background: #f8f6f3;
}
.developers h1::after {
    content: "";
    display: block;
    width: 150px;
    height: 4px;
    background: #ea6a14;
    margin: 10px auto 0;
    border-radius: 2px;
}

.developers h1 {
    font-size: 32px;
    margin-bottom: 40px;
    border-color: #0e0000 20px;
}

.dev-container {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30px;
    justify-content: center;
    max-width: 600px;
    margin:0 auto;
}

.dev-container > :nth-child(5) {
    grid-column: 2;
}
.dev-container > :nth-child(6) {
    grid-column: 3;
}

.dev-card {
    background: #f8b78c;
    padding: 20px;
    border-radius: 15px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.dev-card:hover {
    transform: translateY(-10px) scale(1.03);
     box-shadow: 0 6px 15px var(--outline);
}

.dev-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.dev-card h3 {
    margin: 15px 0 10px;
}

.dev-card p {
    font-style: italic;
    color: #555;
}