/*
 * Void Craft LLC — Main Stylesheet
 * The Beautiful Wrong, professional.
 *
 * Colors:
 *   --bg:        #0a0a0f   (near-black with blue undertone)
 *   --bg-alt:    #12121a   (card/section backgrounds)
 *   --bg-elevated:#1a1a26  (hover states, elevated cards)
 *   --text:      #e8e8ed   (primary text)
 *   --text-muted:#8888a0   (secondary text)
 *   --accent:    #e04848   (muted crimson — the wrong)
 *   --accent-dim:#8a3030   (crimson hover)
 *   --accent-violet:#7c4d8a (deep violet — from the void art)
 *   --border:    #2a2a3a   (subtle dividers)
 *   --glow:      rgba(124, 77, 138, 0.15) (violet glow)
 */

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0f;
    color: #e8e8ed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: #e04848;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e87070;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(224, 72, 72, 0.3);
    color: #fff;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================================
   Layout
   ============================================================ */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-desc {
    color: #8888a0;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    height: 64px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8e8ed !important;
    letter-spacing: -0.02em;
}

.site-tagline {
    font-size: 0.875rem;
    color: #8888a0;
    display: none;
}

/* Navigation */
.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.primary-menu a {
    color: #8888a0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.primary-menu a:hover {
    color: #e8e8ed;
}

.primary-menu .current-menu-item a {
    color: #e04848;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #e8e8ed;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(42, 42, 58, 0.5);
        padding: 1rem 2rem;
    }

    .main-navigation.active {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 15, 0.6) 100%),
        repeating-conic-gradient(rgba(0,0,0,0.02) 0.0001%, transparent 0.0002%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-ghost {
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e8e8ed 0%, #a0a0b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #8888a0;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #b0b0c0 0%, #9c80b0 50%, #8888a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #555570;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #555570, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none !important;
}

.btn-primary {
    background: #e04848;
    color: #fff !important;
}

.btn-primary:hover {
    background: #c03030;
    color: #fff !important;
    box-shadow: 0 0 40px rgba(124, 77, 138, 0.3), 0 0 60px rgba(224, 72, 72, 0.15);
}

.btn-outline {
    background: transparent;
    color: #e8e8ed !important;
    border: 1px solid #2a2a3a;
}

.btn-outline:hover {
    border-color: #e04848;
    color: #e04848 !important;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-ghost {
    background: transparent;
    color: #8888a0 !important;
    border: 1px solid #2a2a3a;
}

.btn-ghost:hover {
    border-color: #555570;
    color: #e8e8ed !important;
}

/* ============================================================
   Projects Grid
   ============================================================ */

.projects-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #7c4d8a;
    background: #1a1a26;
    box-shadow: 0 0 30px rgba(124, 77, 138, 0.08);
    transform: translateY(-2px);
}

.project-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0e0e16;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.status-active { background: rgba(72, 200, 120, 0.15); color: #48c878; }
.status-in-development { background: rgba(224, 180, 72, 0.15); color: #e0b448; }
.status-concept { background: rgba(136, 136, 160, 0.15); color: #8888a0; }
.status-shipped { background: rgba(72, 160, 224, 0.15); color: #48a0e0; }
.status-void { background: rgba(124, 77, 138, 0.15); color: #b088c8; }

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-title a {
    color: #e8e8ed;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: #e04848;
}

.project-tagline {
    color: #8888a0;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.project-excerpt {
    color: #6a6a80;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================================
   About Section
   ============================================================ */

.about-section {
    border-top: 1px solid #2a2a3a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: #b0b0c0;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555570;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e8e8ed;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-meta {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* ============================================================
   CTA Section
   ============================================================ */

.cta-section {
    text-align: center;
    border-top: 1px solid #2a2a3a;
    padding-bottom: 6rem;
}

.cta-title {
    margin-bottom: 0.75rem;
}

.cta-text {
    color: #8888a0;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ============================================================
   Single Project Page
   ============================================================ */

.single-project {
    padding-top: 96px;
    min-height: 80vh;
    position: relative;
}

.single-project-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(224, 72, 72, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(124, 77, 138, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.single-project-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #555570;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #e04848;
}

.single-project-meta {
    margin-bottom: 1rem;
}

.single-project-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.single-project-tagline {
    color: #8888a0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.single-project-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.single-project-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.single-project-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a3a;
}

.single-project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-project-body {
    color: #b0b0c0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.single-project-body p {
    margin-bottom: 1.25rem;
}

.single-project-body ul,
.single-project-body ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.single-project-body li {
    margin-bottom: 0.5rem;
}

.single-project-body b,
.single-project-body strong {
    color: #e8e8ed;
}

@media (max-width: 768px) {
    .single-project-title { font-size: 2rem; }
    .single-project-content { padding-bottom: 4rem; }
}

/* ============================================================
   Page Content (static pages)
   ============================================================ */

.page-content {
    padding-top: 96px; /* offset for fixed header */
    min-height: 60vh;
}

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

.page-title {
    margin-bottom: 2rem;
}

.page-body {
    color: #b0b0c0;
    line-height: 1.8;
}

.page-body p {
    margin-bottom: 1.25rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    border-top: 1px solid #2a2a3a;
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #555570;
    font-style: italic;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #555570;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-menu a:hover {
    color: #e8e8ed;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a3a;
}

.footer-bottom p {
    color: #3a3a50;
    font-size: 0.8rem;
}

/* ============================================================
   Posts / Blog fallback
   ============================================================ */

.entry-title {
    margin-bottom: 1rem;
}

.entry-title a {
    color: #e8e8ed;
}

.entry-title a:hover {
    color: #e04848;
}

.entry-summary {
    color: #8888a0;
    margin-bottom: 3rem;
}

/* ============================================================
   Animations
   ============================================================ */

.project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Utilities
   ============================================================ */

@media (max-width: 480px) {
    .section { padding: 3rem 1.25rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}
