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

/* ===== BODY ===== */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #0b0f14;
    color: #e6e6e6;
    line-height: 1.6;
}

/* Skip link (accessibility) */
.skip-link{
    position:absolute;
    left:-999px;
    top: 10px;
    z-index: 99999;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(0,255,162,0.6);
    color: #00ffa2;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.skip-link:focus{
    left: 14px;
    outline: none;
    box-shadow: 0 0 24px rgba(0,255,162,0.25);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
padding: 18px 32px;
max-width: 1200px;
margin: 0 auto;
    background: #11161d;
}

.navbar a {
    color: #00ffa2;
    text-decoration: none;
    margin-left: 20px;
}

.navbar a:hover {
    opacity: 0.7;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    color: #00ffa2;
}

/* ===== POSTS GRID ===== */
/* ===== POSTS GRID (FIXED CLEAN LAYOUT) ===== */
.posts {
    max-width: 1200px;           /* center content */
    margin: 0 auto;
    padding: 60px 20px;

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 🔥 3x3 desktop */
    gap: 32px;
}
/* tablet */
@media (max-width: 1000px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 600px) {
    .posts {
        grid-template-columns: 1fr;
    }
}


/* ===== CARD ===== */
/* ===== CARD ===== */
.card {
    background: #121821;
    padding: 22px;
    border-radius: 14px;

    display:flex;
    flex-direction:column;

    height:100%;          /* uniform height */
    
    text-decoration:none;
    color:white;

    border:1px solid #1f2733;
    transition:0.25s;
}

.card:hover{
    transform:translateY(-6px);
    border-color:#00ffa2;
    box-shadow:0 10px 25px rgba(0,255,162,0.15);
}
/* ===== CARD IMAGE ===== */
.card-img{
    transition:0.35s;
}

.card:hover .card-img{
    transform:scale(1.05);
}
.card-img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:14px;
}

/* content area */
.card-content{
    display:flex;
    flex-direction:column;
    flex:1;
}

/* description spacing */
.card-content p{
    flex-grow:1;
    margin-bottom:14px;
}



.card h3 {
    margin-bottom: 10px;
    color: #00ffa2;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    background: #00ffa2;
    color: black;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ===== POST PAGE ===== */
.post-container {
    max-width: 900px;
    margin: auto;
    padding: 60px 20px;
}

.post-container h1 {
    color: #00ffa2;
    margin-bottom: 20px;
}

.post-container img {
    max-width: 100%;
    margin: 25px 0;
}

pre {
    background: #121821;
    padding: 15px;
    overflow-x: auto;
    border-radius: 8px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px;
    background: #11161d;
    margin-top: 60px;
    font-size: 14px;
}


/* ================= NOTES IMAGE ================= */

.note-img {
    width: 100%;
    max-width: 700px;

    /* ⭐ IMPORTANT FIX */
    max-height: 420px;
    object-fit: contain;

    display: block;
    margin: 25px auto;

    border-radius: 10px;
    cursor: zoom-in;
    transition: 0.2s;
}

.note-img:hover {
    transform: scale(1.02);
}


/* ================= MODAL ================= */

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(6px);

    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,255,162,0.3);
    animation: zoomIn 0.2s ease;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}


/* ================= NOTES GRID LAYOUT ================= */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

/* individual image */
.note-img {
    width: 100%;
    height: 320px;          /* fixed clean preview height */
    object-fit: contain;    /* keep aspect ratio */
    background: #111;
    padding: 8px;
    border-radius: 10px;
    cursor: zoom-in;
    transition: 0.2s;
}

.note-img:hover {
    transform: scale(1.03);
}

/* mobile responsive */
@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;  /* stack */
    }

    .note-img {
        height: 240px;
    }
}

/* source text */
.img-source {
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 25px;
}


.card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
    font-size:12px;
    opacity:0.75;
}

/* last updated text */
.updated {
    font-size: 12px;          /* fixed size */
    font-weight: 600;

    padding: 6px 10px;
    border-radius: 8px;

    background: #161b22;      /* subtle card bg */
    color: #9aa0a6;

    border: 1px solid #222a35;

    white-space: nowrap;      /* prevent wrapping */
}


/* mobile */
@media (max-width:768px){
    .card-meta{
        font-size:11px;
        gap:8px;
        flex-wrap:wrap;
    }
}

/* ========= BASE ========= */

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    margin: 0;
    line-height: 1.7;
}

/* ========= NAV ========= */

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 16px 32px;
    background: #11161c;
    border-bottom: 1px solid #222;
}

.navbar a {
    color: #00ff88;
    text-decoration: none;
}

/* ========= POST ========= */

.post-container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

.post-title {
    font-size: 38px;
    margin-bottom: 10px;
}

.post-meta {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 30px;
}

.lead {
    font-size: 18px;
}

/* ========= CODE ========= */

pre {
    background: #161b22;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}

.code {
    color: #00ff88;
    font-family: monospace;
}

/* ========= HIGHLIGHT ========= */

.highlight {
    background: #112418;
    padding: 12px;
    border-left: 4px solid #00ff88;
}

/* ========= TAGS ========= */

.tags {
    margin-top: 40px;
}

.tag {
    display: inline-block;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(0,255,162,0.15);
    color: #00ffa2;
    margin: 4px 6px 0 0;
}


/* ========= MOBILE ========= */

@media(max-width:768px) {
    .post-title {
        font-size: 26px;
    }
}


/* ==============================
   CLEAN PRO CURSOR (Dot + Ring)
============================== */

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* small center dot */
.cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffb4;
    box-shadow: 0 0 8px #00ffb4;
}

/* smooth following circle */
.cursor-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #00ffb4;
    opacity: 0.6;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

/* grow on hover clickable items */
a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring {
    width: 42px;
    height: 42px;
    opacity: 1;
}


/* disable on mobile */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}



/* ================= PDF CENTER ================= */
/* ================= PDF PREVIEW ================= */

.pdf-section{
    margin: 30px auto 60px;
    text-align:center;
}

/* centered medium professional card */
.pdf-preview{
    width: 100%;
    height: 650px;
    border-radius: 14px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: white;
    display:block;
    margin: 0 auto;
    transition: .3s ease;
}

/* small hover lift effect */
.pdf-preview:hover{
    transform: translateY(-4px);
}

.pdf-actions{
    margin-top: 14px;
}

.pdf-download-btn{
    display:inline-block;
    padding:10px 20px;
    border-radius:8px;
    background:#111;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.pdf-download-btn:hover{
    transform:translateY(-2px);
}
