/* ==========================================================================
   CSS Reset - Clean slate, no fluff
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   Base Styles - Foundation of the feast
   ========================================================================== */
:root {
    font-size: 1rem;
}

body {
    font-family: 'Fira Code', monospace;
    background: #000;
    color: #f5f5f5;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

/* ==========================================================================
   Matrix Background - Galactic rain across all pages
   ========================================================================== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.matrix-binary {
    position: absolute;
    width: 1.25rem;
    color: rgba(0, 255, 255, 0.2);
    font-size: 1rem;
    text-align: center;
    animation: matrix-drop 5s infinite linear;
}
.matrix-binary::before {
    content: "1 0 1 0 1 0 1 0 1 0";
    display: block;
    animation: binary-flicker 0.5s infinite alternate;
}
.matrix-binary:nth-child(1) { left: 10%; animation-delay: 0s; }
.matrix-binary:nth-child(2) { left: 30%; animation-delay: 1s; }
.matrix-binary:nth-child(3) { left: 50%; animation-delay: 2s; }
.matrix-binary:nth-child(4) { left: 70%; animation-delay: 3s; }
.matrix-binary:nth-child(5) { left: 90%; animation-delay: 4s; }
@keyframes matrix-drop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}
@keyframes binary-flicker {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

/* ==========================================================================
   Navigation - The cosmic sidebar
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: -15.625rem;
    width: 15.625rem;
    height: 100%;
    background: #111;
    border-right: 0.125rem solid #0ff;
    transition: left 0.3s ease;
    z-index: 10;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
nav.open {
    left: 0;
}

.toggle {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.toggle span {
    width: 100%;
    height: 0.25rem;
    background: #0ff;
    border-radius: 0.25rem;
    position: absolute;
    transition: all 0.3s ease;
}
.toggle .top { top: 0.75rem; transform: translateY(-0.25rem) rotate(10deg); }
.toggle .middle { top: 1.375rem; }
.toggle .bottom { top: 2rem; transform: translateY(0.25rem) rotate(-10deg); }
.toggle.open span { background: #f0f; }
.toggle.open .top { top: 1.375rem; transform: rotate(45deg) scaleX(1.2); border-radius: 0.5rem 0.125rem 0.125rem 0.5rem; }
.toggle.open .middle { opacity: 0; }
.toggle.open .bottom { top: 1.375rem; transform: rotate(-45deg) scaleX(1.2); border-radius: 0.125rem 0.5rem 0.5rem 0.125rem; }

nav ul {
    list-style: none;
    margin: 5rem 0 0 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}
nav a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
nav a:hover, nav a:focus { color: #0ff; outline: none; }
nav a.active { color: #0ff; text-shadow: 0 0 0.3125rem #0ff; }
nav h3 { color: #f0f; margin: 1.25rem 0 0.625rem; font-size: 1.4rem; }
.nav-sub { margin-left: 1.25rem; }
.nav-bottom { margin-top: auto; }
.nav-spacer {
    margin: 0.625rem 0;
}
.nav-spacer hr {
    border: 0;
    border-top: 0.0625rem solid #0ff;
}

/* ==========================================================================
   Main Content - The galaxy of sections
   ========================================================================== */
main {
    padding: 0;
    transition: padding-left 0.3s ease;
    min-height: 100vh;
    z-index: 2;
}
main.shifted { padding-left: 18.125rem; }

section {
    min-height: 100vh;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
section.zoom-in { transform: scale(1.05); }

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #0ff;
    text-shadow: 0 0 0.625rem #0ff;
    margin: 0;
    z-index: 3;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 0.3125rem #fff;
    position: absolute;
    top: 2.5rem;
    width: 100%;
    max-width: 75rem;
    margin: 0;
    z-index: 3;
}
article h2 {
    position: static;
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
    width: auto;
    max-width: none;
    margin-bottom: 1.25rem;
}
#home h2 { position: static; color: #f0f; }

p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 37.5rem;
    z-index: 3;
}

.grid {
    display: grid;
    gap: 1.25rem;
    max-width: 75rem;
    margin: 0 auto;
}

