
/* PROJECT MODAL + LIGHT THEME — 2026-10-14 */

/* theme toggle */
.header__inner{
  grid-template-columns:auto 1fr auto auto auto!important;
}
.color-theme-toggle{
  position:relative;
  width:42px;height:42px;
  display:grid;place-items:center;
  padding:0;border-radius:50%;
  border:1px solid rgba(102,203,255,.16);
  background:rgba(5,35,54,.66);
  color:#f5f9fc;
  cursor:pointer;
  overflow:hidden;
  flex:0 0 42px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 22px rgba(0,0,0,.12);
  transition:background .25s ease,border-color .25s ease,transform .2s ease,color .25s ease;
}
.color-theme-toggle:hover{transform:translateY(-1px);border-color:rgba(102,203,255,.30)}
.color-theme-toggle span{
  position:absolute;
  transition:opacity .24s ease,transform .32s cubic-bezier(.2,.8,.2,1);
}
.color-theme-toggle__sun{opacity:1;transform:translateY(0) rotate(0deg)}
.color-theme-toggle__moon{opacity:0;transform:translateY(18px) rotate(25deg)}
html[data-theme="light"] .color-theme-toggle__sun{opacity:0;transform:translateY(-18px) rotate(-25deg)}
html[data-theme="light"] .color-theme-toggle__moon{opacity:1;transform:translateY(0) rotate(0deg)}

/* clickable project cards */
button.project-card{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
button.ghost-button{
  appearance:none;
  -webkit-appearance:none;
  color:inherit;
  background:transparent;
  cursor:pointer;
  font:inherit;
}

/* modal */
.project-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  visibility:hidden;
  pointer-events:none;
}
.project-modal.is-open{
  visibility:visible;
  pointer-events:auto;
}
.project-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(1,13,22,.72);
  backdrop-filter:blur(14px) saturate(115%);
  -webkit-backdrop-filter:blur(14px) saturate(115%);
  opacity:0;
  transition:opacity .34s ease;
}
.project-modal.is-open .project-modal__backdrop{opacity:1}

