:root {
    --color-primary: #b40000;
    --color-surface: #181C24;
    --color-surface-dark: #030712;
    --color-overlay: rgba(255, 255, 255, 0.08);
    --color-text: #e2e8f0;
    --color-text-light: #cccccc;
    --color-hover-bg: #1e293b;
    --color-hover-text: #b40000;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--color-surface-dark) 0%, var(--color-surface) 100%);
    min-height: 100vh;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background decoration */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, var(--color-primary) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(180, 0, 0, 0.3) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    z-index: 1;
}

.logo-section {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.logo {
    width: 120px;
    height: 120px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(180, 0, 0, 0.3);
    animation: pulse 3s ease-in-out infinite;
    padding: 10px;
}

.logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), transparent, var(--color-primary));
    opacity: 0.5;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 10px;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

.links-container {
    margin-top: 40px;
}

.link-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 16px;
    background: var(--color-overlay);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.link-button:nth-child(1) { animation-delay: 0.2s; }
.link-button:nth-child(2) { animation-delay: 0.4s; }
.link-button:nth-child(3) { animation-delay: 0.6s; }
.link-button:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    background: var(--color-hover-bg);
    color: var(--color-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(180, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.link-button:active {
    transform: translateY(0);
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
    text-align: center;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--color-text-light);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-overlay);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
}

/* Footer Section */
.footer-section {
    margin-top: 30px;
    text-align: center;
}

.last-updated {
    font-size: 12px;
    color: var(--color-text-light);
    opacity: 0.7;
    margin-bottom: 10px;
}

.copyright {
    padding-top: 10px;
}

.copyright p {
    font-size: 14px;
    color: var(--color-text-light);
    opacity: 0.8;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        max-width: 350px;
        padding: 0 10px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .logo img {
        width: 80px;
        height: 80px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .copyright p {
        font-size: 12px;
    }
}