/* Reset and Variables */
:root {
    --bg-color: #eeefe5;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --hover-bg: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-color: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Prevent scrollbars */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: grid;
    place-items: center;
    /* Robust centering */
    position: relative;
}

/* Background Animation */
.background-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
        linear-gradient(135deg, #e0e0e0 0%, #f5f5f7 100%);
    animation: rotate 60s linear infinite;
    /* Slower, smoother rotation */
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Card Styles */
.card {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 3rem 4rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    /* Slightly narrower for better proportion */
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    max-width: 450px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    -webkit-text-fill-color: initial;
    background: none;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* Links */
.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.1);
    border-image: initial;
    transition: var(--transition);
}

.link-item:hover {
    background: var(--hover-bg);
    transform: scale(1.02);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-hover);
}

.link-text {
    font-weight: 400;
    font-size: 1.05rem;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--accent);
    font-weight: 600;
}

.link-item:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .card {
        padding: 2rem;
        width: 92%;
    }

    h1 {
        font-size: 1.75rem;
    }
}