:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --accent-purple: #8a2be2;
    --accent-rose: #ff007f;
    --accent-blue: #00b7ff;
    --hover-bg: #1a1a1a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.8s ease-out;
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    /* Prevent line breaks */
    vertical-align: middle;
}

.logo-swap-container {
    display: inline-block;
    /* Changed from inline-grid to block for relative positioning */
    position: relative;
    vertical-align: bottom;
    margin-left: 2px;
    pointer-events: none;
    /* Prevent children from interfering with hover */
}

.logo-word {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

/* Primary (tools) - Defines the flow/width */
.logo-word.primary {
    transform: translateY(0);
    opacity: 1;
}

/* Secondary (personal) - Absolute to sit on top/hidden */
.logo-word.secondary {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    opacity: 0;

    /* Ensure it doesn't wrap or cause layout issues if it were static */
    white-space: nowrap;
}

/* Hover States */
.logo:hover .logo-word.primary {
    transform: translateY(100%);
    opacity: 0;
}

.logo:hover .logo-word.secondary {
    transform: translateY(0);
    opacity: 1;
}

.dot {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Linktree Buttons & Animation Wrapper */
/* Linktree Buttons */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-link {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 18px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    text-align: center;
}

.btn-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-link:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo.exit-anim {
    transform: translateY(-60px) scale(1.5);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}