:root {
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-gradient: linear-gradient(135deg, #f4f7ff 0%, #e0e7ff 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --blob-1: #c7d2fe;
    --blob-2: #e0e7ff;
    --blob-3: #dbeafe;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #818cf8;
        --primary-light: #a5b4fc;
        --text-main: #f3f4f6;
        --text-muted: #9ca3af;
        --bg-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
        --card-bg: rgba(31, 41, 55, 0.6);
        --card-border: rgba(255, 255, 255, 0.1);
        --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        --blob-1: #312e81;
        --blob-2: #1e3a8a;
        --blob-3: #1e1b4b;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    transition: background 0.5s ease;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--blob-2);
    bottom: -50px;
    right: -50px;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--blob-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem 1.5rem;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.link-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    padding: 1.25rem 1.75rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    outline: none;
}

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.1);
}

.link-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover::before,
.link-card:focus-visible::before {
    transform: scaleY(1);
}

.link-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.link-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-card:hover .link-icon,
.link-card:focus-visible .link-icon {
    transform: translateX(5px);
    color: var(--primary-color);
}

.footer {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .header {
        margin-bottom: 2.5rem;
    }
}