:root {
    --bg-color: #fff9e6;
    --primary: #c82426; /* Exact red requested */
    --text-dark: #2f3542;
    --text-light: #747d8c;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Dripping Icing */
.drip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 10;
}

/* Filling Layers at the bottom */
.filling-layers {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120%; /* Slightly wider to allow horizontal movement */
    height: 100%;
    transform-origin: bottom;
}

.wave1 {
    z-index: 1;
    animation: layerRise 2s ease-out forwards;
}

.wave2 {
    z-index: 2;
    animation: layerRise 2.5s ease-out forwards;
}

.wave3 {
    z-index: 3;
    animation: layerRise 3s ease-out forwards;
}

@keyframes layerRise {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0%); }
}

/* Sprinkles Container */
#sprinkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sprinkle {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 25px;
    border-radius: 10px;
    opacity: 0.8;
    will-change: transform;
    animation-name: fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Main Content */
.content {
    position: relative;
    z-index: 5;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(200, 36, 38, 0.15), inset 0 0 0 8px rgba(200, 36, 38, 0.05);
    max-width: 600px;
    width: 90%;
    animation: slideUp 1s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Logo */
.logo-wrapper {
    position: relative;
    margin: 0 auto 2rem;
    width: fit-content;
}

.logo {
    max-width: 250px;
    height: auto;
    position: relative;
    z-index: 2;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Typography */
.title {
    font-family: 'Chewy', cursive;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #ffda79;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Badge */
.countdown-wrapper {
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    background: var(--primary); /* Force exact red background */
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(200, 36, 38, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Social Links */
.social-wrapper {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f1f2f6;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
}

.social-btn.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.facebook:hover { background-color: #1877F2; }
.social-btn.whatsapp:hover { background-color: #25D366; }

/* Powered by Footer */
.powered-by {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8); /* Branco translúcido para ler em cima do vermelho */
    font-weight: 600;
    letter-spacing: 0.5px;
}

.powered-by a {
    color: #e67e22; /* Amarelo torrado a fugir para laranja */
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .logo { max-width: 200px; }
    .title { font-size: 2.5rem; }
    .content { padding: 2.5rem 2rem; }
    .drip { height: 120px; }
    .filling-layers { height: 200px; }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .logo { max-width: 160px; }
    .title { font-size: 2rem; margin-bottom: 0.5rem; }
    .subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .content { 
        padding: 2rem 1.2rem; 
        width: 92%; 
        border-radius: 30px; 
    }
    .badge { padding: 6px 15px; font-size: 0.8rem; }
    .drip { height: 80px; }
    .filling-layers { height: 120px; }
    
    .social-btn { width: 45px; height: 45px; }
    .social-btn svg { width: 24px; height: 24px; }
    
    .powered-by { 
        bottom: 10px; 
        font-size: 0.75rem; 
    }
}
