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

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.8s ease-out 2.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.splash-text {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    animation: splashAnimation 2s ease-out;
}

@keyframes splashAnimation {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
        letter-spacing: -10px;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        letter-spacing: -2px;
    }
}

.splash-text span {
    display: inline-block;
    animation: bounce 0.6s ease-in-out;
}

.splash-text span:nth-child(1) { animation-delay: 0.1s; }
.splash-text span:nth-child(2) { animation-delay: 0.2s; }
.splash-text span:nth-child(3) { animation-delay: 0.3s; }
.splash-text span:nth-child(4) { animation-delay: 0.4s; }
.splash-text span:nth-child(5) { animation-delay: 0.5s; }
.splash-text span:nth-child(6) { animation-delay: 0.6s; }
.splash-text span:nth-child(7) { animation-delay: 0.7s; }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
}

.page-wrapper {
    position: relative;
    max-width: 1100px;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-wrapper.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.container {
    background: white;
    border-radius: 24px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

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

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    letter-spacing: -2px;
}

.image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 45vh;
    object-fit: cover;
}

.play-button {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #764ba2;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.play-button.playing::after {
    width: 20px;
    height: 30px;
    border-left: 7px solid #764ba2;
    border-right: 7px solid #764ba2;
    border-top: none;
    border-bottom: none;
    margin-left: 0;
    box-sizing: border-box;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-left: 4px solid #764ba2;
    border-radius: 12px;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.visitor-counter {
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.joke-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.joke-button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.joke-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.joke-display {
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

.joke-setup {
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.joke-punchline {
    font-size: 1rem;
    color: #764ba2;
    font-style: italic;
}

.recipe-card {
    text-align: left;
    margin-top: 24px;
}

.recipe-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.recipe-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.recipe-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.recipe-ingredients,
.recipe-instructions {
    margin-bottom: 20px;
}

.recipe-ingredients h3,
.recipe-instructions h3 {
    font-size: 1.1rem;
    color: #764ba2;
    margin-bottom: 10px;
}

.recipe-ingredients ul {
    list-style: none;
    padding: 0;
}

.recipe-ingredients li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 0.95rem;
}

.recipe-ingredients li:last-child {
    border-bottom: none;
}

.recipe-instructions p {
    color: #444;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .splash-text {
        font-size: 2.5rem;
        padding: 20px;
    }

    .container {
        padding: 40px 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .header-row {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .play-button {
        width: 60px;
        height: 60px;
        right: -15px;
        bottom: -20px;
    }

    .play-button::after {
        border-left: 18px solid #764ba2;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
    }

    .play-button.playing::after {
        width: 16px;
        height: 24px;
        border-left: 5px solid #764ba2;
        border-right: 5px solid #764ba2;
    }

    .tip-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .tip-text {
        font-size: 0.9rem;
    }

    .joke-button {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .joke-display {
        padding: 16px;
    }

    .navbar {
        padding: 8px 14px;
        gap: 6px;
    }

    .nav-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .recipe-title {
        font-size: 1.4rem;
    }
}
