:root {
    --bg-color: #030712;
    --text-color: #ffffff;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --terminal-bg: rgba(10, 15, 30, 0.7);
    --glass-border: rgba(6, 182, 212, 0.3);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="2" fill="%2306b6d4"/><path d="M12 2v6m0 8v6m-10-10h6m8 0h6" stroke="%2306b6d4" stroke-width="1.5"/></svg>') 12 12, auto;
    overflow-y: auto;
    min-height: 100vh;
}

a, button, [role="button"], input, textarea, h1[data-i18n="hero-title"] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="6" fill="%2306b6d4"/><circle cx="12" cy="12" r="10" fill="none" stroke="%2306b6d4" stroke-width="1.5"/></svg>') 12 12, pointer !important;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1; 
    pointer-events: none;
    background: radial-gradient(circle at center, #0a192f 0%, #030712 100%);
}

/* Background floating code elements */
.bg-decoration {
    position: absolute;
    z-index: 1;
    font-family: 'Fira Code', monospace;
    color: rgba(6, 182, 212, 0.1);
    pointer-events: none;
    font-weight: 500;
    white-space: pre;
    transition: opacity 0.5s ease;
}
.dec-1 { top: 10%; left: 15%; font-size: 5rem; transform: rotate(-10deg); color: rgba(59, 130, 246, 0.08); }
.dec-2 { bottom: 15%; right: 10%; font-size: 6rem; transform: rotate(15deg); color: rgba(6, 182, 212, 0.05); }
.dec-3 { top: 25%; right: 15%; font-size: 0.85rem; line-height: 1.6; }
.dec-4 { bottom: 25%; left: 8%; font-size: 0.85rem; line-height: 1.6; }
.dec-5 { top: 15%; left: 45%; font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.04); }
.dec-6 { bottom: 35%; right: 40%; font-size: 0.8rem; line-height: 1.6; }
.dec-7 { top: 50%; left: 10%; font-size: 0.9rem; line-height: 1.6; color: rgba(59, 130, 246, 0.1); }
.dec-8 { top: 120vh; left: 10%; font-size: 0.85rem; line-height: 1.6; color: rgba(255, 255, 255, 0.03); }
.dec-9 { top: 150vh; right: 8%; font-size: 0.9rem; line-height: 1.6; color: rgba(6, 182, 212, 0.05); }
.dec-10 { top: 220vh; left: 15%; font-size: 0.95rem; line-height: 1.6; transform: rotate(-5deg); color: rgba(255, 255, 255, 0.04); }
.dec-11 { top: 260vh; right: 20%; font-size: 1.2rem; transform: rotate(15deg); color: rgba(59, 130, 246, 0.05); }
.dec-12 { top: 320vh; left: 25%; font-size: 1rem; color: rgba(6, 182, 212, 0.06); }

/* Moving background code */
.bg-moving {
    position: fixed;
    z-index: 1;
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(6, 182, 212, 0.06);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.dec-move-1 {
    top: 15%;
    animation: moveRight 150s linear infinite;
    color: rgba(255, 255, 255, 0.05);
}

.dec-move-2 {
    bottom: 25%;
    animation: moveLeft 120s linear infinite;
    font-size: 2rem;
}

.dec-move-3 {
    top: 60%;
    animation: moveRight 200s linear infinite;
    color: rgba(59, 130, 246, 0.05);
    font-size: 1.5rem;
}

@keyframes moveRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes moveLeft {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

header, .hero-split, .view-section { pointer-events: auto; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 55px; /* Increased height for better visibility */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-link:hover .main-logo {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8));
    transform: scale(1.02);
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 3rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
}
nav a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}
.lang-opt {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.lang-opt:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.lang-opt.active {
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.1);
}
.separator {
    margin: 0 0.5rem;
}

/* Split Hero Section */
.hero-split {
    min-height: 85vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    gap: 4rem;
}

.hero-text { flex: 1; max-width: 50%; }

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.hero-text p {
    font-size: 1.1rem;
    color: #a1a1aa;
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 3rem;
}

.highlight-text { color: var(--accent-cyan); font-weight: 600; }

.btn-cyber {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.btn-cyber:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
    text-shadow: 0 0 5px var(--accent-cyan);
}

