/* Futuristic Portfolio CSS */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* Garantir que todas as seções sejam visíveis */
section[id] {
  /*display: block !important;*/
  visibility: visible !important;
  opacity: 1 !important;
}

/* Específico para seção de projetos */
section[id="projetos"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 300px !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 10 !important;
}

:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a2e;
  --accent-blue: #00d4ff;
  --accent-purple: #8a2be2;
  --accent-green: #00ff88;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--primary-dark);
  color: var(--text-light);
 
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

/* Header */
#header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

#header .logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transition: all 0.3s ease;
}

#header .logo:hover {
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  transform: scale(1.05);
}

/* Navigation Icons */
.icons {
  display: grid;
  flex-direction: row;
  gap: 1rem;
  list-style: none;
  padding: 0;
}


.icons a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.icons a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6);
}

/* Language Switcher */
#language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#language-switcher img {
  width: 30px;
  height: 20px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

#language-switcher img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Banner Section - Hero Principal (Sem Imagem) */
#banner {
  padding: 60px 40px 80px; /* Espaçamento otimizado para texto centralizado */
  display: flex;
  justify-content: center; /* Centraliza o conteúdo */
  align-items: center;
  min-height: auto; /* Remove altura mínima excessiva */
  max-width: 1200px;
  margin: 0 auto;
}

#banner .content {
  flex: 1;
  text-align: center; /* Centraliza o texto */
  animation: slideInUp 1s ease-out;
}

#banner .content h1 {
  font-size: 2.5rem;
  color: #00d9ff;
  margin-bottom: 30px;
  line-height: 1.3;
  font-weight: 600;
}

#banner .content p {
  font-size: 1.2rem;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#banner .content p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: #00d9ff;
  font-size: 1.1rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Skills Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.features article {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.features article::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.1;
  transition: all 0.5s ease;
}

.features article:hover::before {
  left: 0;
}

.features article:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-blue);
}

.features .icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Projects Section */
.posts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  width: 100%;
  position: relative;
  z-index: 10;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 200px; /* Altura mínima para garantir visibilidade */
}
.posts article {
  display: block;
  background: rgba(26, 26, 46, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 11; /* Aumentado para garantir visibilidade */
  position: relative;
}

.posts article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  pointer-events: none;
  z-index: 0; /* Correção: garante que fique abaixo do conteúdo */
}

.posts article > *:not(.image) {
  position: relative;
  z-index: 1; /* Correção: garante que o texto fique acima */
  padding: 1.5rem;
  color: var(--text-light); /* Ajuste para contraste */
}


/*.posts article {
  background: rgba(26, 26, 46, 0.9);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
}

.posts article::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}*/

.posts article:hover::after {
  opacity: 0.1;
}

/*.posts article:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
  border-color: var(--accent-blue);
}*/

.posts .image {
  height: 200px;
  overflow: hidden;
}

.posts .image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease;
}

.posts article:hover .image img {
  transform: scale(1.1);
}

.posts article > div:not(.image) {
  padding: 2rem;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--gradient-accent);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.8rem;
}

/* Sections */
section {
  width: 100%;
  max-width: clamp(320px, 95%, 1200px);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.major {
  text-align: center;
  margin-bottom: 3rem;
}

.major h1 {
  position: relative;
  display: inline-block;
}

.major h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

footer {
  text-align: center;
  padding: 2rem;
  background: rgba(26, 26, 46, 0.95);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  margin-top: 4rem;
}
/* Desktop - Telas grandes */
@media screen and (min-width: 1200px) {
  #banner {
    padding: 70px 40px 90px;
  }
  
  #banner .content h1 {
    font-size: 2.8rem;
  }
  
  #banner .content p {
    font-size: 1.3rem;
  }
}

/* Desktop - Telas muito grandes */
@media screen and (min-width: 1600px) {
  #banner {
    padding: 80px 40px 100px;
  }
  
  #banner .content h1 {
    font-size: 3rem;
  }
  
  #banner .content p {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 768px) {
  #banner {
    padding: 40px 20px 60px;
    text-align: center;
  }
  
  #banner .content h1 {
    font-size: 2rem;
    margin-bottom: 25px;
  }
  
  #banner .content p {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }
  
  #banner .content p:last-child {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .posts {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Garantir que a seção de projetos seja visível */
  section[id="projetos"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px !important;
  }
  
  .posts article {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .posts .image {
    height: 180px; /* Altura reduzida para mobile */
  }
  
  section {
    width: 100%;
    padding: 2rem 1rem;
  }
}

/* iPhone e dispositivos móveis pequenos */
@media screen and (max-width: 480px) {
  #banner {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  #banner .image img {
    max-width: 250px; /* Ainda menor para telas pequenas */
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    opacity: 1 !important; /* Garantir opacidade normal no iPhone */
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .posts {
    padding: 0.5rem;
    gap: 1rem;
  }
  
  .posts article {
    padding: 0.8rem;
  }
  
  .posts .image {
    height: 160px; /* Altura ainda menor para telas pequenas */
  }
  
  section {
    padding: 1.5rem 0.8rem;
  }
  
  /* Garantir que todas as seções sejam visíveis */
  section[id] {
    min-height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Específico para seção de projetos */
  section[id="projetos"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px !important;
    overflow: visible !important;
  }
  
  .posts {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px !important;
  }
}
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s infinite;
}




