/* --- css/studio.css --- */
/* Concept minder-cv: showreel op Home, de knoppen, Diensten, de showreelkaart en -popup. */

/* ========================================= */
/* === HOME: showreel-loop op de achtergrond */
/* ========================================= */
/* Zodra de showreel er is, komt hier een stille <video> (loop) in plaats van het lichteffect. */
.profile-content { position: relative; z-index: 1; }
.home-reel { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity 0.6s ease; }
.home-reel-light {
    position: absolute; inset: -20%;
    background:
        radial-gradient(38% 32% at 22% 30%, rgba(211, 47, 47, 0.20), transparent 70%),
        radial-gradient(34% 30% at 78% 72%, rgba(255, 140, 60, 0.09), transparent 70%),
        radial-gradient(28% 24% at 62% 18%, rgba(255, 255, 255, 0.05), transparent 70%);
    animation: reel-drift 16s ease-in-out infinite alternate;
}
.home-reel-grain {
    position: absolute; inset: -10%; opacity: 0.16;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
    animation: reel-grain 0.5s steps(3) infinite;
}
@keyframes reel-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4%, -3%) scale(1.12); } }
@keyframes reel-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
.app-container.split-view .home-reel { opacity: 0.45; }

/* Profielpaneel in- en uitklappen: de inhoud houdt zijn breedte en vervaagt,
   zodat er niets samengeperst wordt (naar Portfolio en terug) */
@media (min-width: 769px) {
    .profile-content { transition: transform 0.6s ease, opacity 0.35s ease; }
    .app-container.split-view .profile-content,
    .app-container.full-view .profile-content { min-width: 350px; }
    .app-container.full-view .profile-content { opacity: 0; transition: transform 0.6s ease, opacity 0.18s ease; }
    .app-container.split-view .profile-content { transition: transform 0.6s ease, opacity 0.35s ease 0.25s; }
}

/* Project waar je vanuit de tijdlijn naartoe springt: licht even op */
.portfolio-card.is-target { animation: pf-target 2.4s ease; }
@keyframes pf-target {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); border-color: #333; }
    15%, 60% { box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.9), 0 10px 30px rgba(211, 47, 47, 0.35); border-color: var(--accent); }
}

