:root {
    /* Color System: 60% Neon Green / 40% Neon Purple */
    --neon-green: #b4ff00;
    --neon-green-muted: rgba(180, 255, 0, 0.2);
    --neon-purple: #9d00ff;
    --neon-purple-muted: rgba(157, 0, 255, 0.3);
    
    --void-base: #020202;
    --void-surface: rgba(12, 12, 12, 0.85);
    
    /* Dynamic Borders */
    --border-green: rgba(180, 255, 0, 0.3);
    --border-purple: rgba(157, 0, 255, 0.4);
    
    /* Typography */
    --font-ui: 'Inter', sans-serif;
    --font-display: 'Audiowide', cursive;
    --font-code: 'Libre Barcode 128 Text', cursive;
    
    /* Glows */
    --glow-green: 0 0 25px rgba(180, 255, 0, 0.5);
    --glow-purple: 0 0 35px rgba(157, 0, 255, 0.6);
    --ease-premium: cubic-bezier(0.2, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--void-base);
    color: #ffffff;
    font-family: var(--font-ui);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === BACKGROUND EFFECTS === */
.noise-background-fixed {
    position: fixed;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    background: url('../imagens/652a81c5d2f516632fee0fb0_noise_c57e95c375df.gif');
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    /* Mix of Green and Purple in the grid */
    background-image: 
        linear-gradient(rgba(180,255,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157,0,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* === FLOATING HARDWARE ICONS === */
.floating-icons-container {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.float-hw {
    position: absolute;
    opacity: 0.15;
    animation: floatHW linear infinite;
}

/* 60% Green / 40% Purple assignment for icons */
.float-hw.green { color: var(--neon-green); filter: drop-shadow(0 0 15px rgba(180,255,0,0.3)); }
.float-hw.purple { color: var(--neon-purple); filter: drop-shadow(0 0 20px rgba(157,0,255,0.4)); opacity: 0.2; }

@keyframes floatHW {
    0% { top: 110%; transform: rotate(-15deg) scale(0.8); opacity: 0; }
    15% { opacity: 0.15; }
    85% { opacity: 0.15; }
    100% { top: -10%; transform: rotate(25deg) scale(1.2); opacity: 0; }
}

/* === HERO SECTION (Left Aligned) === */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 100px 8%;
    position: relative;
    z-index: 10;
}

.hero-content-left {
    flex: 0 0 50%;
    max-width: 650px;
    text-align: left;
}

.hero-media-right {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-video-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
    border: 2px solid var(--neon-purple);
    box-shadow: var(--glow-purple);
    clip-path: polygon(10% 0, 100% 0, 100% 85%, 90% 100%, 0 100%, 0 15%);
    background: #000;
    position: relative;
    z-index: 5;
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s var(--ease-premium);
}
.hero-video-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}
.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-display); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.header-title { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1; }
.section-title { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; }
.overline-small { 
    font-size: 0.8rem; 
    letter-spacing: 0.3em; 
    text-transform: uppercase; 
    color: var(--neon-purple); 
    opacity: 0.9; 
    margin-bottom: 1rem; 
    display: block; 
}

.text-lg { font-size: 1.25rem; font-weight: 400; line-height: 1.7; }
.text-md { font-size: 1.1rem; font-weight: 300; opacity: 0.8; }
.text-sm { font-size: 0.9rem; opacity: 0.7; }
.barcode-text { font-family: var(--font-code); font-size: 3rem; color: var(--neon-green); opacity: 0.4; }

/* === GLITCH EFFECT (Green/Purple mix) === */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    pointer-events: none;
}
.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-green);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}
.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--neon-purple);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 94px, 0); }
    20% { clip: rect(60px, 9999px, 20px, 0); }
    100% { clip: rect(67px, 9999px, 34px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(15px, 9999px, 80px, 0); }
    100% { clip: rect(20px, 9999px, 90px, 0); }
}

