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

:root {
    --bg:      #0e0e10;
    --surface: #1a1a1f;
    --border:  #2a2a30;
    --text:    #e0e0e0;
    --muted:   #888;
    --accent:  #7c9bf5;
    --radius:  8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.8;
}

/* === Layout === */
header, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 2rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: start;
}

main {
    max-width: 800px;
    min-width: 0;
}

/* === Nav === */
header {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
}
.logo span {
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}
nav ul a:hover {
    color: var(--text);
    opacity: 1;
}

/* === Sections === */
section {
    padding: 3rem 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.accent {
    color: var(--accent);
}

/* === Hero === */
#hero {
    padding: 5rem 0 3rem;
}

.hero-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
    background: #1e1e24;
    box-shadow: 0 0 8px rgba(124, 155, 245, 0.4), 0 0 20px rgba(192, 132, 252, 0.25), 0 0 32px rgba(244, 114, 182, 0.15);
    animation: avatar-glow 4s ease infinite;
}

@keyframes avatar-glow {
    0%   { border-color: var(--accent); box-shadow: 0 0 8px rgba(124, 155, 245, 0.4), 0 0 20px rgba(124, 155, 245, 0.2); }
    33%  { border-color: #c084fc; box-shadow: 0 0 8px rgba(192, 132, 252, 0.4), 0 0 20px rgba(192, 132, 252, 0.2); }
    66%  { border-color: #f472b6; box-shadow: 0 0 8px rgba(244, 114, 182, 0.4), 0 0 20px rgba(244, 114, 182, 0.2); }
    100% { border-color: var(--accent); box-shadow: 0 0 8px rgba(124, 155, 245, 0.4), 0 0 20px rgba(124, 155, 245, 0.2); }
}

.tagline {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* === Prompting Manifesto === */
.manifesto {
    text-align: center;
    padding: 4rem 0;
}

.manifesto blockquote {
    border: none;
    margin: 0;
}

.glow-text {
    background: linear-gradient(135deg, var(--accent), #c084fc, #f472b6, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

/* Manifesto-specific sizing */
.manifesto .glow-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.glow-text em {
    font-style: italic;
    -webkit-text-fill-color: transparent;
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.manifesto-sub {
    max-width: 550px;
    margin: 1.25rem auto 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === Projects === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s;
}
.project-card:hover {
    border-color: var(--accent);
}

.project-card p {
    color: var(--muted);
    font-size: 0.9rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags span {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.project-link {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* === Contact === */
#contact p {
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
}

.social-links a img {
    display: block;
    height: 28px;
    width: auto;
    transition: opacity 0.2s, transform 0.2s;
}

.social-links a:hover img {
    opacity: 0.8;
}

/* === Right Sidebar === */
#sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sidebar-section h3 {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.75rem;
    transition: color 0.2s, opacity 0.2s;
}

.sidebar-link:hover {
    opacity: 1;
}

.sidebar-link[href*="youtube"]:hover {
    color: #FF0000 !important;
}

.sidebar-link[href*="buymeacoffee"]:hover {
    color: #FFDD00 !important;
}

.sidebar-link img,
.sidebar-link svg {
    flex-shrink: 0;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.sidebar-link img {
    border-radius: 3px;
}

.sidebar-link:hover {
    opacity: 0.7;
}

.sidebar-link.partner-link {
    font-weight: 600;
}

/* === Footer === */
footer {
    padding: 3rem 0 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* === Mobile === */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    #sidebar {
        position: static;
        padding-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
}
