* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('img/Art04.webp') no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.link-card::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: 0.5s;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.link-card:hover::before {
    left: 100%;
}

.link-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.link-content h2 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.link-content h2 br {
    display: block;
    content: "";
    margin-top: 0.3rem;
}

.link-content h2 br + * {
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 500;
}

.link-content i {
    font-size: 1rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.link-card:hover i {
    transform: translateX(5px);
    opacity: 1;
}

.link-content p {
    font-size: 1rem;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: fixed;
        height: 100vh;
        overflow: hidden;
    }

    .container {
        padding: 1rem;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .links-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.5rem;
        margin: 0 auto;
        width: 100%;
    }

    .link-card {
        padding: 1rem;
        -webkit-tap-highlight-color: transparent;
        transform: scale(1);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .link-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.2);
    }

    .card-icon {
        width: 32px;
        height: 32px;
        animation: pulse 2s infinite;
    }

    .link-content h2 {
        font-size: 1.1rem;
    }

    .link-content h2 br + * {
        font-size: 0.85rem;
    }

    .link-content i {
        font-size: 0.9rem;
        animation: slideRight 1s infinite alternate;
    }

    .title-wrapper {
        gap: 0.8rem;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }

    @keyframes slideRight {
        from {
            transform: translateX(0);
            opacity: 0.7;
        }
        to {
            transform: translateX(5px);
            opacity: 1;
        }
    }

    .firework {
        position: fixed;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        pointer-events: none;
        z-index: 1000;
        animation: firework 1s ease-out forwards;
    }

    @keyframes firework {
        0% {
            transform: translate(var(--x), var(--y));
            opacity: 1;
        }
        100% {
            transform: translate(var(--tx), var(--ty));
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        animation: glow 2s infinite alternate;
    }

    .link-card {
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(5px);
    }

    .link-card:active {
        background: rgba(255, 255, 255, 0.15);
    }

    .card-icon {
        width: 28px;
        height: 28px;
    }

    .link-content h2 {
        font-size: 1rem;
    }

    .link-content h2 br + * {
        font-size: 0.8rem;
    }

    .link-content i {
        font-size: 0.8rem;
    }

    .title-wrapper {
        gap: 0.6rem;
    }

    @keyframes glow {
        from {
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        }
        to {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }
    }
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 10%;
}

.link-card:hover .card-icon {
    transform: scale(1.1);
}
