* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

* { cursor: crosshair; }
a, button { cursor: crosshair; }


.hero-grid {
    background-image:
        linear-gradient(rgba(0,255,157,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,157,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.spin-slow { animation: spinSlow 12s linear infinite; }

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}
.spin-reverse { animation: spinReverse 18s linear infinite; }

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(0,255,157,0.4), 0 0 40px rgba(0,255,157,0.2); }
    50%       { text-shadow: 0 0 40px rgba(0,255,157,0.7), 0 0 80px rgba(0,255,157,0.3); }
}
.glow-text { animation: textGlow 3s ease-in-out infinite; }

.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 157, 0.6);
    animation: float linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%   { transform: translateY(100vh) scale(0); opacity: 0;   }
    10%  { opacity: 1;   }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.project-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 255, 157, 0.15),
                0 0 0 1px rgba(0, 255, 157, 0.3);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;                      
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; } 

.skill-badge {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden; 
}
.skill-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,157,0.2), transparent);
    transition: left 0.5s ease;
}
.skill-badge:hover::before { left: 100%; }  
.skill-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.3);
    border-color: rgba(0, 255, 157, 0.8) !important;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #00ff9d, #00cc7d);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.5),
                0 0 80px rgba(0, 255, 157, 0.2);
    transform: translateY(-2px);
}

.progress-bar {
    width: 0%;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #00ff9d;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0,255,157,0.8);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.line-grow {
    animation: lineGrow 1s ease forwards;
}
@keyframes lineGrow {
    from { width: 0;    }
    to   { width: 80px; }
}

.stat-number { font-family: 'Syne', sans-serif; }

.gradient-border {
    position: relative;
    background: rgba(15, 23, 42, 0.8);
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,255,157,0.5), transparent, rgba(59,130,246,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.about-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.about-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #00ff9d, #3b82f6);
    transition: width 0.4s ease;
}
.about-card:hover::after { width: 100%; }
.about-card:hover { transform: translateY(-4px); }

.social-icon {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icon:hover {
    transform: translateY(-5px) scale(1.15);
}

.typing-cursor::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: #00ff9d;
    margin-left: 2px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020817; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 157, 0.7); }

/* Cor de seleção de texto */
::selection { background: #00ff9d; color: #020817; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);     }
}
.hero-element {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.hero-element:nth-child(1) { animation-delay: 0.1s; }
.hero-element:nth-child(2) { animation-delay: 0.3s; }
.hero-element:nth-child(3) { animation-delay: 0.5s; }
.hero-element:nth-child(4) { animation-delay: 0.7s; }
.hero-element:nth-child(5) { animation-delay: 0.9s; }

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