.project-modal__dialog{
  position:relative;
  width:min(1120px,calc(100vw - 48px));
  max-height:min(790px,calc(100vh - 48px));
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(103,201,255,.18);
  border-radius:24px;
  background:
    radial-gradient(circle at 86% 8%,rgba(129,109,255,.10),transparent 24%),
    linear-gradient(145deg,rgba(5,31,48,.985),rgba(3,23,36,.995));
  color:#f5f9fc;
  box-shadow:0 50px 140px rgba(0,0,0,.56),inset 0 1px 0 rgba(255,255,255,.035);
  opacity:0;
  transform:translateY(34px) scale(.965);
  clip-path:inset(4% 3% 4% 3% round 28px);
  transition:
    opacity .28s ease,
    transform .46s cubic-bezier(.16,1,.3,1),
    clip-path .46s cubic-bezier(.16,1,.3,1);
}
.project-modal.is-open .project-modal__dialog{
  opacity:1;
  transform:none;
  clip-path:inset(0 round 24px);
}
.project-modal__dialog::before{
  content:"";
  position:absolute;left:4%;right:4%;top:0;height:1px;
  background:linear-gradient(90deg,transparent,#65cbff,#f25dad,transparent);
  opacity:.48;
}

.project-modal__header{
  flex:0 0 auto;
  display:flex;justify-content:space-between;align-items:center;
  padding:25px 27px 22px;
  border-bottom:1px solid rgba(103,201,255,.12);
}
.project-modal__eyebrow{
  display:block;
  color:#72d0ff;
  font:700 .58rem/1 var(--sans,'Onest',sans-serif);
  letter-spacing:.17em;
}
.project-modal__header h2{
  margin:8px 0 0;
  font:400 2rem/1 var(--serif,'Prata',serif);
}
.project-modal__close{
  width:45px;height:45px;border-radius:50%;
  border:1px solid rgba(103,201,255,.14);
  background:#082c43;color:#f5f9fc;
  cursor:pointer;font-size:1.7rem;line-height:1;
  transition:transform .25s ease,background .25s ease,border-color .25s ease;
}
.project-modal__close:hover{transform:rotate(90deg);background:#0a3550;border-color:rgba(103,201,255,.28)}

.project-modal__content{
  min-height:0;
  flex:1 1 auto;
  display:grid;
  grid-template-columns:390px minmax(0,1fr);
}
.project-modal__list{
  min-height:0;
  overflow:auto;
  border-right:1px solid rgba(103,201,255,.11);
  background:rgba(2,20,33,.24);
}
.project-modal__item{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:38px 1fr 26px;
  align-items:center;
  gap:13px;
  padding:19px 22px;
  border:0;
  border-bottom:1px solid rgba(103,201,255,.08);
  background:transparent;
  color:#f5f9fc;
  text-align:left;
  cursor:pointer;
  transition:background .22s ease,padding-left .28s ease;
}
.project-modal__item::before{
  content:"";
  position:absolute;left:0;top:12px;bottom:12px;width:2px;
  border-radius:2px;background:linear-gradient(#65cbff,#8a72ff,#f25dad);
  transform:scaleY(0);
  opacity:0;
  transition:.24s ease;
}
.project-modal__item:hover{background:rgba(103,201,255,.045);padding-left:26px}
.project-modal__item.is-active{background:rgba(102,203,255,.075)}
.project-modal__item.is-active::before{transform:scaleY(1);opacity:1}
.project-modal__item>span{color:#597b8e;font:600 .68rem/1 var(--sans,'Onest',sans-serif)}
.project-modal__item strong{display:block;font:600 .92rem/1.25 var(--sans,'Onest',sans-serif)}
.project-modal__item small{display:block;margin-top:5px;color:#718fa1;font-size:.68rem;line-height:1.25}
.project-modal__item b{color:#6ccaff;font-weight:400}

.project-modal__preview{
  min-width:0;
  min-height:0;
  overflow:auto;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
  padding:24px;
  gap:24px;
}
.project-modal__preview.is-changing .project-modal__media,
.project-modal__preview.is-changing .project-modal__details{
  opacity:0;
  transform:translateY(9px);
}
.project-modal__media,
.project-modal__details{
  transition:opacity .18s ease,transform .24s ease;
}
.project-modal__media{
  position:relative;
  min-height:400px;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(103,201,255,.12);
  background:#041d2d;
  box-shadow:0 24px 60px rgba(0,0,0,.22);
}
.project-modal__media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .55s cubic-bezier(.2,.8,.2,1);
}
.project-modal__preview:hover .project-modal__media img{transform:scale(1.018)}
.project-modal__media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(1,13,22,.03),rgba(1,13,22,.20));
  pointer-events:none;
}
.project-modal__status{
  position:absolute;z-index:3;left:14px;top:14px;
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(3,24,39,.72);
  color:#d7e7ef;
  font:700 .49rem/1 var(--sans,'Onest',sans-serif);
  letter-spacing:.09em;
  backdrop-filter:blur(9px);
}
.project-modal__media-shine{
  position:absolute;z-index:2;top:-50%;right:-28%;
  width:33%;height:180%;
  background:linear-gradient(110deg,transparent,rgba(255,255,255,.07),transparent);
  transform:rotate(19deg);
  animation:modalShine 5.5s ease-in-out infinite;
}
@keyframes modalShine{
  0%,55%{transform:translateX(160%) rotate(19deg)}
  78%,100%{transform:translateX(-450%) rotate(19deg)}
}

.project-modal__details{
  display:flex;flex-direction:column;
  padding:8px 4px 5px;
}
.project-modal__tags{display:flex;flex-wrap:wrap;gap:7px}
.project-modal__tags span{
  padding:6px 9px;border-radius:999px;
  background:rgba(102,203,255,.08);
  border:1px solid rgba(102,203,255,.10);
  color:#8fdcff;
  font:600 .58rem/1 var(--sans,'Onest',sans-serif);
}
.project-modal__details h3{
  margin:19px 0 0;
  font:400 clamp(1.8rem,3vw,2.8rem)/1.08 var(--serif,'Prata',serif);
}
.project-modal__details>p{
  margin:17px 0 0;
  color:#94adbc;
  font-size:.86rem;
  line-height:1.68;
}
.project-modal__facts{
  display:grid;grid-template-columns:1fr 1fr;
  margin-top:24px;padding-top:18px;
  border-top:1px solid rgba(103,201,255,.10);
  gap:20px;
}
.project-modal__facts small{display:block;color:#627f91;font-size:.6rem}
.project-modal__facts strong{display:block;margin-top:5px;font:600 .78rem/1.25 var(--sans,'Onest',sans-serif)}
.project-modal__open{
  margin-top:auto;
  display:flex;align-items:center;justify-content:space-between;
  min-height:50px;padding:0 17px;
  border-radius:13px;
  background:linear-gradient(135deg,#f25dad,#bc62d8 48%,#826fff);
  color:#fff;
  font:600 .82rem/1 var(--sans,'Onest',sans-serif);
  box-shadow:0 12px 30px rgba(242,93,173,.18);
}
.project-modal__open span{font-size:1rem}

.project-modal__footer{
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;
  padding:16px 27px;
  border-top:1px solid rgba(103,201,255,.11);
  color:#6f8ea0;
  font-size:.73rem;
}
.project-modal__footer a{color:#eaf5fb;font-weight:600}

/* ---------------- LIGHT THEME ---------------- */
html[data-theme="light"]{
  color-scheme:light;
  background:#f4f3ef;
}
html[data-theme="light"] body{
  color:#102633!important;
  background:
    radial-gradient(circle at 12% 5%,rgba(94,188,232,.12),transparent 25%),
    radial-gradient(circle at 87% 8%,rgba(220,102,174,.075),transparent 23%),
    linear-gradient(180deg,#f7f6f2 0%,#f2f4f4 52%,#f7f6f2 100%)!important;
}
html[data-theme="light"] body::before{opacity:.12!important}

/* header */
html[data-theme="light"] .header__inner{
  background:rgba(255,255,255,.78)!important;
  border-color:rgba(16,54,73,.12)!important;
  box-shadow:0 16px 45px rgba(31,62,78,.10),inset 0 1px 0 rgba(255,255,255,.84)!important;
}
html[data-theme="light"] .brand__copy strong,
html[data-theme="light"] .nav a{color:#102633!important}
html[data-theme="light"] .brand__copy small{color:#64808f!important}
html[data-theme="light"] .nav a:hover{color:#0f7daa!important}
html[data-theme="light"] .color-theme-toggle{
  background:rgba(255,255,255,.82);
  border-color:rgba(16,54,73,.12);
  color:#17384a;
  box-shadow:0 7px 20px rgba(31,62,78,.08);
}
html[data-theme="light"] .burger{
  background:#fff!important;border-color:rgba(16,54,73,.12)!important
}
html[data-theme="light"] .burger span{background:#17384a!important}

/* hero */
html[data-theme="light"] .hero{
  background:
    radial-gradient(circle at 78% 21%,rgba(94,190,232,.17),transparent 29%),
    radial-gradient(circle at 69% 69%,rgba(220,102,174,.09),transparent 23%),
    linear-gradient(135deg,#f8f8f4 0%,#eef4f5 56%,#e5f0f4 100%)!important;
  border-bottom-color:rgba(16,54,73,.08)!important;
}
html[data-theme="light"] .hero::before{
  background-image:
    linear-gradient(rgba(16,54,73,.032) 1px,transparent 1px),
    linear-gradient(90deg,rgba(16,54,73,.032) 1px,transparent 1px)!important;
}
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .micro-label{color:#137ead!important}
html[data-theme="light"] .hero h1{color:#102633!important;text-shadow:none!important}
html[data-theme="light"] .hero__lead{color:#58707d!important}
html[data-theme="light"] .showreel{color:#17384a!important}
html[data-theme="light"] .showreel b{
  background:rgba(255,255,255,.65)!important;
  border-color:rgba(17,126,173,.20)!important;color:#137ead!important
}
html[data-theme="light"] .showreel small,
html[data-theme="light"] .hero__stats span{color:#6a818e!important}
html[data-theme="light"] .hero__stats{border-color:rgba(16,54,73,.11)!important}
html[data-theme="light"] .hero__stats>div+div{border-color:rgba(16,54,73,.11)!important}
html[data-theme="light"] .hero__stats strong{color:#102633!important}

/* section surfaces */
html[data-theme="light"] .services,
html[data-theme="light"] .projects,
html[data-theme="light"] .process-section,
html[data-theme="light"] .faq-section{
  background:#f7f6f2!important;
}
html[data-theme="light"] .pricing-section,
html[data-theme="light"] .about-section{
  background:
    radial-gradient(circle at 84% 18%,rgba(220,102,174,.045),transparent 25%),
    #eef3f3!important;
}
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .projects__head h2,
html[data-theme="light"] .about-copy h2,
html[data-theme="light"] .contact-banner h2{color:#102633!important}
html[data-theme="light"] .section-head p,
html[data-theme="light"] .about-copy p{color:#607783!important}

/* cards */
html[data-theme="light"] .service-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .contact-form,
html[data-theme="light"] .lead-form,
html[data-theme="light"] .contact-aside{
  background:rgba(255,255,255,.82)!important;
  border-color:rgba(16,54,73,.10)!important;
  box-shadow:0 20px 55px rgba(34,67,84,.08),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
html[data-theme="light"] .service-card:nth-child(2),
html[data-theme="light"] .service-card:nth-child(3),
html[data-theme="light"] .price-card--accent{
  background:
    radial-gradient(circle at 88% 10%,rgba(220,102,174,.06),transparent 26%),
    rgba(255,255,255,.86)!important;
}
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .project-card strong,
html[data-theme="light"] .price-card h3,
html[data-theme="light"] .price-card strong{color:#102633!important}
html[data-theme="light"] .service-card p,
html[data-theme="light"] .price-card p{color:#627985!important}
html[data-theme="light"] .advantages{
  background:rgba(255,255,255,.70)!important;
  border-color:rgba(16,54,73,.10)!important;
  box-shadow:0 18px 48px rgba(34,67,84,.07)!important;
}
html[data-theme="light"] .advantages>div+div{border-color:rgba(16,54,73,.09)!important}
html[data-theme="light"] .advantages strong{color:#102633!important}
html[data-theme="light"] .advantages small{color:#6d838f!important}
html[data-theme="light"] .ghost-button{
  color:#17384a!important;border-color:rgba(17,126,173,.20)!important
}
html[data-theme="light"] .project-card small{color:#657f8d!important}

/* pricing/process/about/faq */
html[data-theme="light"] .pricing-note{
  background:rgba(255,255,255,.60)!important;
  border-color:rgba(16,54,73,.09)!important;
  color:#607783!important;
}
html[data-theme="light"] .process-track{border-color:rgba(16,54,73,.13)!important}
html[data-theme="light"] .process-track article{border-color:rgba(16,54,73,.09)!important}
html[data-theme="light"] .process-track h3{color:#102633!important}
html[data-theme="light"] .process-track p{color:#687f8b!important}
html[data-theme="light"] .about-photo__frame{
  border-color:rgba(16,54,73,.11)!important;
  box-shadow:0 28px 64px rgba(34,67,84,.14)!important;
}
html[data-theme="light"] .about-photo__tag{
  background:#fff!important;color:#137ead!important;border-color:rgba(16,54,73,.10)!important
}
html[data-theme="light"] .about-signature{border-color:rgba(16,54,73,.10)!important}
html[data-theme="light"] .about-signature strong{color:#102633!important}
html[data-theme="light"] .faq-grid,
html[data-theme="light"] .faq-item{border-color:rgba(16,54,73,.10)!important}
html[data-theme="light"] .faq-item summary{color:#102633!important}
html[data-theme="light"] .faq-item p{color:#607783!important}

/* form */
html[data-theme="light"] .form-group label{color:#526d7b!important}
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea{
  background:#fff!important;border-color:rgba(16,54,73,.13)!important;color:#102633!important
}
html[data-theme="light"] .form-note,
html[data-theme="light"] .contact-aside>span,
html[data-theme="light"] .contact-aside small{color:#6d838f!important}
html[data-theme="light"] .contact-aside strong{color:#102633!important}
html[data-theme="light"] .contact-aside a{border-color:rgba(16,54,73,.09)!important}

/* CTA remains saturated as an intentional anchor */
html[data-theme="light"] .contact-banner h2{color:#fff!important}
html[data-theme="light"] .contact-banner p{color:#b9ccd7!important}

/* footer */
html[data-theme="light"] .footer{
  background:#f0f2f1!important;
  border-color:rgba(16,54,73,.09)!important;
}
html[data-theme="light"] .footer__links{color:#667d89!important}
html[data-theme="light"] .brand--footer .brand__copy strong{color:#102633!important}

/* portfolio page */
html[data-theme="light"] .portfolio-hero{
  background:
    radial-gradient(circle at 82% 20%,rgba(220,102,174,.07),transparent 24%),
    radial-gradient(circle at 12% 14%,rgba(94,188,232,.12),transparent 26%)!important;
}
html[data-theme="light"] .portfolio-hero h1{color:#102633!important}
html[data-theme="light"] .portfolio-hero p{color:#607783!important}
html[data-theme="light"] .portfolio-card{
  background:#fff!important;border-color:rgba(16,54,73,.10)!important;
  box-shadow:0 18px 50px rgba(34,67,84,.08)!important;
}
html[data-theme="light"] .portfolio-card__copy h2{color:#102633!important}
html[data-theme="light"] .portfolio-card__copy p{color:#627985!important}

/* modal light */
html[data-theme="light"] .project-modal__backdrop{
  background:rgba(28,45,55,.28);
  backdrop-filter:blur(15px) saturate(105%);
}
html[data-theme="light"] .project-modal__dialog{
  background:
    radial-gradient(circle at 86% 8%,rgba(129,109,255,.06),transparent 24%),
    linear-gradient(145deg,rgba(255,255,255,.985),rgba(246,248,247,.995));
  color:#102633;
  border-color:rgba(16,54,73,.12);
  box-shadow:0 50px 130px rgba(31,62,78,.24),inset 0 1px 0 #fff;
}
html[data-theme="light"] .project-modal__header,
html[data-theme="light"] .project-modal__footer{border-color:rgba(16,54,73,.09)}
html[data-theme="light"] .project-modal__eyebrow{color:#137ead}
html[data-theme="light"] .project-modal__close{
  background:#f2f5f5;color:#17384a;border-color:rgba(16,54,73,.10)
}
html[data-theme="light"] .project-modal__list{
  background:rgba(233,239,240,.56);
  border-color:rgba(16,54,73,.09);
}
html[data-theme="light"] .project-modal__item{
  color:#102633;border-color:rgba(16,54,73,.07)
}
html[data-theme="light"] .project-modal__item:hover{background:rgba(17,126,173,.05)}
html[data-theme="light"] .project-modal__item.is-active{background:rgba(17,126,173,.075)}
html[data-theme="light"] .project-modal__item>span,
html[data-theme="light"] .project-modal__item small{color:#68808d}
html[data-theme="light"] .project-modal__media{
  background:#eaf0f2;border-color:rgba(16,54,73,.10);box-shadow:0 24px 54px rgba(34,67,84,.12)
}
html[data-theme="light"] .project-modal__tags span{
  background:rgba(17,126,173,.06);border-color:rgba(17,126,173,.10);color:#137ead
}
html[data-theme="light"] .project-modal__details>p{color:#607783}
html[data-theme="light"] .project-modal__facts{border-color:rgba(16,54,73,.09)}
html[data-theme="light"] .project-modal__facts small{color:#728791}
html[data-theme="light"] .project-modal__footer{color:#6d838f}
html[data-theme="light"] .project-modal__footer a{color:#17384a}

/* smooth theme switch */
body,.header__inner,.hero,.services,.projects,.pricing-section,.process-section,.about-section,.faq-section,.footer,
.service-card,.project-card,.price-card,.advantages,.lead-form,.contact-aside,.color-theme-toggle{
  transition:background-color .34s ease,border-color .34s ease,color .28s ease,box-shadow .34s ease!important;
}

@media(max-width:1020px){
  .header__inner{grid-template-columns:auto 1fr auto auto!important}
  .header-cta{display:none!important}
  .color-theme-toggle{justify-self:end}
  .project-modal__content{grid-template-columns:320px minmax(0,1fr)}
  .project-modal__preview{grid-template-columns:1fr}
  .project-modal__media{min-height:300px}
  .project-modal__open{margin-top:24px}
}
@media(max-width:760px){
  .header__inner{grid-template-columns:auto 1fr auto auto!important}
  .color-theme-toggle{width:40px;height:40px;flex-basis:40px}
  .project-modal{padding:0}
  .project-modal__dialog{
    width:100vw;max-height:100dvh;height:100dvh;border-radius:0;
    border-left:0;border-right:0;border-bottom:0;
    clip-path:inset(7% 0 0 0 round 24px 24px 0 0);
  }
  .project-modal.is-open .project-modal__dialog{clip-path:inset(0 round 0)}
  .project-modal__header{padding:18px 18px 15px}
  .project-modal__content{
    grid-template-columns:1fr;
    display:flex;flex-direction:column;
  }
  .project-modal__list{
    flex:0 0 auto;
    display:flex;overflow-x:auto;overflow-y:hidden;
    border-right:0;border-bottom:1px solid rgba(103,201,255,.11);
    scroll-snap-type:x proximity;
  }
  .project-modal__item{
    min-width:215px;
    grid-template-columns:27px 1fr;
    padding:14px 15px;
    border-bottom:0;border-right:1px solid rgba(103,201,255,.08);
    scroll-snap-align:start;
  }
  .project-modal__item b{display:none}
  .project-modal__preview{
    flex:1 1 auto;
    display:flex;flex-direction:column;
    padding:15px;
    gap:16px;
  }
  .project-modal__media{min-height:230px;flex:0 0 230px;border-radius:14px}
  .project-modal__details h3{font-size:1.75rem}
  .project-modal__details>p{font-size:.82rem}
  .project-modal__footer{padding:13px 17px}
}

@media(prefers-reduced-motion:reduce){
  .project-modal__dialog,.project-modal__backdrop,.project-modal__media,.project-modal__details,
  .color-theme-toggle span{transition:none!important}
  .project-modal__media-shine{animation:none!important}
}

body.project-modal-open{overflow:hidden!important}
