/* ============================================
   Tim Schipper — Portfolio 2026
   Dynamic, animated, dark premium theme
   ============================================ */

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

:root {
    --bg: #06080d;
    --bg-raised: rgba(14, 18, 28, 0.7);
    --bg-hover: rgba(24, 30, 48, 0.8);
    --text: #eef1f8;
    --text-dim: #7b8aa6;
    --accent: #00e59b;
    --accent-glow: rgba(0, 229, 155, 0.15);
    --secondary: #a78bfa;
    --secondary-glow: rgba(167, 139, 250, 0.12);
    --tertiary: #38bdf8;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 20px;
    --nav-h: 72px;
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   Animated Background
   ============================================ */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    will-change: transform;
}

.bg-orb--1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -10%;
    left: -10%;
    animation: orb-drift-1 20s ease-in-out infinite alternate;
}

.bg-orb--2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation: orb-drift-2 25s ease-in-out infinite alternate;
}

.bg-orb--3 {
    width: 350px;
    height: 350px;
    background: var(--tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-drift-3 18s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15vw, 20vh) scale(1.2); }
    100% { transform: translate(5vw, 40vh) scale(0.9); }
}

@keyframes orb-drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20vw, -15vh) scale(1.15); }
    100% { transform: translate(-10vw, -30vh) scale(0.85); }
}

@keyframes orb-drift-3 {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.15; }
    100% { transform: translate(-30%, -60%) scale(1.3); opacity: 0.3; }
}

/* Particle canvas */
#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 8, 13, 0.75);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    height: 56px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* Mobile nav toggle */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    padding: 0.5rem;
}

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

section {
    padding: 7rem 0;
    position: relative;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 4rem;
}

.hero-content { z-index: 2; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 229, 155, 0.2);
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    animation: fade-slide-up 0.8s ease-out both;
}

.hero-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    animation: fade-slide-up 0.8s 0.1s ease-out both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 540px;
    margin-bottom: 2.5rem;
    animation: fade-slide-up 0.8s 0.2s ease-out both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fade-slide-up 0.8s 0.3s ease-out both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #00c9ff);
    color: #030712;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 155, 0.3);
}

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

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

/* Profile Image */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fade-slide-up 0.8s 0.4s ease-out both;
}

.profile-frame {
    position: relative;
    width: 380px;
    height: 380px;
}

.profile-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--secondary), var(--tertiary), var(--accent));
    animation: spin-border 8s linear infinite;
}

@keyframes spin-border {
    to { transform: rotate(360deg); }
}

.profile-frame::after {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent), var(--secondary), var(--tertiary), var(--accent));
    filter: blur(50px);
    opacity: 0.3;
    animation: spin-border 8s linear infinite, pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.15; }
    100% { opacity: 0.35; }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    position: relative;
    z-index: 2;
}

/* Floating tech icons around profile */
.floating-icons {
    position: absolute;
    inset: -40px;
    z-index: 3;
}

.floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.floating-icon:nth-child(1) { top: 5%; left: -5%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 15%; right: -8%; animation-delay: 1s; }
.floating-icon:nth-child(3) { bottom: 15%; left: -10%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 5%; right: -5%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 50%; left: -15%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   Section Titles
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
}

.section-title .highlight {
    color: var(--accent);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    top: 1.5rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow);
}

.timeline-card {
    background: var(--bg-raised);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-card {
    transform: translateX(8px);
    background: var(--bg-hover);
    border-color: rgba(0, 229, 155, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.timeline-role h3 {
    font-size: 1.2rem;
    color: #fff;
}

.timeline-role span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.timeline-badge {
    flex-shrink: 0;
    background: rgba(0, 229, 155, 0.08);
    color: var(--accent);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.timeline-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* ============================================
   Skills
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skill-group h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group h3 .icon {
    width: 28px;
    height: 28px;
    background: var(--accent-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s;
    cursor: default;
}

.skill-tag svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.skill-tag:hover svg {
    opacity: 1;
    transform: scale(1.15);
}

/* ============================================
   Certifications
   ============================================ */
.certs-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cert-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    text-align: center;
    transition: all 0.3s;
    min-width: 260px;
    backdrop-filter: blur(12px);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cert-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--secondary-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.cert-card p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ============================================
   GlyphFall Ecosystem
   ============================================ */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.eco-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.eco-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.eco-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--border);
    transition: transform 0.6s;
}

.eco-card:hover .eco-card__img {
    transform: scale(1.03);
}

.eco-card__body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eco-card__body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.eco-card__body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: auto;
    line-height: 1.6;
}

.eco-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    transition: gap 0.3s;
}

.eco-card:hover .eco-card__link {
    gap: 0.85rem;
}

.eco-card--theme .eco-card__link { color: var(--secondary); }
.eco-card--site .eco-card__link { color: var(--tertiary); }

/* ============================================
   Footer
   ============================================ */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-display);
}

