* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: filter 0.5s ease; 
}

body {
    position: relative;
    margin: 0;
    color: rgb(238, 238, 238);
    font-family: monospace;

    background-image: radial-gradient(white 1px, rgb(0, 0, 0) 1px);
    background-size: 45px 45px;
    overflow-x: hidden;

    transition: filter 0.5s ease;
}

.animated-background {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: -1;
    overflow: hidden;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating-image {
    position:absolute;
    animation: rotate 230s linear infinite;
}

.star-1 {
  width: 400px;
  top: 5%;
  left: -5%;
}

.star-2 {
  width: 400px;
  top: 30%;
  left: 80%;
  animation-duration: 45s; 
  animation-direction: reverse; 
}

.star-3 {
  width: 350px;
  top: 50%;
  left: -10%;
  animation-duration: 25s; 
}

.star-4 {
  width: 350px;
  top: 65%;
  left: 80%;
  animation-duration: 55s; 
  animation-direction: reverse; 
}

.star-5 {
  width: 350px;
  top: 80%;
  left: -10%;
  animation-duration: 35s; 
}

.swag-1 {
  position: absolute;
  filter:opacity(0.5);
  left: 50%;
  top: 45%;
  transform: translateX(-50%);
  width: 400px;
  max-width: 80vw;
}

.swag-2 {
  position: absolute;
  filter:opacity(0.5);
  left: 50%;
  top: 78%;
  transform: translateX(-50%);
  width: 400px;
  max-width: 80vw;
}

.style-button{
    position: fixed;
    top:90%;
    right: 10%;
    font-family: monospace;
    z-index: 10;
    background: transparent;
    color: whitesmoke;
    border: none;
    cursor: pointer;
}

.spotify-container {
    left: -30px;
    cursor: pointer;
    max-width: 110px;
    height: 110px;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    position: fixed;
    bottom: 3%;
    align-items: center;
    display: flex;
    flex-direction: row;
    background-color: rgba(66, 72, 80, 0.336);
    border-radius: 9999px;
}

.spotify-container:hover {
    max-width: 350px;
    border-radius: 9999px;
}

.spotify-container:hover #spotify-text {
  opacity: 1;
  margin: 10px;
}

#spotify-text {
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  color: #fff;
  font-family: monospace;
  font-size: 14px;
}

#spotify-image {
    border-radius: 9999px;
    width: 100px;
    height: 100px;
    position: relative;
    left: 5px;
    flex-shrink: 0;
    background-size: cover;
    background-repeat: no-repeat;
    animation: rotate 90s linear infinite;
}

.vinyl-disc {
  position: relative;
  width: 100px;
  height: 100px;
  left: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.vinyl-disc img {
  width: 100%;
  height: 100%;
  background-size: cover;
  object-fit: cover;
  border-radius: 50%;
}

/* Camada das Ranhuras + Reflexo de Luz Conico */
.vinyl-overlay {
  position: absolute;
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none; /* Deixa passar o clique se precisar */

  /* Junta o reflexo de luz (conic) com as ranhuras (repeating-radial) */
  background: 
  
    /* 1. Reflexo de luz em cruz/V */
    conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.15) 0deg,
      transparent 60deg,
      rgba(255, 255, 255, 0.15) 180deg,
      transparent 240deg,
      rgba(255, 255, 255, 0.15) 360deg
    ),
    /* 2. Ranhuras/Sulcos micro-espaçados */
    repeating-radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.4) 0px,
      rgba(0, 0, 0, 0.4) 1px,
      transparent 2px,
      transparent 3px
    );
}

/* O furo central (furo do vinil) */
.vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: #111418; /* Cor do fundo do seu site */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

html.light-mode {
    filter: invert(1);
}

body {
  transition: filter 0.5s ease, background-color 0.5s ease;
}


.light-mode img:not(.rotating-image):not(.swag-1):not(.swag-2):not(#name):not(#profile){
  filter: invert(1);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    color: rgb(238, 238, 238);
    justify-content: center;
    list-style-type: none;
    background-color: rgba(66, 72, 80, 0.336);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    margin-left: 20%;
    margin-right: 20%;
    text-decoration: none;
    position: fixed;
    top: 0;
    width: 60%;
    z-index: 1000;
}



ul a {
    margin-left: 10%;
    margin-right: 10%;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a,
.footer-links a:hover {
    background: transparent;
    border: none;
    padding: 0;
    transform: none;
    color: inherit;
}

.footer-links .social {
    display: block;
    transition: opacity 0.2s ease;
}

.footer-links a:hover .social {
    opacity: 0.7;
}

a {
    background: rgba(66, 72, 80, 0.336);
    backdrop-filter: blur(4px);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: monospace;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
}

a:hover {
    display: inline-block;
    transition: all 0.2s ease-in-out;
    transform: scale(115%) translateY(-5px);
    color: #fff;
    border-color: #007acc;
}

#section {
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    transform: scale(100%) translateY(0px);
    color: rgb(238, 238, 238);
}

#section:hover {
    display: inline-block;
    transition: all 0.2s ease-in-out;
    transform: scale(115%) translateY(-5px);
}

#info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding-left: 20%;
    padding-right: 20%;
}



