@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --bg: #1f242d;
  --card: #1a1a2e99;
  --primary: #7c3aed; /* roxo */
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --border: #7c3aed33;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body{
  scroll-behavior: smooth;
}

a{
    text-decoration: none;
    color: #fff;
}

/* Home */

.navbar{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 10px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
} 

.roll{
    background: #1c2029e1;
    transition: 1s;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(116, 40, 248, 0.925);
}

@keyframes show-content{
    100%{
        visibility: visible;
        opacity: 1;
    }
}

.navbar .logo{
    font-size: 30px;
    font-weight: 700;
}

.navbar ul{
    display: flex;
}

.navbar ul li{
    list-style: none;
    margin-left: 35px;
}

.navbar ul li a{
    font-size: 20px;
    font-weight: 500;
    transition: .5s;
}

.navbar ul li:hover a,
.navbar ul li a.active{
    color: #8b1ff8;
}

.lang-selector { 
  position: relative; 
  display: flex;
  align-items: center;
}

.lang-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  user-select: none;
}
.lang-selected:hover { 
  background: rgba(255,255,255,0.1);
 }

.arrow {
  color: var(--text);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.arrow.open { 
  transform: rotate(180deg); 
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  min-width: 100%;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}
.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.lang-option:hover { 
  background: rgba(255,255,255,0.08);
}

#selectedFlag {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.inicio{
    display: flex;
    align-items: center;
    gap: 180px;
    height: 100vh;
    padding: 60px 9% 0;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}

.inicio-info h1{
    font-size: 50px;
}

.inicio-info h2{
    display: inline-block;
    font-size: 32px;
    margin: -10px 0;
}

[data-i18n="subtitle"] {
  color: var(--text) !important;
  font-size: 40px !important;
  opacity: 1 !important;
  display: inline !important;
  position: relative !important;
  z-index: 9999 !important;
}

.inicio-info h2 span{
    color: #8b1ff8;
    opacity: 0;
    transition: opacity 0.8s ease, text-shadow 0.8s ease;
}

.inicio-info p{
    font-size: 16px;
    margin: 10px 0 25px;
}

.inicio-info .btn-sci{
    display: flex;
    align-items: center;
}

.btn{
    display: inline-block;
    padding: 10px 30px;
    background: #8b1ff8;
    border: 2px solid #8b1ff8;
    border-radius: 40px;
    box-shadow: 0 0 10px #8b1ff8;
    font-size: 16px;
    color: #1f242d;
    font-weight: 600;
    transition: .5s;
}

.btn:hover{
    background: transparent;
    color: #7F00FF;
    box-shadow: none;
}

.inicio-info .btn-sci .sci{
    margin-left: 20px;
}

.fi{
    box-sizing: border-box;
}

.inicio-info .btn-sci .sci i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #8b1ff8;
    margin-left: 10px;
    transition: .5s;
    border-radius: 50%;
    padding: 2px;
}

.inicio-info .btn-sci .sci i:hover{
    background: #8b1ff8;
    color: #1f242d;
    box-shadow: 0 0 10px #8b1ff8;
}

.inicio-img .img-box{
    position: relative;
    width: 24vw;
    height: 24vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.inicio-img .img-box::before,
.inicio-img .img-box::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(transparent, transparent, transparent, #7F00FF);
    transform: rotate(0deg);
    animation: rotate 10s linear infinite;
}

.inicio-img .img-box::after{
    animation-delay: -5s;
}

@keyframes rotate{
    100%{
        transform: rotate(360deg);
    }
}

.inicio-img .img-box .img-item{
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #1f242d;
    border: 1px solid #1f242d;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.inicio-img .img-box .img-item img{
    position: absolute;
    display: block;
    width: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    mix-blend-mode: lighten;
}

.bars-animation{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar{
    width: 100%;
    height: 100%;
    background: #1f242d;
    transform: translateY(-100%);
    animation: show-bars .5s ease forwards;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars{
    100%{
        transform: translateY(0%);
    }
}

.content{
    height: 100vh;
    background-color: #1f242d;
}

/* About */

#about{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#about-sub button{
   width: 55px;
   height: 25px;
   border: none;
   border-radius: 10px;
   margin: 0 10px 15px 0;
}

#about-content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 200px;
    color: var(--text);
}

#about-content iframe{
    width: 685px;
    height: 385px;
}

#about-text{
    width: 50vw;
}

#about-sub-text{
    text-align: center;
    margin: 60px;
    color: var(--text);
}

/* Portfolio */

#portfolio{
    padding: 100px 10%;
    background: var(--bg);
}

#portfolio h2{
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 10px;
}

