:root {
    --background-color: #0a0a0f; /* Very dark blue/black */
    --primary-text-color: #e0e0e0; /* Off-white */
    --accent-color-1: #00f2ea; /* Bright cyan/teal */
    --accent-color-2: #7a00ff; /* Deep purple */
    --dot-color: var(--accent-color-1);
    --glow-color: rgba(0, 242, 234, 0.3); /* Cyan glow */
    --subtle-glyph-color: rgba(224, 224, 224, 0.1); /* Very faint white */
}

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

html, body {
    min-height: 100%;
    width: 100%;
    background-color: var(--background-color);
    font-family: 'Roboto Mono', monospace; /* Techy, clean monospace */
    color: var(--primary-text-color);
}
body {
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through if needed */
}

/* Abstract Particle/Flow Animation */
.particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, var(--accent-color-1) 0.5px, transparent 1px);
    background-size: 30px 30px; /* Adjust density */
    opacity: 0.1;
    animation: flow 60s linear infinite;
}

.particle-layer.layer1 {
    background-size: 40px 40px;
    opacity: 0.08;
    animation: flow 80s linear infinite reverse; /* Different speed/direction */
}

.particle-layer.layer2 {
    background-size: 50px 50px;
    opacity: 0.06;
    animation: flow 120s linear infinite;
    background-image: radial-gradient(circle at center, var(--accent-color-2) 0.5px, transparent 1px); /* Use second accent color */
}

.particle-layer.layer3 {
    /* Static subtle grid */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: none; /* No animation for the grid */
}


@keyframes flow {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 500px; } /* Adjust distance for speed */
}

/* Subtle Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, var(--background-color) 85%);
    opacity: 0.9;
}

.content-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    min-height: 100vh;
    text-align: center;
    padding: 2rem 1.5rem 80px;
}

.title {
    /* Use Orbitron for the main title for a more sci-fi feel */
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem); /* Responsive font size */
    font-weight: 400;
    letter-spacing: 0.1em; /* Add some spacing */
    color: var(--primary-text-color);
    text-shadow:
        0 0 5px rgba(224, 224, 224, 0.2), /* Subtle white glow */
        0 0 15px var(--glow-color), /* Accent glow */
        0 0 25px var(--glow-color);
    animation: fadeInGlow 3s ease-in-out forwards;
    opacity: 0;
}

.projects {
    opacity: 0;
    animation: fadeInSubtle 2s 1.2s ease-out forwards;
    width: 100%;
    max-width: 520px;
}

.projects-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color-1);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.projects ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.projects a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--primary-text-color);
    background: rgba(0, 242, 234, 0.03);
    border: 1px solid rgba(0, 242, 234, 0.15);
    border-radius: 4px;
    text-align: left;
    transition:
        border-color 220ms ease,
        background 220ms ease,
        transform 220ms cubic-bezier(.34, 1.56, .64, 1),
        box-shadow 220ms ease;
}

.projects a:hover,
.projects a:focus-visible {
    border-color: var(--accent-color-1);
    background: rgba(0, 242, 234, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 0 24px -6px var(--glow-color);
    outline: none;
}

.project-name {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--accent-color-1);
    margin-bottom: 0.25rem;
}

.project-desc {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--primary-text-color);
    opacity: 0.7;
    line-height: 1.5;
}

.title .dot {
    color: var(--dot-color);
    /* animation: pulseDot 2.5s infinite ease-in-out; */ /* Optional: make the dot pulse */
}

/* Optional: subtle pulse for the dot */
@keyframes pulseDot {
    0%, 100% {
        text-shadow: 0 0 5px var(--dot-color), 0 0 10px var(--dot-color);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 10px var(--dot-color), 0 0 20px var(--dot-color);
        opacity: 0.8;
    }
}

@keyframes fadeInGlow {
    0% {
        opacity: 0;
        transform: scale(0.95);
        text-shadow: 0 0 2px rgba(224, 224, 224, 0.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow:
            0 0 5px rgba(224, 224, 224, 0.2),
            0 0 15px var(--glow-color),
            0 0 25px var(--glow-color);
    }
}

/* Subtle Glyph Styling */
.subtle-glyph {
    position: absolute; /* Position relative to the viewport or nearest positioned ancestor */
    bottom: 25px;       /* Distance from the bottom */
    left: 50%;          /* Center horizontally */
    transform: translateX(-50%); /* Fine-tune horizontal centering */
    font-size: 1.5rem;  /* Size of the glyph */
    font-family: sans-serif; /* Ensure consistent rendering of the symbol */
    color: var(--subtle-glyph-color); /* Use the defined subtle color */
    z-index: 2;         /* Ensure it's above the background */
    opacity: 0;         /* Start invisible */
    /* Animation: name duration delay timing-function fill-mode */
    animation: fadeInSubtle 4s 1.5s ease-out forwards;
    pointer-events: none; /* Make sure it's not clickable */
}

/* Animation for the glyph fading in */
@keyframes fadeInSubtle {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px); /* Start slightly lower */
    }
    100% {
        opacity: 1; /* Fade to the opacity defined by its color's alpha */
        transform: translate(-50%, 0); /* End at final position */
    }
}


/* Basic Responsiveness */
@media (max-width: 768px) {
    .title {
        letter-spacing: 0.05em;
    }
    .content-container {
        gap: 2rem;
    }
    .particle-layer {
        background-size: 20px 20px; /* Denser on smaller screens maybe */
    }
    .particle-layer.layer1 { background-size: 30px 30px; }
    .particle-layer.layer2 { background-size: 40px 40px; }

    .subtle-glyph {
        font-size: 1.2rem; /* Slightly smaller on mobile */
        bottom: 15px; /* Slightly closer to the edge */
    }
    .projects a {
        padding: 0.85rem 1rem;
    }
    .project-name {
        font-size: 0.95rem;
    }
    .project-desc {
        font-size: 0.8rem;
    }
}