:root {
    --primary-color: #5a2d50;
    --accent-color: #ff6b9d;
    --accent-color2: #ff9bb8;
    --bg-color: #fff5f9;
    --shadow-color: rgba(255, 107, 157, 0.3);

    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --warning-color: #e67e22;
    
    --blue-color: #4a8fe7;
    --yellow-color: #ffd166;
    --purple-color: #d9b3ff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--primary-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    bottom: -100px;
    animation: float 15s infinite ease-in;
    opacity: 0.8;
}

.star {
    color: var(--yellow-color);
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
}

@keyframes float {
    0% { bottom: -100px; opacity: 0; }
    10% { opacity: 0.8; }
    100% { bottom: 1080px; opacity: 0; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.wiggle {
    animation: float 15s infinite ease-in, wiggle 3s infinite ease-in-out;
}

.title {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 30px 30px;
	border-bottom: 3px solid var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 2px solid var(--accent-color2);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color2));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    border-radius: 50px;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: transparent;
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover i {
    transform: rotate(15deg) scale(1.2);
}

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

@keyframes scaleUpFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes dropdown {
    0% { transform: translateY(-20px); opacity: 0; }
    60% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideUpFadeIn 1s ease-out both;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

#error {
    color: #ff4d4d;
    display: none;
}

@media (max-width: 768px) {
    nav { padding: 1rem; }
    .nav-links { gap: 0.8rem; }
    .nav-links a { font-size: 0.9rem; padding: 0.6rem 0.8rem; }
    .nav-links a i { margin-right: 5px; }
}

@media (max-width: 480px) {
    .nav-links { gap: 0.5rem; }
    .nav-links a { padding: 0.5rem; font-size: 0.8rem; }
    .nav-links a i { display: none; }
}