:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --muted-color: #666666;
    --accent-color: #ff4444;
    --link-color: #ff4444;
    --font-main: 'Roboto Mono', monospace;
    --font-mono: 'Roboto Mono', monospace;
    --grid-size: 30px;
}

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

html {
    scroll-behavior: smooth;
}

.main-nav {
    margin-bottom: 40px;
    padding-left: 30px;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 68, 68, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 68, 68, 0.03) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    position: relative;
}

/* Scanline Overlay */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

/* Flicker effect */
@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.95; }
    25% { opacity: 0.98; }
    30% { opacity: 0.92; }
    100% { opacity: 0.99; }
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 100px 20px;
    animation: flicker 0.15s infinite;
}

header {
    margin-bottom: 80px;
    border-left: 4px solid var(--accent-color);
    padding-left: 30px;
    position: relative;
}

header::after {
    content: "CV_v6.7-lol";
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 0.6rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 0px rgba(255, 68, 68, 0.2);
}

.nickname {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
    margin-left: 10px;
    opacity: 0.8;
}

.contact-info {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted-color);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.geo-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.connect-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.connect-link:hover {
    border-bottom: 1px solid var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.contact-icon {
    stroke: var(--accent-color);
    opacity: 0.8;
    margin-right: 6px;
    flex-shrink: 0;
}

.reveal-wrapper {
    display: flex;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
}

.geo-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}


.reveal-btn {
    cursor: pointer;
    background: rgba(255, 68, 68, 0.05);
    color: var(--accent-color);
    padding: 2px 10px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.2s;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.reveal-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color);
}

.blur {
    filter: blur(5px);
    cursor: pointer;
    transition: all 0.4s ease;
    user-select: none;
    display: inline-block;
}

.blur:hover {
    filter: blur(3px);
}

.revealed {
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
}

section {
    margin-bottom: 120px;
    position: relative;
}

h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

h2::before {
    content: "> ";
    margin-right: 10px;
}

h2::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.5), transparent);
    margin-left: 20px;
}

/* Timeline container */
#experience {
    position: relative;
}

#experience::before {
    content: "";
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 60px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-color), #222);
    z-index: 0;
}

.experience-item {
    margin-bottom: 70px;
    padding-left: 40px;
    position: relative;
}

/* Timeline dots */
.experience-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    width: 11px;
    height: 11px;
    background: #111;
    border: 2.5px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

/* Radar/Pulse effect for the first (latest) item */
.experience-item:first-of-type::after {
    content: "";
    position: absolute;
    left: -5px;
    top: 5px;
    width: 11px;
    height: 11px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: radar 2.5s infinite ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes radar {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.experience-item .date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.experience-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.experience-item .company {
    font-size: 1rem;
    color: var(--muted-color);
    margin-bottom: 15px;
    font-style: italic;
}

.experience-item ul {
    list-style: none;
}

.experience-item li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #ccc;
    font-size: 0.95rem;
}

.experience-item li::before {
    content: "#";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 15px 0;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-color);
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.tech-tag:hover {
    background: var(--accent-color);
    color: #000;
}

.item-references {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}

details {
    margin-top: 20px;
}

summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: all 0.2s;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-color);
}

summary::before {
    content: "[+]";
    font-weight: bold;
}

details[open] summary::before {
    content: "[-]";
}

details[open] summary {
    margin-bottom: 10px;
    opacity: 1;
}

.item-reference-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-color);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.item-reference-link::before {
    content: "[LINK]";
    font-size: 0.6rem;
    color: var(--accent-color);
}

.item-reference-link:hover {
    color: #fff;
}

/* Cursor effect */
.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background: var(--accent-color);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.project-item {
    margin-bottom: 30px;
    padding-left: 30px;
    position: relative;
}

.project-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.project-item h3 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.project-item h3 a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.project-year {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.project-item .summary-text {
    font-size: 0.9rem;
    color: #aaa;
    max-width: 600px;
    line-height: 1.6;
}

#blog-posts {
    margin-bottom: 120px;
    position: relative;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-item {
    padding: 20px;
    background: rgba(255, 68, 68, 0.03);
    border: 1px solid rgba(255, 68, 68, 0.1);
    transition: all 0.3s ease;
}

.post-item:hover {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.post-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.post-item h3 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.post-item h3 a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-posts {
    margin-top: 40px;
    text-align: center;
}

.view-all-link {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color);
}

.post-content {
    margin-bottom: 80px;
    margin-top: 50px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 0px rgba(255, 68, 68, 0.2);
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-bottom: 40px;
}

.category-tag {
    background: rgba(255, 68, 68, 0.1);
    color: var(--accent-color);
    padding: 2px 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-left: 5px;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    max-width: 700px;
}

.post-body h2 {
    font-size: 1.5rem;
    margin: 50px 0 20px -30px;
    color: #fff;
    padding-left: 0;
    margin-top: 50px;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px 0;
    color: #fff;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-body a:hover {
    border-bottom: 1px solid var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.post-body code {
    font-family: var(--font-mono);
    background: rgba(255, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--accent-color);
}

.post-body pre {
    background: #111;
    padding: 20px;
    border-radius: 15px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.post-body iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 68, 68, 0.1);
    margin: 20px 0;
}

.back-to-blog {
    margin-top: 50px;
}

footer {
    margin-top: 150px;
    border-top: 1px solid #222;
    padding-top: 40px;
    font-size: 0.8rem;
    color: var(--muted-color);
    padding-left: 30px;
}

.social-links {
    margin-top: 30px; 
    display: flex; 
    gap: 25px;
}

.social-icon-link {
    color: var(--muted-color);
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.summary-text {
    font-size: 1.25rem; 
    font-weight: 500; 
    color: #ddd; 
    max-width: 600px;
}

.skills-visual {
    margin-top: 30px;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.skill-icons img {
    height: 50px;
    width: auto;
    max-width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.custom-skill-icon {
    height: 50px !important;
    width: 50px !important;
    background: #fff;
    padding: 5px;
    border-radius: 15px;
    object-fit: contain;
}

.icon-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bio-text {
    font-size: 1rem;
    color: #aaa;
    max-width: 700px;
    line-height: 1.8;
}

.bio-text p {
    margin-bottom: 20px;
}

.profile-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 68, 68, 0.03);
    border: 1px dashed rgba(255, 68, 68, 0.2);
}

.profile-metadata-sub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 0;
    padding: 20px;
    background: rgba(255, 68, 68, 0.03);
    border: 1px dashed rgba(255, 68, 68, 0.2);
    border-top: none;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metadata-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted-color);
    letter-spacing: 1px;
}

.metadata-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
}

.footer-signature {
    margin-top: 40px; 
    font-family: var(--font-mono); 
    font-size: 0.7rem; 
    opacity: 0.5;
    text-align: right;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    .container {
        padding: 60px 20px;
    }
    .main-nav {
        padding-left: 0;
        margin-bottom: 30px;
    }
    .nav-list {
        justify-content: center;
        gap: 15px;
    }
    .nav-item a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