/* Terminal Widget */
.terminal-wrapper {
    flex: 1;
    max-width: 50%;
    background: var(--terminal-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 400px;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dots { display: flex; gap: 8px; margin-right: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.close { background-color: #ff5f56; }
.dot.minimize { background-color: #ffbd2e; }
.dot.maximize { background-color: #27c93f; }

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #8892b0;
    flex: 1;
    text-align: center;
    margin-right: 50px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-y: hidden;
    min-height: 140px;
    height: 140px;
    flex: 1;
}

.t-prompt { color: var(--accent-cyan); font-weight: 600; }
.t-command { color: #ffffff; }
.t-sys { color: #8892b0; }
.t-success { color: #10b981; }
.t-srv { color: var(--accent-blue); font-weight: bold; }
.t-desc { color: #a1a1aa; padding-left: 1.5rem; margin-bottom: 1rem; display: block; }
.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: var(--accent-cyan);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.blink-text {
    animation: blink 1s step-end infinite;
}

/* Portfolio Carousel Section */
.portfolio-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
}
.section-title span {
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
}

.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }

.portfolio-card {
    flex: 0 0 360px;
    height: 420px;
    scroll-snap-align: center;
    position: relative;
    background: rgba(10, 15, 30, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}
.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
    background: rgba(10, 15, 30, 0.6);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.portfolio-card:hover .card-glow { opacity: 1; }

.card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sys-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

h1[data-i18n="hero-title"] {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.hero-highlight {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.portfolio-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sys-type {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.sys-desc {
    font-size: 1rem;
    color: #a1a1aa;
    line-height: 1.7;
    flex: 1;
}

.tech-stack { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; }
.tech-stack span {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #e2e8f0;
    transition: all 0.3s;
}
.portfolio-card:hover .tech-stack span {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.carousel-btn {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    z-index: 10;
}
.carousel-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
}


/* --- NEW SECTIONS --- */

/* Services Section (Server Racks) */
.services-section {
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    /* Removido el fondo opaco */
}
.server-room {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.server-blade {
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(30,41,59,0.8) 100%);
    border-left: 4px solid var(--accent-blue);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 2rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: crosshair;
}
.server-blade:hover {
    border-left-color: var(--accent-cyan);
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(6,182,212,0.1) 100%);
    box-shadow: 0 0 20px rgba(6,182,212,0.15), inset 0 0 20px rgba(0,0,0,0.5);
    transform: translateX(10px);
}
.blade-bg {
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 10s linear;
    z-index: 0;
    filter: brightness(0.2) sepia(1) hue-rotate(180deg) saturate(150%);
}
.server-blade:hover .blade-bg {
    opacity: 0.6;
    transform: scale(1.1) translate(2%, 2%);
}
.blade-leds, .blade-title, .blade-desc {
    position: relative;
    z-index: 1;
}
.blade-leds {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 8px;
}
.led { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.led.green { background: #10b981; box-shadow: 0 0 8px #10b981; }
.led.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.led.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.led.blink { animation: blinkLed 1.5s infinite; }
.led.blink-fast { animation: blinkLed 0.2s infinite; }
@keyframes blinkLed { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.blade-title {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.blade-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Stack Section (Tech Stack Marquee) */
.stack-section {
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(6,182,212,0.3); /* grid lines */
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(6,182,212,0.3);
    box-shadow: 0 0 40px rgba(6,182,212,0.1);
}
.matrix-item {
    background: rgba(3,7,18,0.95);
    padding: 4rem 2rem;
    text-align: center;
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    color: #e2e8f0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}
.matrix-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    font-weight: 700;
}
.matrix-item:hover {
    background: rgba(6,182,212,0.05);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    box-shadow: inset 0 0 30px rgba(6,182,212,0.1);
}

/* Ping Section (Contact Form) */
.ping-section {
    padding: 5rem 5% 10rem;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-panel {
    background: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
}
.seo-panel {
    padding: 1.5rem !important;
    position: sticky;
    top: 20px;
}
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.input-group label {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
}
.input-group input, .input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-cyan);
    box-shadow: 0 10px 10px -10px var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}
.submit-btn {
    align-self: flex-start;
    cursor: pointer;
    margin-top: 1rem;
}

/* Minimal Footer Typewriter */
.minimal-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 5% 4rem;
    text-align: center;
    background: transparent;
    pointer-events: none;
}
.footer-content p {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #8892b0;
    margin: 0.5rem 0;
    letter-spacing: 2px;
    min-height: 1.2rem;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .footer-content p {
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin: 0.3rem 0;
        padding: 0 10px;
    }
}
#footLine1 {
    color: #e2e8f0;
    font-weight: 600;
}
.footer-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--accent-cyan);
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-cyan);
    backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
    color: #fff;
}

.back-to-top svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* Blog Section */
.blog-section {
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto 0;
    max-width: 1400px;
}

.blog-card {
    background: transparent;
    border: none;
    padding: 0;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(1) hue-rotate(180deg) saturate(150%) brightness(0.7) contrast(1.2);
    transition: filter 0.4s ease, transform 0.6s ease;
}

.blog-card:hover .blog-img-wrapper {
    border-color: rgba(6, 182, 212, 1);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
}

.blog-card:hover .blog-img {
    filter: none;
    transform: scale(1.15);
    transition: filter 0.4s ease, transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-content {
    padding: 20px 5px;
    position: relative;
    z-index: 2;
    background: transparent;
    margin-top: 0;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.blog-card > * {
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateX(10px);
    background-color: rgba(25, 30, 36, 0.8);
    box-shadow: 0 5px 20px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blog-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.blog-cat {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: 600;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-author {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-author::before {
    content: "> auth: ";
    opacity: 0.5;
}

.blog-exc {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cyber-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
    margin: 60px 0;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8);
    position: relative;
}

.cyber-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 20px rgba(6, 182, 212, 1);
    border-radius: 5px;
}

.hamburger-menu {
    display: none;
}

@media (max-width: 1024px) {
    .carousel-btn { display: none; }
    .hero-split { flex-direction: column; margin-top: 2rem; justify-content: center; }
    .hero-text { max-width: 100%; flex: none; }
    .terminal-wrapper { max-width: 100%; flex: none; }
    .matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Responsive Header & Hamburger */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2000;
        padding: 10px;
    }
    .hamburger-menu .bar {
        width: 25px;
        height: 3px;
        background-color: #06b6d4;
        transition: 0.3s;
    }
    header nav {
        position: fixed;
        top: 0;
        right: 0;
        clip-path: inset(0 0 0 100%);
        pointer-events: none;
        width: 75vw;
        height: 100vh;
        background: rgba(10, 15, 25, 0.65);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid rgba(6, 182, 212, 0.2);
    }
    header nav.active {
        clip-path: inset(0 0 0 0);
        pointer-events: auto;
    }
    header nav a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    /* Layouts to 1 column */
    .matrix-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    
    /* Font sizing & spacing */
    .hero-text h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-text p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .section-title { font-size: 1.8rem; }

    /* Padding adjustments for glassmorphism */
    .glass-panel, .ping-section, .portfolio-section, .services-section, .blog-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-split { gap: 1rem; padding-top: 0; justify-content: center; }
    
    .terminal-header { padding: 0.5rem; }
    .terminal-wrapper { width: 100%; max-width: 100%; height: 350px; max-height: 350px; margin-top: 1rem; flex: none; }
    .terminal-body { padding: 1rem; font-size: 0.85rem; height: 280px; min-height: 280px; flex: none; }
}

/* Mobile Scroll Hover Effects */
.server-blade.force-hover {
    border-left-color: var(--accent-cyan);
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(6,182,212,0.1) 100%);
    box-shadow: 0 0 20px rgba(6,182,212,0.15), inset 0 0 20px rgba(0,0,0,0.5);
    transform: translateX(10px);
}
.server-blade.force-hover .blade-bg {
    opacity: 0.6;
    transform: scale(1.1) translate(2%, 2%);
}

.blog-card.force-hover {
    transform: translateY(-10px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}
.blog-card.force-hover .blog-img-wrapper {
    border-color: rgba(6, 182, 212, 0.4);
}
.blog-card.force-hover .blog-img {
    transform: scale(1.1);
    filter: grayscale(0%);
}
.blog-card.force-hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* =========================================
   STORE MOCKUP (WGET/MERCH)
   ========================================= */
body.store-active .bg-decoration,
body.store-active .bg-moving,
body.store-active #cyberFooter,
body.store-active #backToTop {
    display: none !important;
}

.view-section {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    z-index: 10;
}
.view-section.active {
    opacity: 1;
}

.store-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 15, 25, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    margin: 0 auto 2rem auto;
    max-width: 1335px; /* Alignment with store-layout inner width */
    width: calc(100% - 4rem);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(6, 182, 212, 0.05);
}
.store-search input {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #fff;
    padding: 0.5rem 1rem;
    font-family: 'Fira Code', monospace;
    border-radius: 4px;
    width: 250px;
}
.store-search input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.store-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.store-filter {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #fff;
    padding: 0.5rem;
    font-family: 'Fira Code', monospace;
    border-radius: 4px;
}
.store-filter option { background: #0f172a; }
.cart-btn {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s;
    border-radius: 4px;
}
.cart-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.store-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
}
.store-sidebar {
    padding: 1.5rem;
    height: fit-content;
    background: rgba(10, 15, 25, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
}
.store-sidebar h3 {
    color: var(--accent-cyan);
    font-family: 'Fira Code', monospace;
    margin-bottom: 1.5rem;
}
.store-sidebar p {
    margin-bottom: 1rem;
    font-family: 'Fira Code', monospace;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.3s;
}
.store-sidebar p:hover {
    color: var(--accent-cyan);
}
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.store-product {
    padding: 1rem;
    transition: all 0.3s;
}
.store-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}
.store-product .btn-cyber {
    display: block;
    margin-top: 1rem;
    background: transparent;
}

@media (max-width: 768px) {
    .store-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .store-sidebar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        overflow-x: auto !important;
        padding: 1rem 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .store-sidebar::-webkit-scrollbar { display: none; }
    .store-sidebar h3 { display: none !important; }
    .store-sidebar p {
        display: inline-block !important;
        flex: 0 0 auto !important;
        margin: 0;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.05);
        border-radius: 20px;
        border: 1px solid rgba(6, 182, 212, 0.2);
    }
    .store-topbar {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        border-radius: 8px;
    }
    .store-search input { width: 100%; }
    .store-actions { width: 100%; justify-content: space-between; }
    
    .portfolio-card { flex: 0 0 85vw; height: auto; min-height: 380px; }
}

/* =========================================
   ANTI-CLICK WAGGING HAND
   ========================================= */
.anti-click-hand {
    position: fixed;
    font-size: 60px;
    color: transparent;
    text-shadow: 0 0 0 var(--accent-cyan);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform-origin: bottom center;
    transition: opacity 0.2s;
    user-select: none;
    -webkit-user-select: none;
    transform: translate(-50%, -50%) rotate(0deg);
}

.anti-click-hand.active {
    opacity: 1;
    animation: waggle 0.3s ease-in-out infinite alternate;
}

@keyframes waggle {
    0% { transform: translate(-50%, -50%) rotate(-25deg) scale(1); }
    100% { transform: translate(-50%, -50%) rotate(25deg) scale(1.1); }
}

/* CMS Dashboard */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 120px);
    gap: 2rem;
    padding: 2rem 5%;
    align-items: stretch;
}
.dash-sidebar {
    width: 250px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: rgba(10, 15, 30, 0.8);
    border-right: 1px solid rgba(6, 182, 212, 0.2);
}
.dash-brand {
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    padding-bottom: 1rem;
    text-align: center;
}
.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dash-nav-item {
    padding: 0.8rem 1rem;
    color: #8892b0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash-nav-item:hover, .dash-nav-item.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-left: 3px solid var(--accent-cyan);
}
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dash-workspace {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.dash-input {
    width: 100%;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #fff;
    padding: 1rem;
    border-radius: 4px; /* More squared */
    font-family: 'Fira Code', monospace;
    transition: border-color 0.3s;
    margin-bottom: 1rem;
    line-height: 1.5; /* Better text vertical alignment */
}
textarea.dash-input {
    resize: vertical;
    padding: 1rem;
    display: block; /* Removes baseline spacing */
}
.dash-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.editor-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.editor-main {
    flex: 1;
}
.editor-sidebar {
    width: 100%;
}
.seo-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #8892b0;
}
.seo-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff0055; /* default bad */
}
.seo-indicator.good { background-color: #00ff88; }
.seo-indicator.ok { background-color: #ffaa00; }
.title-input { font-size: 1.2rem; font-weight: bold; }
@media (max-width: 768px) {
    .dashboard-layout { flex-direction: column; padding: 1rem; position: static; min-height: 100vh;}
    .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(6, 182, 212, 0.2); }
    .editor-layout { flex-direction: column; }
    .editor-sidebar { width: 100%; }
}

/* CMS Posts List */
.cms-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(10,15,30,0.4);
}
.cms-post-item:hover {
    background: rgba(10,15,30,0.8);
    border-color: var(--accent-cyan);
}
.cms-post-actions button {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.cms-post-actions button.del { border-color: #ff0055; color: #ff0055; margin-left: 10px;}

/* Quill Overrides */
.ql-toolbar.ql-snow { border: 1px solid rgba(6, 182, 212, 0.3) !important; background: rgba(10,15,30,0.9); }
.ql-container.ql-snow { border: none !important; font-family: 'Inter', sans-serif; font-size: 1rem;}
.ql-snow .ql-stroke { stroke: var(--accent-cyan) !important; }
.ql-snow .ql-fill { fill: var(--accent-cyan) !important; }
.ql-snow .ql-picker { color: var(--accent-cyan) !important; }

/* Public Blog Post Card */
.blog-card {
    border: 1px solid rgba(6,182,212,0.3);
    background: rgba(10,15,30,0.8);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-cyan); 
    box-shadow: 0 5px 15px rgba(6,182,212,0.2);
}
.blog-card-content { padding: 1.5rem; }
.blog-card-content h3 { margin-bottom: 0.5rem; color: #fff; }
.blog-card-content p { color: #8892b0; font-size: 0.9rem; }

/* New Blog Layout */
.blog-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}
.blog-main {
    flex: 1;
    min-width: 0;
    transition: all 0.4s ease;
}
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.sidebar-widget {
    padding: 1.5rem !important;
}
.sidebar-widget h3 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(6,182,212,0.3);
    padding-bottom: 0.5rem;
}
.sidebar-list {
    list-style: none;
    padding: 0;
}
.sidebar-list li {
    margin-bottom: 0.8rem;
}
.sidebar-list a {
    color: #a8b2d0;
    text-decoration: none;
    transition: color 0.2s;
    font-family: monospace;
}
.sidebar-list a:hover, .sidebar-list a.active {
    color: #00ff88;
}
.sidebar-latest-item {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
}
.sidebar-latest-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    filter: sepia(1) hue-rotate(180deg) saturate(150%) brightness(0.7);
}
.sidebar-latest-item:hover img {
    filter: none;
}
.sidebar-latest-item h4 {
    font-size: 0.9rem;
    color: #fff;
    margin: 0 0 5px 0;
    line-height: 1.2;
}
.sidebar-latest-item p {
    font-size: 0.75rem;
    color: #8892b0;
    margin: 0;
}
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column-reverse;
    }
    .blog-sidebar {
        width: 100%;
    }
}

/* Article View specific templates */
.cover, .article-template-hero img.cover { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    margin-bottom: 2rem;
    filter: sepia(1) hue-rotate(180deg) saturate(150%) brightness(0.7) contrast(1.2);
    border-radius: 8px;
    border: 1px solid rgba(6,182,212,0.3);
}

.article-template-minimalist {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 850px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}
.article-template-minimalist h1 { color: #fff; font-weight: 300; font-size: 3rem; text-align: center; margin-bottom: 2rem; }
.article-template-minimalist .article-content { color: #ccc; line-height: 1.8; font-size: 1.1rem; }

.article-template-terminal {
    background: #0a0f1e; 
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: 8px;
    padding: 3rem;
}
.article-template-terminal .article-content h1, .article-template-terminal .article-content h2, .article-template-terminal .article-content h3 { color: var(--accent-cyan); }
.article-template-terminal .article-content { color: #cbd5e1; font-family: 'Inter', sans-serif; }

.article-content { 
    line-height: 1.8; 
    color: #e2e8f0; 
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
.article-content h1, .article-content h2, .article-content h3 { color: var(--accent-cyan); margin-top: 2rem; margin-bottom: 1rem; text-align: left; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 2rem 0; }
.article-content pre, .article-content code {
    background: #050810;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    color: #00ff88;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.article-content pre {
    padding: 1rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(6,182,212,0.2);
}
.comment-item { margin-bottom: 1rem; padding: 10px; border-radius: 5px; background: rgba(0,0,0,0.2); }
.comment-author { color: var(--accent-cyan); font-weight: bold; margin-bottom: 5px; }
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(0,255,136,0.2); }
    50% { box-shadow: 0 0 20px rgba(0,255,136,0.6), inset 0 0 10px rgba(0,255,136,0.2); }
    100% { box-shadow: 0 0 5px rgba(0,255,136,0.2); }
}

.dash-input { margin-bottom: 15px; }

/* Editor Overrides */
.ql-editor code {
    background: #050810 !important;
    color: #00ff88 !important;
    padding: 2px 4px;
    border-radius: 4px;
}
.ql-editor pre {
    background: #050810 !important;
    color: #00ff88 !important;
    border: 1px solid rgba(6,182,212,0.2) !important;
    padding: 10px;
    border-radius: 4px;
}
