/*      Font Imports     */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/*      Reset        */
* {
    box-sizing: border-box;
    text-decoration: none;
}

/*      Base Styling     */
/* Remove margins and padding */
body, html {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/*      Custom Scrollbar Styling        */
/* Custom Scrollbar (Chrome) */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background: #3a483b;
    border-radius: 100vw;
    margin-block: -1em;
}

::-webkit-scrollbar-thumb {
    background: #e19cc7;
    border: 3px solid #40594c;
    border-radius: 100vw;
}

/*      Navigation Bar       */
/* Main Navbar container */
#navbar {
    background: #95b2a3;
    font-family: Comfortaa;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding-right: 30px;
}

/* Header layout */
#main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Nav Links styling */
#main-header li a, #nav-links li a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
}

/* Nav links container */
#nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

/* Individual Nav Links styling */
#nav-links li a {
    color: #3c1f59;
    font-size: 20px;
    padding: 10px 15px;
}

/* Nav Link and Header hover effects */
#nav-links li a:hover, #main-header li a:hover {
    border-radius: 15px;
    background-color: #e19cc7;
    color: #ffffff;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Currnet Page Indicator */
.current-page {
    background: rgb(155, 204, 180);
    border-radius: 15px;
    color: #ffffff !important;

}

/*      Title Styling        */
/* Title Link Styling */
.title header a {
    font-size: 40px;
    color: #3c1f59;
    text-decoration: none;
    margin-left: 15px;
    padding: 10px;
}

/* Title hover effects */
.title header a:hover {
    border-radius: 15px;
    background-color: #e19cc7;
    color: #ffffff;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/*      Hamburger Menu        */
/* Hamburger Menu container */
#hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

/* Hamburger Menu Bars */
#hamburger-menu span {
    width: 24px;
    height: 4px;
    background: #ffffff;
    border-radius: 5px;
}

/*      Landing content styling      */
/* Landing content container styling */
#landing-content {
    display: flex;
    justify-content: left;
}

/* Moving Color Gradient Animation */
@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }
    25% {
        background-position: 100% 25%;
    }

    50% {
        background-position: 25% 100%;
    }
    75% {
        background-position: 100% 25%;
    }
    100% {
        background-position: 100% 0;
    }
}

/* Overlay Heading styling */
.overlay-heading {
    position: relative;
    padding-top: 50px;
    padding-left: 50px;
    font-family: Quicksand;
    font-weight: bold;
    color: transparent;
    text-align: left;
    font-size: 100px;
    background-image: linear-gradient(90deg, #e19cc7, #95b2a3);
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

/* Fade in Animation for overlay subheading */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Subheading styling */
#landing-content .overlay-subheading {
    font-family: Comfortaa;
    font-size: 30px;
    color: #e19cc7;
    text-align: left;
    margin: 0;
    margin-top: 175px;
    margin-left: 300px;
    animation: fadeIn 3s steps(10000, end) forwards;
}

/* Contact Page subheading styling */
#landing-content .overlay-contact {
    font-family: Comfortaa;
    font-size: 30px;
    color: #e19cc7;
    text-align: left;
    margin: 0;
    margin-top: 175px;
    margin-left: 550px;
    animation: fadeIn 3s steps(10000, end) forwards;
}

/* Recipe Page subheading styling */
#landing-content .overlay-recipe {
    font-family: Comfortaa;
    font-size: 30px;
    color: #e19cc7;
    text-align: left;
    margin: 0;
    margin-top: 175px;
    margin-left: 50px;
    animation: fadeIn 3s steps(10000, end) forwards;
}

/*      Recipes Page Styling     */

/* Recipes container styling */
#recipes-showcase {
    margin-top: 50px;
    margin-bottom: 50px;
    border: 2px #40594c solid;
    background-color: #40594c;
    border-right: 0;
    border-left: 0;
}

/* Recipes h2 styling */
#recipes-showcase h2 {
    font-family: 'Comfortaa', sans-serif;
    text-align: left;
    color: #ffffff;
    font-size: 30px;
    margin-bottom: 75px;
    margin-top: 60px;
    margin-left: 115px;
}

/* Recipes link styling */
#recipes-showcase h2 a {
    color: #ffffff;
    text-decoration: #e19cc7 underline;
}

