/* 1. VARIÁVEIS E RESET */
:root {
  --bg-color: #0f172a;       /* Fundo da página (Slate 900) */
  --card-bg: #1e293b;        /* Fundo dos cards (Slate 800) */
  --primary: #38bdf8;        /* Azul claro destaque (Sky 400) */
  --primary-hover: #7dd3fc;  /* Azul mais claro para hover */
  --purple: #9333ea;         /* Roxo secundário */
  --text-main: #ffffff;      /* Texto principal */
  --text-muted: #cbd5f5;     /* Texto secundário */
  --border-color: #334155;   /* Bordas sutis */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }


/* 2. LAYOUT GERAL E HEADER  */

.container {
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header {
  background: #020617;
  padding: 20px 0;
  position: sticky; 
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

nav a {
  color: var(--text-main);
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

main {
  min-height: 80vh;
}

section {
  max-width: 1000px;
  margin: auto;
  padding: 80px 20px;
  display: block;
}

section h2 {
  margin-bottom: 30px;
  color: var(--primary);
  font-size: 2rem;
}


/* 3. SEÇÃO SOBRE (HERO) */

.sobre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: left;
  padding: 80px 20px;
}

.photo-wrapper {
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-color); 
}

.info h2 {
  font-size: 28px;
  margin-bottom: 5px;
  color: var(--text-main);
}

.cargo {
  display: block;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.info p {
  max-width: 400px;
  color: var(--text-muted);
  margin-bottom: 20px;
}


.social {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 14px;
  transition: transform 0.3s ease; 
}

.social-item i {
  font-size: 22px;
  color: var(--primary);
  min-width: 26px;
  text-align: center;
}

.social-item span {
  font-size: 14px;
  color: #e2e8f0;
  transition: color 0.3s;
}

.social-item:hover {
  transform: translateX(5px); 
}

.social-item:hover span {
  color: var(--primary);
}

/* BOTÃO DE CURRÍCULO (CV)   */
.social-item.cv-highlight {
    margin-bottom: 10px;
    border: 1px solid var(--primary); 
    background: rgba(56, 189, 248, 0.05); 
    padding: 8px 8px; 
    border-radius: 12px;
    justify-content: center; 
    font-weight: 50;
    transition: all 0.3s ease;
    width: 200px;
}

.social-item.cv-highlight span,
.social-item.cv-highlight i {
    color: var(--primary);
}

.social-item.cv-highlight:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); 
}

.social-item.cv-highlight:hover span,
.social-item.cv-highlight:hover i {
    color: #0f172a; 
}


/* 4. EXPERIÊNCIA E SKILLS E FORMACAO */

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.edu-item {
    background: transparent; 
    padding: 0;
    margin: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.edu-year {
    font-size: 0.8rem;
    color: var(--primary); 
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.edu-course {
    font-size: 1.1rem;
    color: #fff; 
    margin: 0 0 4px 0;
    font-weight: 700;
}

.edu-place {
    font-size: 0.95rem;
    color: #aaa;
    font-weight: 400;
}

.edu-item:hover .edu-course {
    color: var(--primary);
    transition: 0.3s;
}

.experiencia-skills {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 30px;
}

.timeline h2 { margin-bottom: 30px; }

.timeline-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 30px;
  border-left: 2px solid #444;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-item .time {
  font-size: 13px;
  color: #aaa;
  display: block;
  margin-bottom: 5px;
}

.timeline-item h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: var(--text-main);
}

.skills-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-card {
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  white-space: nowrap;
  cursor: default;
  transition: 0.25s;
}

.skill-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
}

.skill-minimal {
    width: auto;   
    height: auto;
    background: transparent; 
    border: none;            
    box-shadow: none;
    padding: 5px;           
}

.skill-card.skill-minimal:hover {
    transform: scale(1.2);
    background: transparent; 
}

.skill-minimal i {
    font-size: 1.5rem;
}

/* SEÇÃO DESTAQUES (FEATURED) */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.featured-card {
    background: var(--card-bg); 
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary); 
}

.feat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feat-title-group h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.feat-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.feat-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feat-desc {
    font-size: 13px;
    color: #cbd5f5;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 0;
}

.feat-image-wrapper {
    width: 100%;
    height: 200px; 
    background: #0f172a;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.featured-card:hover .feat-image-wrapper img {
    transform: scale(1.05); 
}

.feat-footer {
    margin-top: auto; 
    display: flex;
    gap: 10px;
}

.btn-feat-primary,
.btn-feat-outline {
    flex: 1; 
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-feat-primary {
    background: var(--primary);
    color: #0f172a;
    border: 1px solid var(--primary);
}

.btn-feat-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-feat-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #334155;
}

.btn-feat-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.projects-container {
    display: grid;
    grid-template-columns: 280px 1fr; 
    gap: 30px;
    align-items: start;
}