/* === CYBER CARD === */
.cyber-card {
    background: var(--void-surface);
    border: 1px solid var(--border-green);
    border-top: 3px solid var(--neon-purple);
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium), background 0.5s var(--ease-premium);
    transform-style: preserve-3d;
    will-change: transform;
}

.cyber-card:hover {
    box-shadow: 20px 20px 30px rgba(0,0,0,0.8), var(--glow-green);
    border-color: var(--neon-green);
}

.cyber-card .card-content {
    transform: translateZ(40px);
}

.cyber-card .card-img-header {
    transform: translateZ(20px);
}

/* Buttons */
.cyber-btn {
    background: var(--neon-green);
    color: #000;
    font-family: var(--font-display);
    padding: 1.2rem 2.5rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    clip-path: polygon(0 0, 92% 0, 100% 25%, 100% 100%, 8% 100%, 0 75%);
    cursor: pointer;
    transition: all 0.3s var(--ease-premium);
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
}
.cyber-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-green);
}

.cyber-btn.purple {
    background: transparent;
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
}
.cyber-btn.purple:hover {
    background: rgba(157,0,255,0.15);
    box-shadow: var(--glow-purple);
}

/* Inputs */
.cyber-input {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-green);
    border-bottom: 2px solid var(--neon-purple);
    color: #fff;
    padding: 1.2rem;
    width: 100%;
    font-family: var(--font-ui);
    transition: 0.3s;
    outline: none;
}
.cyber-input:focus {
    background: rgba(180,255,0,0.03);
    box-shadow: inset 0 0 15px rgba(180,255,0,0.1);
    border-color: var(--neon-green);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tag.green { border: 1px solid var(--neon-green); color: var(--neon-green); background: rgba(180,255,0,0.05); }
.tag.purple { border: 1px solid var(--neon-purple); color: var(--neon-purple); background: rgba(157,0,255,0.05); }

/* === TEXT OUTLINE EFFECT === */
.text-outline {
    -webkit-text-stroke: 1.5px #fff;
    color: transparent;
}

/* === LAYOUT & SECTIONS === */
.ds-section {
    padding: 120px 8%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.ds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* === UTILITIES === */
.neon-green-text { color: var(--neon-green); text-shadow: var(--glow-green); }
.neon-purple-text { color: var(--neon-purple); text-shadow: var(--glow-purple); }

.swatch {
    width: 80px; height: 80px;
    border-radius: 2px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* === 03. SOBRE MIM & TIMELINE === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: 2rem;
    padding: 10px;
    background: linear-gradient(135deg, var(--neon-purple), transparent, var(--neon-green));
    box-shadow: var(--glow-purple);
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
    background: var(--void-surface);
    filter: grayscale(40%) contrast(1.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

/* Timeline Base Structure */
.timeline-outer {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 10;
}

.timeline-v-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.timeline-v-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-green));
    box-shadow: var(--glow-green);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.timeline-item-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 6rem;
}

.timeline-item-content {
    width: 50%;
    position: relative;
    display: flex;
}

/* Odd -> Content on Left */
.timeline-item-wrapper:nth-child(odd) { justify-content: flex-start; }
.timeline-item-wrapper:nth-child(odd) .timeline-item-content { justify-content: flex-end; padding-right: 5rem; text-align: right; }

/* Even -> Content on Right */
.timeline-item-wrapper:nth-child(even) { justify-content: flex-end; }
.timeline-item-wrapper:nth-child(even) .timeline-item-content { justify-content: flex-start; padding-left: 5rem; text-align: left; }

.timeline-v-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--void-base);
    border: 3px solid var(--neon-green);
    border-radius: 50%;
    z-index: 20;
    box-shadow: var(--glow-green);
}

.timeline-card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-green);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 450px;
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    z-index: 2;
}

.timeline-card-glass p {
    color: #ffffff !important;
    opacity: 0.9;
}