.card {
    background: #111;
    padding: 1.25rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.card:hover, .card:focus {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0 0.9375rem #0ff;
    outline: none;
}

.fade-out {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Text Links - Neon threads in the prose
   ========================================================================== */
.text-link {
    color: #0ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.text-link:hover,
.text-link:focus {
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
    outline: none;
}

/* ==========================================================================
   Home Section - The cosmic welcome
   ========================================================================== */
#home {
    position: relative;
    justify-content: center;
    z-index: 2; /* Above matrix-bg */
}
#home .logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below content, above matrix-bg */
}
#home .logo {
    position: absolute;
    opacity: 0.5;
    border: 0.0625rem solid #0ff;
    background: rgba(0, 255, 255, 0.1);
    animation: rotunda 8s infinite linear;
}
#home .arch { width: 3.75rem; height: 3.75rem; top: 20%; left: 15%; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); animation-delay: 0s; }
#home .debian { width: 4.375rem; height: 4.375rem; top: 60%; left: 25%; clip-path: circle(50% at 50% 50%); animation-delay: 2s; }
#home .fedora { width: 3.125rem; height: 3.125rem; top: 30%; left: 70%; clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%); animation-delay: 4s; }
#home .windows { width: 3.4375rem; height: 3.4375rem; top: 70%; left: 50%; clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%, 25% 50%, 75% 50%, 100% 100%, 50% 100%, 50% 0%, 100% 0%); animation-delay: 6s; }
#home .macos { width: 4.0625rem; height: 4.0625rem; top: 40%; left: 85%; clip-path: circle(45% at 50% 50%); border-radius: 50%; animation-delay: 8s; }
@keyframes rotunda {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-1.25rem) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.cta-card {
    margin-top: 1.25rem;
    background: #111;
    padding: 0.9375rem 1.875rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    z-index: 3;
}
.cta-card:hover, .cta-card:focus {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0 0.9375rem #0ff;
    border-color: #f0f;
    outline: none;
}
.cta-link {
    color: #0ff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}
.cta-card:hover .cta-link, .cta-card:focus .cta-link {
    color: #f0f;
}
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
    margin-top: 0.625rem;
    max-width: 18.75rem;
    z-index: 3;
}
.mini-card {
    background: #111;
    padding: 0.5rem 0.9375rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}
.mini-card:hover, .mini-card:focus {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0 0.9375rem #0ff;
    border-color: #f0f;
    outline: none;
}
.mini-link {
    color: #0ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
}
.mini-card:hover .mini-link, .mini-card:focus .mini-link {
    color: #f0f;
}
.stats {
    margin-top: 1.875rem;
    display: flex;
    gap: 1.875rem;
    font-size: 1rem;
    color: #ccc;
    z-index: 3;
}

.ko-fi {
    margin-top: 1.875rem;
    z-index: 3;
}
.ko-fi-btn {
    color: #0ff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.625rem 1.25rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: all 0.3s ease;
}
.ko-fi-btn:hover, .ko-fi-btn:focus {
    background: #0ff;
    color: #111;
    box-shadow: 0 0 0.9375rem #0ff;
}

/* ==========================================================================
   About Section - The epic tale
   ========================================================================== */
#about {
    position: relative;
    padding: 2.5rem;
    z-index: 2; /* Above matrix-bg */
}
.about-content {
    position: relative;
    z-index: 3; /* Above section */
    width: 100%;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    transition: margin-left 0.3s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
main.shifted .about-content {
    margin-left: 15.625rem;
}
.about-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    margin: 0.9375rem 0;
    max-width: 75rem;
    text-align: left;
}

/* ==========================================================================
   Coverflow Galleries - The galactic showcase
   ========================================================================== */
