/* ===== Hybrid Premium Theme (Main) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    --bg-color: #050505;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #333333;
    --border-hover: #555555;
    --accent: #aed8d6;
    --accent-hover: #79c0cc;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Subtle Grid Background */
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    opacity: 0.8;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.logo-text {
    color: var(--text-primary);
}

.logo-role {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.main-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-primary);
}

/* Slot Machine */
.slot-machine-container {
    position: relative;
    overflow: hidden;
    height: 1.5em;
    display: inline-block;
    vertical-align: bottom;
}

.slot-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 12px;
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background: #d4d4d4;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: transparent;
}

/* Cards / Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-image-wrapper {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.02);
}

/* Tags & Tech */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.tech-icons {
    display: flex;
    gap: 0.5rem;
}

.tech-icons img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.card:hover .tech-icons img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 0.25rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--bg-color);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
    display: block;
    text-transform: uppercase;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-desc {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* Progress Rings */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
}

.progress-ring {
    width: 80px;
    height: 80px;
}

.progress-ring-circle-bg {
    fill: transparent;
    stroke: var(--glass-border);
    stroke-width: 6;
}

.progress-ring-circle {
    fill: transparent;
    stroke: var(--accent);
    stroke-width: 6;
    transition: stroke-dashoffset 1s ease;
}

.stat-info h4 {
    margin-bottom: 0.25rem;
}

.stat-info p {
    margin: 0;
    font-size: 0.85rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent);
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.filter-btn.dimmed {
    opacity: 0.3;
    pointer-events: none;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prose for content pages */
.prose {
    color: var(--text-secondary);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p, .prose ul, .prose ol {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
}

.prose a:hover {
    text-decoration-color: var(--accent);
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .site-header {
        height: auto;
        padding: 1rem 0;
    }
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