/* Recipes Showase container styling */
.recipes-showcase-container {
    display: flex;
    justify-content: center;
    gap: 250px;
    flex-wrap: wrap;
}

/* recipe styling */
.recipe {
    width: 400px;
    padding-bottom: 75px;
    position: relative;
    display: flex;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    align-items: center;
    justify-content: center;
}

/* Individual item styling */
.recipe-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 60px 60px 50px rgb(59, 66, 61);
}

.recipe-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.recipe-item {
    perspective: 1000px;
}

/* Individual link styling */
.recipe-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Individual image styling */
.recipe-image img {
    width: 400px;
    height: 600px;
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Recipe Unordered list styling */
.recipe-item ul {
    position: absolute;
    width: 100%;
    top: -25px;
    background: rgb(149, 178, 163);
    color: white;
    font-family: 'quicksand', sans-serif;
    font-size: 25px;
    text-align: left;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* UL Hover effect */
.recipe-item:hover ul {
    opacity: 1;
}

/* Remove list styles */
.baklava-showcase,
.knafeh-showcase,
.halva-showcase {
    list-style-type: none;
}


/*      Kitchen History   */
/* Kitchen Container Styling */
#kitchen-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 175px;
    margin: 10px;
}

/* Kitchen about us styling */
#kitchen-history {
    display: flex;
    justify-content: left;
    flex-direction: column;
    max-width: 50%;

}

#kitchen-history, #kitchen-address {
    flex: 1;
}

/* Individual h2 styling */
#kitchen-history h2 {
    font-family: 'Comfortaa', sans-serif;
    text-align: left;
    color: #3c1f59;
    font-size: 30px;
    text-decoration: 3px #e19cc7 underline;
    margin-left: 350px;
}

/* Hover Effects */
#kitchen-history p:hover {
    font-size: 25px;
}

/* Individual P styling */
#kitchen-history p {
    font-family: 'Quicksand', sans-serif;
    text-align: left;
    color: #40594c;
    font-style: italic;
    font-size: 25px;
    overflow: auto;
    margin-top: 20px;
    margin-left: 35px;
}

/* individual p styling (border) */
#kitchen-history p {
    border: 2px solid rgb(38, 38, 37);
    padding: 30px;
    border-right: 0;
    border-left: 0;
    max-width: 100%;
}

/* Span Highligting */
.highlight {
    font-weight: bold;
}


/*      Kitchen Address Styling      */

/* Kitchen Address styling */
#kitchen-address {
    padding-bottom: 500px;
}

/* individual h2 styling */
#kitchen-address h2 {
    font-family: 'comfortaa', sans-serif;
    text-decoration: 3px underline #e19cc7;
    text-align: right;
    font-size: 30px;
    margin-bottom: 30px;
    margin-right: 370px;
    color: #40594c;
}

/* individual address styling  */
#kitchen-address address {
    font-family: 'Quicksand', sans-serif;
    font-size: 30px;
    text-align: center;
    font-weight: bold;
    color: #40594c;
    border: 3px solid rgba(21, 19, 19, 0.2);
    max-width: 78%;
    padding-bottom: 30px;
    padding-top: 30px;
    padding-left: 50px;
    margin-bottom: -200px;
    border-right: 0;
    border-left: 0;
}

/* individual p styling */
#kitchen-address p {
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    color: #40594c;
    font-size: 20px;
    max-width: 100%;
    margin-right: 200px;
    margin-top: 30px;
}

#kitchen-address,
#kitchen-address p,
#kitchen-address h2 {
    margin-top: 0;
}


/* Footer Styling */
#footer {
    background-color: #95b2a3;
    padding: 30px 0;
    font-family: 'Quicksand', sans-serif;
    color: #fff;
    position: relative;
}

/* Footer container to hold all elements */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Footer heading and subheading */
.footer-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* individual h3 footer styling */
.footer-heading h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 36px;
    color: #3c1f59;
    margin: 0;
}

/* individual p styling */
.footer-heading p {
    font-size: 20px;
    color: #3c1f59;
    margin: 0;
}

/* Footer text (author and student ID) */
.footer-text {
    text-align: center;
    padding-right: 175px;
}

.footer-text .author {
    text-align: center;
    font-size: 15px;
    color: #3c1f59;
}

.footer-text .student-id {
    font-size: 15px;
    color: #3c1f59;
}

.footer-text .copyright {
    font-size: 13px;
    margin-top: 10px;
}

