:root {
    --bg-color: #0f0f0f;
    --text-color: #e0e0e0;
    --accent-color: #00ffcc;
    --secondary-text: #888;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 50%, #151515 0%, #050505 100%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    padding: 2rem;
    animation: fadeIn 1s ease-in-out;
}

/* Premium Decrypt Effect */
h1.decrypt-effect {
    font-size: 4rem;
    margin: 0 auto 1rem auto;
    letter-spacing: 0.2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    font-weight: 300;
}

/* Scramble characters style */
.dud {
    color: #333;
    opacity: 0.5;
}

/* Scanner Beam - High End Strikethrough */
h1.decrypt-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    /* Animate to 100% */
    height: 2px;
    /* Thin, precise beam */
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transform: translateY(-50%);
    animation: scan-beam 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    /* Smooth ease-out */
    animation-delay: 1s;
    /* Wait for text to decrypt */
    mix-blend-mode: exclusion;
    /* Sophisticated inversion effect */
}

@keyframes scan-beam {
    0% {
        width: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

.tagline {
    color: var(--secondary-text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    /* Reduced from 2rem */
    display: block;
}

.bio {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* Update container to be more structural */
/* Update container to be more structural */
.container {
    max-width: 700px;
    width: 100%;
    padding: 1.5rem;
    animation: fadeIn 1s ease-in-out;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

/* Layout changes */
.profile-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    position: relative;
    /* For lang switch */
}

.lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9rem;
}

.lang-switch a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s;
    font-family: sans-serif;
    /* Fallback for emoji flags */
}

.lang-switch a:hover {
    color: var(--accent-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 2rem;
    align-items: start;
    grid-template-areas:
        "bio connect"
        "skills skills"
        "recon recon";
}

.bio-section {
    grid-area: bio;
}

.connect-section {
    grid-area: connect;
}

.capabilities-section {
    grid-area: skills;
    margin-top: 1rem;
    border: 1px solid #222;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.recon-section {
    grid-area: recon;
    margin-top: 1rem;
    border: 1px solid #222;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.5);
    position: relative;
    overflow: hidden;
}

.recon-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: scan-loop 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan-loop {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.recon-section h3,
.capabilities-section h3 {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--secondary-text);
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    width: fit-content;
}

.recon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.recon-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    border-left: 1px solid var(--accent-color);
}

.recon-item .label {
    font-size: 0.7rem;
    color: var(--secondary-text);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.recon-item .value {
    font-family: monospace;
    color: var(--text-color);
    font-size: 0.9rem;
    word-break: break-all;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.skill-list li {
    font-family: monospace;
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.2s;
    cursor: default;
}

.skill-list li:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
        /* Scale down for mobile */
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        grid-template-areas:
            "bio"
            "connect"
            "skills";
    }

    .profile-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        text-align: center;
    }

    h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .tagline {
        text-align: center;
        font-size: 1rem;
    }

    .status-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .status-line {
        justify-content: center;
    }

    /* Prevent overflow on mobile */
    .recon-section h3,
    .capabilities-section h3 {
        overflow-wrap: anywhere;
        /* Hard break long words */
        word-break: break-word;
        white-space: normal;
        max-width: 100%;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .recon-section,
    .capabilities-section {
        padding: 1rem;
        /* Reduce padding on mobile */
        width: 100%;
        box-sizing: border-box;
    }

    .recon-grid,
    .skill-list {
        grid-template-columns: 1fr;
        /* Force single column */
        width: 100%;
        overflow: hidden;
        /* Contain children */
    }

    .recon-item,
    .skill-list li {
        min-width: 0;
        /* Allow grid items to shrink below content size */
        overflow-wrap: anywhere;
    }
}

.bio-section {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

/* Status Footer */
.status-footer {
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px dashed #333;
    font-size: 0.75rem;
    color: var(--secondary-text);
    display: flex;
    justify-content: space-between;
    opacity: 0.7;
}

.status-line {
    display: flex;
    gap: 0.5rem;
}

.status-line .label {
    font-weight: bold;
}

/* Discord Section */
.discord-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1rem;
    /* Reduced from 1.5rem */
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform 0.2s, border-color 0.2s;
}

.discord-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.discord-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-text);
    letter-spacing: 1px;
}

.discord-value {
    color: var(--accent-color);
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.links {
    display: flex;
    flex-direction: column;
    /* Stack links in the sidebar */
    gap: 1rem;
}

.links a {
    color: var(--text-color);
    /* Neutral by default in this layout */
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--accent-color);
}

.links a::before {
    content: '>';
    color: var(--secondary-text);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.links a:hover::before {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-color);
}

/* Override previous links styles */
.links a::after {
    display: none;
}