﻿/*
  ==========================================
  1. Root Variables & Basic Body Styles
  ==========================================
*/
:root {
    --primary-dark: #034c53;
    --primary: #007074;
    --accent: #f38c79;
    --accent-light: #ffc1b4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Tajawal", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

/*
  ==========================================
  2. Navbar & Logo Styles
  ==========================================
*/
.navbar-brand {
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.logo-text {
    margin-right: 10px;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0;
}

.logo-subtitle {
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: -5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

    .nav-link:before {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary);
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

#langSwitch {
    transition: all 0.3s ease;
}

    #langSwitch:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/*
  ==========================================
  3. Hero Section
  ==========================================
*/
.hero {
    background-image: url("../assets/image.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    width: 100%;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .hero .container {
        position: relative;
        z-index: 2;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.2rem;
        font-weight: 500;
        color: #ffffff;
        margin-bottom: 30px;
    }

    .hero .btn {
        background-color: #034c53;
        color: white;
        padding: 15px 30px;
        font-size: 1rem;
        font-weight: 800;
        border-radius: 50px;
        transition: background 0.3s, color 0.3s, transform 0.3s;
        border: none;
        display: inline-block;
        margin-top: 10px;
    }

        .hero .btn:hover {
            background-color: #f38c79;
            color: #ffffff;
            transform: scale(1.05);
        }

/*
  ==========================================
  4. General Sections & Titles
  ==========================================
*/
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #034c53;
    font-weight: 800;
    position: relative;
}

    .section-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background-color: #034c53;
        margin: 10px auto 0;
        border-radius: 2px;
    }

.kitchen-food-section {
    padding: 60px 0;
    background: linear-gradient(to right, #f8f9fa, #e9f2f3);
}

#about-us {
    background: linear-gradient(135deg, #f8f9fa 0%, #e4e8eb 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    #about-us .container {
        position: relative;
        z-index: 1;
    }

    #about-us h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 1.5rem;
        position: relative;
        display: inline-block;
    }

        #about-us h2::after {
            content: "";
            position: absolute;
            bottom: -10px;
            right: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
            transition: width 1.5s ease;
        }

        #about-us h2.animate-border::after {
            width: 100%;
        }

    #about-us p {
        font-size: 1.2rem;
        line-height: 1.8;
        color: #555;
        margin-bottom: 2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

        #about-us p.animate-text {
            opacity: 1;
            transform: translateY(0);
        }

    #about-us img {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        transition: all 0.8s ease;
        transform: scale(0.95) rotate(-2deg);
        border: 8px solid white;
    }

        #about-us img:hover {
            transform: scale(1) rotate(0deg);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

    #about-us .floating-image {
        animation: float 6s ease-in-out infinite;
    }

/*
  ==========================================
  5. Card Styles (General & Specific)
  ==========================================
*/
.card {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

    .card:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

.card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.card-body {
    padding: 25px;
    background-color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-weight: bold;
    color: #034c53;
    font-size: 1.2rem;
}

.card-text {
    color: #555;
    margin-bottom: 15px;
}

.card .btn {
    background-color: #034c53;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    transition: background 0.3s ease, transform 0.2s;
    margin-top: auto;
}

    .card .btn:hover {
        background-color: #f38c79;
        transform: scale(1.05);
    }

.kitchen-item {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .kitchen-item img {
        border-radius: 8px;
        transition: transform 0.3s ease-in-out;
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }

        .kitchen-item img:hover {
            transform: scale(1.05);
        }

.item-title {
    margin-top: 20px;
    font-size: 1.25rem;
    color: #034c53;
    font-weight: 600;
}

.item-description {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 10px;
}

.card-footer-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.recipe-code {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

/*
  ==========================================
  6. Footer & Miscellaneous
  ==========================================
*/
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/*
  ==========================================
  7. Animations & Keyframes
  ==========================================
*/
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animated-text {
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(0deg);
    }

    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}

/*
  ==========================================
  8. Responsive Media Queries
  ==========================================
*/

/* Laptops & Small Desktops */
@media (max-width: 992px) {
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .navbar-nav {
        text-align: center !important;
    }

    .hero {
        background-attachment: scroll;
    }

        .hero h1 {
            font-size: 2.5rem;
        }

        .hero p {
            font-size: 1.1rem;
        }

    .card-img-top {
        height: 220px;
    }

    .card-body {
        padding: 20px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    #about-us {
        padding: 60px 0;
    }

        #about-us h2 {
            font-size: 2rem;
        }

        #about-us p {
            font-size: 1.1rem;
        }

        #about-us img {
            max-width: 80%;
            margin: 2rem auto 0;
        }
}

@media (max-width: 768px) {
    .logo-img {
        width: 45px;
        height: 45px;
    }

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .hero {
        min-height: 80vh;
    }

        .hero h1 {
            font-size: 2rem;
        }

        .hero p {
            font-size: 1rem;
        }

        .hero .btn {
            padding: 12px 25px;
            font-size: 0.9rem;
        }

    .kitchen-item {
        margin-bottom: 30px;
    }

        .kitchen-item img {
            height: 180px;
        }

    .card-img-top {
        height: 200px;
    }

    .card-body {
        padding: 15px;
    }

    .card .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    #about-us {
        padding: 50px 0;
    }

        #about-us h2 {
            font-size: 1.8rem;
            text-align: center;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        #about-us p {
            font-size: 1rem;
            text-align: center;
        }

        #about-us .col-lg-6.text-center {
            margin-top: 2rem;
        }
}

@media (max-width: 576px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .hero {
        min-height: 70vh;
        background-position: top center;
    }

        .hero h1 {
            font-size: 1.8rem;
        }

        .hero p {
            font-size: 0.9rem;
        }

        .hero .btn {
            padding: 10px 20px;
            font-size: 0.85rem;
        }

    .card {
        margin-bottom: 15px;
    }

    .card-img-top {
        height: 180px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}