/* Footer email section */
.footer-email {
    border: 2px solid #e19cc7;
    text-align: center;
    border-radius: 20px;
    background-color: #e19cc7;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
}

.footer-email h4 {
    font-size: 20px;
    color: #3c1f59;
    margin-top: 20px;
}

.footer-email a {
    font-size: 20px;
    color: #3c1f59;
    text-decoration: none;
    font-weight: bold;
}

.footer-email a:hover {
    color: #40594c;
    transition: color 0.3s ease-in-out;
}

/* Copyright alignment */
footer em {
    font-size: 10px;
    color: #3c1f59;
    position: absolute;
    bottom: 10px;
    left: 800px;
    justify-content: center;
}

/* Recipes Page Styling */

#recipe-container {
    width: 100%;
    margin: 0 auto;
    padding: 100px 20px;
}

.title, h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 50px;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: left;
}

#knafeh-recipe .title {
    color: #40594c;
}

p.description {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    color: white;
    text-align: left;
    margin-bottom: 20px;
}

#knafeh-recipe .description {
    color: #40594c;
}

p.serving-size {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    color: white;
    text-align: left;
    margin-bottom: 20px;
}

#knafeh-recipe .serving-size {
    color: #40594c;
}


/* Recipe Section */
#recipes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Individual Recipe Styles */
#baklava-recipe, #knafeh-recipe, #halva-recipe {
    width: 30%;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 17px 20px 30px rgb(58, 55, 55);
    transition: transform 0.3s ease-in-out;
    margin-bottom: 20px;
}

#baklava-recipe {
    color: #ffffff;
    background-color: #40594c;
    border: 1px solid #40594c;
}

#knafeh-recipe {
    color: #40594c;
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

#halva-recipe {
    color: white;
    background-color: #95b2a3;
    border: 1px solid #95b2a3;
}

#baklava-recipe:hover, #knafeh-recipe:hover, #halva-recipe:hover {
    transform: translateY(-10px);
}

/* Ingredients & Instructions Dropdowns */
.ingredient-list {
    list-style-type: circle;
    padding: 0;
    margin: 0;
    margin-left: 50px;
    padding-bottom: 20px;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    font-size: 20px;
}

.cooking-step {
    list-style-type: decimal;
    padding: 0;
    margin: 0;
    margin-left: 50px;
    padding-bottom: 20px;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    font-size: 20px;
}

.ingredient-list li, .cooking-step li {
    border: 1px solid #40594c;
    background-color: #34443b;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
}

#knafeh-recipe .ingredient-list li,
#knafeh-recipe .cooking-step li {
    background-color: #95b2a3;
}

.ingredient, .instructions {
    display: none;
    margin-top: 20px;
    overflow: hidden;
}

/* Dropdown button styling */
.dropdown {
    font-family: 'Quicksand', sans-serif;
    background-color: #e19cc7;
    color: #ffffff;
    padding: 20px 0;
    font-size: 20px;
    border: none;
    border-radius: 100vw;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.dropdown:hover {
    background-color: #3b3b3b;
}

.dropdown:focus {
    outline: none;
}

.dropdown.active {
    background-color: #45a088;
}

/* Contact Page Styling */

form {
    width: 30%;
    margin-left: 700px;
    margin-bottom: 120px;
    margin-top: 100px;
    padding: 30px;
    background: #95b2a3;
    border-radius: 10px;
    box-shadow: 20px 20px 10px rgba(24, 23, 23, 0.16);
    font-family: Quicksand;
}

/* Form Title */
h2 {
    text-align: center;
    color: white;
}

/* Labels */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
}

/* Inputs */
input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
}

/* Phone Validation */
input[type="phone"]:invalid {
    border-width: 3px;
    border-color: #ff0000;
}

/* Email Validation */
input[type="email"]:invalid {
    border-width: 3px;
    border-color: #ff0000;
}

/* Contact Preferences */
.contact-options {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

/* Date Picker */
input[type="date"] {
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
}

/* Submit Button */
button {
    width: 100%;
    padding: 10px;
    background: #e19cc7;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Quicksand', sans-serif;
}

/* Hover Effects */
button:hover {
    background: #b295a6;
}

/* Custom Alert Styling */
.custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #40594c;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
    font-family: Quicksand;
    color: white;
}

.custom-alert.show {
    display: block;
}