.subtitle{
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.portfolio-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s ease;
  position: relative;
  cursor: pointer;
  max-width: 320px;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 25px rgba(116, 40, 248, 0.925);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  display: block;
  transition: 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.card-content span{
  color: var(--text-secondary);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  opacity: 0;
  transition: 0.3s ease;
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.2s;
}

.btn-live {
  background: var(--primary);
  color: white;
}

.btn-code {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.card-overlay a:hover {
  transform: scale(1.1);
}

.card-content {
  padding: 1.2rem;
}

.card-content h3 {
  color: var(--text);
  margin-bottom: 5px;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.portfolio-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#services {
    padding: 100px 10%;
}

#services h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 10px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  border-color: #a855f7;
}

.service-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.service-card i {
  font-size: 28px;
  margin-bottom: 15px;
  color: #a855f7;
}

.service-card p {
  color: #aaa;
  font-size: 0.9rem;
}

.icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

.mini {
  display: block;
  margin-top: 25px;
  margin-bottom: 25px;
  font-size: 0.8rem;
  color: #7c3aed;
    text-align: center;
}

#services-sub {
    margin: -8px 0 0 5px;
    display: flex;
    flex-direction: column;  
}

#services-sub p {
    padding: 20px 0 20px 0;
    font-size: large;
    color: var(--text);
    text-align: center;
    margin: 10px;
}

.abilities {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #8b1ff8;
    transition: .5s;
    gap: 50px;
}

.abilities svg{
    height: 40px;
    width: 40px;
    transition: .5s;
    border-radius: 50%;
}

.special:hover {
    background: #8b1ff8;
    color: #1f242d;
    box-shadow: 0 0 10px #8b1ff8;
    border-radius: 50%;
    padding: 2px;
}

.ablt:hover {
    background: #8b1ff8;
    color: #1f242d;
    box-shadow: 0 0 10px #8b1ff8;
    border-radius: 50%;
    padding: 3px;
}

.ablt2{
    height: 32px;
    width: 32px;
}

.ablt2:hover {
    background: #8b1ff8;
    color: #1f242d;
    box-shadow: 0 0 10px #8b1ff8;
    border-radius: 50%;
    padding: 3px;
}

#tech-icons svg {
    transition: 0.3s;
}

#tech-icons svg:hover {
  transform: scale(1.2);
  color: #c084fc;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #a855f7, transparent);
  margin: 30px 0 10px 0;
}

/* contact */

.divider2 {
  height: 1px;
  background: linear-gradient(to right, transparent, #a855f7, transparent);
}

#contact {
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  
}

.contact-card {
  background: rgba(30, 30, 50, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 10px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #2a2a40;
  background: rgba(0,0,0,0.3);
  color: white;
  outline: none;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.contact-card button {
  background: linear-gradient(45deg, #7e22ce, #a855f7);
  border: none;
  padding: 14px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.contact-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

textarea {
  resize: none;
  height: 340px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 600px;
}

.contact-info h2 {
  font-size: 1.8rem;
  color: var(--text);
}

.info-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(30, 30, 50, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 15px;
  justify-content: space-between;
  transition: all 0.3s ease;
}


.contact-options {
  display: flex;
  align-items: center;
  gap: 20px;
}

.box-icon span svg {
  display: flex;
  align-items: center;
}

.link-arrow {
  display: flex;
  align-items: center;
  margin-top: 5px;
  width: 18px;
}

.size-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(57, 57, 82, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
}

.text-title {
  margin-bottom: 40px;
}

.text-title h2 {
  font-size: 2.5rem;
  color: var(--text);
}

.contact-text p {
  font-size: 0.8rem;
  color: var(--text);
}

.info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
  border-color: #a855f7;
}

.box-icon {
  padding: 10px;
  background: rgba(57, 57, 82, 0.315);
  backdrop-filter: blur(55px);
  border-radius: 10px;
}

#form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#form-overlay.visible { opacity: 1; }

#form-overlay-box {
  background: var(--card); /* ajuste para sua cor */
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

#form-overlay.visible #form-overlay-box { transform: scale(1); }

#overlay-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

#overlay-icon.loading {
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  font-size: 0;
}

#overlay-icon.success { background: #1a9e5c; }
#overlay-icon.error   { background: #c0392b; }

#overlay-msg {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive session */

/* ========== TABLET LARGO (1024px) ========== */
@media (max-width: 1024px) {

  .navbar {
    padding: 10px 5%;
  }

  .navbar ul li {
    margin-left: 20px;
  }

  .navbar ul li a {
    font-size: 16px;
  }

  .inicio {
    gap: 80px;
    padding: 60px 5% 0;
  }

  .inicio-info h1 {
    font-size: 40px;
  }

  .inicio-info h2 {
    font-size: 28px;
  }

  [data-i18n="subtitle"] {
    font-size: 32px !important;
  }

  .inicio-img .img-box {
    width: 30vw;
    height: 30vw;
  }

  #about-content {
    gap: 60px;
  }

  #about-content iframe {
    width: 420px;
    height: 240px;
  }

  #about-text {
    width: 70vw;
  }

  .contact-info {
    width: auto;
  }
}