#info img {
    border-radius: 10%;
    max-height: 216px;
    max-width: 384px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
}


.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #fff;
    transform: translateX(-50%);
}


.timeline-item {
    position: relative;
    width: 50%;
   
    padding: 10px 40px; 
    box-sizing: border-box;
}


.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right; /
}


.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left; 
}


.timeline-dot {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background-color: #007acc;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 1;
}


.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}


.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}


.award-card {
    position: relative;
    background-color: rgba(66, 72, 80, 0.336);
    backdrop-filter: blur(3px);
    width: min(100%, 300px);
    max-width: fit-content;
    min-height: 300px;
    height: auto;
    padding: 16px 2% 60px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: left;
}

.award-card img.Award {
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: grayscale(100%);
    max-width: 200px;
    border-radius: 8px;
    margin: 0 auto;
}

.award-card h3 {
    text-align: left;
    margin: 8px 0;
    font-size: 20px;
}

.working {
    margin-left: 19%;
    margin-top: 25%;
    font-size: 100px;
}

.award-card-text {
    position: absolute;
    left: 0;
    bottom: 4px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.award-card a {
    display: inline-block;
    width: auto;
    margin-top: 5%;
}

p1 {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

#pageContent {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 90px 16px 0;
}

#name {
    height: 30px;
    width: 100px;
    margin-bottom: auto;
}

#About {
    margin-left: 0;
    text-align: center;
    align-items: center;
    font-size: 20px;
    justify-content: center;
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: min(1200px, 100%);
}



#About #profile {
    width: 200px;
    height: 200px;
    border-radius: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
}

#About p {
    margin-left: 20%;
    margin-right: 20%;
}

#Technologies {
    display: flex;
    flex-direction: column;
    width: min(1200px, 100%);
    margin-top: 200px;
}

.tech-intro {
    margin-top: 100%;
    flex-basis: 100%;
    text-align: center;
}

#TechText {
    font-size: 20px;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 100px;
    column-gap: 100px;
}

#TechText img {
    margin-top: 10px;
}

.portfolio-filter-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-tab {
  background: rgba(66, 72, 80, 0.336);
  backdrop-filter: blur(4px);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: monospace;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

.filter-tab:hover {
  color: #fff;
  border-color: #007acc;
  transform: translateY(-2px);
}

.filter-tab.active {
  background: #007acc;
  color: #fff;
  border-color: #007acc;
}

#Projects {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-intro {
    margin-top: 30%;
    flex-basis: 100%;
    text-align: center;
}

#Projects img {
    object-fit: cover;
    align-self: center;
    height: 108px;
    width: 192px;
    border-radius: 10px;
}

#project-table {
    background-color: rgba(66, 72, 80, 0.336);
    backdrop-filter: blur(3px);
    height: 350px;
    width: min(100%, 300px);
    padding: 2%;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}

#project-table p {
    font-size: 15px;
    align-self: center;
}

#project-table-text {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
}

#project-table-text a {
    font-size: 20px;
}

model-viewer {
    margin-right: 15%;
    margin-bottom: 15%;
    justify-content: right;
    width: 500px;
    height: 500px;
    max-width: 100%;
}



section {
    text-align: center;
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    scroll-margin-top: 70px;
}

h1 {
    font-size: 20px;
}

p {
    font-size: 20px;
}

footer.glass-footer {
    align-items: center;
    display: flex;
    align-self: center;
    flex-direction: column;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    nav ul {
        width: calc(100% - 24px);
        margin: 8px 12px 0;
        padding: 10px 8px;
        gap: 8px 14px;
        border-radius: 8px;
    }

    nav ul a {
        margin: 0;
    }

    #About {
        flex-direction: column;
        margin-left: 0;
        padding: 0 12px;
    }

    #About #profile {
        width: 160px;
        height: 160px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    #About p {
        margin-left: 0;
        margin-right: 0;
    }

    model-viewer {
        display: none;
    }

    .star-1 {
        display: none;
    }

    #TechText {
        grid-template-columns: 1fr;
        margin-top: 40px;
        row-gap: 30px;
        column-gap: 0;
    }

    #Projects {
        flex-direction: column;
        align-items: center;
    }

    #Awards {
        margin-top: 80px;
        flex-direction: column;
        align-items: center;
    }

    .award-card {
        width: 100%;
    }

    .award-intro {
        margin-top: 50%;
    }

    .timeline {
        width: 100%;
        margin: 24px auto;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        width: 100%;
        padding: 10px 0;
        text-align: left;
    }

    .timeline-item .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        display: none;
    }

    .award-card {
        min-height: 0;
        padding: 16px 16px 52px;
    }

    .award-card h3 {
        font-size: 18px;
    }

    .timeline-item:nth-of-type(odd) {
        left: 0;
    }

    .timeline-line {
        display: none;
    }

    #project-table {
        width: min(100%, 320px);
        height: auto;
    }

    #project-table-text {
        gap: 18px;
        margin-top: 20px;
    }

    section {
        font-size: 24px;
    }

    p,
    h1 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    nav ul {
        font-size: 14px;
        gap: 7px 10px;
    }

    #About h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    #project-table-text a {
        font-size: 16px;
    }

    .style-button {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: auto;
        font-size: 12px;
    }
}