:root {
    --bg-color: #121212;
    --neon-green: #17D694;
    --neon-green-dim: rgba(23, 214, 148, 0.4);
    --neon-green-glow: rgba(23, 214, 148, 0.8);
    --text-color: #ffffff;
    --card-bg: #15181c;
    --font-main: 'Quicksand', sans-serif;
}

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

/* Modern Dotted Cyber Grid & Interactive Mouse Glow */
.bg-grid-modern {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(23, 214, 148, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 214, 148, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Page Load Animation - Smooth Text Slide Down */
@keyframes smoothSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-anim {
    opacity: 0;
    animation: smoothSlideDown 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bg-grid-modern::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
}

#mouse-glow {
    position: fixed;
    width: 600px; height: 600px; /* Was 800px */
    background: radial-gradient(circle, rgba(23, 214, 148, 0.08) 0%, transparent 60%); /* Was 0.12 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9990; /* Adjusted z-index */
    transition: opacity 0.5s;
    opacity: 0;
}

.mobile-glow {
    animation: pulseMobileGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseMobileGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px; /* Adjusted for 70px header */
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    
    /* Disable ugly text selection highlighting */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* HIDE NATIVE CURSOR FOR PC */
    cursor: url('/assets/images/cursor.png') 0 0, auto; /* Global custom cursor */
}

/* Allow text selection inside input fields and textareas so forms still work! */
input, textarea, select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    cursor: text; /* Bring back cursor for inputs so typing is easy */
}

/* Prevent image dragging ghosts */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--neon-green);
    transition: 0.3s;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-green);
}

/* Typography & Neon text */
.neon-text.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green-dim), 0 0 10px var(--neon-green-dim);
}

.no-glow {
    text-shadow: none !important;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(23, 214, 148, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 214, 148, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--neon-green-dim);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    font-size: 16px;
}

.header-status-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), #fff, var(--neon-green), transparent);
    background-size: 200% 100%;
    animation: scan-line 2.5s linear infinite;
    box-shadow: 0 0 15px var(--neon-green), 0 0 5px #fff;
    opacity: 0.8;
}

