/* --- ABOUT.CSS (Personnel File Styles) --- */

/* The main wrapper for the profile */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Left side small, Right side big */
    gap: 0; /* No gap, we want borders to touch */
    border: 4px solid #000;
    background: #fff;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
}

/* Left Column: The ID Card area */
.profile-sidebar {
    background: #eee;
    border-right: 4px solid #000;
    padding: 20px;
    text-align: center;
}

/* The Profile Picture Frame */
.profile-pic {
    width: 100%;
    aspect-ratio: 1 / 1.2; /* Portrait ratio */
    border: 4px solid #cc0000; /* Red border */
    background: #000;
    margin-bottom: 20px;
    position: relative;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* B&W Photo for that ID look */
    display: block;
}

/* Stats in the sidebar */
.stat-block {
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 1px dashed #999;
    padding-bottom: 5px;
}

.stat-label {
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 3px;
}

.stat-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    color: #cc0000;
}

.stats-link-value {
    color: #cc0000;
    text-decoration: none;
}

.stats-link-value:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Right Column: The Biography */
.profile-main {
    padding: 30px;
    background: #fff;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 100% 1.5em; /* Lined paper effect */
    line-height: 1.5em;
}

.profile-header {
    border-bottom: 4px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.profile-header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-transform: uppercase;
    line-height: 1;
}

.stamp {
    border: 3px solid #cc0000;
    color: #cc0000;
    font-weight: bold;
    padding: 5px 10px;
    transform: rotate(-10deg); /* Tilted stamp look */
    font-family: sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Professional layout for the text */
.bio-content p {
    margin-bottom: 1.5em;
    font-size: 1rem;
    text-align: justify;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 30px;
    border-top: 2px solid #000;
    padding-top: 20px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #000;
}

#container > h2 { position: relative; }
#container > h2::after {
    content: '⋆˚࿔';
    display: inline-block;
    margin-left: 12px;
    color: #cc0000;
    font-weight: bold;
    transform-origin: 50% 50%;
    animation: spin 1.2s linear infinite;
    /* optional sizing */
    font-size: 0.9em;
}

.scrambled-text span {
    transition: color 0.1s;
    min-width: 0.3em; /* Prevents letters from collapsing */
}

.scrambled-text span.space {
    min-width: 0.3em; /* Ensure spaces keep their width */
}

.scrambled-text span.censored {
    font-family: 'Courier New', monospace;
}

.glitch-text {
    font-family: 'Courier New', monospace;
}

/* hovering glitch*/
.glitch-text:hover{
    animation: glitch 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- THE ANIMATION KEYFRAMES --- */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr; /* Stack them on phone */
    }
    .profile-sidebar {
        border-right: none;
        border-bottom: 4px solid #000;
    }
}