@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --panel: #111;
    --text: #dde7f0;
    --muted: #9aa4ad;
    --accent: #0ef6cc;
}

/* ===== base ===== */
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

/* ===== layout (10% each side) ===== */
.page {
    width: 70%;
    margin: 0 auto;
}

/* ===== full-width hr ===== */
hr {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border: none;
    height: 1px;
    background: #1a1a1a;
}

/* ===== fonts ===== */
.horyzen {
    font-family: 'horyzen', sans-serif;
}

.horyzenblue {
    font-family: 'horyzen', sans-serif;
    color: var(--accent)
}

.horyzenblueglow {
    font-family: 'horyzen', sans-serif;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent)
}

@font-face {
    font-family: 'horyzen';
    src: url('assets/fonts/horyzen/HoryzenMono-24.ttf');
}

/* ===== accent glow ===== */
.accent {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.accent-strong {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent);
}

/* ===== navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.logo img {
    width: 44px;
    transition: 0.25s;
}

.logo img:hover {
    filter: drop-shadow(0 0 14px var(--accent));
    transform: scale(1.06);
}

/* nav links */
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--muted);
    transition: 0.25s;
}

.nav-list a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.nav-list a.active {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent);
}

/* ===== blog cards ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.blog-card {
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(14, 246, 204, 0.15);
}

.blog-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 12px;
    font-size: 14px;
}

/* ===== modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-content {
    background: var(--panel);
    width: 60%;
    max-height: 80%;
    overflow: auto;
    padding: 20px;
    border-radius: 12px;
    position: relative;

    transform: scale(0.95);
    transition: transform 0.25s ease
}

.modal.show {
    opacity: 1;
}

/* X button */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
    background: #0a0a0a;
    color: #9aa4ad;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 1001;
}

.modal-close:hover {
    color: #0ef6cc;
    border-color: #0ef6cc;
    box-shadow: 0 0 12px #0ef6cc;
    transform: scale(1.05);
}

.modal-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;

}

.center {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block
}

.wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

input,
button {
    box-sizing: border-box;
    background-color:#2a2a2a;
    color: #dde7f0;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #444;
    border-radius: 12px 0 12px 0;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Default glow (focus/hover) */
input:focus,
button:hover {
    box-shadow: 0 0 6px 3px #0ef6cc;
}

/* Invalid email glow */
input:focus:invalid {
    box-shadow: 0 0 10px #ff2b2b;
    border-color: #ff2b2b;
}