/* ========== TABLET (768px) ========== */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 10px 4%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .navbar ul li {
    margin-left: 10px;
  }

  .navbar ul li a {
    font-size: 14px;
  }

  .navbar .logo {
    font-size: 22px;
  }

  /* Home */
  .inicio {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 120px 6% 40px;
    height: auto;
    min-height: 100vh;
    text-align: center;
  }

  .inicio-info h1 {
    font-size: 32px;
  }

  .inicio-info h2 {
    font-size: 22px;
  }

  [data-i18n="subtitle"] {
    font-size: 26px !important;
  }

  .inicio-info p {
    font-size: 14px;
  }

  .inicio-info .btn-sci {
    justify-content: center;
  }

  .inicio-img .img-box {
    width: 55vw;
    height: 55vw;
  }

  /* About */
  #about {
    height: auto;
    padding: 60px 5%;
  }

  #about-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  #about-content iframe {
    width: 100%;
    height: 220px;
  }

  #about-text {
    width: 100%;
    text-align: center;
    font-size: 14px;
  }

  #about-sub-text {
    margin: 30px 20px;
    font-size: 14px;
  }

  /* Portfolio */
  #portfolio {
    padding: 60px 5%;
    height: auto;
  }

  .portfolio-container {
    justify-content: center;
  }

  .portfolio-card {
    max-width: 100%;
  }

  /* Services */
  #services {
    padding: 60px 5%;
    height: auto;
  }

  .services-container {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact */
  #contact {
    height: auto;
    padding: 60px 5%;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    width: 100%;
  }

  .text-title h2 {
    font-size: 1.8rem;
  }

  .text-title {
    margin-bottom: 20px;
  }

  .contact-card {
    width: 100%;
  }

  textarea {
    height: 180px;
  }

  @media (max-width: 768px) {

  /* Corrige services */
  #services {
    height: auto;
    min-height: 100vh;
    padding: 60px 5% 80px;
  }

  #services-sub {
    margin: 0;
    align-items: center;
  }

  .abilities {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  /* Corrige contact */
  #contact {
    height: auto;
    min-height: 100vh;
    padding: 40px 5% 60px;
    flex-direction: column;
    align-items: center;
  }

  .contact-container {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    width: 100%;
  }

  .text-title h2 {
    font-size: 1.6rem;
  }

  .contact-card {
    width: 100%;
  }

  textarea {
    height: 180px;
  }
}
}

/* ========== MOBILE (480px) ========== */
@media (max-width: 480px) {

  /* Navbar */
  .navbar {
    padding: 8px 4%;
    justify-content: space-between;
  }

  .navbar ul {
    display: none; /* esconde os links — adicione um menu hamburger depois se quiser */
  }

  .navbar .logo {
    font-size: 20px;
  }

  /* Home */
  .inicio {
    padding: 100px 5% 40px;
    gap: 20px;
  }

  .inicio-info h1 {
    font-size: 26px;
  }

  .inicio-info h2 {
    font-size: 18px;
  }

  [data-i18n="subtitle"] {
    font-size: 20px !important;
  }

  .inicio-info p {
    font-size: 13px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .inicio-img .img-box {
    width: 70vw;
    height: 70vw;
  }

  /* About */
  #about-content iframe {
    height: 180px;
  }

  #about-sub-text {
    font-size: 13px;
    margin: 20px 10px;
  }

  /* Portfolio */
  #portfolio h2,
  #services h2 {
    font-size: 1.8rem;
  }

  /* Services */
  .services-container {
    grid-template-columns: 1fr;
  }

  .abilities {
    gap: 25px;
    flex-wrap: wrap;
  }

  /* Contact */
  .text-title h2 {
    font-size: 1.4rem;
  }

  .info-box {
    padding: 10px;
  }

  .contact-text p {
    font-size: 0.75rem;
  }

  .contact-card input,
  .contact-card textarea {
    padding: 10px;
  }

  textarea {
    height: 140px;
  }

  @media (max-width: 480px) {

  #services {
    padding: 50px 4% 60px;
  }

  #services-sub {
    margin: 0;
  }

  #contact {
    padding: 30px 4% 50px;
  }

  .contact-container {
    width: 100%;
  }

  .text-title h2 {
    font-size: 1.3rem;
  }

  .info-box {
    padding: 10px 8px;
  }

  .contact-text h3 {
    font-size: 0.9rem;
  }

  .contact-text p {
    font-size: 0.7rem;
  }
}
}

/* hamburguer session */

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação X ao abrir */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile aberto */
.navbar ul.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #1c2029f5;
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 150;
  animation: fadeInMenu 0.3s ease;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar ul.open li a {
  font-size: 28px;
}

/* Exibe hamburger só no mobile */
@media (max-width: 480px) {
  .hamburger {
    display: flex;
  }
}