@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
} 

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --main-color: #0c658c;
    --white-color: #fff;
    --disabled-color: #fff3; 
}

html {
    font-size: 62.5%;
}

body {
    color: var(--white-color);
} 

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
}

header.active {
    animation: show-header 1.5s linear forwards;
    animation-delay: 1.2s;
}

@keyframes show-header {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.logo {
    font-size: 3rem;
    color: var(--white-color);
    font-weight: 700;
}

nav a {
    font-size: 2rem;
    color: var(--white-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .5s;
}

nav a:hover,
nav a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 4rem;
    display: none;
}

.bars-box {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.bars-box .bar {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: hide-bars .5s ease-in-out both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes hide-bars {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.bars-box.active .bar {
    animation: show-bars .5s ease-in-out both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 9% 2rem;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

section.active {
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
        overflow: auto;
    }
}

.home {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.home-detail h1 {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
}

.home-detail h2 {
    display: inline-block;
    font-size: 3.2rem;
    margin-top: -1rem;
}

.home-detail h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .07rem var(--main-color);
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {

    25%,
    100% {
        display: none;
    }
}

.home-detail h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: .2rem solid var(--main-color);
    color: var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%,100% {
        width: 0;
    }
    70%,90% {
        width: 100%;
    }
}

.home-detail p {
    font-size: 1.6rem;
    margin: 1rem 0 2.5rem;
}

.home-detail .btn-sci {
    display: flex;
    align-items: center; 
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: none;
}

.home-detail .btn-sci .sci {
    margin-left: 2rem;
}

.home-detail .btn-sci .sci a {
    display: inline-flex;
    padding: .8rem;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 .8rem;
    transition: .5s;
}

.home-detail .btn-sci .sci a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.home-img .img-box {
    position: relative;
    width: 24vw;               /* Breite passt sich Viewport an */
    height: 30vw;              /* Höhe gleich → Quadrat */
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {

    content: '';
    position: absolute;
    width: 50rem;
    height: 50rem;
    background: conic-gradient(transparent, transparent, transparent, var(--main-color));
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box ::after {
    animation-delay: -5s;
}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 0;          /* kein Kreis mehr */
    border: .01rem solid var(--bg-color);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 20px var(--main-color); /* Glow-Effekt */
}

.home-img .img-box .img-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;         /* füllt das Quadrat */
    mix-blend-mode: normal;    /* entfernt den Aufhell-Effekt */
}


.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.heading span {
    color: var(--main-color);
}


.resume-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.resume-box h2 {
    font-size: 4.4rem;
}

.resume-box p {
    font-size: 1.6rem;
}

.resume-box .desc {
    margin: 2rem 0 2.5rem;
}

.resume-box .resume-btn {
    width: 100%;
    height: 5.3rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--second-bg-color);
    font-size: 1.6rem;
    color: var(--white-color);
    font-weight: 500;
    margin-bottom: 3.5rem;
    border-radius: .8rem;
    cursor: pointer;
}

.resume-box .resume-btn.active {
    border-color: var(--main-color);
    color: var(--main-color);
}

.resume-detail {
    display: none;
}

.resume-detail.active {
    display: block;
}

.resume-box .heading {
    font-size: 3.5rem;
    text-align: left;
}

.resume-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    height: 45rem;
    overflow: auto;
}

.resume-list::-webkit-scrollbar {
    width: .7rem;
}

.resume-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 1rem;
}

.resume-list:hover::-webkit-scrollbar-thumb {
    background: var(--main-color);
}

.resume-list .resume-item {
    background: var(--second-bg-color);
    border-radius: .8rem;
    padding: 3rem 2.5rem;
    height: calc((45rem -2rem) / 2);
    flex-direction: column;
    justify-content: center;
}

.resume-item .year {
    color: var(--main-color);
}

.resume-item h3 {
    font-size: 2.2rem;
}

.resume-item .company {
    position: relative;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.resume-item .company::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
    background: var(--main-color);
    border-radius: 50%;
    margin-left: -2rem;
}

.resume-detail.skills .resume-list {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    height: auto;
    overflow: visible;
}

.resume-detail.skills .heading {
    margin-bottom: 5rem;   
}

.resume-detail.skills .resume-item {
    position: relative;
    align-items: center;
    height: auto;
}

.resume-detail.skills .resume-item i {
    font-size: 8.5rem;
    transition: .5s;
}

.resume-detail.skills .resume-item:hover {
    color: var(--main-color);
}

.resume-detail.skills .resume-item span {
    position: relative;
    top: -20%;
    background: var(--white-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    padding: -5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    opacity: 0;
    transform: scale(.9);
    transition: .2s;
}

.resume-detail.skills .resume-item:hover span {
    top: -25%;
    opacity: 1;
    transform: scale(1);
}

/* ===== LAYOUT SKILLS ===== */
.skills-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 5rem; /* espaço entre colunas */ 
    align-items: start; 
} 
.skills-col { 
    width:100%;
    align-items:center;
    
} 
.skills-title { 
    font-size:2.6rem; 
    text-align:center; 
    margin-bottom:2.5rem; 
    text-decoration:underline; 
    text-underline-offset:.45rem; 
} 
/* barras horizontais */ 
.skill {
  margin: 2.2rem 0;
  position: relative;
  max-width: 600px;        /* largura total da skill */
  margin-left: auto;       /* centraliza horizontalmente */
  margin-right: auto;
}

.skill span {
  display: block;          /* força ficar sozinho em uma linha */
  text-align: left;        /* garante alinhamento à esquerda */
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;   /* espaço entre texto e barra */
}

.skill span i {
  font-size: 1.8rem;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.bar2 {
  position: relative;
  width: 600px;               /* comprimento da barra */
  max-width: 100%;
  background: #0b0f14;
  height: .9rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);

  margin: 0 auto;             /* <<< centraliza horizontalmente */
}

.progress{
  height:100%;
  width:0%;
  background: var(--main-color);
  border-radius: 1rem;
  transition: width 1.2s ease;
  position: relative; /* referência do ::after */
}

/* “pill” com a percentagem colada ao fim da barra */
.progress::after{
  content: attr(data-label);      /* ex.: 90% */
  position: absolute;
  right: -12px;                   /* sai um pouco para fora */
  top: -18px;                     /* por cima da barra */
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #0e141b;            /* tom escuro (pode usar var(--bg-color)) */
  padding: 2px 6px;
  border-radius: .4rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.4);
  pointer-events: none;
  white-space: nowrap;
}

