:root {
    /* Bauhaus Palette */
    --bauhaus-red: #E30613;
    --bauhaus-blue: #00529B;
    --bauhaus-yellow: #FEDD00;
    --bauhaus-black: #121212;
    --bauhaus-white: #ffffff;

    /* Theme Variables (Dark Default) */
    --bg-color: #050505; /* Darker, flatter black for brutalist feel */
    --bg-gradient: #050505;
    --text-color: #fafafa;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --muted-text: rgba(255, 255, 255, 0.6);

    /* Typography - Tech Brutalist Update */
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace; /* New Engineering Font */
}

[data-theme="light"] {
    --bg-color: #f0f0f0;
    --bg-gradient: #f0f0f0;
    --text-color: #111111;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --card-hover-bg: rgba(0, 0, 0, 0.05);
    --muted-text: rgba(0, 0, 0, 0.6);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono); /* Default to Mono for technical feel */
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 100px;
    cursor: default;
    
    /* DISABLE SELECTION GLOBAL */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* RE-ENABLE SELECTION FOR CONTENT */
p, h1, h2, h3, h4, h5, h6, li, span.selectable {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    mix-blend-mode: multiply;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999; /* Below header (1000) so header stays visible */
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 70px;
    /* Removed default glass styles to let the JS GlassSurface take over if initialized, 
       but keeping fallbacks in case JS fails or for initial render */
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: opacity 0.26s ease-out;
}

/* Glass Surface Specific Styles */
.glass-surface__filter {
    width: 100%;
    height: 100%;
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1;
}