.coverflow {
    position: relative;
    width: 100%;
    max-width: 75rem;
    height: clamp(30rem, 70vh, 44.6875rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}
.coverflow-container {
    position: relative;
    width: 100%;
    height: clamp(28.125rem, 65vh, 42.1875rem);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.coverflow-item {
    width: 100%;
    height: 100%;
    background: #111;
    border: 0.0625rem solid #0ff;
    transition: opacity 0.5s ease;
    position: absolute;
    opacity: 0;
}
.coverflow-item.active {
    opacity: 1;
    z-index: 5;
}
.coverflow-item img, .coverflow-item iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.coverflow-controls {
    width: 100%;
    max-width: 75rem;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    z-index: 6;
}
.coverflow-controls button {
    background: #111;
    border: 0.0625rem solid #f0f;
    color: #f0f;
    padding: 0.625rem 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}
.coverflow-controls button:hover, .coverflow-controls button:focus {
    background: #f0f;
    color: #111;
    outline: none;
}

/* ==========================================================================
   Section-Specific Grids - Custom constellations
   ========================================================================== */
#projects {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#projects h1 {
    margin-bottom: 1.25rem;
}
#projects .grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    justify-items: center;
    gap: 1.25rem;
    flex-grow: 1;
    align-content: center;
}
#projects .card {
    display: block;
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, #0ff 10%, #111 70%);
    animation: pulse 4s infinite ease-in-out;
    text-decoration: none;
}
#projects .card:hover {
    background: radial-gradient(circle, #f0f 10%, #111 70%);
    box-shadow: 0 0 1.25rem #f0f;
}
#projects .card:nth-child(1) { animation-delay: 0s; }
#projects .card:nth-child(2) { animation-delay: 1s; }
#projects .card:nth-child(3) { animation-delay: 2s; }
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0.625rem #0ff; }
    50% { transform: scale(1.05); box-shadow: 0 0 1.25rem #0ff; }
}
#ai .grid { grid-template-columns: repeat(2, 1fr); }
#ai .card:nth-child(1) { border-radius: 0 1.25rem 1.25rem 0; height: 12.5rem; }
#ai .card:nth-child(2) { border-radius: 1.25rem 0 0 1.25rem; height: 12.5rem; }

/* ==========================================================================
   Blog Styles - The epic chronicle
   ========================================================================== */