/* percentagem ao lado da barra */
.skill .percent {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

/* círculos */
.circles{
  display:grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap:3.2rem 4rem;              /* espaço entre círculos */
  justify-items:center;
}
.circle{
  --size:140px;
  --track:#0b0f14;
  --accent: var(--main-color);
  --value: 0;                   /* 0..100 - animada via JS */
  width:var(--size);
  height:var(--size);
  border-radius:50%;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), var(--track) 0);
  position:relative;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 0 0 6px var(--bg-color), 0 0 0 7px rgba(255,255,255,.06);
}
.circle::before{
  content:"";
  position:absolute; inset:12px;
  background: var(--bg-color);
  border-radius:50%;
}
.circle span{
  position:relative;
  z-index:1;
  font-weight:800;
  font-size:2rem;
}
.circle p{
  position:absolute;
  bottom:-2.4rem;
  font-size:1.5rem;
  text-align:center;
}

/* responsivo */
@media (max-width: 900px){
  .skills-grid{ grid-template-columns:1fr; gap:3rem; }
}

.resume-detail.about {
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.resume-detail.about .resume-item {
    height: auto;
    padding: 0 0 .5rem;
    background: transparent;
}

.resume-detail.about .resume-item p {
    display: flex;
    flex-direction: column;
    margin: 0;                  /* limpa margens inconsistentes */
    line-height: 1.25;
    color: var(--main-color);
}

.resume-detail.about .resume-item p span {
    display: block;             /* quebra de linha */
    margin: .35rem 0 0 0;       /* remove a margem-left antiga */
    color: var(--white-color);  /* valor branco */
    font-size: 1.8rem;
    font-weight: 500;
}

.resume-detail.about .resume-item i {
    grid-column: 1;
    font-size: 2.5rem;
    line-height: 1;
    margin-top: .2rem;
}


.portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-detail {
    display: none;
}

.portfolio-detail.active {
    display: block;
}

.portfolio-box .numb {
    font-size: 8rem;
    -webkit-text-stroke: .07rem var(--white-color);
    color: transparent;
    line-height: 1;
}

.portfolio-box h3 {
    font-size: 3.5rem;
    margin: .8rem 0 2rem;
}

.portfolio-box p {
    font-size: 1.6rem;
}

.portfolio-box .tech {
    margin: 2rem 0;
    color: var(--main-color);
    border-bottom: .1rem solid var(--white-color);
    padding-bottom: 2rem;
}

.portfolio-box .portfolio-mediamatiker {
    width: 100%;
    height: 60rem;
    border-radius: 1rem;
    overflow: hidden;
}

.portfolio-mediamatiker .img-curriculum {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 2rem;
    transition: .5s
}

.portfolio-mediamatiker .img-item img {
    display: block;
    width: 65%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.portfolio-box .navigation {
    text-align: right;
    margin-top: 2rem;
}

.portfolio-box .navigation button {
    display: inline-flex;
    padding: .4rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    font-size: 4rem;
    color: var(--main-color);
    cursor: pointer;
}

.portfolio-box .navigation button.disabled {
    border-color: var(--second-bg-color);
    color: var(--disabled-color);
}

.portfolio-box .navigation .arrow-right {
    margin-left: 1.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-container .contact-box:first-child {
    align-self: center;
}

.contact-box h2 {
    font-size: 4.5rem;
}

.contact-box p {
    font-size: 1.6rem;
}

.contact-box .desc {
    margin: 1.5rem o 2.5rem;
}

.contact-box .contact-detail {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.contact-detail i {
    display: inline-flex;
    background: var(--second-bg-color);
    color: var(--main-color);
    font-size: 3rem;
    padding: 1.2rem;
    border-radius: .6rem;
    margin-right: 1.5rem;
}

.contact-detail .detail p:first-child {
    color: var(--main-color);
}

.contact-box form {
    background: var(--second-bg-color);
    padding: 2.5rem 3.5rem 3.5rem;
    border-radius: 1rem;
    text-align: center;
}

.contact-box .heading {
    font-size: 3.5rem;
}

.contact-box .field-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea {
    padding: 1.5rem;
    background: var(--bg-color);
    border: .15rem solid var(--bg-color);
    border-radius: .6rem;
    font-size: 1.6rem;
    color: var(--white-color);
}

.contact-box .field-box textarea {
    grid-column: 1/ -1;
    height: 26rem;
    resize: none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
    border-color: var(--main-color);
}

.contact-box .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/* breakpoints */

@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 992px) {
    header {
        padding: 2rem 4%;
    }
    section {
        padding: 10rem 4% 2rem;
    }
}

@media screen and (max-width: 810px) {
    .contact-box .field-box {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        text-align: center;
        display: none;
   }

   nav.active {
    display: block;
   }

    nav a {
        display: block;
        margin: 4rem 0;
    }

    .home {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
    }
        
    .home-img .img-box {
        width: 35rem;
        height: 45rem;
    }

    .resume-container,
    .portfolio-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .resume-container {
        gap: 3rem;
    }
    .portfolio-mediamatiker .img-item img { 
        width: 100%; 
        height: auto; 
    }
    .portfolio-container .portfolio-box:first-child {
        order: 1;
    }
    .portfolio-container .portfolio-box:last-child  { 
    order: 2; 
    }
    .contact-box .field-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-box .navigation {
    text-align: center;
    margin-top: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .home-img .img-box {
        width: 30rem;
        height: 30rem;
    }
    .contact-box .field-box {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 450px) {
    html {
        font-size: 50%;
    }
}

@media screen and (max-width: 400px) {

    .home-detail,
    .resume-box h2,
    .resume-box .heading,
    .resume-box .desc,
    .resume-detail.about .resume-item {
        text-align: center;
    }

    .home-detail .btn-sci {
        flex-direction: column-reverse;
    }
    .home-detaill .btn-sci .sci {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    .contact-box form {
        padding: 2.5rem 3rem 3.5rem;
    }

    .contact-box h2 {
        font-size: 3.5rem;
    }
}

/* === TOAST (popup) === */
#toast-root{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: grid;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0e141b;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: toast-in .18s ease-out;
}
.toast.success { border-left: 4px solid #14b8a6; } /* teal */
.toast.error   { border-left: 4px solid #ef4444; } /* red  */
.toast .title  { font-weight: 700; }
.toast .msg    { opacity:.95 }
.toast .close  {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity:.8
}
.toast .close:hover { opacity: 1; }

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}