:root {
    color-scheme: dark;
}

html,
body {
    overflow: hidden;
    cursor: none; /* Hide the default cursor */
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: rgb(26, 26, 26); /* Dark Gray */
    position: relative;
    font-family: "Space Mono", monospace;
}

#particleCanvas {
    z-index: 10;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.overlay-text {
    z-index: 999; /* Ensure the text is above the canvas */
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2em; /* Adjust font size if needed */
    text-align: center;
    white-space: nowrap; /* Prevent text from wrapping */
}

.dynamic-greeting {
    display: inline-block;
    text-align: center; /* Ensure text is aligned to the left */
}

.overlay-text h1 {
    margin: 0.1em 0;
}

.overlay-text h1 span {
    display: inline-block;
}

.name {
    color: rgb(255, 77, 90); /* Folly Red */
}

.about-section {
    padding: 20px;
    color: black;
    text-align: center;
    position: relative;
    z-index: 5;
}

.about-section h2 {
    margin-top: 0;
}

.about-section p {
    max-width: 600px;
    margin: 0 auto;
}

/* .space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
}

.space-mono-regular-italic {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
}

.space-mono-bold-italic {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: italic;
} */

.icon-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    background: #222;
    color: #fff;
    border-radius: 2rem;
    padding: 0.5rem;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    transition: width 0.3s, background 0.3s, box-shadow 0.3s;
    overflow: hidden;
    width: 2.5rem; /* Collapsed width: just the icon */
    min-width: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.icon-btn svg {
    flex-shrink: 0;
    margin-right: 0;
    transition: margin 0.3s;
}

.icon-btn .icon-label {
    opacity: 0;
    margin-left: 0.5rem;
    white-space: nowrap;
    transition: opacity 0.3s;
    pointer-events: none;
}

.icon-btn:hover {
    width: 8rem; /* Expanded width: icon + label */
    background: #444;
}

.icon-btn:hover .icon-label {
    opacity: 1;
    pointer-events: auto;
}

.icon-btn:hover svg {
    margin-right: 0.5rem;
}