.blog-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: left;
}
.blog-posts {
    margin-top: 1.25rem;
}
.blog-preview {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-preview.hidden {
    display: none;
}
.blog-preview:hover, .blog-preview:focus {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0 0.9375rem #0ff;
    outline: none;
}
.blog-preview a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}
.blog-preview a:hover, .blog-preview a:focus {
    color: #0ff;
    text-shadow: 0 0 0.3125rem #0ff;
}
.blog-preview p {
    margin: 0.625rem 0 0;
    font-size: 1rem;
    color: #ccc;
}
.search-bar {
    width: 100%;
    max-width: 25rem;
    margin: 1.25rem auto;
    display: flex;
    gap: 0.625rem;
}
.search-bar input {
    flex: 1;
    padding: 0.625rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    color: #fff;
    font-family: 'Fira Code', monospace;
}
.search-bar button {
    padding: 0.625rem;
    background: #111;
    border: 0.0625rem solid #f0f;
    color: #f0f;
    border-radius: 0.3125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-bar button:hover, .search-bar button:focus {
    background: #f0f;
    color: #111;
    outline: none;
}
.no-results {
    display: none;
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
    font-size: 1.2rem;
    margin: 1.25rem 0;
    text-align: center;
}
.no-results.active {
    display: block;
}
.tags {
    margin-top: 0.625rem;
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.tag {
    background: #111;
    border: 0.0625rem solid #0ff;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.1875rem;
    font-size: 0.9rem;
    color: #0ff;
    text-shadow: 0 0 0.1875rem #0ff;
    transition: all 0.3s ease;
    cursor: pointer;
}
.tag:hover, .tag:focus {
    background: #0ff;
    color: #111;
    text-shadow: none;
}
.tag.active {
    background: #f0f;
    color: #111;
    border-color: #f0f;
}
.tag-cloud {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    text-align: center;
}
.tag-cloud span {
    margin: 0 0.625rem;
    font-size: 1rem;
    color: #0ff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tag-cloud span:hover, .tag-cloud span:focus {
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.pagination button {
    padding: 0.625rem 0.9375rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    color: #0ff;
    border-radius: 0.3125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination button:hover, .pagination button:focus {
    background: #0ff;
    color: #111;
    outline: none;
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination span {
    font-size: 1.2rem;
    color: #f5f5f5;
}
.post-date {
    display: block;
    font-size: 0.9rem;
    color: #0ff;
    margin: 0.3125rem 0;
    text-shadow: 0 0 0.1875rem #0ff;
}

/* ==========================================================================
   Article Styles - The epic tome
   ========================================================================== */
article {
    max-width: 75rem;
    margin: 0 auto;
    text-align: left;
}
.meta {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.article-tags {
    margin: 0.625rem 0 0.9375rem;
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
article p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    margin: 0.9375rem 0;
    max-width: 75rem;
}
article img {
    display: block;
    width: 100%;
    max-height: 31.25rem;
    aspect-ratio: 16 / 9;
    object-fit: fill;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    margin: 1.25rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
article img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 0.9375rem #0ff;
}
.share-buttons {
    display: flex;
    gap: 0.625rem;
    margin: 1.25rem 0;
}
.share-btn {
    position: relative;
    padding: 0.625rem 0.9375rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    color: #0ff;
    border-radius: 0.3125rem;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s ease;
}
.share-btn:hover, .share-btn:focus {
    background: #0ff;
    color: #111;
    outline: none;
}
.share-btn[data-share="twitter"] { border-color: #1da1f2; }
.share-btn[data-share="twitter"]:hover, .share-btn[data-share="twitter"]:focus { background: #1da1f2; }
.share-btn[data-share="email"] { border-color: #f0f; }
.share-btn[data-share="email"]:hover, .share-btn[data-share="email"]:focus { background: #f0f; }
.share-btn[data-share="copy"] { border-color: #0ff; }
.share-btn[data-share="copy"]:hover, .share-btn[data-share="copy"]:focus { background: #0ff; }
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    border: 0.0625rem solid #0ff;
    color: #0ff;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.1875rem;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
.copied-flash {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0ff;
    color: #111;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.1875rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.copied-flash.active { opacity: 1; }
.related-posts { margin: 2.5rem 0; }
.related-posts h2 {
    font-size: 1.5rem;
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
    margin-bottom: 1.25rem;
}
.related-grid { display: grid; gap: 1.25rem; }
.related-card {
    background: #111;
    padding: 1.25rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover, .related-card:focus {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0 0.9375rem #0ff;
    outline: none;
}
.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 1.25rem 0;
}
.nav-link {
    color: #0ff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.625rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: all 0.3s ease;
}
.nav-link:hover, .nav-link:focus {
    background: #0ff;
    color: #111;
    outline: none;
}
.nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.comments { margin: 2.5rem 0; }
.comments h2 {
    font-size: 1.5rem;
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
    margin-bottom: 1.25rem;
}
.comment-list { margin-bottom: 1.25rem; }
.comment {
    background: #111;
    padding: 0.9375rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    margin-bottom: 0.9375rem;
}
.comment p { margin: 0 0 0.3125rem; }
.comment span { font-size: 0.9rem; color: #ccc; }
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}
.comment-form textarea {
    padding: 0.625rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    color: #fff;
    font-family: 'Fira Code', monospace;
    resize: vertical;
    min-height: 6.25rem;
}
.comment-form button {
    padding: 0.625rem;
    background: #111;
    border: 0.0625rem solid #f0f;
    color: #f0f;
    border-radius: 0.3125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.comment-form button:hover, .comment-form button:focus {
    background: #f0f;
    color: #111;
    outline: none;
}

/* ==========================================================================
   Contact Styles - The neon comms hub
   ========================================================================== */
#contact {
    position: relative;
    padding: 5rem 2.5rem;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, #000 70%);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
}
.contact-card {
    background: rgba(17, 17, 17, 0.8);
    padding: 1.875rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.625rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover, .contact-card:focus {
    transform: scale(1.02);
    box-shadow: 0 0 1.25rem #0ff;
    border-color: #f0f;
    outline: none;
}
.socials p { margin-bottom: 1.25rem; font-size: 1.2rem; }
.socials a { color: #0ff; text-decoration: none; transition: color 0.3s ease; }
.socials a:hover, .socials a:focus { color: #f0f; }
.social-icons { display: flex; gap: 0.9375rem; justify-content: center; }
.social-icons a { width: 1.875rem; height: 1.875rem; display: inline-block; transition: filter 0.3s ease; }
.social-icons img { width: 100%; height: 100%; filter: invert(100%) brightness(100%) sepia(0%) saturate(0%) hue-rotate(0deg); }
.social-icons a:hover img, .social-icons a:focus img { filter: invert(50%) brightness(150%) sepia(100%) saturate(500%) hue-rotate(180deg); outline: none; }
.form-card { display: flex; flex-direction: column; align-items: center; }
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}
.contact-form input, .contact-form textarea {
    padding: 0.625rem;
    background: #111;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    color: #fff;
    font-family: 'Fira Code', monospace;
}
.contact-form textarea { resize: vertical; min-height: 6.25rem; }
.contact-form button {
    padding: 0.625rem;
    background: #111;
    border: 0.0625rem solid #f0f;
    color: #f0f;
    border-radius: 0.3125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form button:hover, .contact-form button:focus {
    background: #f0f;
    color: #111;
    outline: none;
}
.success { color: #0ff; text-shadow: 0 0 0.3125rem #0ff; font-size: 1.2rem; margin-bottom: 1.25rem; text-align: center; }
.error { color: #f0f; text-shadow: 0 0 0.3125rem #f0f; font-size: 1.2rem; margin-bottom: 1.25rem; text-align: center; }
footer { margin-top: 1.25rem; font-size: 0.9rem; color: #ccc; text-align: center; }

/* ==========================================================================
   Clock - The ticking star
   ========================================================================== */
.clock {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1rem;
    color: #0ff;
    text-shadow: 0 0 0.3125rem #0ff;
    z-index: 15;
    background: #111;
    padding: 0.3125rem 0.625rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    white-space: pre;
}

/* ==========================================================================
   Tools Section - The chaotic toolkit
   ========================================================================== */
#tools-section {
    position: relative;
    min-height: 100vh;
    padding: 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tool-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #0ff;
    text-shadow: 0 0 0.625rem #0ff;
    margin-bottom: 1.25rem;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.25rem;
    max-width: 75rem;
    margin: 0 auto;
}
.tool-card {
    background: #111;
    padding: 1.25rem;
    border: 0.0625rem solid #0ff;
    border-radius: 0.3125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.tool-card:hover, .tool-card:focus {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0 0.9375rem #0ff;
    outline: none;
}
.tool-name {
    font-size: 1.5rem;
    color: #f0f;
    text-shadow: 0 0 0.3125rem #f0f;
    margin-bottom: 0.625rem;
}
.tool-desc {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.9375rem;
}
.tool-testimonial {
    font-size: 0.9rem;
    color: #0ff;
    font-style: italic;
    margin-bottom: 0.625rem;
}
.tool-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0ff;
    color: #000;
    text-decoration: none;
    border-radius: 0.3125rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.tool-link:hover, .tool-link:focus {
    background: #f0f;
    color: #111;
    outline: none;
}
.tool-demo {
    margin-top: 1.25rem;
    width: 100%;
    max-width: 75rem;
}

/* ==========================================================================
   Footer - The cosmic anchor
   ========================================================================== */
footer {
    padding: 1rem;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}


/* ==========================================================================
   Mobile Responsiveness - The portable portal
   ========================================================================== */
@media (max-width: 48rem) {
    nav {
        width: 75%;
        left: -75%;
        padding: 1.5rem;
    }
    nav ul {
        gap: 1.5rem;
        padding-top: 4rem;
    }
    .nav-sub { margin-left: 1rem; }
    .toggle {
        width: 2.5rem;
        height: 2.5rem;
    }

    main {
        padding: 1.25rem;
        margin-top: 3.75rem;
    }
    main.shifted {
        padding: 1.25rem;
    }
    section {
        padding: 1.5rem;
    }

    #home .logos {
        display: none;
    }
    .mini-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1rem;
    }
    .mini-link {
        font-size: 1rem;
    }
    .stats {
        flex-direction: column;
        gap: 1rem;
        font-size: 1.1rem;
    }

    .about-content {
        padding: 1rem;
    }
    .about-content p {
        font-size: 1.1rem;
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    #projects .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    #projects .card {
        width: 10rem;
        height: 10rem;
        margin: 0 auto;
    }
    #ai .card {
        height: 10rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .coverflow {
        max-width: 100%;
        height: clamp(15rem, 50vh, 20rem);
        gap: 0.75rem;
    }
    .coverflow-container {
        height: clamp(13rem, 45vh, 18rem);
    }
    .coverflow-item iframe {
        max-height: 100%;
    }
    .coverflow-controls button {
        font-size: 1.2rem;
        padding: 0.5rem 0.75rem;
    }

    .search-bar {
        max-width: 100%;
    }
    .search-bar input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    .search-bar button {
        padding: 0.75rem;
    }
    .blog-preview a {
        font-size: 1.3rem;
    }
    .blog-preview p {
        font-size: 0.95rem;
    }
    .pagination {
        gap: 0.75rem;
    }
    .pagination button {
        padding: 0.5rem 0.75rem;
    }
    .pagination span {
        font-size: 1rem;
    }

    article img {
        max-height: 20rem;
        object-fit: cover;
    }
    article p {
        font-size: 1.1rem;
    }
    .share-buttons {
        justify-content: center;
    }
    .comment-form textarea {
        min-height: 8rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
    .social-icons {
        gap: 1.25rem;
    }
    .social-icons a {
        width: 2.25rem;
        height: 2.25rem;
    }

    .clock {
        font-size: 0.5rem;
        padding: 0.15625rem 0.3125rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}