.timeline-card-glass:hover {
    border-color: var(--neon-purple);
    background: rgba(157,0,255,0.05);
    transform: translateY(-5px);
    box-shadow: var(--glow-purple);
}

.timeline-v-year {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: -40px;
    font-weight: 900;
    pointer-events: none;
    transition: color 0.4s ease;
    z-index: 10;
}

.timeline-item-wrapper:nth-child(odd) .timeline-v-year { right: 20px; }
.timeline-item-wrapper:nth-child(even) .timeline-v-year { left: 20px; }

.timeline-card-glass:hover + .timeline-v-year,
.timeline-card-glass:hover ~ .timeline-v-year,
.timeline-item-wrapper:hover .timeline-v-year {
    color: rgba(157,0,255,0.2);
}

.timeline-card-glass h3 {
    color: var(--neon-green);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--font-display);
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    
    .timeline-v-line, .timeline-v-progress { left: 20px; }
    .timeline-v-dot { left: 20px; }
    
    .timeline-item-wrapper:nth-child(odd), .timeline-item-wrapper:nth-child(even) {
        justify-content: flex-start;
    }
    
    .timeline-item-wrapper:nth-child(odd) .timeline-item-content,
    .timeline-item-wrapper:nth-child(even) .timeline-item-content {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        justify-content: flex-start;
    }
    
}

/* === 04. CONTATO & FORMULÁRIO === */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form {
    background: rgba(2, 2, 2, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: var(--neon-green);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cyber-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(116, 255, 10, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

textarea.cyber-input {
    min-height: 150px;
    resize: vertical;
}

/* Cyber Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.cyber-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.cyber-checkbox-label:hover {
    color: #fff;
}

.cyber-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cyber-checkbox-label:hover input ~ .checkmark {
    border-color: var(--neon-green);
    background-color: rgba(116, 255, 10, 0.1);
}

.cyber-checkbox-label input:checked ~ .checkmark {
    background-color: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(116, 255, 10, 0.5);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.cyber-checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.cyber-checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Socials Column */
.socials-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.social-card:hover {
    background: rgba(157, 0, 255, 0.1);
    border-color: var(--neon-purple);
    transform: translateX(10px);
    box-shadow: var(--glow-purple);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: var(--neon-green);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.social-info span {
    font-size: 0.9rem;
    color: var(--neon-green);
}

/* Success Message */
.form-success-message {
    display: none;
    background: rgba(116, 255, 10, 0.1);
    border: 1px solid var(--neon-green);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    text-align: center;
    color: #fff;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 2rem;
    }
}

/* ========== 05. FOOTER ========== */
.cyber-footer {
    background: var(--void-base);
}

.footer-social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--ease-premium);
    background: rgba(255, 255, 255, 0.03);
}

.footer-social-btn svg {
    width: 20px;
    height: 20px;
}

.footer-social-btn:hover {
    color: var(--neon-green);
    border-color: var(--neon-green);
    background: rgba(116, 255, 10, 0.1);
    box-shadow: var(--glow-green);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== FOOTER MARQUEE ========== */
.skills-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
    background: rgba(116, 255, 10, 0.02);
    border-top: 1px solid rgba(116, 255, 10, 0.1);
    border-bottom: 1px solid rgba(116, 255, 10, 0.1);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    margin-bottom: 40px;
}

.skills-marquee-container::before,
.skills-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
}

.skills-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--void-base) 0%, transparent 100%);
}

.skills-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--void-base) 0%, transparent 100%);
}

.skills-marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 50px;
    animation: scroll-marquee 45s linear infinite;
}

.skills-marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s var(--ease-premium);
    cursor: default;
}

.marquee-item svg {
    width: 24px;
    height: 24px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 5px rgba(116, 255, 10, 0.5));
    transition: all 0.3s var(--ease-premium);
}

.marquee-item:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.marquee-item:hover svg {
    color: var(--neon-purple);
    filter: drop-shadow(0 0 8px rgba(157, 0, 255, 0.8));
    transform: rotate(10deg);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
