/* Core Variables */
:root {
    --bg-color: #16161b; /* Deep dark grey/black */
    --text-primary: #e2e8f0; /* Off-white */
    --text-secondary: #94a3b8; /* Muted grey */
    --accent-hover: #ffb7b2; /* Pastel Pink for hover */
    --accent-border: rgba(255, 255, 255, 0.1);
    
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hidden on screen, visible only in print */
.print-contact { display: none; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    
    /* Subtle glow around the edges of the viewport */
    box-shadow: inset 0 0 100px rgba(59, 130, 246, 0.1);
}

/* Canvas for interaction */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Let clicks pass through */
    z-index: 9999;
}

/* Layout Utilities */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10; /* Above the edge glow, below canvas */
}

.mt-4 { margin-top: 1.5rem; }

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-hover); /* Initial accent color to match reference style */
    margin-bottom: 0.5rem;
}

.site-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.toggle-btn {
    background: transparent;
    border: none !important;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    color: var(--accent-hover);
}

.toggle-btn .status {
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.toggle-btn:hover .status {
    color: var(--accent-hover);
}

.toggle-btn.off {
    opacity: 0.5;
}

.toggle-btn.off:hover {
    opacity: 1;
}

/* Accordion Container */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Accordion Headers */
.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1rem 0;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-mono);
    transition: var(--transition-fast);
}

.accordion-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.accordion-header:hover h2 {
    color: var(--accent-hover);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

/* Inner wrapper for padding to avoid jumping during height transition */
.content-inner {
    padding: 1rem 0 3rem 0;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-hover);
}

.project-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2a35;
}

/* Fallback colorful placeholders for thumbnails */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
}

.fading-days-thumb { background: linear-gradient(135deg, #a78bfa, #f472b6); }
.copymator-thumb { background: linear-gradient(135deg, #38bdf8, #818cf8); }
.medium-thumb { background: #fff; }

.project-details {
    flex-grow: 1;
}

.project-details h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    transition: color var(--transition-fast);
}

.project-link:hover .project-details h3 {
    color: var(--accent-hover);
}

.project-details p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.external-icon {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
}

.project-link:hover .external-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Text Lists (Links/Contact) */
.text-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-fast);
    width: fit-content;
}

.text-link:hover {
    color: var(--accent-hover);
}

.text-link.small-text {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* About Text */
.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .page-container {
        padding: 2rem 1.5rem;
    }
    
    .header {
        flex-direction: column;
    }
    
    .project-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-thumbnail {
        display: none; /* Hide thumbnails on very small screens to maintain minimalism */
    }
}

/* -----------------------------
   DIGITAL CV SPECIFIC STYLES
   ----------------------------- */

.cv-container {
    max-width: 800px;
    padding-bottom: 6rem;
}

.cv-section {
    margin-bottom: 3.5rem;
}

.cv-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-hover);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-border);
}

.cv-summary p {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.cv-summary p:last-child {
    margin-bottom: 0;
}

.cv-item {
    margin-bottom: 2.5rem;
}

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

.job-role-group {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--accent-border);
}

.job-role-group:last-child {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.job-company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.job-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.job-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent-hover);
    margin-bottom: 0.5rem;
}

.job-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

.cv-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.cv-list li {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.cv-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-hover);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-hover);
    transform: translateX(-5px);
}
