:root {
    --neon-green: #00ff88;
    --neon-violet: #8a2be2;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(10, 10, 10, 0.6);
    --bg-card-hover: rgba(10, 10, 10, 0.8);
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --transition: all 0.3s ease;
    --radius: 12px;
}

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

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-light);
    line-height: 1.6;
}

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

body {
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

/* Header & Nav */
header {
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(5px);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--neon-green);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--neon-green), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 5px var(--neon-green)) drop-shadow(0 0 10px var(--neon-violet));
    }
    to {
        filter: drop-shadow(0 0 10px var(--neon-green)) drop-shadow(0 0 15px var(--neon-violet));
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-violet));
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

/* Posts Section */
.posts {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--neon-green);
    position: relative;
}

.posts h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--neon-green), var(--neon-violet));
    border-radius: 2px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 255, 136, 0.2);
}

.post-card h3 {
    flex-grow: 1;
    padding: 1.5rem;
    font-size: 1.25rem;
    margin: 0;
    color: var(--neon-green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card p {
    padding: 0 1.5rem 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

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

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero {
        padding: 4rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* ===== Article / post body (tema neon) ===== */
article {
    max-width: 780px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.37);
}
article h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--neon-green), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
article h2 { color: var(--neon-green); margin: 1.5rem 0 0.5rem; }
article h3 { color: var(--neon-violet); margin: 1.2rem 0 0.4rem; }
article p { color: var(--text-light); margin: 0.8rem 0; }
article code {
    background: rgba(0,255,136,0.12);
    color: var(--neon-green);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}
article a { color: var(--neon-green); }
@media (max-width: 480px){ article{ padding:1.2rem; margin:1rem;} }
