:root {
    --primary-purple: #6b2d8f;
    --secondary-purple: #4a1a6b;
    --dark-purple: #2a0a3f;
    --accent-purple: #9d4edd;
    --light-purple: #c77dff;
    --glow-purple: #e0aaff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0014;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Rotating Spiral Background */
.spiral-background {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    background:
        radial-gradient(circle at 50% 50%,
            transparent 0%,
            transparent 10%,
            var(--primary-purple) 10.5%,
            transparent 11%,
            transparent 15%,
            var(--secondary-purple) 15.5%,
            transparent 16%,
            transparent 20%,
            var(--primary-purple) 20.5%,
            transparent 21%,
            transparent 25%,
            var(--secondary-purple) 25.5%,
            transparent 26%,
            transparent 30%,
            var(--primary-purple) 30.5%,
            transparent 31%,
            transparent 35%,
            var(--secondary-purple) 35.5%,
            transparent 36%,
            transparent 40%,
            var(--primary-purple) 40.5%,
            transparent 41%,
            transparent 45%,
            var(--secondary-purple) 45.5%,
            transparent 46%,
            transparent 50%
        );
    animation: spiral-rotate 60s linear infinite;
    filter: blur(1px);
}

@keyframes spiral-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1.5s ease-out;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--light-purple), var(--accent-purple), var(--primary-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
    letter-spacing: 2px;
    animation: glow-pulse 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--glow-purple);
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(199, 125, 255, 0.8));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(42, 10, 63, 0.6);
    border: 2px solid var(--primary-purple);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, var(--accent-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow:
        0 10px 30px rgba(157, 78, 221, 0.4),
        0 0 40px rgba(199, 125, 255, 0.3),
        inset 0 0 20px rgba(157, 78, 221, 0.1);
}

.link-card:hover::before {
    opacity: 0.1;
}

.link-card:active {
    transform: translateY(-2px) scale(1.01);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-right: 20px;
    background: var(--secondary-purple);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background: var(--accent-purple);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

.link-icon svg {
    width: 24px;
    height: 24px;
    color: var(--glow-purple);
}

.link-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.link-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--light-purple);
}

.link-description {
    font-size: 0.9rem;
    color: var(--glow-purple);
    opacity: 0.8;
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 20px 0;
    color: var(--glow-purple);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .link-card {
        padding: 16px 20px;
    }

    .link-icon {
        width: 45px;
        height: 45px;
        margin-right: 16px;
    }

    .link-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .link-card {
        padding: 14px 16px;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        margin-right: 14px;
    }
}
