* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.title-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(2px 2px 4px rgba(139, 69, 19, 0.5));
}

.mega-title {
    background: linear-gradient(135deg, #FF0000 0%, #FFD700 25%, #FF0000 50%, #FFD700 75%, #FF0000 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: megaGradient 2s ease infinite;
}

@keyframes megaGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.big-red-button {
    background: linear-gradient(180deg, #FF4444 0%, #CC0000 50%, #990000 100%);
    box-shadow: 
        0 8px 0 #660000,
        0 12px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    border: 3px solid #FF6666;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.big-red-button:hover {
    box-shadow: 
        0 6px 0 #660000,
        0 10px 30px rgba(255, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
    transform: translateY(2px) scale(1.05);
}

.big-red-button:active {
    box-shadow: 
        0 2px 0 #660000,
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transform: translateY(6px) scale(0.98);
}

.email-card {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inbox-container {
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(139, 69, 19, 0.2);
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: fall 4s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #FFF8DC;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #8B4513);
    border-radius: 10px;
    border: 2px solid #FFF8DC;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFA500, #654321);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .title-gradient, .mega-title {
        font-size: 2.5rem !important;
    }
    
    .big-red-button {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }
}

/* Fun hover effects */
button:not(.big-red-button):hover {
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

/* Retro email client vibes */
.inbox-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #FFD700 0px,
        #FFD700 10px,
        #8B4513 10px,
        #8B4513 20px
    );
}