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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    margin-left: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ff9800;
}

nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    margin-right: 20px;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff9800;
}

.nav-right {
    display: flex;
    align-items: center;
}

.kitchen-option {
    margin-right: 20px;
}

.kitchen-btn {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.kitchen-btn i {
    font-size: 18px;
    margin-right: 5px;
}

.kitchen-count {
    background-color: #ff9800;
    color: white;
    font-size: 12px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.kitchen-count-animate {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.kitchen-btn:hover {
    color: #ff9800;
}

.profile-btn {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.profile-btn:hover {
    color: #ff9800;
}

.search-container {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.search-wrapper {
    width: 100%;
    display: flex;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.search-input::placeholder {
    color: #777;
    font-style: italic;
}

.search-button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #e68900;
}

.search-recommendations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 1s ease-out forwards 0.5s;
    opacity: 0;
}

.recommendation-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-btn:hover {
    background-color: #ff9800;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.signin-button {
    background-color: #ff9800; 
    color: #fff; 
    padding: 8px 15px;
    border-radius: 5px; 
    transition: background-color 0.3s;
}

.signin-button:hover {
    background-color: #e68900;
}

.home-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://img.freepik.com/free-photo/top-view-flour-with-baking-tools-table_23-2148461115.jpg?t=st=1741690288~exp=1741693888~hmac=483835e447cadf2d0dec37961f84a9135a8fdb5f0e326697605358c748efaef8&w=2000') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    max-width: 90%;
    animation: fadeInContent 1s ease forwards;
}

.home-title {
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 100%;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out forwards;
}

.bake-button {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out forwards 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bake-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.bake-button:hover {
    background-color: #ff7d00;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    color: white;
}

.bake-button:hover i {
    transform: translateX(5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#services {
    padding: 80px 20px;
    text-align: center;
    background-color: #fff;
}

#services h2 {
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    display: inline-block;
}

#services h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff9800;
    margin: 15px auto 0;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 320px;
    margin-bottom: 20px;
}

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

.card-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.1);
}

.recipe-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff9800;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.recipe-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 65px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.recipe-meta span {
    display: flex;
    align-items: center;
}

.recipe-meta i {
    margin-right: 5px;
    color: #ff9800;
}

.recipe-button {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
    font-size: 14px;
}

.recipe-button:hover {
    background-color: #e68900;
}

#keypoints {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

#keypoints h2 {
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    display: inline-block;
}

#keypoints h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff9800;
    margin: 15px auto 0;
}

.keypoints-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.keypoint-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px 25px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keypoint-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.keypoint-icon {
    background-color: #ff9800;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.keypoint-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.keypoint-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.keypoint-item:nth-child(1) {
    animation: fadeInUp 0.5s forwards 0.1s;
}

.keypoint-item:nth-child(2) {
    animation: fadeInUp 0.5s forwards 0.2s;
}

.keypoint-item:nth-child(3) {
    animation: fadeInUp 0.5s forwards 0.3s;
}

.keypoint-item:nth-child(4) {
    animation: fadeInUp 0.5s forwards 0.4s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

footer {
    background: #333;
    color: #fff;
    position: relative;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #ccc;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff9800;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ff9800;
}

.footer-social h4 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-social h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff9800;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #444;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icon:hover {
    background-color: #ff9800;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    font-size: 14px;
}

/* Responsive adjustments for footer */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}


@media screen and (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        font-size: 22px;
        margin-left: 10px;
    }

    nav ul {
        margin-right: 10px;
    }

    nav ul li {
        margin: 0 8px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .signin-button {
        padding: 6px 10px;
        font-size: 13px;
    }

    .kitchen-btn span:not(.kitchen-count) {
        display: none;
    }

    .search-container {
        bottom: 20%;
        width: 95%;
    }

    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-button {
        padding: 0 15px;
    }

    .recommendation-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 576px) {
    header {
        flex-wrap: wrap;
        padding: 10px;
    }

    .logo {
        margin-bottom: 5px;
        width: 100%;
        text-align: center;
    }

    nav {
        width: 100%;
        justify-content: center;
        margin-bottom: 5px;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 13px;
    }

    .signin-button {
        padding: 4px 8px;
        font-size: 12px;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .home-title {
        font-size: 32px;
        padding: 15px 20px;
    }

    .bake-button {
        font-size: 16px;
        padding: 12px 20px;
    }

    .search-recommendations {
        gap: 6px;
    }
}