@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Rampart+One&family=Delius+Swash+Caps&family=DynaPuff&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-image: url(Image/mainImg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

section {
    font-family: "Space Mono", monospace;
    min-height: calc(100vh-80px);
    padding: 20px 9%;
    box-sizing: border-box;
}

.navBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(183, 95, 13, 0);
    font-size: 1.52rem;
    display: flex;
    padding: 10px 0;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.navBar img {
    width: 18vw;
    min-width: 80px;
    max-width: 150px;
    padding-left: 50px;
    filter: drop-shadow(9px 0px 20px #000);
}

@media (max-width: 600px) {
    .navBar img {
        width: 32vw;
        padding-left: 20px;
    }
}

.navBar .nav {
    font-family: "DynaPuff", system-ui;
    display: flex;
    gap: 50px;
    align-items: center;
    padding-right: 50px;
}

.navBar .nav a {
    color: #fff;
    transition: color 0.3s ease;
}

.navBar .nav a:hover {
    color: #d09b69;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.button {
    font-size: 1.2rem;
    position: relative;
    width: 150px;
    height: 40px;
    background-color: #8B4D32;
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    flex-direction: column;
    justify-content: center;
    border: none;
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.button::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -4px;
    top: -1px;
    margin: auto;
    width: 158px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(-45deg, #AF734F 0%, #CC9466 100%);
    z-index: -10;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button::after {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #AF734F 0%, #CC9466 100%);
    transform: translate3d(0, 0, 0) scale(0.95);
    filter: blur(20px);
}

.button:hover::after {
    filter: blur(30px);
}

.button:hover::before {
    transform: rotate(-180deg);
}

.button:active::before {
    scale: 0.7;
}

#home {
    margin: 20px;
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-top: 110px;
    min-height: 100vh;
}

#home .text h1 {
    padding: 20px;
    color: rgb(108, 4, 4);
    font-size: 1.8rem;
    font-family: "Delius Swash Caps", cursive;
    font-style: italic;
    text-decoration: underline;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#home .text span h2 {
    padding-left: 20px;
    color: rgb(125, 11, 11);
    font-size: 3.5rem;
    rotate: -5deg;
    font-family: "Rampart One", sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

#home .text p {
    margin-top: 30px;
    padding: 10px;
    color: rgba(135, 3, 3, 0.95);
    font-size: 1.5rem;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.btn-conteiner {
    display: flex;
    padding: 50px;
    --color-text: #ffffff;
    --color-background: #B65F1E;
    --color-outline: #ff145b80;
    --color-shadow: #00000080;
}

.btn-content {
    display: flex;
    align-items: center;
    padding: 5px 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--color-text);
    background: var(--color-background);
    transition: 1s;
    border-radius: 100px;
    box-shadow: 0 0 0.2em 0 var(--color-background);
}

.btn-content:hover,
.btn-content:focus {
    transition: 0.5s;
    -webkit-animation: btn-content 1s;
    animation: btn-content 1s;
    outline: 0.1em solid transparent;
    outline-offset: 0.2em;
    box-shadow: 0 0 0.4em 0 var(--color-background);
}

.btn-content .icon-arrow {
    transition: 0.5s;
    margin-right: 0px;
    transform: scale(0.6);
}

.btn-content:hover .icon-arrow {
    transition: 0.5s;
    margin-right: 25px;
}

.icon-arrow {
    width: 20px;
    margin-left: 15px;
    position: relative;
    top: 6%;
}

/* SVG */
#arrow-icon-one {
    transition: 0.4s;
    transform: translateX(-60%);
}

#arrow-icon-two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.btn-content:hover #arrow-icon-three {
    animation: color_anim 1s infinite 0.2s;
}

.btn-content:hover #arrow-icon-one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.btn-content:hover #arrow-icon-two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */
@keyframes color_anim {
    0% {
        fill: white;
    }

    50% {
        fill: var(--color-background);
    }

    100% {
        fill: white;
    }
}

/* Button animations */
@-webkit-keyframes btn-content {
    0% {
        outline: 0.2em solid var(--color-background);
        outline-offset: 0;
    }
}

@keyframes btn-content {
    0% {
        outline: 0.2em solid var(--color-background);
        outline-offset: 0;
    }
}