@keyframes scan-line {
    0% { background-position: 200% 0; opacity: 0.6; }
    50% { opacity: 1; }
    100% { background-position: -200% 0; opacity: 0.6; }
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-links-left, .top-links-center, .top-links-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-links-center {
    margin-left: auto;
    margin-right: 25px;
}

.link-item {
    color: var(--neon-green);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.link-item i {
    font-size: 1.2rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-link { color: var(--neon-green); font-size: 15px; text-decoration: none; }
.logout-link { color: #ff4444; font-size: 15px; text-decoration: none; }

.lang-switcher select {
    background: #000;
    color: #fff;
    border: 1px solid var(--neon-green);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer; /* Specific for clickable elements */
    font-family: inherit;
    outline: none;
    font-size: 14px;
}
.lang-switcher select:focus {
    box-shadow: 0 0 8px var(--neon-green-dim);
}

/* Hero Section */
.hero-section {
    padding: 30px 0 60px;
}

.hero-logo {
    margin: 40px auto;
    max-width: 150px; /* Adjust according to logo size */
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.hero-logo img.no-glow-img {
    filter: none !important;
}

.quote {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.quote-author {
    color: #556b82;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Portfolio Grid */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 80px;
}

.card {
    background-color: var(--card-bg);
    border: 2px solid var(--neon-green);
    border-radius: 20px;
    padding: 40px 20px;
    width: calc(33.333% - 20px);
    min-width: 320px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px var(--neon-green-dim), inset 0 0 15px var(--neon-green-dim);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 0 30px var(--neon-green-glow), inset 0 0 20px var(--neon-green-glow);
    transform: translateY(-5px);
}

.card-wide {
    width: calc(50% - 15px);
    max-width: 500px;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glitch Effect */
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.card p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #ddd;
}

.btn-outline {
    border: 1px solid var(--neon-green);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px var(--neon-green-dim);
    transform: translateY(-2px);
}

.btn-solid {
    background-color: var(--neon-green);
    color: #000;
    border: none;
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.btn-solid:hover {
    box-shadow: 0 0 25px var(--neon-green);
    transform: translateY(-2px);
    background-color: #fff;
}

.btn-solid:disabled {
    background-color: #444;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

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

/* Contact Section & Nodes */
.contact-section {
    scroll-margin-top: 80px; /* Account for fixed header */
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

.contact-nodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.node-card {
    background: rgba(23, 214, 148, 0.02);
    border: 1px solid var(--neon-green-dim);
    padding: 30px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    text-decoration: none; /* Ensure no underline on link card */
}

/* Radar Ripple Effect on Hover */
.node-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(23, 214, 148, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.node-card:hover::before {
    animation: radar-ripple 0.6s ease-out 1 forwards;
}

@keyframes radar-ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 300%; height: 300%; opacity: 0; }
}

.node-card:hover {
    background: rgba(23, 214, 148, 0.1);
    border-color: var(--neon-green);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-green-dim);
}

/* Cyber Icon Style */
.cyber-flag {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 15px var(--neon-green-dim);
}

.cyber-flag i {
    transition: transform 0.2s ease;
}

.node-card:hover .cyber-flag i {
    text-shadow: 0 0 20px var(--neon-green);
}

@keyframes icon-bounce-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.node-info {
    z-index: 1;
    text-align: center;
}

.node-label {
    display: block;
    font-size: 0.75rem;
    color: var(--neon-green);
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.node-value {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px; /* Adjusted since meta is gone */
    transition: 0.3s;
}

.node-card:hover .node-value {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-dim);
}

@media (max-width: 768px) {
    .contact-nodes {
        grid-template-columns: 1fr;
    }
    .node-card {
        padding: 25px 15px;
    }
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Forms & Inputs */
.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row input, .form-row select, .form-row textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-green-dim);
    padding: 18px 20px;
    color: #fff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    backdrop-filter: blur(5px);
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-dim);
    background: rgba(0, 0, 0, 0.6);
}

.form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--neon-green);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Custom styling for select */
.form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317D694' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.btn-solid {
    background-color: var(--neon-green);
    color: #000;
    border: none;
    padding: 18px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-solid:hover {
    box-shadow: 0 0 20px var(--neon-green);
}

/* Footer */
.footer {
    position: relative;
    padding: 40px 0 100px;
    border-top: 1px solid rgba(23, 214, 148, 0.3);
    margin-top: 50px;
    overflow: hidden;
}

.footer-copy {
    color: var(--neon-green);
    font-size: 0.95rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.go-up {
    color: var(--neon-green);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    position: relative;
}

/* Footer Waves Overlay - Animated */
.footer-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%2317D694' d='M0,50 Q250,100 500,50 T1000,50 L1000,100 L0,100 Z'/%3E%3C/svg%3E") repeat-x;
    transform: translateX(0);
}

.wave1 {
    animation: moveWave 12s linear infinite;
    opacity: 0.3;
    background-size: 50% 100px;
    bottom: -10px;
}

.wave2 {
    animation: moveWave 20s linear infinite reverse;
    opacity: 0.2;
    background-size: 50% 120px;
    bottom: -15px;
}

.wave3 {
    animation: moveWave 30s linear infinite;
    opacity: 0.1;
    background-size: 50% 140px;
    bottom: -5px;
}

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

/* Responsive */
@media (max-width: 900px) {
    .card-wide { width: 100%; }
}

@media (max-width: 768px) {
    body { padding-top: 200px; } /* Increased for 3-row header */
    .top-bar-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    .top-links-left, .top-links-center, .top-links-right {
        justify-content: center;
        width: 100%;
        margin: 0;
        gap: 20px;
    }
    .top-links-left { order: 1; }
    .top-links-center { order: 2; }
    .top-links-right { order: 3; }
    
    .card { width: 100%; }
    .form-row { flex-direction: column; gap: 20px; }
    h1 { font-size: 1.8rem; }
    .subtitle { font-size: 1.2rem; }
}

/* Admin Specific UI */
.admin-card-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--neon-green-dim);
    backdrop-filter: blur(5px);
}

.admin-card-controls i {
    color: #fff;
    font-size: 1.1rem;
    transition: 0.3s;
}

.admin-card-controls i:hover { color: var(--neon-green); }
.admin-card-controls i.delete-btn:hover { color: #ff4444; }
.admin-card-controls i.drag-handle { cursor: grab; color: #aaa; }

.add-new-card { transition: 0.3s; }
.add-new-card:hover { background: rgba(23, 214, 148, 0.05); }

.company-logo {
    max-height: 70px; /* Limits height, preventing tall images from breaking layout */
    max-width: 80%; /* Limits width, preventing wide images from breaking layout */
    width: auto; /* Maintains aspect ratio */
    height: auto; /* Maintains aspect ratio */
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
    border-radius: 5px;
    object-fit: contain; /* Ensures the whole image is visible within constraints */
    /* Hardware acceleration for smoother scaling of large images */
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* Note Page Styles */
.note-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.note-item {
    margin-bottom: 0;
    position: relative;
}

.note-title {
    display: none; /* Hide title as user wants single text area */
    margin-bottom: 0;
}

.note-content {
    color: #17D694;
    font-family: "Quicksand", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    white-space: pre-line;
}

.note-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.note-divider::before, .note-divider::after {
    content: '';
    height: 1px;
    background: var(--neon-green);
    flex: 1;
    max-width: 300px;
    opacity: 0.5;
}

.note-divider i {
    margin: 0 20px;
    color: var(--neon-green);
    font-size: 1.5rem;
    transform: none; /* No rotation */
}

.admin-note-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0.5;
    transition: 0.3s;
}

.note-item:hover .admin-note-controls {
    opacity: 1;
}

.admin-note-controls i {
    color: #fff;
    transition: 0.3s;
}

.admin-note-controls i:hover {
    color: var(--neon-green);
}

.admin-note-controls i.delete-btn:hover {
    color: #ff4444;
}

/* Blog Content Styles */
.blog-inline-link {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 600;
    transition: 0.3s;
}

.blog-inline-link:hover {
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px var(--neon-green-dim);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 12px;
    border: 1px solid var(--neon-green-dim);
    background: #000;
}

.video-container iframe, 
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-inline-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--neon-green-dim);
}

.post-inline-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal Styles */
.modal-overlay {
    display: none; /* Flex when open */
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 10001; /* Above everything */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Code Block Styles - Blog View */
.code-block-wrapper {
    position: relative;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2); /* Very subtle background */
    border: 1px solid var(--neon-green-dim);
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.code-block-wrapper:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(23, 214, 148, 0.2);
}

.copy-to-clipboard {
    position: relative;
    cursor: pointer;
    display: block;
}

.copy-text {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--neon-green);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--neon-green-dim);
    pointer-events: none;
    z-index: 10;
    transition: 0.3s;
}

