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

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;
    color: #333;
    transition: all 0.5s ease;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
}

.sidebar:hover {
    transform: translateX(0);
}

.sidebar h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.party-toggle {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.party-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.party-toggle.active {
    background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
}

.hat-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.party-toggle:hover .hat-icon {
    transform: rotate(15deg);
}

.party-info {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Party Hat */
.party-hat {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    z-index: 999;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.party-hat.visible {
    top: 20px;
    opacity: 1;
    animation: partyBounce 2s ease-in-out infinite;
}

/* Party Mode Styles */
body.party-mode {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: partyBackground 3s ease infinite;
}

.party-mode .logo {
    animation: partyPulse 1s ease-in-out infinite, partyColors 2s linear infinite;
}

.party-mode .floating-box {
    animation: float 2s ease-in-out infinite, partyRotate 3s linear infinite;
}

.party-mode .feature-card {
    animation: partyWiggle 1.5s ease-in-out infinite;
}

.party-mode .feature-card:nth-child(2) {
    animation-delay: 0.5s;
}

.party-mode .feature-card:nth-child(3) {
    animation-delay: 1s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    color: white;
}

.logo {
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
}

.hero {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #667eea;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.hero-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-box {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-box:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-box:nth-child(2) {
    top: 60%;
    left: 50%;
    animation-delay: 2s;
}

.floating-box:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-card p {
    color: #666;
}

.interactive {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin: 40px 0;
    text-align: center;
}

.interactive h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #667eea;
}

.demo-container {
    margin-top: 30px;
}

#colorButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#colorButton:hover {
    transform: scale(1.05);
}

#message {
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#message:not(.hidden) {
    opacity: 1;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: white;
    font-size: 1.1rem;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

/* Party Animations */
@keyframes partyBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes partyBounce {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    25% { transform: translateX(-50%) translateY(-10px) rotate(-10deg); }
    75% { transform: translateX(-50%) translateY(-5px) rotate(10deg); }
}

@keyframes partyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes partyColors {
    0% { color: #ff6b6b; text-shadow: 0 4px 6px rgba(255,107,107,0.3); }
    25% { color: #4ecdc4; text-shadow: 0 4px 6px rgba(78,205,196,0.3); }
    50% { color: #45b7d1; text-shadow: 0 4px 6px rgba(69,183,209,0.3); }
    75% { color: #feca57; text-shadow: 0 4px 6px rgba(254,202,87,0.3); }
    100% { color: #ff6b6b; text-shadow: 0 4px 6px rgba(255,107,107,0.3); }
}

@keyframes partyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes partyWiggle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(1deg) translateY(-2px); }
    75% { transform: rotate(-1deg) translateY(2px); }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px;
    }
    
    .hero-animation {
        margin-top: 40px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}