/* Active portfolio; the existing navigation styles remain in style.css. */
body{background:#1b2a3a url('./Background.jpg') no-repeat center center fixed;background-size:cover;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding-bottom:0}
.header,.footer{flex-shrink:0}
.footer{position:static;margin-top:auto}
.footer.entrance{animation:none;opacity:1;transform:none}
main.projects-main{display:block!important;width:min(1140px,calc(100% - 64px))!important;margin:0 auto!important;padding:54px 0 60px;flex:1;color:#f2f6f8}
.projects-main a{color:inherit;text-decoration:none}
.projects-main h2{font-size:57px;letter-spacing:-1.8px;line-height:1.08}
.projects-main p{font-size:18px;line-height:1.6;color:#c3d5df}
.projects-main .p-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:36px;margin-bottom:34px;text-shadow:0 3px 18px #0006}
.projects-main .p-intro>p{max-width:380px;font-size:17px}
.projects-main .p-panel{background:var(--site-panel-bg,#142b39e8);border:1px solid var(--site-panel-border,#ffffff28);border-radius:20px;box-shadow:0 14px 40px #0002}
.projects-main .p-icon{width:48px;height:48px;color:#b7deef;flex-shrink:0}
.projects-main .p-arrow{font-size:24px;color:#b7deef;flex-shrink:0}
.projects-main a:focus-visible,.projects-main button:focus-visible,.project-dialog button:focus-visible{outline:3px solid #b7deef;outline-offset:4px}
.projects-main a:hover,.projects-main button:hover{filter:brightness(1.1)}
.portfolio-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;scroll-margin-top:24px}
.portfolio-card{overflow:hidden;min-width:0;position:relative;transition:transform .2s,border-color .2s}
.portfolio-card:hover{transform:translateY(-3px);border-color:#b7deef88}
.portfolio-art{height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;position:relative;background:#18313fe8;border-bottom:1px solid #ffffff20;padding:16px}
.portfolio-art .p-icon{width:62px;height:62px}
.portfolio-art strong{font-size:clamp(20px,1.9vw,27px);letter-spacing:-.6px;line-height:1.15;text-align:center}
.project-logo{display:block;width:80px;height:80px;object-fit:contain;border-radius:17px;box-shadow:0 6px 20px #0003;flex-shrink:0}
.portfolio-art.pdf{background:linear-gradient(140deg,#2c2b4de8,#142b39e8)}
.project-status{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #c5bbef66;border-radius:100px;padding:5px 8px;font-size:11px;color:#ded6ff;background:#20253de6;white-space:nowrap}
.portfolio-art small{letter-spacing:3px;font-size:11px;color:#bdd6e3;text-align:center}
.portfolio-art::before{content:'';position:absolute;width:160px;height:160px;right:-70px;top:-60px;border-radius:50%;border:1px solid #b7deef25;pointer-events:none}
.portfolio-art.buro{background:linear-gradient(140deg,#193c36e8,#102c35e8)}
.portfolio-art.online{background:linear-gradient(140deg,#25384ce8,#142b39e8)}
.portfolio-art.tr{background:linear-gradient(140deg,#3e3434e8,#142b39e8)}
.portfolio-art.eu{background:linear-gradient(140deg,#1e3d4ce8,#142b39e8)}
.portfolio-caption{padding:23px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.portfolio-caption>div{min-width:0}
.portfolio-caption h3{font-size:22px;line-height:1.2;overflow-wrap:anywhere}
.portfolio-caption p{font-size:14px;margin-top:6px}
.portfolio-bottom{margin-top:30px;padding-top:24px;border-top:1px solid #ffffff45;display:flex;align-items:stretch;gap:28px;text-shadow:0 2px 12px #000}
.portfolio-bottom a,.portfolio-bottom button{font:600 17px/1.4 Calibri,Arial,sans-serif;color:#f2f6f8;min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid #b7deef55;background:var(--site-panel-bg,#142b39e8);border-radius:11px;padding:12px 22px;cursor:pointer;text-align:center;box-shadow:0 6px 20px #0002;transition:background .2s,border-color .2s}
.portfolio-bottom a:hover,.portfolio-bottom button:hover{background:#234453;border-color:#b7deef99}
.portfolio-bottom button span{min-width:0;color:inherit}
.portfolio-bottom button svg{width:18px;height:18px;flex:0 0 18px}
.projects-main .p-intro,.portfolio-card,.portfolio-bottom{animation:projects-reveal .65s cubic-bezier(.22,1,.36,1) backwards}
.portfolio-card:nth-child(1){animation-delay:.12s}
.portfolio-card:nth-child(2){animation-delay:.20s}
.portfolio-card:nth-child(3){animation-delay:.28s}
.portfolio-card:nth-child(4){animation-delay:.36s}
.portfolio-card:nth-child(5){animation-delay:.44s}
.portfolio-bottom{animation-delay:.32s}
@keyframes projects-reveal{from{opacity:0;translate:0 14px;scale:.985}to{opacity:1;translate:0 0;scale:1}}
.project-dialog{position:fixed;inset:0;margin:auto;width:min(430px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:32px 28px;border:1px solid #ffffff28;border-radius:18px;background:#142b39;color:#f2f6f8;text-align:center;box-shadow:0 24px 80px #0007}
.project-dialog::backdrop{background:#061218b8;backdrop-filter:blur(5px)}
.project-dialog .dialog-symbol{color:#b7deef;font-size:32px;margin-bottom:16px}
.project-dialog h2{font-size:28px;margin-bottom:12px}
.project-dialog p{font-size:18px;line-height:1.6;color:#c3d5df;margin-bottom:24px}
.project-dialog button{min-height:44px;padding:10px 32px;border:1px solid #b7deef44;border-radius:9px;background:#236b8a;font-size:17px;cursor:pointer}
body:has(.project-dialog[open]){overflow:hidden}
.ideas-dialog{width:min(640px,calc(100% - 32px));max-height:min(760px,calc(100dvh - 40px));padding:0;text-align:left;overflow:hidden}
.ideas-dialog[open]{display:flex;flex-direction:column}
.ideas-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;border-bottom:1px solid #ffffff24;flex-shrink:0}
.ideas-label{display:block;color:#b7deef;font-size:11px;letter-spacing:2px;margin-bottom:8px}
.ideas-header h2{font-size:26px;line-height:1.2;margin:0}
.project-dialog .dialog-close{width:44px;height:44px;flex:0 0 44px;padding:0;background:#ffffff08;border-color:#ffffff28;border-radius:50%;font-size:28px;line-height:1}
.ideas-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 26px 24px;scrollbar-width:thin;scrollbar-color:#7195a8 #142b39}
.ideas-body:focus-visible{outline:2px solid #b7deef;outline-offset:-4px}
.youtube-ideas-list{list-style:decimal;padding-left:28px;margin:0}
.youtube-ideas-list li{padding:14px 0 14px 6px;border-bottom:1px solid #ffffff14;color:#e0edf4;font-size:17px;line-height:1.5;overflow-wrap:break-word}
.youtube-ideas-list li::marker{color:#8cb9d0;font-size:13px}
.youtube-ideas-list li:last-child{border-bottom:0}
@media(max-width:650px){.ideas-header{padding:20px;gap:12px}.ideas-header h2{font-size:23px}.ideas-body{padding:8px 20px 20px}.youtube-ideas-list li{font-size:16px}}
@media(max-width:1100px){
 main.projects-main{width:calc(100% - 40px)!important;padding-top:36px}
 .projects-main h2{font-size:46px}.projects-main .p-intro>p{max-width:300px}
 .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .portfolio-art{height:180px}
}
@media(max-width:650px){
 main.projects-main{width:calc(100% - 28px)!important;padding-top:28px;padding-bottom:32px}
 .projects-main h2{font-size:38px;letter-spacing:-1px}
 .projects-main .p-intro{display:block;margin-bottom:24px}
 .projects-main .p-intro>p{margin-top:16px;max-width:none;font-size:16px}
 .portfolio-grid{gap:14px}
 .portfolio-art{height:190px;padding:14px}
 .portfolio-art strong{font-size:23px}
 .portfolio-art small{font-size:9px;letter-spacing:1.5px}
 .portfolio-art .p-icon{width:45px;height:45px}
 .project-logo{width:62px;height:62px;border-radius:14px}
 .portfolio-caption{padding:18px 15px;align-items:flex-start}
 .portfolio-caption h3{font-size:19px}.portfolio-caption p{font-size:12px}
 .portfolio-caption .p-arrow{font-size:19px}
 .portfolio-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .portfolio-bottom a,.portfolio-bottom button{font-size:16px;min-height:64px;min-width:0;padding:12px 10px}
}
@media(max-width:359px){
 .portfolio-art strong{font-size:20px}
 .portfolio-caption{padding:16px 12px;gap:6px}
 .portfolio-caption h3{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.projects-main .p-intro,.portfolio-card,.portfolio-bottom{animation:none}.portfolio-card{transition:none}.portfolio-card:hover{transform:none}}
@media(min-width:651px){
 .projects-main .p-intro{flex-direction:column;align-items:flex-start;gap:12px}
 .projects-main .p-intro>p{max-width:none}
 .projects-main .p-intro>p br{display:none}
}
/* Keep the complete desktop portfolio visible without browser zoom. */
@media(min-width:1101px){
 main.projects-main{padding:clamp(20px,4dvh,38px) 0 28px}
 .projects-main h2{font-size:48px}
 .projects-main .p-intro{gap:10px;margin-bottom:24px}
 .portfolio-art{height:190px;gap:12px}
 .project-logo{width:72px;height:72px}
 .portfolio-art strong{font-size:23px}
 .portfolio-caption{padding:18px}
 .portfolio-caption h3{font-size:20px}
 .portfolio-caption p{font-size:13px}
 .portfolio-bottom{margin-top:22px;padding-top:18px}
 .portfolio-bottom button{min-height:44px;padding:10px 20px;font-size:16px}
}
@media(min-width:1101px) and (max-height:760px){
 main.projects-main{padding:18px 0 20px}
 .projects-main h2{font-size:40px}
 .projects-main .p-intro{gap:8px;margin-bottom:18px}
 .projects-main .p-intro>p{font-size:16px;line-height:1.5}
 .portfolio-art{height:155px;padding:12px;gap:9px}
 .project-logo{width:60px;height:60px;border-radius:14px}
 .portfolio-art .p-icon{width:50px;height:50px}
 .portfolio-art strong{font-size:20px}
 .portfolio-art small{font-size:10px;letter-spacing:2px}
 .portfolio-caption{padding:14px 16px}
 .portfolio-caption h3{font-size:18px}
 .portfolio-caption p{margin-top:4px}
 .portfolio-bottom{margin-top:18px;padding-top:14px}
}
@media(min-width:1101px) and (max-height:640px){
 main.projects-main{padding:14px 0 16px}
 .projects-main h2{font-size:36px}
 .portfolio-art{height:135px;gap:7px;padding:10px}
 .project-logo{width:52px;height:52px;border-radius:12px}
 .portfolio-art .p-icon{width:44px;height:44px}
 .portfolio-art strong{font-size:18px}
 .portfolio-caption{padding:12px 14px}
 .portfolio-caption p{font-size:12px}
 .portfolio-bottom{margin-top:14px;padding-top:12px}
}
/* Center the complete content group in the space between header and footer. */
main.projects-main{display:flex!important;flex-direction:column;flex-wrap:nowrap;justify-content:center;padding-block:clamp(14px,3dvh,24px)}
main.projects-main>.p-intro,main.projects-main>.portfolio-grid,main.projects-main>.portfolio-bottom{flex-shrink:0}
