
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #4a5568;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon,
[data-theme=""] .moon-icon {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../assets/images/bg-hero.jpg") no-repeat center/cover;
  color: #fff;
}

/* Layout principal */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
}

/* Texto */
.hero-text {
  flex: 1;
  opacity: 0;
  min-width: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease forwards;
}

/* Imagem */
.hero-image {
  flex: 1;
  width: 400px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.8s ease forwards;
  flex-shrink: 0;
}

/* Título */
.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin-bottom: 20px;
}

/* Foto */
.hero-photo {
  max-width: 100%;
  width: 450px;
  height: auto;
  object-fit: cover;
  border-radius :0;
  box-shadow: none;
  transition: none;
}

.hero-photo:hover {
  transform: none;
}

/* ===== Animações ===== */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ===== Responsivo ===== */
@media (max-width: 768px) {

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  /* ORDEM VISUAL */
  .hero-text {
    order: 1;
  }

  .hero-actions {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-image {
    order: 3;
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* TIPOGRAFIA MOBILE */
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  /* FOTO */
  .hero-photo {
    width: 300px;
    height: auto;
  }

  /* ÍCONES */
  .social-icons {
    justify-content: center;
  }

  .social-icons svg {
    width: 24px;
    height: 24px;
  }
}


/* Hero Download Button */
.hero .btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  height: 40px;
  padding: 0 1.2rem;
  background-color: #5E4A72;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.hero .btn-download:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero .btn-download:active {
  transform: translateY(0);
  opacity: 1;
  box-shadow: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: nowrap; 
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.social-icons a {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, opacity 0.2s ease;
  width: 40px;
  height: 40px;
  padding: 0;
}

.social-icons a:hover {
  color: #5E4A72;
  opacity: 0.7;
}

.social-icons svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

/* Sobre */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-tag {
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-badge {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

/* Links do projeto */
.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.project-links a:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  background-color: var(--card-bg);
}

/* Skills */

.skills-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill-icon {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.skill-icon:hover {
  transform: translateY(-4px);
}

.skill-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 8px;
}

.skill-icon span {
  font-size: 12px;
  color: var(--text-secondary);
}

.skills-note {
  max-width: 900px;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================
   SKILLS WALLPAPER BACKGROUND
========================= */

.skills-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 0;
  background-image: var(--skills-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay para não atrapalhar leitura */
.skills-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* garante conteúdo acima do overlay */
.skills-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .skills-modern {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .skills-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-icon {
    padding: 14px 10px;
  }
}

/* Contato */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit {
  padding: 1rem 2rem;
  background-color: #5E4A72;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Status do formulário */
.form-status {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.4;
  min-height: 1.2rem;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer p {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
    text-shadow: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .skills-modern {
    grid-template-columns: 1fr;
  }
}

/* Foco visível */
:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: black;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 10px;
}


/* =========================
   THEME FIX 
========================= */

:root {
  --bg-window: #f5f6f8;  
  --text: #111;
  --border: #e6e6e6;
  --shadow: rgba(0,0,0,0.08);
  --bar-bg: #ffffff;
  --skills-bg: url("../assets/images/wallpaper-skills-light.png");
} 

body.dark {
  --bg-window: #0f1115;   
  --text: #ffffff;
  --border: #2a2f3a;
  --shadow: rgba(0,0,0,0.5);
  --bar-bg: #151922;
  --skills-bg: url("../assets/images/wallpaper-skills-dark.png");
}

/* =========================
   WINDOW
========================= */

.tech-window {
  max-width: 900px;
  margin: 60px auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-window);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

/* =========================
   TITLE BAR
========================= */

.window-bar {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--border);
}

/* bolinhas estilo mac */
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }


/* =========================
   CARD TECNOLOGIA
========================= */

.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease;
}

.tech img {
  width: 42px;
  height: 42px;
  transition: transform 0.2s ease;
}

/* hover leve (sem zoom exagerado) */
.tech:hover {
  transform: translateY(-3px);
}

.tech:hover img {
  transform: scale(1.05);
}

/* texto */
.tech span {
  font-size: 12px;
  opacity: 0.8;
}


/* =========================
   SKILLS SECTION WALLPAPER
========================= */

.skills-section {
  background-image: var(--skills-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0;
}

/* =========================
   MAC WINDOW
========================= */

.tech-window {
  max-width: 1000px;
  margin: 60px auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-window);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

/* barra estilo mac */
.window-bar {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--border);
}

/* bolinhas mac */
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

/* título dentro da janela */
.tech-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 20px 0;
  color: var(--text);
}

/* grid 4 por linha */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 20px 30px 40px;
  justify-items: center;
}

/* card */
.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

.tech img {
  width: 45px;
  height: 45px;
}

.tech:hover {
  transform: translateY(-4px);
}

/* responsivo */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
-------------------------------------------------------------------------------------
/* ===== CONTAINER DA JANELA ===== */
.tools-section {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ===== MINI JANELA ===== */
.tools-window {
    background: rgba(255, 255, 255, 0.228);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid #ffffff5a;
    border-radius: 16px;

    padding: 25px 30px;
    width: fit-content;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

/* ===== DARK MODE ===== */
body.dark .tools-window {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== TÍTULO ===== */
.tools-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;

    color: #000; 
}

/* DARK MODE título */
body.dark .tools-title {
    color: #fff; 
}

/* ===== GRID ===== */
.tools-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* ===== ITEM ===== */
.tool {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: 0.8rem;
    font-weight: 600;

    color: #000; 
    text-shadow: none;

    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* DARK MODE item */
body.dark .tool {
    color: #fff; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* garante span também */
.tool span {
    color: inherit;
}

/* ===== ÍCONES ===== */
.tool img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
}

/* ===== HOVER ===== */
.tool:hover {
    transform: translateY(-4px);
    opacity: 1;
}



@media (max-width: 480px) {
  .tools-window {
    width: 90%;
    padding: 20px;
  }

  .tools-grid {
    gap: 15px;
  }
}


/* ===== SOBRE MIM / TRAJETÓRIA ===== */

.code-title {
    font-family: "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: block;          
    width: fit-content;      
    margin: 0 auto;          
    text-align: center;
}

.code-title span {
    color: #5E4A72;
}

.code-title::after {
    content: "|";
    margin-left: 6px;
    color: #5E4A72;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#sobre {
    background: linear-gradient(180deg, #f8f6fb 0%, #f1eef7 100%) !important;
}

body.dark #sobre {
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%) !important;
}

/* subtítulo */
.section-subtitle {
    text-align: center;
    color: #6f6f6f;
    margin-top: 6px;
    margin-bottom: 38px;
    font-size: 0.97rem;
    line-height: 1.5;
}

body.dark .section-subtitle {
    color: #a0a0a0;
}

/* grid */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* cards */
.journey-card {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(94, 74, 114, 0.08);
    border-radius: 18px;
    padding: 22px;
    transition: 0.35s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
    box-shadow: 0 10px 28px rgba(94, 74, 114, 0.08);
}

body.dark .journey-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* animação escalonada */
.journey-card:nth-child(2){ animation-delay: .08s; }
.journey-card:nth-child(3){ animation-delay: .16s; }
.journey-card:nth-child(4){ animation-delay: .24s; }
.journey-card:nth-child(5){ animation-delay: .32s; }
.journey-card:nth-child(6){ animation-delay: .40s; }

/* hover */
.journey-card:hover {
    transform: translateY(-7px);
    border-color: rgba(48, 22, 73, 0.35);
    box-shadow: 0 18px 36px rgba(94, 74, 114, 0.14);
}

body.dark .journey-card:hover {
    box-shadow: 0 18px 36px rgba(94, 15, 173, 0.18);
}

/* ano */
.journey-year {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #5E4A72;
    letter-spacing: .4px;
    margin-bottom: 8px;
}

/* título */
.journey-card h3 {
    color: #1f1f1f;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

body.dark .journey-card h3 {
    color: #ffffff;
}

/* texto */
.journey-card p {
    color: #5f5f5f;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

body.dark .journey-card p {
    color: #b8b8b8;
}

/* destaque */
.highlight {
    border: 1px solid rgba(86, 26, 147, 0.25);
}

/* animação */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* tablet */
@media (max-width: 992px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 640px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .journey-card {
        padding: 18px;
    }
}