/* KNOPPEN OP HOME */
.profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.profile-actions .cv-btn { margin-top: 0; }
.work-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px;
    border: 2px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 700; border-radius: 50px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; font-family: inherit; transition: all 0.3s ease;
}
.work-btn i { margin-right: 10px; font-size: 0.9em; }
.work-btn:hover { box-shadow: 0 5px 20px var(--accent-glow); transform: translateY(-2px); }
.reel-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 4px 8px;
    background: none; border: 0; color: var(--text-muted); font-family: inherit; font-size: 0.85rem;
    letter-spacing: 0.5px; cursor: pointer; transition: color 0.2s ease;
}
.reel-link i { color: var(--accent); font-size: 1.15rem; }
.reel-link:hover { color: #fff; }
.app-container.split-view .work-btn, .app-container.split-view .reel-link { display: none; }

/* ========================================= */
/* === DIENSTEN ============================ */
/* ========================================= */
/* Compact, zodat alles zoveel mogelijk op één scherm past: animatie en video naast elkaar
   (voorbeeldbeeld bovenin, breedbeeld), websites eronder over de volle breedte. De inhoud
   staat net zo dicht onder de titel als bij de tijdlijn. */
/* tabs met inhoud dicht onder de titel (Diensten, Portfolio), net als de tijdlijn */
.section-title.tab-head { margin-bottom: 14px; }
.svc-wrap { container-type: inline-size; }
.svc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.svc-card {
    background: var(--bg-card); border-radius: 12px; border-top: 3px solid var(--accent); padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.svc-card .svc-frame { order: -1; aspect-ratio: 21 / 9; }
.svc-card.fade-in-anim { animation-fill-mode: both; }
.svc-text h3 { font-size: 1.35rem; margin: 0 0 6px; font-weight: 800; color: #fff; }
.svc-text p { color: #bbb; font-size: 0.92rem; line-height: 1.55; margin: 0 0 12px; }
.svc-more {
    background: none; border: 0; border-bottom: 2px solid var(--accent); padding: 0 0 2px; color: #fff;
    font-family: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.svc-more:hover { color: var(--accent); }

.svc-frame { position: relative; aspect-ratio: 16 / 9; background: #0b0b0b; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.svc-frame-cap { position: absolute; left: 12px; bottom: 10px; font-size: 0.66rem; color: #777; letter-spacing: 1.5px; text-transform: uppercase; z-index: 2; }
.svc-floor { position: absolute; left: 12%; right: 12%; bottom: 24%; height: 1px; background: #3a3a3a; }
.svc-ball {
    position: absolute; left: 50%; bottom: 24%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
    background: var(--accent); transform-origin: 50% 100%; animation: svc-bounce 1.1s infinite; box-shadow: 0 0 14px var(--accent-glow);
}
.svc-shadow {
    position: absolute; left: 50%; bottom: calc(24% - 5px); width: 34px; height: 8px; margin-left: -17px; border-radius: 50%;
    background: rgba(211, 47, 47, 0.35); animation: svc-shadow 1.1s infinite;
}
@keyframes svc-bounce {
    0% { transform: translateY(var(--bounce, -80px)) scale(0.94, 1.06); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
    46% { transform: translateY(0) scale(1.06, 0.94); }
    50% { transform: translateY(0) scale(1.32, 0.68); }
    54% { transform: translateY(0) scale(1.06, 0.94); animation-timing-function: cubic-bezier(0, 0.4, 0.5, 1); }
    100% { transform: translateY(var(--bounce, -80px)) scale(0.94, 1.06); }
}
@keyframes svc-shadow { 0%, 100% { transform: scale(0.45); opacity: 0.4; } 50% { transform: scale(1.15); opacity: 1; } }

.svc-vf { background: radial-gradient(120% 90% at 30% 20%, #2a2a2a, #0b0b0b 70%); }
.svc-thirds {
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.12) calc(33.33% - 0.5px), rgba(255,255,255,0.12) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,0.12) calc(66.66% - 0.5px), rgba(255,255,255,0.12) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
        linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.12) calc(33.33% - 0.5px), rgba(255,255,255,0.12) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,0.12) calc(66.66% - 0.5px), rgba(255,255,255,0.12) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}
.svc-c { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255,255,255,0.7); }
.svc-c.c1 { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.svc-c.c2 { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.svc-c.c3 { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.svc-c.c4 { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.svc-rec { position: absolute; top: 14px; left: 36px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; color: #fff; }
.svc-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: reel-blink 1s steps(1) infinite; }
.svc-tc { position: absolute; bottom: 14px; right: 36px; font-size: 0.8rem; font-variant-numeric: tabular-nums; letter-spacing: 1px; color: rgba(255,255,255,0.85); }
.svc-vf .svc-frame-cap { display: none; }

.svc-second { border-top-color: #555; }
.svc-second .svc-text p { margin-bottom: 0; }
.svc-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc-client { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #fff; min-width: 0; }
.svc-client img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px;
    border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease;
}
a.svc-client:hover img { border-color: var(--accent); transform: translateY(-3px); }
.svc-client b { font-size: 0.9rem; line-height: 1.25; }
.svc-status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.svc-status.live { color: #7bc47f; }
.svc-status.soon { color: #e0a03a; }
.svc-workflow { margin-top: 18px; color: var(--text-muted); }

/* breed genoeg: twee kaarten naast elkaar, websites met de klanten ernaast */
@container (min-width: 640px) {
    .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-second { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 24px; }
}
/* telefoon en lage schermen: het voorbeeldbeeld als lage strook */
@media (max-width: 768px), (max-height: 720px) {
    .svc-card .svc-frame { aspect-ratio: 3 / 1; --bounce: -44px; }
    .svc-card .svc-floor { bottom: 18%; }
    .svc-card .svc-ball { bottom: 18%; }
    .svc-card .svc-shadow { bottom: calc(18% - 5px); }
    .svc-workflow { margin-top: 12px; }
}
@media (max-width: 768px) {
    .section-title.tab-head { margin-bottom: 10px; }
    .svc-card { padding: 16px; gap: 12px; }
    .svc-client b { font-size: 0.8rem; }
}

/* ========================================= */
/* === SHOWREEL: kaart in portfolio + popup  */
/* ========================================= */
.showreel-card { grid-column: 1 / -1; flex-direction: row; }
.showreel-card .portfolio-img { height: auto; aspect-ratio: 16 / 9; flex: 0 0 58%; }
.showreel-card .portfolio-info { justify-content: center; }
.showreel-card .portfolio-info h3 { font-size: 1.7rem; }
@media (max-width: 768px) {
    .showreel-card { flex-direction: column; }
    .showreel-card .portfolio-img { flex: none; width: 100%; }
}

.reel-modal {
    background: var(--bg-card); color: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 34px; width: min(560px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.reel-modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }
.reel-modal h2 { margin: 0 0 12px; font-size: 1.8rem; }
.reel-modal p { color: #bbb; line-height: 1.6; margin: 0; }
.reel-modal .close-btn { position: absolute; top: 14px; right: 18px; }
.reel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.reel-alt {
    display: inline-flex; align-items: center; padding: 12px 26px; border: 2px solid #555; border-radius: 50px;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    transition: border-color 0.3s ease;
}
.reel-alt:hover { border-color: var(--accent); }

/* ========================================= */
/* === MOBIEL: HOME PAST OP ÉÉN SCHERM ====== */
/* ========================================= */
@media (max-width: 768px) {
    #profile-panel {
        height: 100dvh !important; min-height: 0 !important; overflow: hidden !important;
        display: flex !important; flex-direction: column; justify-content: center;
        padding-top: 60px !important; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .profile-content { padding: 0 16px; }
    .profile-wrapper { width: clamp(92px, 19dvh, 150px); height: clamp(92px, 19dvh, 150px); margin-bottom: 1.8dvh; }
    .profile-name { font-size: clamp(1.45rem, 4.2dvh, 2rem); margin-bottom: 0.8dvh; }
    .profile-role { font-size: 0.82rem; letter-spacing: 1px; margin-bottom: 1.6dvh; }
    .profile-about { font-size: 0.88rem; line-height: 1.5; margin-bottom: 1.8dvh; }
    .profile-actions { gap: 8px; }
    .work-btn, .profile-actions .cv-btn { padding: 10px 16px; font-size: 0.72rem; letter-spacing: 0.6px; }
    .work-btn i, .profile-actions .cv-btn i { margin-right: 7px; }
    .reel-link { margin-top: 1.2dvh; font-size: 0.8rem; }
    .socials { margin-top: 1.2dvh !important; }
}