/* --- COLUNA ESQUERDA: BENTO MENU (Ícones Flutuantes) --- */
.bento-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 10px;
}

.bento-item {
    background: transparent; 
    border: none;            
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    gap: 10px; 
}

.bento-item img {
    width: 64px;  
    height: 64px;
    border-radius: 16px; 
    object-fit: cover;
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    
    background-color: var(--card-bg); 
}

.bento-item span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s;
    max-width: 80px; 
    line-height: 1.2;
}

/* --- ESTADOS DE INTERAÇÃO --- */
.bento-item:hover img {
    transform: translateY(-6px) scale(1.05); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.bento-item:hover span {
    color: var(--text-main); 
}

.bento-item.active img {
    box-shadow: 0 0 0 2px var(--primary), 0 10px 25px rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
}

.bento-item.active span {
    color: var(--primary); 
    font-weight: 700;
}


/* --- COLUNA DIREITA: DISPLAY AREA --- */
.project-display {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    min-height: 400px;
    position: relative;

    transition: opacity 0.3s ease;
}

.project-display.fade-out {
    opacity: 0.5;
    pointer-events: none;
}

.display-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.display-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.header-info h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.header-info .tags {
    display: flex;       
    gap: 10px;          
    flex-wrap: wrap;   
    margin-top: 8px;    
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.info-block {
    margin-bottom: 25px;
}

.info-block h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-block p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.display-gallery {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;      
    padding-bottom: 15px;  
    padding-top: 15px;
    
    scroll-behavior: smooth;
    
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.app-screen {
    height: 180px;         
    width: auto;            
    border-radius: 14px;    
    border: 2px solid #334155; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;        
}

.app-screen:hover {
    transform: scale(1.02); 
    border-color: var(--primary);
}

.display-actions {
    display: flex;
    gap: 15px;
}

/* BOTÕES DO DISPLAY (MINIMALISTAS)*/

.display-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px; 
}

.display-actions .btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    padding: 10px 24px; 
    border-radius: 99px; 
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

#btn-code {
    background: transparent;
    border: 1px solid #334155; 
    color: #94a3b8; 
}

#btn-code:hover {
    border-color: var(--text-main); 
    color: var(--text-main);
}

#btn-link {
    background: var(--primary); 
    border: 1px solid var(--primary);
    color: #0f172a; 
}

#btn-link:hover {
    background: var(--primary-hover, #7dd3fc); 
    border-color: var(--primary-hover, #7dd3fc);
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3); 
}

/* RESPONSIVIDADE */
@media (max-width: 850px) {
    .projects-container {
        grid-template-columns: 1fr; 
    }

    .bento-menu {
        grid-template-columns: repeat(3, 1fr); 
        margin-bottom: 20px;
    }
}

.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 9999; 
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(5px); 
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 85vh; 
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; 
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.app-screen,
.feat-image-wrapper img {
    cursor: zoom-in;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vol-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vol-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vol-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.vol-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1); 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.vol-title h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.vol-role {
    font-size: 0.9rem;
    color: var(--primary); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vol-list {

    padding: 0;
    margin: 0;
}

.vol-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-muted); 
    font-size: 14px;
    line-height: 1.5;
}

.vol-list li::before {
    content: "▹"; 
    position: absolute;
    left: 0;
    color: var(--primary); 
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .vol-header {
        flex-direction: column; 
        align-items: flex-start;
        text-align: left;
    }
}

/* 6. RODAPÉ */
footer {
  background: #020617;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

@media (max-width: 900px) {
  .experiencia-skills {
    grid-template-columns: 1fr;
    padding: 30px 5%;
  }
  
  .sobre {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .info p {
    margin: 0 auto 20px auto;
  }
  
  .social {
    align-items: center; 
  }
}

@media (max-width: 900px) {
    
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container, section {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        box-sizing: border-box; 
    }


    .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .experiencia-skills {
        grid-template-columns: 1fr; 
        padding: 30px 25px;
        gap: 40px;
        width: 100%;
    }

    .timeline-item {
        margin-left: 5px; 
        padding-right: 10px; 
    }

    .projects-container {
        grid-template-columns: 1fr; 
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    
    .bento-menu {
        width: 100%;
        display: flex;
        overflow-x: auto; 
        padding-bottom: 10px;
        gap: 15px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .bento-item {
        min-width: 70px; 
        flex-shrink: 0;  
    }

    .project-display {
        width: 100%; 
        min-width: 0; 
        padding: 20px; 
        margin: 0;
        box-sizing: border-box; 
        overflow: hidden;
    }

    .display-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .display-gallery {
        width: 100%;
        padding-bottom: 15px;
        overflow-x: auto; 
    }

    .app-screen {
        height: 180px; 
    }

    .volunteer-grid, 
    .featured-grid {
        grid-template-columns: 1fr; 
        width: 100%;
    }

    .vol-card, .featured-card {
        width: 100%;
        box-sizing: border-box;
    }
}