:root {
    --primary: #f95d5d;
    --secondary: #60c9ef;
    --dark: #5a3e2b;
    --light: #fffaeb;
    --accent: #4ecdc4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #ff8c8c;
    border-color: #ff8c8c;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #a1e4fd;
    border-color: #93e2fe;
    color: var(--dark);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('/assets/images/cake-on-display1.jpg') center/cover;
    color: white;
    padding: 120px 0;
    margin-bottom: 50px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(7px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--secondary);
    color: var(--dark);
}

.product-category {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    padding-top: 75%; /* 4:3 aspect ratio (3 / 4 = 0.75) */
}

.product-category img {
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the area while maintaining its aspect ratio */
}

.product-category:hover img {
    transform: scale(1.1);
}

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 107, 107, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.bg-blur {
    background-color: rgba(255, 250, 235, 0.8);
    backdrop-filter: blur(10px);
}

.special-offer {
    background-color: rgba(255, 209, 102, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    border: 2px dashed var(--secondary);
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

#backToTop {
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Prevent interaction when hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#backToTop.visible {
    opacity: 0.6; /* Visible with default opacity */
    visibility: visible;
}

#backToTop:hover {
    opacity: 1; /* Fully opaque on hover */
    background-color: var(--primary);
    border-color: var(--primary);
}