* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    color: #ffffff;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    flex: 1;
}

img {
    max-height: 280px;
    max-width: 280px;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.wavy-animation {
    position: relative;
    margin: 2rem 0;
}

.wavy-animation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    background: conic-gradient(from 0deg, transparent, #00d4ff, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 3s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

img:hover {
    transform: scale(1.05);
    border-color: #00d4ff;
    border-width: 6px;
    box-shadow:
        0 30px 60px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

h1 {
    margin: 1rem;
    font-family: 'Segoe UI', sans-serif;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    text-align: center;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

button {
    margin: 0.5rem;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

button:active {
    transform: translateY(0);
}

button a {
    color: inherit;
    text-decoration: none;
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.btn {
    padding: 2rem 1rem;
    gap: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.user-guide {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    color: #ffffff;
    line-height: 1.8;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.guide {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 2rem;
    color: #00d4ff;
    font-weight: 600;
}

.user-guide ul {
    padding-left: 1.5rem;
}

.user-guide li {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.user-guide li:last-child {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.app {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.8rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app li {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.app li:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    transform: translateY(-2px);
}

footer {
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.copyright a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #00d4ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright a:hover {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        padding: 15px;
    }

    .user-guide {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    img {
        max-height: 200px;
        max-width: 200px;
    }

    .wavy-animation::before {
        width: 240px;
        height: 240px;
    }

    .btn {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
        flex-direction: column;
    }

    button {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
    }

    .user-guide {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .user-guide li {
        font-size: 1rem;
        margin: 0.8rem 0;
    }

    .app {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .app li {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .copyright {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    img {
        max-height: 160px;
        max-width: 160px;
    }

    .wavy-animation::before {
        width: 200px;
        height: 200px;
    }

    .btn {
        flex-direction: column;
        gap: 0.8rem;
    }

    button {
        width: 100%;
        max-width: 280px;
    }

    .user-guide {
        padding: 1rem;
    }

    .user-guide li {
        font-size: 0.9rem;
    }

    .app {
        grid-template-columns: repeat(2, 1fr);
    }

    .copyright {
        font-size: 0.85rem;
    }
}

/* Animation for smooth loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header,
main>*,
footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .wavy-animation::before {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
    border-radius: 4px;
}