footer a {
    color: var(--accent);
    transition: opacity 0.3s;
}
footer a:hover { opacity: 0.8; }

.mobile-break { display: none; }
@media (max-width: 768px) { .mobile-break { display: block; } }

/* ============================================
   Scroll Animations
   ============================================ */
@keyframes fade-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Counter Animation
   ============================================ */
.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    animation: fade-slide-up 0.8s 0.5s ease-out both;
}

.stat {
    text-align: left;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat__label {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .stats-row { justify-content: center; }
    .hero-visual { order: -1; }
    .profile-frame { width: 280px; height: 280px; }
    .eco-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --nav-h: 60px; }

    section { padding: 5rem 0; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(6, 8, 13, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1.25rem;
    }
    .nav-hamburger { display: block; }

    .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .profile-frame { width: 220px; height: 220px; }
    .floating-icons { display: none; }

    .stats-row { gap: 1.5rem; }
    .stat__number { font-size: 1.8rem; }

    .timeline::before { left: 22px; }
    .timeline-item { padding-left: 55px; }
    .timeline-dot { left: 15px; }
    .timeline-top { flex-direction: column; }
    .timeline-card { padding: 1.25rem 1.5rem; }

    .certs-row { flex-direction: column; align-items: center; }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #000 !important;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
        background: #fff !important;
    }

    .bg-effects, #particles, nav, .lang-toggle,
    .hero-visual, .floating-icons, .btn,
    .eco-card__img, footer { display: none !important; }

    section { padding: 1rem 0; min-height: auto; page-break-inside: avoid; }

    .container { max-width: 100%; padding: 0; }

    .hero {
        display: block;
        min-height: auto;
        padding-top: 0;
        text-align: left;
    }

    .hero h1 { font-size: 24pt; margin-bottom: 0.5rem; }
    .hero-tag { border: 1px solid #ccc; padding: 0.2rem 0.6rem; font-size: 9pt; margin-bottom: 0.5rem; }
    .hero-subtitle { font-size: 10pt; max-width: 100%; }
    .stats-row { gap: 2rem; margin-top: 0.5rem; }
    .stat__number { font-size: 14pt; }
    .stat__label { font-size: 8pt; }

    .section-title { font-size: 16pt; }
    .section-label { font-size: 8pt; }
    .section-header { margin-bottom: 1rem; }

    .timeline::before { display: none; }
    .timeline-item { padding-left: 0; margin-bottom: 0.75rem; }
    .timeline-dot { display: none; }
    .timeline-card {
        border: 1px solid #ddd !important;
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
    }
    .timeline-role h3 { font-size: 11pt; }
    .timeline-badge { border: 1px solid #aaa; font-size: 8pt; }
    .timeline-desc { font-size: 9pt; }

    .skills-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .skill-tag {
        border: 1px solid #ccc !important;
        font-size: 9pt;
        padding: 0.25rem 0.6rem;
    }
    .skill-tag svg { display: none; }

    .cert-card { border: 1px solid #ddd !important; padding: 0.5rem; min-width: auto; }
    .cert-icon { display: none; }

    .eco-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
    .eco-card { border: 1px solid #ddd !important; }
    .eco-card__body { padding: 0.5rem; }
    .eco-card__body h3 { font-size: 10pt; }
    .eco-card__body p { font-size: 8pt; }

    .reveal { opacity: 1 !important; transform: none !important; }

    a[href]::after { content: none !important; }
}