/* Chrome-only advanced glass with SVG filters */
.glass-surface--svg {
    /* Variables set by JS */
    background: hsla(0, 0%, 100%, var(--glass-frost, 0.05));
    backdrop-filter: var(--filter-id, url(#glass-filter)) saturate(var(--glass-saturation, 1));
    -webkit-backdrop-filter: var(--filter-id, url(#glass-filter)) saturate(var(--glass-saturation, 1));
    box-shadow:
        0 0 2px 1px rgba(255, 255, 255, 0.1) inset,
        0 0 10px 4px rgba(255, 255, 255, 0.05) inset,
        0px 4px 16px rgba(17, 17, 26, 0.05),
        0px 8px 24px rgba(17, 17, 26, 0.05),
        0px 16px 56px rgba(17, 17, 26, 0.05),
        0px 4px 16px rgba(17, 17, 26, 0.05) inset,
        0px 8px 24px rgba(17, 17, 26, 0.05) inset,
        0px 16px 56px rgba(17, 17, 26, 0.05) inset;
}

[data-theme="light"] .glass-surface--svg {
    background: hsla(0, 0%, 0%, var(--glass-frost, 0.02));
    box-shadow:
        0 0 2px 1px rgba(0, 0, 0, 0.05) inset,
        0 0 10px 4px rgba(0, 0, 0, 0.03) inset,
        0px 4px 16px rgba(17, 17, 26, 0.03),
        0px 8px 24px rgba(17, 17, 26, 0.03);
}

/* Fallback for non-Chrome browsers (Safari, Firefox, Edge) */
.glass-surface--fallback {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(1.8) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.25),
        0 2px 16px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
        /* Chromatic aberration effect */
        inset 2px 0 8px -4px rgba(0, 100, 255, 0.2),
        inset -2px 0 8px -4px rgba(255, 50, 50, 0.2) !important;
}

[data-theme="light"] .glass-surface--fallback {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(16px) saturate(1.6) brightness(1.02) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.6) brightness(1.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
        inset 2px 0 6px -3px rgba(0, 100, 255, 0.1),
        inset -2px 0 6px -3px rgba(255, 50, 50, 0.1) !important;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2; /* Ensure content is above filter */
}

.header-img {
    width: 40px;
    height: 40px;
    border-radius: 8px; /* Sharper corners */
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-text h1 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.header-text p {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2; /* Ensure content is above filter */
}

.lang-switch button {
    font-family: var(--font-mono);
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: rgba(128, 128, 128, 0.2);
    border-color: var(--text-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

#theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px; /* Slightly sharper */
    box-shadow: var(--glass-shadow);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bauhaus-red);
    opacity: 0.8;
}

.hero-inner {
    padding-left: 3rem;
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4.5rem, 11vw, 9rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    margin-bottom: 3rem;
    color: var(--text-color);
    min-height: 1.8em; /* Fija la altura suficiente para dos líneas */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente si es necesario */
    text-transform: uppercase;
}

.hero-title span {
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gradient-text {
    background: linear-gradient(
        45deg, 
        var(--text-color),
        var(--bauhaus-blue),
        var(--bauhaus-red),
        var(--text-color)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chameleon 8s ease infinite;
}

@keyframes chameleon {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.outline-text {
    -webkit-text-stroke: 2px var(--text-color); /* Thicker stroke */
    color: transparent;
    opacity: 0.3;
}

.hero-card {
    max-width: 750px;
    padding: 2.5rem;
    border-left: 4px solid var(--bauhaus-yellow);
    border-radius: 0 16px 16px 0; /* Squared off left side */
}

.lang-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Soft Skills Section */
.soft-skills-section {
    margin-bottom: 4rem;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    border-color: var(--text-color);
}

.skill-icon {
    font-size: 3rem;
    color: var(--bauhaus-yellow);
}

.skill-card h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.hero-role {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-summary {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted-text);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: var(--font-mono);
    background: var(--bauhaus-red);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px; /* Less rounded */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
    transition: transform 0.2s ease, background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #c20510;
}

.btn-glass {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-color);
}

.btn-glass.icon-only {
    padding: 0.8rem;
}

.arrow-icon {
    transform: rotate(-45deg);
}

/* Experience Section */
.experience-layout {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.experience-sidebar {
    flex: 0 0 25%;
    position: sticky;
    top: 120px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.section-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bauhaus-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 2px; /* Square dots */
}

.dot.red { background: var(--bauhaus-red); }
.dot.blue { background: var(--bauhaus-blue); }
.dot.yellow { background: var(--bauhaus-yellow); }

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.experience-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.job-card:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--text-color);
}

.aam-card { border-left: 4px solid var(--bauhaus-red); }
.flux-card { border-left: 4px solid var(--bauhaus-blue); }

.card-bg-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.03;
    pointer-events: none;
}

.card-bg-icon span {
    font-size: 6rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.job-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.company-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.text-red { color: var(--bauhaus-red); }
.text-blue { color: var(--bauhaus-blue); }
.text-yellow { color: var(--bauhaus-yellow); }
.text-grey { color: var(--muted-text); }

.hover-link:hover { text-decoration: underline; }

.date-pill {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.location {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.job-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.job-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--muted-text);
    line-height: 1.6;
}

.bullet-icon {
    font-size: 1rem;
    margin-top: 4px;
}

/* Projects Section */
.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.section-heading-large {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.projects-deco {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bar {
    width: 30px;
    height: 6px;
}

.bar.red { background: var(--bauhaus-red); }
.bar.blue { background: var(--bauhaus-blue); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--text-color);
    background: var(--card-hover-bg);
}

.project-img-wrapper {
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid var(--glass-border);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-content {
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.project-desc {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid transparent;
    text-transform: uppercase;
}

.tag.red {
    background: rgba(227, 6, 19, 0.1);
    color: var(--bauhaus-red);
    border-color: rgba(227, 6, 19, 0.3);
}

.tag.blue {
    background: rgba(0, 82, 155, 0.1);
    color: var(--bauhaus-blue);
    border-color: rgba(0, 82, 155, 0.3);
}

.tag.yellow {
    background: rgba(254, 221, 0, 0.1);
    color: #d4b800;
    border-color: rgba(254, 221, 0, 0.3);
}

[data-theme="dark"] .tag.yellow { color: var(--bauhaus-yellow); }

/* ============================================
   Tech Radar / Blog Section
   ============================================ */
.radar-section {
    padding: 4rem 0;
}

.radar-header {
    margin-bottom: 3rem;
}

.radar-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.radar-icon {
    font-size: 3rem;
    color: var(--bauhaus-yellow);
    animation: radar-pulse 3s ease-in-out infinite;
}

@keyframes radar-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.radar-subtitle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--muted-text);
    line-height: 1.6;
    max-width: 600px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
}

/* Loading State */
.posts-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--muted-text);
    gap: 1rem;
}

.loading-icon {
    font-size: 2.5rem;
    animation: spin 2s linear infinite;
}

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

/* Empty State */
.posts-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    color: var(--muted-text);
    gap: 1rem;
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
}

.empty-icon {
    font-size: 3.5rem;
    opacity: 0.4;
}

.posts-error .empty-icon {
    color: var(--bauhaus-red);
    opacity: 0.6;
}

/* Post Card */
.post-card {
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card:hover,
.post-card:focus {
    transform: translateY(-5px);
    border-color: var(--bauhaus-yellow);
    background: var(--card-hover-bg);
    outline: none;
}

.post-card:focus-visible {
    box-shadow: 0 0 0 2px var(--bauhaus-yellow);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(254, 221, 0, 0.1);
    color: var(--bauhaus-yellow);
    border: 1px solid rgba(254, 221, 0, 0.2);
    text-transform: uppercase;
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    flex-grow: 1;
}

.post-excerpt {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.6;
}

.post-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--bauhaus-yellow);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-card-footer .material-symbols-outlined {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.post-card:hover .post-card-footer .material-symbols-outlined {
    transform: translateX(4px);
}

/* Post Card Image */
.post-card-image {
    margin: -2rem -2rem 0 -2rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* View More Button */
.view-more-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.view-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--bauhaus-yellow);
    border-radius: 8px;
    color: var(--bauhaus-yellow);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover:not(:disabled) {
    background: var(--bauhaus-yellow);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(254, 221, 0, 0.3);
}

.view-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.view-more-btn .posts-count {
    opacity: 0.7;
    font-weight: 400;
}

.view-more-btn .material-symbols-outlined {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-more-btn:hover:not(:disabled) .material-symbols-outlined {
    transform: translateY(3px);
}

/* ============================================
   Post Modal
   ============================================ */
.post-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.post-modal.active {
    opacity: 1;
    visibility: visible;
}

.post-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.post-modal-content {
    position: relative;
    max-width: 800px;
    max-height: 85vh;
    width: 100%;
    padding: 3rem;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
}

.post-modal.active .post-modal-content {
    transform: translateY(0);
}

.post-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s ease;
    z-index: 10;
}

.post-modal-close:hover {
    background: var(--bauhaus-red);
    border-color: var(--bauhaus-red);
}

/* Modal Image */
.post-modal-image {
    margin: -3rem -3rem 2rem -3rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    max-height: 300px;
}

.post-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.post-modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-modal-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-modal-tags {
    display: flex;
    gap: 0.5rem;
}

.modal-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(0, 82, 155, 0.15);
    color: var(--bauhaus-blue);
    border: 1px solid rgba(0, 82, 155, 0.3);
    text-transform: uppercase;
}

.post-modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.post-modal-body {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-modal-body h2,
.post-modal-body h3,
.post-modal-body h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 2rem 0 1rem;
    letter-spacing: -0.02em;
}

.post-modal-body h2 { font-size: 1.6rem; }
.post-modal-body h3 { font-size: 1.3rem; }
.post-modal-body h4 { font-size: 1.1rem; }

.post-modal-body p {
    margin-bottom: 1.5rem;
    color: var(--muted-text);
}

.post-modal-body strong {
    color: var(--text-color);
    font-weight: 700;
}

.post-modal-body a {
    color: var(--bauhaus-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.post-modal-body a:hover {
    color: var(--bauhaus-yellow);
}

.post-modal-body code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-modal-body ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-modal-body li {
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--muted-text);
}

.post-modal-body li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--bauhaus-red);
    border-radius: 2px;
}

.post-modal-body hr {
    border: none;
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

/* Education Section */
.education-section {
    padding: 2rem 0;
}

.section-heading-center {
    text-align: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.edu-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    border-radius: 16px;
}

.finished-card { border-bottom: 4px solid var(--bauhaus-yellow); }
.unfinished-card { border-bottom: 4px solid #555; opacity: 0.8; }

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.edu-icon { font-size: 2.5rem; }

.status-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid transparent;
}

.status-badge.finished {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.2);
}

.status-badge.incomplete {
    background: rgba(128, 128, 128, 0.1);
    color: var(--muted-text);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.edu-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.school-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted-text);
}

.edu-loc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: right;
    opacity: 0.4;
    margin-top: 1.5rem;
}