/* === CUSTOMIZADO === */

/* Centraliza o header com flexbox */
#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Estilo dos ícones sociais */
#header .icons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
}

#header .icons li {
    margin: 0;
}

#header .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#header .icons a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#header .icons .fab,
#header .icons .fas {
    font-size: 20px;
    line-height: 1;
}

/* Estilização das bandeiras de idioma */
#language-switcher {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}

#language-switcher .flag img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #00ffe7;
    transition: transform 0.3s ease;
}
#language-switcher .flag img:hover {
    transform: scale(1.1);
}

/* Idioma ativo */
#language-switcher .flag.active {
    position: relative;
}

#language-switcher .flag.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ffe7);
    border-radius: 2px;
}

#language-switcher .flag.active img {
    opacity: 1;
    filter: brightness(1.2);
}

/* Seção Sobre Mim - Alinhada com o site */
.sobre-section {
    width: 100%;
    max-width: clamp(320px, 95%, 1200px); /* Mesma largura das outras seções */
    margin: 80px auto;
    padding: 0 40px;
}

.sobre-section h1 {
    font-size: 2.5rem;
    color: #00d9ff;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sobre-content {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.15);
    width: 100%; /* Ocupar toda largura disponível */
}

.sobre-content .intro {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #00d9ff;
    font-weight: 500;
}

.sobre-content .resumo {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 35px;
    color: #e0e0e0;
    text-align: justify;
}

.destaque-principal {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(138, 43, 226, 0.08));
    border-left: 4px solid #00d9ff;
    padding: 30px;
    margin: 35px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.1);
}

.destaque-principal h3 {
    color: #00d9ff;
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 600;
}

.destaque-principal p {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.ferramentas-resumo {
    margin: 35px 0;
    background: rgba(0, 217, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.15);
}

.ferramentas-resumo h3 {
    color: #00d9ff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid #00d9ff;
    border-radius: 8px;
    color: #e0e0e0;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.tech-list li:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateX(5px);
}

.tech-list li:last-child {
    margin-bottom: 0;
}

.tech-list strong {
    color: #00d9ff;
    font-weight: 600;
    font-size: 1.05rem;
}

.chamada-acao {
    margin-top: 35px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(138, 43, 226, 0.12));
    border-radius: 12px;
    text-align: center;
    font-size: 1.1rem;
    color: #e0e0e0;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.chamada-acao em {
    font-style: normal;
    color: #00d9ff;
    font-weight: 500;
}

/* Subtítulos das seções */
.subtitulo {
    font-size: 1.1rem;
    color: #00d9ff;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.9;
}

/* Responsividade - Tablet */
@media (max-width: 1024px) {
    .sobre-section {
        padding: 0 30px;
    }
    
    .sobre-content {
        padding: 40px 45px;
    }
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    .sobre-section {
        margin: 50px auto;
        padding: 0 20px;
    }
    
    .sobre-section h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .sobre-content {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .sobre-content .intro {
        font-size: 1.2rem;
    }
    
    .sobre-content .resumo {
        font-size: 1rem;
        text-align: left;
    }
    
    .destaque-principal,
    .ferramentas-resumo {
        padding: 20px;
    }
    
    .destaque-principal h3,
    .ferramentas-resumo h3 {
        font-size: 1.2rem;
    }
    
    .tech-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .chamada-acao {
        padding: 20px;
        font-size: 1rem;
    }
    
    .subtitulo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sobre-section {
        padding: 0 15px;
    }
    
    .sobre-content {
        padding: 25px 20px;
    }
    
    .sobre-section h1 {
        font-size: 1.8rem;
    }
}

/* Estilo dos cards de projetos */
.projeto-card {
    background-color: #111;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    box-shadow: 0 0 12px #00ffe7aa;
    margin-bottom: 20px;
}
.projeto-card h3 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #00ffe7;
}
.projeto-card p {
    font-size: 0.9em;
    margin: 6px 0;
}
.projeto-card .tech-stack {
    font-size: 0.8em;
    opacity: 0.7;
}

.icon {
  font-family: "Font Awesome 7 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}

.contact-links a,
.contact-links a:visited {
  color: #00d4ff;
}

/* Correções específicas para Safari iOS */
@supports (-webkit-touch-callout: none) {
  #banner .image img {
    -webkit-transform: translateZ(0); /* Força aceleração de hardware */
    transform: translateZ(0);
    opacity: 1 !important; /* Garantir opacidade normal no Safari iOS */
  }
  
  .posts {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .posts article {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Garantir que as seções sejam visíveis no Safari */
  section[id="projetos"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    min-height: 300px !important;
    overflow: visible !important;
  }
  
  .posts {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
