/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #222831;
    background-color: #e8f6ef;
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #2f3e46;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

h1, h2 {
    font-weight: 800;
    text-transform: uppercase;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #4f5d75;
    line-height: 1.8;
}

/* Link Styles */
a {
    color: #197278;
    text-decoration: none;
    transition: color 0.4s ease, transform 0.4s ease;
}

a:hover, a:focus {
    color: #28abb9;
    transform: scale(1.05);
    text-decoration: underline;
}

/* Header and Navigation */
header {
    background-color: #393e46;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease;
    height: 80px;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
}

header.sticky {
    background-color: #197278;
}

.navbar {
    padding: 1.5rem 0;
}

.logo-img {
    max-width: 60px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

.navbar-brand img {
    margin-right: 15px;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: #eeeeee;
    transition: color 0.4s ease;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.navbar-brand:hover {
    color: #00adb5;
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    color: #eeeeee;
    margin-left: 1.5rem;
    transition: color 0.4s ease, transform 0.4s ease;
}

.navbar-nav .nav-link:hover {
    color: #00adb5;
    transform: scale(1.1);
}

.navbar-toggler {
    border: none;
    background-color: #197278;
    padding: 0.6rem 1rem;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.navbar-toggler:focus {
    outline: none;
    background-color: #28abb9;
}

/* Featured Dessert Section */
#featured-dessert {
    background-color: #8ab6d6;
    padding: 5rem 0;
    padding-top: 104px !important;
    position: relative;
    overflow: hidden;
}

#featured-dessert h2 {
    font-size: 2.5rem;
    color: #2f3e46;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

#featured-dessert h3 {
    color: #2f3e46;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#featured-dessert p, #featured-dessert ol {
    color: #393e46;
    font-size: 1.2rem;
}

#featured-dessert .btn-primary {
    background-color: #197278;
    border-color: #197278;
    padding: 0.8rem 1.5rem;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

#featured-dessert .btn-primary:hover {
    background-color: #28abb9;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #f6f5f5;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    border-bottom: 7px solid #8ab6d6;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #393e46;
    letter-spacing: 1px;
}

.card-text {
    color: #444444;
}

/* Trending Badge */
#trending-desserts .trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #197278;
    color: #fff;
    padding: 0.7rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Ingredient Spotlight */
#ingredient-spotlight {
    background-color: #e8f6ef;
    padding: 5rem 0;
    position: relative;
}

#ingredient-spotlight h2, #ingredient-spotlight h3 {
    color: #2f3e46;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#ingredient-spotlight p, #ingredient-spotlight ul {
    color: #444444;
    font-size: 1.2rem;
}

#ingredient-spotlight .btn-primary {
    background-color: #197278;
    border-color: #197278;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

#ingredient-spotlight .btn-primary:hover {
    background-color: #28abb9;
    transform: scale(1.05);
}

/* About the Baker Section */
#about-author {
    background-color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#about-author h2 {
    color: #2f3e46;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

#about-author p {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.8;
}

.author-image {
    border: 7px solid #8ab6d6;
    transition: border-color 0.4s ease, transform 0.4s ease;
    border-radius: 50%;
}

.author-image:hover {
    border-color: #197278;
    transform: scale(1.05);
}

#about-author .btn-primary {
    background-color: #197278;
    border-color: #197278;
    padding: 0.8rem 1.5rem;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

#about-author .btn-primary:hover {
    background-color: #28abb9;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #2f3e46;
    color: #eeeeee;
    padding: 3rem 0;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

footer h5 {
    color: #8ab6d6;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

footer a {
    color: #8ab6d6;
    transition: color 0.4s ease, transform 0.4s ease;
}

footer a:hover {
    color: #00adb5;
    transform: scale(1.05);
    text-decoration: underline;
}

footer form .form-control {
    border-radius: 5px;
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
    border: 2px solid #197278;
    transition: border-color 0.4s ease;
}

footer form .form-control:focus {
    border-color: #28abb9;
}

footer form .btn-primary {
    background-color: #197278;
    border-color: #197278;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

footer form .btn-primary:hover {
    background-color: #28abb9;
    transform: scale(1.05);
}

/* Additional Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out forwards;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Scroll Animations */
.section-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-hidden {
    opacity: 0;
    transform: translateY(50px);
}

/* Button Animations */
@keyframes buttonHover {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.btn-primary:hover {
    animation: buttonHover 0.6s ease-in-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    header {
        padding: 1rem 0;
        height: 60px;
    }

    .navbar-brand {
        font-size: 1.75rem;
    }

    h1, h2 {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.4rem;
    }

    #featured-dessert {
        padding: 3rem 0;
    }

    #about-author h2 {
        font-size: 1.8rem;
    }

    footer h5 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    #featured-dessert .col-md-6,
    #ingredient-spotlight .col-md-6,
    #about-author .col-md-6 {
        text-align: center;
        padding-bottom: 2rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .trending-carousel .col-md-4 {
        margin-bottom: 2.5rem;
    }

    h1, h2 {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    footer h5 {
        font-size: 1.25rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    #about-author h2 {
        font-size: 1.75rem;
    }

    .author-image {
        width: 120px;
        height: 120px;
    }

    footer a {
        font-size: 0.85rem;
    }

    .footer-social-icons a {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    #featured-dessert {
        padding: 2.5rem 0;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    footer h5 {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    #about-author p {
        font-size: 1rem;
    }
}

/* Section Background Decorations */
#featured-dessert::before, #ingredient-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('path-to-image.svg') no-repeat center center;
    opacity: 0.1;
    z-index: 1;
}