.diplomas-panel {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.diploma { text-align: center; }

.diploma-inst {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bauhaus-red);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.diploma-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.diploma-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}

/* Skills Marquee */
.skills-marquee {
    padding: 3rem 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: scroll 60s linear infinite;
    width: max-content;
}

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

.skill-pill {
    font-family: var(--font-mono);
    padding: 0.5rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    
    /* Chameleon Effect Global */
    background: linear-gradient(
        45deg, 
        var(--text-color),
        var(--bauhaus-blue),
        var(--bauhaus-red),
        var(--text-color)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chameleon 8s ease infinite;
}

/* Override specific colors to use the gradient but keep spacing if needed */
.skill-pill.blue, .skill-pill.red, .skill-pill.yellow, .skill-pill.grey {
    /* No specific color overrides needed as background-clip handles text */
}

/* Footer */
.main-footer {
    margin-top: 6rem;
    padding-bottom: 2rem;
}

.footer-card {
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    border: 1px solid var(--glass-border);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.footer-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.4;
    margin-top: 3rem;
    letter-spacing: 2px;
}

/* Fade Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 85px;
    }
    
    .glass-header {
        width: calc(100% - 24px);
        height: 60px;
        padding: 0 1rem;
        top: 12px;
    }
    
    .main-container {
        padding: 1.5rem;
        gap: 5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-title { font-size: 4rem; }
    
    .hero-inner {
        padding-left: 1.5rem;
    }
    
    .hero-card {
        max-width: 100%;
        padding: 2rem;
    }
    
    .experience-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .experience-sidebar {
        position: static;
        width: 100%;
    }

    .projects-grid, .education-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }

    .diplomas-panel {
        flex-direction: column;
        gap: 2rem;
    }

    .diploma-divider {
        width: 50px;
        height: 1px;
    }
    
    /* Radar Section Mobile */
    .radar-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .radar-icon {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-modal {
        padding: 1rem;
    }
    
    .post-modal-content {
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }
    
    .post-modal-title {
        font-size: 1.5rem;
    }
    
    /* Footer Mobile Fix */
    .footer-title {
        font-size: 2.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
    }
    
    .footer-card {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 75px;
    }
    
    .glass-header {
        width: calc(100% - 16px);
        height: 55px;
        padding: 0 0.75rem;
        top: 8px;
    }
    
    .main-container {
        padding: 1rem;
        gap: 4rem;
    }
    
    .header-text h1 {
        font-size: 0.9rem;
    }
    
    .header-text p {
        font-size: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-inner {
        padding-left: 1rem;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .hero-role {
        font-size: 1.3rem;
    }
    
    .hero-summary {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-glass {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-glass.icon-only {
        width: auto;
        padding: 0.7rem;
    }
    
    .section-heading {
        font-size: 2.5rem;
    }
    
    .section-heading-large {
        font-size: 2.5rem;
    }
    
    .section-heading-center {
        font-size: 2rem;
    }
    
    .job-card,
    .project-card {
        padding: 1.25rem;
    }
    
    .job-title {
        font-size: 1.3rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .soft-skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1.5rem 1rem;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-card h4 {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile Fix - smaller screens */
    .footer-title {
        font-size: 2rem;
    }
    
    .footer-card {
        padding: 2.5rem 1rem;
        gap: 2rem;
    }
    
    .footer-link {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .footer-link .material-symbols-outlined {
        font-size: 1.2rem;
    }
}