/* Alter overlay styling */
.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.alert-overlay.show {
    display: block;
}

/* Alert Overlay Button styling */
.alert-button {
    margin-top: 15px;
    padding: 8px 20px;
    background: #598a5a;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.alert-button.error {
    background: #96372f;
}

/*      RESPONSIVE DESIGN        */

/* Tablet */
@media screen and (max-width: 894px) {
    /* Hamburger Menu */
    #hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
    }

    #hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #3c1f59;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Navigation */
    #nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #95b2a3;
        flex-direction: column;
        align-items: center;
        padding-top: 130px;
        padding-bottom: 50px;
        padding-right: 40px;
        transition: 0.3s;
        z-index: 1000;
    }

    #nav-links.active {
        left: 0;
    }

    #nav-links li {
        margin: 25px 0;
    }

    /* Landing Content */
    .overlay-heading {
        font-size: 40px;
        padding-left: 20px;
        padding-top: 30px;
    }

    .overlay-subheading {
        position: relative;
        bottom: 25px;
        left: 50px;
    }


    #landing-content .overlay-subheading,
    #landing-content .overlay-contact,
    #landing-content .overlay-recipe {
        font-size: 14px;
        margin-left: 20px;
        margin-top: 100px;
    }

    /* Recipes Showcase */
    .recipes-showcase-container {
        gap: 50px;
    }

    .recipe {
        width: 300px;
    }

    .recipe-image img {
        width: 300px;
        height: 450px;
    }

    /* Kitchen Information */
    #kitchen-content {
        flex-direction: column;
        gap: 50px;
        margin: 20px;
    }

    #kitchen-history {
        max-width: 100%;
    }

    #kitchen-history h2,
    #kitchen-address h2 {
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
    }

    #kitchen-history p {
        margin: 20px;
        font-size: 18px;
    }

    #kitchen-address {
        padding-bottom: 50px;
    }

    #kitchen-address address {
        font-size: 20px;
        max-width: 100%;
        margin: 0 20px;
        padding: 20px;
    }

    #kitchen-address p {
        position: relative;
        left: 115px;
    }

    /* Recipe Page */
    #recipe-container {
        padding: 50px 10px;
    }

    #recipes {
        flex-direction: column;
        align-items: center;
    }

    #baklava-recipe,
    #knafeh-recipe,
    #halva-recipe {
        width: 90%;
        margin-bottom: 40px;
    }

    .ingredient-list,
    .cooking-step {
        margin-left: 20px;
        font-size: 16px;
    }

    /* Contact Form */
    form {
        width: 90%;
        margin: 20px auto;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-text {
        padding-right: 0;
    }

    .footer-heading {
        flex-direction: column;
        align-items: center;
    }

    footer em {
        position: static;
        display: block;
        text-align: center;
        margin-top: 20px;
    }
}

/* Phone */
@media screen and (max-width: 576px) {

    body, html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .title header a {
        position: relative;
        font-size: 25px;
        text-align: center;
        bottom: 5px;
    }

    .overlay-heading {
        font-size: 30px;
    }

    .overlay-subheading {
        position: relative;
        bottom: 15px;
        padding-right: 75px;
        text-align: right;
        font-size: 10px;
    }

    .overlay-contact {
        position: relative;
        bottom: 40px;
        right: 10px;
        text-align: right;
        justify-content: center;
        font-size: 13px;
    }

    .overlay-recipe {
        position: relative;
        bottom: 18px;
        left: 10px;
        text-align: right;
        font-size: 13px;
    }

    #recipes-showcase h2 {
        position: relative;
        text-align: center;
        right: 50px;
    }

    .recipe {
        width: 250px;
    }

    .recipe-image img {
        width: 250px;
        height: 375px;
    }

    #kitchen-history p {
        position: relative;
        padding: 15px;
        right: 0px;
        font-size: 18px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        white-space: normal;
        overflow-wrap: break-word;
        max-width: none;
    }

    #kitchen-address p {
        position: relative;
        text-align: center;
        left: 100px;
    }

    #kitchen-address address {
        font-size: 18px;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    #baklava-recipe, #knafeh-recipe, #halva-recipe {
        width: 45%;
    }
}

@media (max-width: 768px) {
    #baklava-recipe, #knafeh-recipe, #halva-recipe {
        width: 100%;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    /* ill add this later*/


}


