/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 30%, #141414 60%, #0f0f0f 90%, #000000 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.name {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90vw;
}

.motto {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #888888;
    font-weight: 300;
    font-style: italic;
}

/* Links section */
.links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.link {
    display: block;
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link::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:hover {
    background-color: #1a1a1a;
    border-color: #555555;
    transform: translateY(-2px);
}

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

.link-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.link-content p {
    font-size: 0.95rem;
    color: #888888;
    font-weight: 300;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero {
        margin-bottom: 3rem;
    }
    
    .links {
        gap: 1rem;
    }
    
    .link {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        max-width: 95vw;
    }
    
    .motto {
        font-size: 1.1rem;
    }
    
    .link-content h2 {
        font-size: 1.1rem;
    }
    
    .link-content p {
        font-size: 0.9rem;
    }
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.8s ease-out;
}

.links {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Focus styles for accessibility */
.link:focus {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

/* Copyright footer */
.copyright {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

.copyright p {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 300;
}

.copyright p span {
    font-weight: 400;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .link {
        background-color: white;
        border-color: #ccc;
    }
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 30%, #141414 60%, #0f0f0f 90%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
