/* About Page - "Coolest Ever" Redesign */

/* --- Hero Section --- */
.about-hero {
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.manifesto-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.manifesto-title .highlight-glitch {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
    position: relative;
    display: inline-block;
}

.manifesto-title .highlight-glitch::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    width: 0%;
    overflow: hidden;
    white-space: nowrap;
    animation: glitchFill 3s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.5s;
    -webkit-text-stroke: 0;
}

@keyframes glitchFill {
    to { width: 100%; }
}

.manifesto-sub {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

/* --- The Architects (Team) --- */
.architects-section {
    padding: 4rem 0 8rem;
    position: relative;
}

.architects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.profile-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px; /* Inner border space */
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 50px rgba(93, 93, 255, 0.15);
    z-index: 10;
}

/* Tech decorative corners */
.profile-card::before, .profile-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: 2;
}

.profile-card:hover::before {
    top: 0;
    left: 0;
    border-top-color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

.profile-card:hover::after {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--accent-blue);
    border-right-color: var(--accent-blue);
}

.profile-inner {
    background: #080808;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Holographic Avatar */
.profile-img-container {
    width: 140px;
    height: 140px;
    position: relative;
    margin-bottom: 2rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.profile-card:hover .profile-img {
    filter: grayscale(0%);
    border-color: transparent;
}

/* Spinning Ring */
.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 1px dashed var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: spin 10s linear infinite;
}

.profile-card:hover .profile-ring {
    opacity: 0.5;
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

.profile-role-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.profile-bio {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.profile-social {
    margin-top: auto;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.profile-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.profile-social a:hover {
    color: var(--accent-blue);
}

/* --- Origin Story (Terminal Style) --- */
.origin-section {
    padding: 6rem 0;
    position: relative;
}

.terminal-window {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
}

.terminal-body {
    padding: 3rem;
    font-family: 'Space Mono', monospace; /* Use monospaced for "code" feel */
}

.story-line {
    border-left: 2px solid #333;
    padding-left: 2rem;
    margin-left: 1rem;
    position: relative;
}

.story-block {
    margin-bottom: 3rem;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.story-block:hover {
    opacity: 1;
}

.story-marker {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1.2rem;
    height: 1.2rem;
    background: #000;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.story-block:hover .story-marker {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.cmd-prefix {
    color: var(--accent-green);
    margin-right: 10px;
    user-select: none;
}

.story-heading {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.story-p {
    font-family: var(--font-primary); /* Switch back to sans for readability */
    color: #ccc;
    line-height: 1.8;
    font-size: 1.05rem;
}

.highlight-code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* --- Values Ticker --- */
.values-ticker {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background: var(--bg-secondary);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-track {
    display: inline-block;
    animation: tickerScroll 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ticker-item span {
    color: var(--accent-blue);
    margin-right: 0.5rem;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .manifesto-title { 
        font-size: 2.5rem; /* Reduced to prevent excessive wrapping */
    }
    
    /* Fix for overlapping glitch text on mobile */
    .manifesto-title .highlight-glitch {
        color: var(--accent-blue);
        -webkit-text-stroke: 0;
        display: block; /* Ensure it takes full width to control flow */
    }
    
    .manifesto-title .highlight-glitch::before {
        display: none; /* Disable the absolute positioned overlay on mobile */
    }

    .terminal-body { padding: 1.5rem; }
    .story-line { padding-left: 1.5rem; margin-left: 0.5rem; }
    .story-marker { left: -2.1rem; }
}
