* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000;
    --text-primary: #fff;
    --text-hover: #000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.2);
  }
  
  #tech-projects {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem 1rem;
  }
  #tech-projects .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  #tech-projects .content-block {
    margin-bottom: 3rem;
  }
  
  #tech-projects .tech-carousel {
    display: flex;
    overflow-x: hidden;
    gap: 1.5rem;
    cursor: grab;
    user-select: none;
    padding-bottom: 0.5rem;
  }
  #tech-projects .tech-carousel.dragging {
    cursor: grabbing;
  }
  
  #tech-projects .tech-carousel::-webkit-scrollbar {
    display: none;
  }
  #tech-projects .tech-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  #tech-projects .tech-item {
    flex: 0 0 auto;
    width: 140px;
    height: 160px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--text-primary);
  }
  
  #tech-projects .tech-item:hover,
  #tech-projects .tech-item:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    color: var(--text-hover);
  }
  
  #tech-projects .tech-logo {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
  }
  
  #tech-projects .tech-item:hover .tech-logo,
  #tech-projects .tech-item:focus .tech-logo {
    filter: none;
  }
  
  #tech-projects .tech-item h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.2;
  }
  
  @media (max-width: 900px) {
    #tech-projects .tech-item {
      width: 130px;
      height: 150px;
    }
    #tech-projects .tech-logo {
      max-width: 50px;
      max-height: 50px;
    }
    #tech-projects .tech-item h4 {
      font-size: 0.95rem;
    }
  }
  
  @media (max-width: 600px) {
    #tech-projects .tech-item {
      width: 120px;
      height: 140px;
      padding: 0.5rem 0.25rem;
    }
    #tech-projects .tech-logo {
      max-width: 40px;
      max-height: 40px;
    }
    #tech-projects .tech-item h4 {
      font-size: 0.9rem;
    }
  }
  
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #0a0a0a;
        --text-primary: #ffffff;
        --text-secondary: #999999;
        --accent: #ffffff;
        --border: #1a1a1a;
        --shadow: rgba(255, 255, 255, 0.1);
    }
}

.social-links {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 2;
  }
  
  .social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    overflow: hidden;
  }
  
  .social-links .social-logo {
    max-width: 1.75rem;
    max-height: 1.75rem;
    width: auto;
    height: auto;
    transition: filter 0.2s ease;
    filter: brightness(0) invert(1);
  }
  
  .social-links a:hover {
    background-color: var(--text-primary);
    transform: scale(1.1);
  }
  
  .social-links a:hover .social-logo {
    filter: none;
  }
  
  /* Foco via teclado (acessibilidade) */
  .social-links a:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
  }
  
  @media (max-width: 600px) {
    .social-links {
      bottom: 12vh;
      gap: 1rem;
    }
    .social-links a {
      width: 3rem;
      height: 3rem;
    }
    .social-links .social-logo {
      max-width: 1.5rem;
      max-height: 1.5rem;
    }
  }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
    cursor: none;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 40px;
    height: 40px;
    background: var(--shadow);
}

.badge-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--bg-primary);
}

.lanyard-system {
    position: relative;
    width: 60vw;
    max-width: 400px;
    height: 70vh;
    max-height: 500px;
}

.badge {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 40vw;
    max-width: 260px;
    padding: 
        clamp(20px, 5vw, 40px)
        clamp(15px, 3vw, 30px);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    transform-origin: 50% -20px;
}

.badge:hover {
    box-shadow: 0 20px 40px var(--shadow);
}

.profile-pic {
    width: 30vw;
    max-width: 120px;
    height: 30vw;
    max-height: 120px;
    margin: 0 auto 2vw;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.badge:hover .profile-pic img {
    transform: none;
}

.badge h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.badge p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    opacity: 0.5;
    cursor: pointer;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.section {
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
    background: var(--bg-primary);
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-block {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.content-block .block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
  }
  
  .content-block .block-title .icon-inline {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    flex-shrink: 0;
  }

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.content-block p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.5);
    background: var(--accent);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 5px;
}

.timeline-content .period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.icon-fill {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
    flex-shrink: 0;
    margin-right: 0.5em;
  }
  
  .section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem; 
  }

  .section {
    margin-top: 3rem;
  }
  
  .section-title:hover {
    color: var(--accent-color);
    cursor: default;
  }

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.tech-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.tech-item:hover {
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.tech-item:hover::before {
    transform: translateY(0);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tech-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.project-image {
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.1;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 4px 12px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .badge {
        width: 220px;
        padding: 30px 20px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}