/* Portfolio - Stijn De Beuckeleer */

/* ===== Variables ===== */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #94a3b8;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --border-color: #334155;
    --success-color: #10b981;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    /* Category accent colors */
    --cat-bi: #f59e0b;
    --cat-iot: #10b981;
    --cat-web: #3b82f6;
    --cat-ai: #8b5cf6;
    --cat-school: #6366f1;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* ===== Typography ===== */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* ===== Project category accents ===== */
.card[data-category="bi"],
.project-card-rich[data-category="bi"] {
    border-left: 3px solid var(--cat-bi);
}

.card[data-category="iot"],
.project-card-rich[data-category="iot"] {
    border-left: 3px solid var(--cat-iot);
}

.card[data-category="web"],
.project-card-rich[data-category="web"] {
    border-left: 3px solid var(--cat-web);
}

.card[data-category="ai"],
.project-card-rich[data-category="ai"] {
    border-left: 3px solid var(--cat-ai);
}

.card[data-category="school"],
.project-card-rich[data-category="school"] {
    border-left: 3px solid var(--cat-school);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s, border-color 0.3s;
}

.navbar-dark {
    background: transparent;
    border-bottom-color: transparent;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav a:hover,
.navbar-dark .navbar-nav a.active {
    color: white;
}

.navbar-dark .navbar-toggle span {
    background: white;
}

.navbar-dark.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border-color);
}

.navbar-dark.scrolled .navbar-brand,
.navbar-dark.scrolled .navbar-nav a {
    color: var(--text-color);
}

.navbar-dark.scrolled .navbar-nav a:hover,
.navbar-dark.scrolled .navbar-nav a.active {
    color: var(--primary-color);
}

.navbar-dark.scrolled .navbar-toggle span {
    background: var(--text-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-color);
}

.navbar-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

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

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-nav li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}

.hero-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

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

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

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skill-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-color);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* ===== Info Table ===== */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    font-weight: 600;
    width: 30%;
    color: var(--text-light);
}

/* ===== Tags ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-primary {
    background: var(--primary-color);
    color: white;
}

.tag-skill {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.tag-skill i {
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: #cbd5e1;
}

.footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-text {
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== Page Header ===== */
.page-header {
    padding-top: 8rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    color: white;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ===== Content Sections ===== */
.content-section {
    padding: 3rem 0;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* ===== Project Cards ===== */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

.project-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin-bottom: 0.5rem;
}

.project-card p {
    flex: 1;
}

.project-card .tags {
    margin-top: 1rem;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 6rem;
    }

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

    .info-table th {
        width: 40%;
    }
}
