* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #1a0333, #2d1a4d);
    color: #fef7e6;
    overflow-x: hidden;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 50px;
}

nav{
    margin: auto 0;
    font-size: 1.2em;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

nav ul li {
    margin-left: 2px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
}

nav ul li a:hover {
    color: #fde047;
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    border-top: 4px solid rgba(199, 125, 255, 0.3);
    background: rgba(42, 26, 77, 0.3);
    transform: rotate(-1deg);
}

.footer {
    max-width: 30em;
    margin: auto;
    margin-top: 40px;
    padding-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer a{
    flex-grow: 1;
    font-size: large;
    text-decoration: none;
    color: white;
}

footer .main-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c77dff;
    margin-bottom: 0.5rem;
}

footer .sub-text {
    color: #d4c5e8;
}

/* Responsive */
@media (max-width: 768px) {
    nav{ font-size: medium; flex-grow: 1;}
    nav ul { margin-top: 20px;}
    .logo { flex-grow: 1;}
    .logo img{ height: 40px; }
    .footer a{ display: block; }
}

@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.vibrate {
    display: inline-block;
    animation: vibrate 0.2s linear;
}