.code-block-wrapper:hover .copy-text {
    background: var(--neon-green);
    color: #000;
    border-color: #fff;
}

pre.code-block {
    margin: 0 !important;
    padding: 30px 25px !important;
    background: transparent !important; /* Fully transparent to show wrapper bg */
    font-size: 0.9rem !important;
    border: none !important;
    color: #f8f8f2;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-green-dim) transparent;
}

pre.code-block code {
    text-shadow: none !important;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Custom Scrollbar for Code Blocks - Fixing the "white bar" issue */
pre.code-block::-webkit-scrollbar {
    height: 6px;
}
pre.code-block::-webkit-scrollbar-track {
    background: transparent;
}
pre.code-block::-webkit-scrollbar-thumb {
    background: var(--neon-green-dim);
    border-radius: 10px;
}
pre.code-block::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}



.copy-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--neon-green);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 10;
    animation: fadeInOut 1.5s ease-in-out forwards;
    box-shadow: 0 0 20px var(--neon-green);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* Modal Styles */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--neon-green);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px var(--neon-green-dim);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer; /* Specific for clickable elements */
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--neon-green);
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #111; border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--neon-green-dim); border-radius: 4px; }
/* Modern Minimalist Blog Filters - Image 1 Style */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 0;
    position: relative;
    font-family: var(--font-main);
}

.filter-btn:hover {
    color: var(--neon-green);
}

.filter-btn.active {
    color: var(--neon-green);
    font-weight: 700;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
    border-radius: 3px 3px 0 0;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    width: 100%;
}

.blog-admin-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.blog-admin-bar .btn-solid, 
.blog-admin-bar .btn-outline {
    width: auto;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Blog Card Design - Simplified Style */
.blog-card {
    background-color: var(--card-bg);
    border: 1px solid var(--neon-green-dim);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 100%;
}

.blog-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 25px var(--neon-green-dim);
    transform: translateY(-8px);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Back to standard wide aspect ratio */
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 20px 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.blog-card-category {
    font-size: 0.7rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
    display: block;
    opacity: 0.8;
}

.blog-card-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

.blog-card:hover .blog-card-title {
    color: var(--neon-green);
}

.blog-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.blog-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.blog-card:hover .blog-read-more {
    gap: 12px;
}

/* Admin Specific UI for Blog */
.admin-blog-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
    opacity: 1; /* Fixed visibility */
}

.admin-blog-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--neon-green-dim);
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.admin-blog-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px var(--neon-green);
}