/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(0,212,255,0.3);
    --accent: #00d4ff;
    --accent2: #7c3aed;
    --accent-glow: rgba(0,212,255,0.15);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
    --gradient2: linear-gradient(135deg, #7c3aed, #ec4899);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-primary); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== CIRCUIT BOARD CANVAS BG ========== */
#circuitCanvas {
    position: fixed; z-index: 0; pointer-events: none;
    top: -15%; left: -10%; width: 120%; height: 130%;
    transform: perspective(1100px) rotateX(22deg) rotateZ(-1.5deg);
    transform-origin: 50% 55%;
}
.bg-glow {
    position: fixed; z-index: 0; pointer-events: none;
    width: 600px; height: 600px; border-radius: 50%;
    filter: blur(150px); opacity: 0.05;
}
.bg-glow-1 { top: -200px; right: -100px; background: var(--accent); }
.bg-glow-2 { bottom: -200px; left: -100px; background: var(--accent2); }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10,10,26,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 14px;
}
.logo-svg-icon {
    width: 44px; height: 44px;
    transition: filter 0.4s ease;
    animation: tron-pulse 4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 2px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 8px rgba(0, 212, 255, 0.35))
        drop-shadow(0 0 20px rgba(0, 212, 255, 0.12));
}
.logo-svg-text {
    width: 180px; height: 32px;
    transition: filter 0.4s ease;
    filter:
        drop-shadow(0 0 2px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 8px rgba(0, 212, 255, 0.35))
        drop-shadow(0 0 20px rgba(0, 212, 255, 0.12));
}
.logo:hover .logo-svg-icon,
.logo:hover .logo-svg-text {
    filter:
        drop-shadow(0 0 3px rgba(0, 212, 255, 1))
        drop-shadow(0 0 12px rgba(0, 212, 255, 0.6))
        drop-shadow(0 0 30px rgba(0, 212, 255, 0.2));
}
@keyframes tron-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 8px rgba(0, 212, 255, 0.35)) drop-shadow(0 0 20px rgba(0, 212, 255, 0.12));
    }
    50% {
        filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 10px rgba(0, 212, 255, 0.45)) drop-shadow(0 0 24px rgba(0, 212, 255, 0.15));
    }
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gradient);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 8px 20px !important; border-radius: 8px;
    background: var(--gradient) !important; color: #fff !important;
    font-weight: 600 !important; font-size: 0.85rem !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.nav-cta::after { display: none !important; }

