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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #058817;
    overflow-x: hidden;
    scroll-behavior: smooth;
}


::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #071b01;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ce0083, #00cc11);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #086d0d, #0b7407);
}


.binary-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200vh;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.binary-digit {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 25px;
    font-weight: bold;
    color: rgba(0, 255, 0, 0.822);
    top: -50px;
    animation: fall linear infinite;
    left: calc(var(--index) * 4.76%);
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.binary-digit:nth-child(1) { animation-duration: 8s; animation-delay: 0s; }
.binary-digit:nth-child(2) { animation-duration: 9s; animation-delay: 0.5s; }
.binary-digit:nth-child(3) { animation-duration: 10s; animation-delay: 1s; }
.binary-digit:nth-child(4) { animation-duration: 8.5s; animation-delay: 1.5s; }
.binary-digit:nth-child(5) { animation-duration: 9.5s; animation-delay: 2s; }
.binary-digit:nth-child(6) { animation-duration: 8s; animation-delay: 2.5s; }
.binary-digit:nth-child(7) { animation-duration: 10s; animation-delay: 3s; }
.binary-digit:nth-child(8) { animation-duration: 9s; animation-delay: 3.5s; }
.binary-digit:nth-child(9) { animation-duration: 8.5s; animation-delay: 4s; }
.binary-digit:nth-child(10) { animation-duration: 9.5s; animation-delay: 4.5s; }
.binary-digit:nth-child(11) { animation-duration: 8s; animation-delay: 5s; }

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #049628;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2b6e04;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #054203, #055810);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #01f722;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
    border-bottom: 1px solid rgba(7, 202, 0, 0.897);
    padding: 2rem;
    scroll-margin-top: 80px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}


.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(0, 185, 0, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(48, 206, 0, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

.hero-profile {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}


.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #066d0b;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(21, 116, 2, 0.5), 0 0 20px rgba(54, 148, 74, 0.3);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #14c004, #033b05);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #177405, #03641c);
    color: #0a0a0a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 255, 101, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: #046d15;
    border: 2px solid #08810e;
}

.btn-secondary:hover {
    background: rgba(75, 255, 59, 0.1);
    transform: translateY(-2px);
    border-color: #05aa29;
    color: #2fc709;
}

/* ====== SEÇÃO: O QUE ESTOU ESTUDANDO ====== */
.learning {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
}

.learning h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #067e24;
    position: relative;
    padding-bottom: 1rem;
}

.learning h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #04750a, #000000);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
s
.learning-card {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(98, 255, 59, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00FF00, #00AA00);
    z-index: 1;
}

.learning-card:hover {
    background: rgba(59, 255, 75, 0.1);
    border-color: #027e08;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(65, 255, 59, 0.2);
}

.learning-header {
    background: rgba(59, 255, 92, 0.1);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 212, 59, 0.2);
}

.learning-header h3 {
    color: #208302;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.learning-header p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.learning-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.learning-description {
    color: #00FF00;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.learning-detail {
    color: #c3c7c2;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* ====== ABOUT SECTION ====== */
.about {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
}

.about h2,
.projects h2,
.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0cc505a9;
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after,
.projects h2::after,
.skills h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #000000, #03c713);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}


.skills {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 212, 59, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #48ff00, #000000);
    border-radius: 4px 0 0 4px;
}

.skill-card:hover {
    background: rgba(255, 212, 59, 0.1);
    border-color: #00c42a;
    transform: translateY(-5px);
}

.skill-card h3 {
    color: #06a013;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.skill-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #009b15;
    font-weight: bold;
}


.projects {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
}

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

.project-card {
    background: rgb(0, 0, 0);
    border: 2px solid rgba(6, 196, 6, 0.87);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #03ce1e, #000000);
    z-index: 1;
}

.project-card:hover {
    background: rgba(32, 196, 17, 0.39);
    border-color: #24a803;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(12, 143, 8, 0.2);
}

.project-header {
    background: rgba(2, 128, 2, 0.1);
    padding: 2rem;
    border-bottom: 1px solid rgba(30, 255, 0, 0.678);
}

.project-header h3 {
    color: #01c922;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-header p {
    color: #f1f1f1;
    font-size: 0.9rem;
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: #dfd6d6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

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

.tech-tag {
    background: rgba(37, 182, 8, 0.15);
    color: #00a300;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 255, 69, 0.3);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(55, 172, 1, 0.25);
    border-color: #00ad0e;
    color: #157202;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links:has(> a:only-child) {
    justify-content: center;
}

.project-link {
    color: #029102;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(7, 163, 33, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.project-link:hover {
    background: linear-gradient(135deg, #028302, #039c1c);
    color: #0a0a0a;
    border-color: transparent;
}


.contact {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(75, 255, 59, 0.08) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 1px solid rgba(9, 155, 52, 0.2);
    scroll-margin-top: 80px;
    position: relative;
    z-index: 10;
}

.contact h2 {
    margin-bottom: 2rem;
}

.contact p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #41ff3b;
    border-radius: 4px;
    color: #08c011;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    position: relative;
}
.social-link[href*="github"] {
    position: relative; /* Garante que o ::before fique alinhado ao botão */
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-link[href*="github"]::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    
    /* 1. Substiua o caminho abaixo pelo nome/caminho do seu arquivo de imagem */
    background-image: url('Screenshot 2026-08-31 211453.png'); 
    
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-link:hover {
    background: linear-gradient(135deg, #03af1a, #0c9b30);
    color: #0a0a0a;
    transform: translateY(-5px);
    border-color: transparent;
}


footer {
    background: #05050a;
    border-top: 1px solid rgba(92, 255, 59, 0.2);
    padding: 2rem;
    text-align: center;
    color: #666;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about h2,
    .projects h2,
    .skills h2,
    .learning h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .binary-digit {
        font-size: 18px;
    }

    .code-content {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .code-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}