#mainPage {
    padding-top: 100px;
    max-width: 100%;
    min-height: 100%;
    background: linear-gradient(120deg, #B68763, #CBA97C, #d0b27e, #e9ca95);
    background-size: 1000%;
    animation: gradientBG 5s ease infinite;
    color: #333;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

#mainPage h1 {
    font-size: 2.4rem;
    text-align: center;
}

#controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

input,
select,
button {
    width: 250px;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus{
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button {
    background: linear-gradient(135deg, #8B4D32, #A0522D);
    color: white;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid transparent;
}

button:hover {
    background: linear-gradient(135deg, #A0522D, #8B4D32);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#recipe-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.recipe-card {
    position: relative;
    padding: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

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

.recipe-card h3 {
    font-size: 1.3rem;
    margin: 15px 20px 10px;
    color: #333;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-card button {
    background: linear-gradient(135deg, #8B4D32, #A0522D);
    border: none;
    padding: 12px 20px;
    border-radius: 0 0 20px 20px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    font-size: 1rem;
}

.recipe-card button:hover {
    background: linear-gradient(135deg, #A0522D, #8B4D32);
    transform: translateY(-2px);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px;
    background: #333;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: #555;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.modal-content .close-btn:hover {
    color: #333;
    cursor: pointer;
}

.modal-content h2 {
    color: #8B4D32;
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-content img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-content h3 {
    color: #8B4D32;
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.modal-content ul {
    margin: 10px 0 20px;
    padding-left: 20px;
}

.modal-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.modal-content p {
    line-height: 1.6;
    margin: 10px 0;
}
#show-more-btn{
    width: 100%;
}

/* About Us Section */
#aboutUs {
    min-height: 100vh;
    text-align: center;
    padding: 80px 20px;
    color: #8B4D32;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

#aboutUs h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    color: #8B4D32;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-member {
    background: white;
    color: #333;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4D32, #A0522D, #8B4D32);
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 4px solid #8B4D32;
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-member h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #8B4D32;
}

.team-member p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    font-size: 1.8rem;
    color: #8B4D32;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(139, 77, 50, 0.1);
}

.social-links a:hover {
    color: white;
    background: #8B4D32;
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
}

footer a {
    color: #d09b69;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navBar .nav {
        gap: 30px;
        padding-right: 30px;
    }
    
    .navBar img {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .navBar .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(139, 77, 50, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        padding: 0;
    }
    
    .navBar .nav.active {
        right: 0;
    }
    
    .navBar .nav a {
        font-size: 1.5rem;
        padding: 15px 30px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .navBar .nav a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .navBar img {
        width: 50%;
        padding-left: 20px;
    }
    
    #home {
        width: 90%;
        margin: 10px;
        padding: 10px;
        align-items: center;
        text-align: center;
    }
    
    #home .text h1 {
        font-size: 1.4rem;
        padding: 10px;
    }
    
    #home .text span h2 {
        font-size: 2.5rem;
        padding-left: 10px;
    }
    
    #home .text p {
        font-size: 1.2rem;
        padding: 5px;
    }
    
    .btn-conteiner {
        padding: 30px 20px;
    }
    
    .btn-content {
        font-size: 24px;
        padding: 8px 25px;
    }
    
    #mainPage h1 {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    #controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    input, select, button {
        width: 90%;
        max-width: 400px;
    }
    
    #recipe-results {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .recipe-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    #aboutUs h1 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .team-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-content img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .navBar img {
        width: 60%;
        padding-left: 15px;
    }
    
    #home .text h1 {
        font-size: 1.2rem;
    }
    
    #home .text span h2 {
        font-size: 2rem;
    }
    
    #home .text p {
        font-size: 1rem;
    }
    
    .btn-content {
        font-size: 20px;
        padding: 6px 20px;
    }
    
    #mainPage h1 {
        font-size: 1.6rem;
    }
    
    input, select, button {
        width: 95%;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .recipe-card h3 {
        font-size: 1.1rem;
        margin: 10px 15px 8px;
    }
    
    .recipe-card button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    #aboutUs h1 {
        font-size: 1.8rem;
    }
    
    .team-member {
        padding: 20px 15px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .team-member h2 {
        font-size: 1.4rem;
    }
    
    .team-member p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
    
    .modal-content img {
        height: 150px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    #home {
        padding-top: 80px;
        min-height: auto;
    }
    
    #aboutUs {
        min-height: auto;
        padding: 40px 20px;
    }
    
    .team-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
