/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #f5a9b8;
    --blue: #5bcefa;
    --white: #f0e6f6;
    --purple: #b06ab3;
    --deep-purple: #4568dc;
    --hot-pink: #ff6b9d;
    --cyan: #00d4ff;
    --bg: #07050a;
    --card-bg: #0d0a14;
    --border: #1a1528;
}

body {
    background-color: var(--bg);
    color: #c0b8d0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ===== Background Effects ===== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(91, 206, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 206, 250, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 999;
}

/* ===== Container ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(91, 206, 250, 0.04) 0%, transparent 100%);
}

.logo-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tagline {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.75rem;
    color: var(--pink);
    letter-spacing: 0.25em;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* ===== Glitch Effect ===== */
.glitch {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--white);
    position: relative;
    text-shadow: 0 0 8px rgba(91, 206, 250, 0.4), 0 0 16px rgba(245, 169, 184, 0.3);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch::before {
    color: var(--cyan);
    opacity: 0.8;
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 55% 0);
}

.glitch::after {
    color: var(--pink);
    opacity: 0.8;
    animation: glitch-2 2.5s infinite linear alternate-reverse;
    clip-path: inset(55% 0 0 0);
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(2px, -1px); }
    94% { transform: translate(-2px, 1px); }
    96% { transform: translate(1px, 0); }
}

@keyframes glitch-2 {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(-2px, 1px); }
    93% { transform: translate(2px, -1px); }
    95% { transform: translate(-1px, 0); }
}

/* ===== Section Tags ===== */
.section-tag {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.7rem;
    color: var(--purple);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.25rem;
}

/* ===== Intro ===== */
.intro {
    padding: 3rem 0 2rem;
}

.terminal-block {
    background: rgba(13, 10, 20, 0.8);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    max-width: 550px;
}

.terminal-prompt {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.75rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.terminal-block p {
    font-size: 1rem;
    color: #a898b8;
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.about-content p {
    margin-bottom: 0.75rem;
    color: #a898b8;
    max-width: 600px;
}

.about-content strong {
    color: var(--white);
}

.about-content a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.2s ease;
}

.about-content a:hover {
    border-bottom-color: var(--cyan);
}

.about-content a strong {
    color: var(--cyan);
}

.about-content em {
    color: var(--pink);
    font-style: italic;
}

.about-subtle {
    font-size: 0.85rem;
    color: #6b5f7a !important;
    font-family: "Consolas", "Courier New", monospace;
}

/* ===== Projects ===== */
.projects {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
}

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

/* ===== Project Card ===== */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(91, 206, 250, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

a.project-card:hover .card-glow {
    opacity: 1;
}

a.project-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(91, 206, 250, 0.1), 0 0 40px rgba(91, 206, 250, 0.05);
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-id {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.65rem;
    color: var(--purple);
    opacity: 0.5;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.project-card p {
    font-size: 0.8rem;
    color: #6b5f7a;
    line-height: 1.5;
}

.card-arrow {
    display: block;
    text-align: right;
    color: var(--cyan);
    font-size: 1.1rem;
    margin-top: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

a.project-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Locked Cards */
.project-card.locked {
    opacity: 0.3;
    cursor: default;
}

.project-card.locked h3 {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #3d3450;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.featured .badge {
    color: var(--cyan);
    border: 1px solid rgba(91, 206, 250, 0.4);
    background: rgba(91, 206, 250, 0.08);
}

.badge.dim {
    color: #3d3450;
    border: 1px solid #1a1528;
}

/* ===== Stats Bar ===== */
.stats-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.6rem;
    color: #4a3f5c;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* ===== Footer ===== */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

footer p {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.7rem;
    color: #2a2238;
    letter-spacing: 0.1em;
}

/* ===== Gradient line accent at very top ===== */
body::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--pink), var(--white), var(--pink), var(--blue));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .glitch {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        gap: 1rem;
    }

    .stat {
        min-width: 80px;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}