.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ========== HERO ========== */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 50px;
    background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
    font-size: 0.8rem; font-weight: 500; color: var(--accent);
    margin-bottom: 24px; font-family: var(--mono);
}
.hero-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}
.hero h1 {
    font-size: 3.8rem; font-weight: 900; line-height: 1.1;
    letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero h1 .gradient, .section-title .gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 500px; margin-bottom: 36px; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px;
    background: var(--gradient); color: #fff;
    font-weight: 600; font-size: 0.95rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px;
    background: var(--bg-card); color: var(--text);
    font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: all 0.3s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.hero-visual {
    position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-terminal {
    width: 100%; max-width: 520px; background: #1a1a2e;
    border-radius: 16px; border: 1px solid var(--border);
    overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px; background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title { margin-left: 12px; font-size: 0.75rem; color: var(--text-dim); font-family: var(--mono); }
.terminal-body {
    padding: 24px; font-family: var(--mono); font-size: 0.85rem; line-height: 2;
    min-height: 320px;
}
.terminal-line { opacity: 0; animation: typeLine 0.5s forwards; }
.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.3s; }
.terminal-line:nth-child(4) { animation-delay: 1.8s; }
.terminal-line:nth-child(5) { animation-delay: 2.3s; }
.terminal-line:nth-child(6) { animation-delay: 2.8s; }
.terminal-line:nth-child(7) { animation-delay: 3.3s; }
.terminal-line:nth-child(8) { animation-delay: 3.8s; }
@keyframes typeLine { to { opacity: 1; } }
.t-prompt { color: #22c55e; }
.t-cmd { color: var(--accent); }
.t-flag { color: var(--accent2); }
.t-ok { color: #22c55e; }
.t-val { color: #f59e0b; }
.t-comment { color: var(--text-dim); }

/* floating badges around terminal */
.float-badge {
    position: absolute; display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px;
    background: rgba(15,15,42,0.9); border: 1px solid var(--border);
    backdrop-filter: blur(10px); font-size: 0.8rem; font-weight: 500;
    white-space: nowrap; z-index: 2;
    animation: floatBadge 4s ease-in-out infinite;
}
.float-badge i { font-size: 1rem; }
.float-badge.fb-1 { top: 10%; right: -30px; animation-delay: 0s; }
.float-badge.fb-2 { bottom: 20%; left: -40px; animation-delay: 1s; }
.float-badge.fb-3 { bottom: 5%; right: 10%; animation-delay: 2s; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); }
}

/* ========== STATS STRIP ========== */
.stats {
    position: relative; z-index: 1;
    padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}
.stats .container {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
.stat-item .stat-num {
    font-size: 2.5rem; font-weight: 900;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ========== SECTIONS COMMON ========== */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent);
    margin-bottom: 16px; font-family: var(--mono);
}
.section-label i { font-size: 0.7rem; }
.section-title {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 16px; line-height: 1.2;
}
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }

/* ========== SERVICES ========== */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    padding: 36px 28px; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--gradient); opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 20px;
}
.si-blue { background: rgba(0,212,255,0.1); color: var(--accent); }
.si-purple { background: rgba(124,58,237,0.1); color: var(--accent2); }
.si-green { background: rgba(34,197,94,0.1); color: #22c55e; }
.si-orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.si-pink { background: rgba(236,72,153,0.1); color: #ec4899; }
.si-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service-tag {
    padding: 4px 10px; border-radius: 6px; font-size: 0.72rem;
    background: rgba(255,255,255,0.05); color: var(--text-dim);
    font-family: var(--mono); font-weight: 500;
}

/* ========== TECH STACK ========== */
.tech-section { background: var(--bg-secondary); }
.tech-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.tech-card {
    padding: 28px 20px; border-radius: 14px; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.3s;
}
.tech-card:hover {
    border-color: var(--border-hover); transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.tech-card i { font-size: 2.2rem; margin-bottom: 14px; }
.tech-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.tech-card p { font-size: 0.8rem; color: var(--text-dim); }

/* ========== PROCESS ========== */
.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative;
}
.process-steps::before {
    content: ''; position: absolute; top: 40px; left: 12.5%;
    width: 75%; height: 2px; background: var(--border);
}
.process-step { text-align: center; position: relative; }
.step-num {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; font-family: var(--mono);
    background: var(--bg-card); border: 2px solid var(--border);
    position: relative; z-index: 2;
    transition: all 0.3s;
}
.process-step:hover .step-num {
    border-color: var(--accent); background: rgba(0,212,255,0.1);
    color: var(--accent);
}
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ========== WHY US ========== */
.why-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.why-features { display: flex; flex-direction: column; gap: 24px; }
.why-feature {
    display: flex; gap: 16px; padding: 20px; border-radius: 12px;
    border: 1px solid transparent; transition: all 0.3s;
}
.why-feature:hover { background: var(--bg-card); border-color: var(--border); }
.why-feature-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,212,255,0.1); color: var(--accent); font-size: 1.1rem;
}
.why-feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.why-feature p { font-size: 0.85rem; color: var(--text-muted); }

