/* Custom styles for fonts and animations */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFF8F0; /* Creamy background */
    color: #4A2E2A; /* Dark brown text */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #D9534F; /* Cherry red */
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: #D9534F;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recipe-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Page transition animations */
.page-content {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Entry Animation Styles */
#entry-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF8F0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease 2.5s;
}

#cake-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.cake-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 50px;
    background-color: #6B4F4B; /* Chocolate color */
    border-radius: 10px 10px 0 0;
    opacity: 0;
    animation: stackCake 0.5s forwards;
}

.cake-layer.one {
    animation-delay: 0.2s;
}

.cake-layer.two {
    bottom: 50px;
    height: 40px;
    width: 180px;
    background-color: #D2B48C; /* Tan filling */
    animation-delay: 0.7s;
}

.cake-layer.three {
    bottom: 90px;
    height: 50px;
    background-color: #6B4F4B;
    animation-delay: 1.2s;
}

#icing {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 30px;
    background-color: #FFFFFF;
    border-radius: 15px;
    opacity: 0;
    animation: dripIcing 0.6s forwards 1.7s;
}

#cherry {
    position: absolute;
    top: -50px;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: #D9534F;
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: placeCherry 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards 2.2s;
}

#cherry::after { /* Stem */
    content: '';
    position: absolute;
    top: -8px;
    left: 12px;
    width: 3px;
    height: 15px;
    background-color: #006400; /* Dark green */
    transform: rotate(20deg);
    border-radius: 3px;
}

@keyframes stackCake {
    from { transform: translateX(-50%) translateY(50px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes dripIcing {
    from { height: 0; opacity: 0; }
    to { height: 30px; opacity: 1; }
}

@keyframes placeCherry {
    from { top: -50px; opacity: 0; }
    to { top: -20px; opacity: 1; }
}
