/* Reset e variáveis */
:root {
    --primary-color: #00fff2;
    --secondary-color: #0891b2;
    --text-color: #e2e8f0;
    --bg-color: #0f172a;
    --accent-color: #4f46e5;
    --card-bg: rgba(15, 23, 42, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    cursor: none;
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 12px #00f0ff;
    pointer-events: none;
    z-index: 10000;
}
.trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #00f0ff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    box-shadow: 0 0 8px #00f0ff;
    transform: translate(-50%, -50%);
    animation: fadeOut 0.5s forwards;
  }
  
  @keyframes fadeOut {
    to {
      opacity: 0;
      transform: scale(1.5);
    }
  }


body, a, button {
    cursor: none !important;
}

/* Header e Navegação */
header {
    position: fixed;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 242, 0.1);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.glitch {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.subtitle {
  font-size: 1.5rem;
  margin: 2rem 0;
  opacity: 0.9;
  text-align: center;
}

.typewriter {
  display: inline-block;
  white-space: nowrap;
  border-right: 0.15em solid var(--primary-color);
  animation: blink-caret 0.75s step-end infinite;
}


@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* Botões e Links */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    z-index: 1;
}

.cta-button:hover {
    color: var(--bg-color);
}

.button-fx {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    z-index: -1;
}

.cta-button:hover .button-fx {
    width: 100%;
}

/* Seções */
section {
    padding: 5rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
    position: relative;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    margin-bottom: 3rem;
}

.text-container {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 0 auto 3rem;
    max-width: 700px;
    border: 1px solid rgba(0, 255, 242, 0.1);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-container.fade-in {
    transform: translateY(0);
    opacity: 1;
}

.reveal-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    text-align: center;
    position: relative;
    z-index: 1;
}

.text-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 242, 0.1), transparent);
    border-radius: 15px;
    z-index: 0;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Skills */
.skills-container {
    max-width: fit-content;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 242, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.skill-name {
    background: rgba(0, 255, 242, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 255, 242, 0.3);
    font-weight: 500;
    letter-spacing: 1px;
}

.project-technologies {
    margin: 1.5rem 0;
}

.tech-item {
    margin-bottom: 1rem;
}

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

.tech-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-percentage {
    color: var(--text-color);
    font-weight: 600;
    opacity: 0.9;
    font-size: 0.8rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: rgba(0, 255, 242, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 242, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 255, 242, 0.3);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    filter: blur(8px);
    opacity: 0.4;
}

/* Animação do brilho da barra de progresso */
@keyframes progressGlow {
    0% {
        filter: blur(8px) brightness(1);
    }
    50% {
        filter: blur(8px) brightness(1.2);
    }
    100% {
        filter: blur(8px) brightness(1);
    }
}

.progress-bar.animate .progress-glow {
    animation: progressGlow 2s ease-in-out infinite;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 242, 0.1);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.project-content {
    padding: 1.5rem;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 255, 242, 0.1);
}

.project-card h3 {
    color: var(--primary-color);
    margin: 1rem 0;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.project-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contato */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(0, 255, 242, 0.1);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(0, 255, 242, 0.1);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}

/* Animações */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor, .cursor-follower {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .language-selector {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin-left: 0;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Modal */

/* Estilos para o modal */
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 242, 0.2);
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Layout Rows/Columns */
.modal-row {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.modal-col {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.modal-full-col {
    flex: 100%;
    width: 100%;
}

/* Image Container */
.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 242, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Technologies Section */
.modal-tech-container {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 242, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.tech-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-technologies {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex-grow: 1;
    justify-content: center;
}

/* Tech Items */
.tech-item {
    width: 100%;
}

.tech-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tech-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-percentage {
    color: var(--text-color);
    font-weight: 600;
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Content Section */
.modal-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 255, 242, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.modal-link:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 242, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-row {
        flex-direction: column;
    }
    
    .modal-col {
        width: 100%;
    }
    
    .modal-image {
        max-height: 250px;
    }
    
    .modal-technologies {
        gap: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 1.5rem;
    }
    
    .modal-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-link {
        justify-content: center;
    }
}