.why-visual {
    position: relative; padding: 40px;
}
.code-block {
    background: #1a1a2e; border-radius: 16px; border: 1px solid var(--border);
    padding: 24px 28px; font-family: var(--mono); font-size: 0.82rem;
    line-height: 2; overflow: hidden;
}
.code-block .line-num { color: var(--text-dim); user-select: none; margin-right: 16px; }
.code-block .keyword { color: var(--accent2); }
.code-block .string { color: #22c55e; }
.code-block .prop { color: var(--accent); }
.code-block .comment { color: var(--text-dim); font-style: italic; }

/* ========== CONTACT ========== */
.contact-section { background: var(--bg-secondary); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info { display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
}
.contact-item-icon {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,212,255,0.1); color: var(--accent); font-size: 1rem;
}
.contact-item-text h3 { font-size: 0.9rem; font-weight: 600; }
.contact-item-text p { font-size: 0.85rem; color: var(--text-muted); }

.contact-form-wrap {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    color: var(--text); font-family: var(--font); font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn-submit {
    width: 100%; padding: 14px; border-radius: 12px;
    background: var(--gradient); color: #fff;
    font-weight: 700; font-size: 0.95rem; border: none;
    cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
    margin-top: 16px; padding: 12px 16px; border-radius: 10px;
    font-size: 0.85rem; display: none;
}
.form-status.success { display: block; background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.form-status.error { display: block; background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* ========== FOOTER ========== */
.footer {
    position: relative; z-index: 1;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 0.9rem; color: var(--text-muted);
    margin-bottom: 10px; transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal span { font-size: 0.8rem; color: var(--text-dim); font-family: var(--mono); }

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========== WP NAV MENU ========== */
.nav-links ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: contents; }
.nav-links li a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    transition: color 0.3s; position: relative; text-decoration: none;
}
.nav-links li a:hover { color: var(--text); }
.nav-links li a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--gradient); transition: width 0.3s;
}
.nav-links li a:hover::after { width: 100%; }
.nav-links li.nav-cta a,
.nav-links li a.nav-cta {
    padding: 8px 20px !important; border-radius: 8px;
    background: var(--gradient) !important; color: #fff !important;
    font-weight: 600 !important; font-size: 0.85rem !important;
}
.nav-links li.nav-cta a::after { display: none !important; }

/* ========== PAGES & BLOG ========== */
.page-content, .single-post, .blog-archive {
    position: relative; z-index: 1;
    padding: 140px 0 100px;
    min-height: 100vh;
}
.page-header { margin-bottom: 48px; }
.page-title {
    font-size: 2.8rem; font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.2;
}
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Entry Content - WordPress editor output */
.entry-content h1 { font-size: 2.2rem; font-weight: 800; margin: 48px 0 16px; }
.entry-content h2 { font-size: 1.8rem; font-weight: 700; margin: 40px 0 14px; }
.entry-content h3 { font-size: 1.4rem; font-weight: 700; margin: 32px 0 12px; }
.entry-content h4 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 10px; }
.entry-content h5, .entry-content h6 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.entry-content p { color: var(--text-muted); margin-bottom: 1.5em; line-height: 1.8; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #4de8ff; }
.entry-content ul, .entry-content ol { color: var(--text-muted); padding-left: 24px; margin-bottom: 1.5em; line-height: 1.8; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
    border-left: 3px solid var(--accent); padding: 16px 24px; margin: 24px 0;
    background: rgba(255,255,255,0.03); border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--text-muted);
}
.entry-content pre {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px; overflow-x: auto;
    font-family: var(--mono); font-size: 0.85rem; margin-bottom: 1.5em;
}
.entry-content code {
    background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px;
    font-family: var(--mono); font-size: 0.9em;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content img { border-radius: 12px; margin: 24px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th, .entry-content td {
    padding: 12px 16px; border: 1px solid var(--border); text-align: left;
}
.entry-content th { background: rgba(255,255,255,0.05); font-weight: 600; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.entry-content .aligncenter { display: block; margin: 24px auto; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
    border-radius: 16px; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.3s;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.blog-card a { display: block; color: inherit; }
.blog-card-img { height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder {
    height: 220px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); color: var(--text-dim); font-size: 3rem;
}
.blog-card-body { padding: 24px; }
.blog-card-body h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.post-meta {
    font-size: 0.75rem; color: var(--text-dim); font-family: var(--mono);
    margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap;
}
.post-meta a { color: var(--text-dim); }
.read-more { font-size: 0.85rem; color: var(--accent); font-weight: 500; }

/* Single Post */
.post-header { margin-bottom: 48px; }
.post-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 24px; }
.post-thumbnail { margin-top: 32px; border-radius: 16px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tags .tag {
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
    background: rgba(255,255,255,0.05); color: var(--accent); border: 1px solid var(--border);
}
.post-tags .tag:hover { background: rgba(0, 212, 255, 0.1); border-color: var(--accent); }

/* Post Navigation */
.post-navigation {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
}
.post-nav-link {
    padding: 20px; border-radius: 12px; background: var(--bg-card);
    border: 1px solid var(--border); transition: all 0.3s;
}
.post-nav-link:hover { border-color: var(--border-hover); }
.post-nav-link span { font-size: 0.8rem; color: var(--text-dim); display: block; margin-bottom: 4px; }
.post-nav-link strong { font-size: 0.95rem; color: var(--text); }
.post-nav-next { text-align: right; }

/* Pagination */
.pagination { margin-top: 48px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination .page-numbers {
    padding: 8px 14px; border-radius: 8px; font-size: 0.9rem;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
}
.pagination .page-numbers.current { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); }
.pagination .page-numbers:hover { border-color: var(--border-hover); }

/* No Posts */
.no-posts { text-align: center; padding: 80px 0; color: var(--text-dim); }
.no-posts i { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ========== BLOCK PATTERNS IN ENTRY-CONTENT ========== */
.nopa-pattern-section { padding: 80px 0; position: relative; z-index: 1; }
.nopa-pattern-section > .container { background: rgba(10,10,26,0.7); border-radius: 16px; padding: 48px 40px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nopa-pattern-stats { margin: 0; }
.entry-content .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.entry-content .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 40px 32px; border: 1px solid var(--border); background: rgba(10,10,26,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; }
.entry-content .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; position: relative; }
.entry-content .why-features { margin-top: 32px; }
.entry-content .contact-details { margin-top: 32px; }
.entry-content .contact-section > .container { background: rgba(15,15,42,0.8); }
.entry-content .section-title { color: #fff; font-weight: 800; }
.entry-content h2 { color: var(--text); }
.entry-content h3 { color: var(--text); }

/* 404 */
.error-404 { display: flex; align-items: center; justify-content: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .float-badge { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .stats .container { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10,10,26,0.97); backdrop-filter: blur(20px);
        padding: 24px; gap: 16px; border-bottom: 1px solid var(--border);
    }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .services-grid, .entry-content .services-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr 1fr; }
    .process-steps, .entry-content .process-steps { grid-template-columns: 1fr; }
    .entry-content .stats { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .stats .container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .page-title { font-size: 2rem; }
    .post-title { font-size: 1.8rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }
    .page-content, .single-post, .blog-archive { padding: 120px 0 60px; }
    .nav-links.active ul { display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; margin: 0; }
    .nav-links.active li { display: block; }
}
