:root {
    /* Paleta kolorów: Ciemny techniczny z neonowym żółtym */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #ffcc00; /* Kolor obudowy multimetru */
    --display-bg: #2b3a2b;
    --display-text: #00ff00; /* Kolor cyfr LCD */
    --border-color: #333;
    
    /* Typografia */
    --font-main: 'Inter', sans-serif;
    --font-tech: 'Share Tech Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul { list-style: none; }

/* Header */
.site-header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.highlight { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
    background: radial-gradient(circle at top right, #2a2a2a 0%, var(--bg-dark) 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-tech);
}

.glitch-text {
    color: var(--accent);
    text-transform: uppercase;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent);
}

/* Multimeter Display Effect */
.multimeter-display {
    background: #000;
    border: 10px solid #333;
    border-radius: 10px;
    padding: 20px 40px;
    font-family: var(--font-tech);
    color: var(--text-muted);
    font-size: 4rem;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(135deg, #2b3a2b 0%, #1a251a 100%);
}

.multimeter-display .value {
    color: var(--text-muted); /* Wyłączony wygląd */
    text-shadow: none;
    transition: 0.1s;
}

.multimeter-display.active .value {
    color: var(--display-text); /* Włączony */
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.multimeter-display .unit {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Features Grid */
.features {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 2rem;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

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

.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

/* Articles List */
.articles {
    padding: 80px 0;
    background: #181818;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background: var(--bg-card);
    padding: 30px;
    border-left: 2px solid transparent;
    transition: 0.3s;
}

.blog-post:hover {
    border-left: 4px solid var(--accent);
    background: #252525;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: var(--font-tech);
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Footer */
footer {
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links {
        display: none; /* Tu można dodać JS toggle */
    }
    
    .multimeter-display {
        margin-top: 30px;
        justify-content: center;
    }
}