@font-face {
    font-family: 'JetBrains Mono';
    src: url('../Fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap; /* Prevents text from being invisible while loading */
}
* {
    color: #cdd9e5;
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: inherit; /* This forces all elements to use the light gray color */
}
:root {
    color-scheme: dark; /* Tells Chrome/Brave to use dark scrollbars and system colors */
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1117;
}
::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00f2ff;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}


body {
    background-color: #0d1117;
    color: #cdd9e5;
    background-image:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0, 242, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 30% at 80% 60%, rgba(255, 0, 85, 0.03) 0%, transparent 70%),
        radial-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}



/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 1.5rem;
    padding-top: 2rem;
}


h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: #8b949e; }

p { margin-bottom: 1rem; }
small { font-size: 0.85rem; color: #8b949e; }
strong { color: #ffffff; font-weight: 700; }
ul, ol, li {
    color: #cdd9e5 !important;
}
article ul li {
    color: #cdd9e5;
}
/* --- Navigation --- */
nav {
    width: 100%;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
}

/* --- Grid System --- */
.grid {
    display: grid !important; /* Force grid behavior */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

/* --- Article / Cards (Pico Structure) --- */
article {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    padding: 1.5rem;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

article header {
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: bold;
}

article footer {
    margin: auto -1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 0.75rem;
}

/* Ensure paragraph inside article takes up space to push footer down */
article > p {
    flex-grow: 1;
}

/* --- Interactive Elements --- */
a {
    color: #00f2ff;
    text-decoration: none;
    transition: 0.2s;
}

a:hover { filter: brightness(1.2); }

/* Buttons & Outline Styles */
a[role="button"], button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid #00f2ff;
    background: #00f2ff;
    color: #0d1117;
    transition: 0.2s;
}

a[role="button"].outline {
    background: transparent;
    color: #00f2ff;
}

a[role="button"]:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.3);
}

a[role="button"].outline:hover {
    background: #00f2ff;
    color: #0d1117;
}

/* --- Assets --- */
figure {
    margin: 0 0 1.25rem 0;
    overflow: hidden;
    border-radius: 4px;
}

figure img {
    width: 100%;
    display: block;
    object-fit: cover;
}

hr {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    margin: 3rem 0;
}

/* --- Misc --- */
hgroup { margin-bottom: 2rem; }
hgroup h1 { margin-bottom: 0.25rem; }
hgroup p { color: #8b949e; font-size: 1.2rem; }

progress {
    display: block;
    width: 100%;
    height: 8px;
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

progress::-webkit-progress-value { background: #00f2ff; border-radius: 10px; }
progress::-moz-progress-bar { background: #00f2ff; border-radius: 10px; }