/* Import professional mono font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* New Color Palette */
:root {
    --dark-navy: #0a0f19;
    --navy: #112240;
    --light-grey: #ccd6f6;
    --accent: #64ffda;
    --white: #e6f1ff;
}

/* General Body & Canvas Background */
body {
    background-color: var(--dark-navy);
    color: var(--light-grey);
    font-family: 'Roboto Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Hide canvas overflow */
    transition: background-color 1.5s ease;
}

#particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind container but interactive */
}

.container {
    text-align: center;
    background: rgba(10, 15, 25, 0.7); /* Slightly brighter panel */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
    border: 1px solid var(--navy);
    animation: fadeIn 1s ease-out;
    z-index: 1; /* Above canvas */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, min-height 0.4s ease-in-out;
    will-change: min-height;
}

.container.animating-out {
    opacity: 0;
    transform: scale(0.9);
}

.content-wrapper {
    transition: opacity 0.3s ease-out;
}

.content-wrapper.fade-out {
    opacity: 0;
}

.redirect-message {
    color: var(--white);
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in;
}

.redirect-message.fade-in {
    opacity: 1;
}

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

/* Profile Section */
.profile {
    margin-bottom: 35px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

h1 {
    color: var(--white);
    margin-top: 20px;
    font-size: 2em;
    font-weight: 500;
}

.tagline {
    color: var(--accent);
    font-size: 1em;
    margin: 5px 0 0;
    font-family: 'KaiTi', 'SimSun', sans-serif;
}

/* Nav Links & Modern Buttons */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-button {
    background: transparent;
    color: var(--light-grey);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    width: 300px;
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--accent);
    font-size: 1.1em;
    overflow: hidden; /* Hide the pseudo-element overflow */
}

.link-button .text {
    position: relative;
    z-index: 1;
}

/* New animated underline/aurora effect */
.link-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.4s ease;
}

.link-button:hover, .link-button:focus {
    color: var(--accent);
    outline: none;
}

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

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