:root {
    --bg-color: #020617;
    /* Deep Technical Navy */
    --bg-accent: rgba(30, 64, 175, 0.1);
    /* 0.1 Blue Background user requested */
    --text-color: #f8fafc;
    --primary-color: #bef264;
    /* Acid Green / Tech Green */
    --secondary-color: #38bdf8;
    /* Tech Cyan */
    --border-color: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(56, 189, 248, 0.05);
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background Overlay for the 0.1 blue effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-accent);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-color);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    border: 2px solid var(--primary-color);
    padding: 0.2rem 0.5rem;
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section - TYPOGRAPHIC BRUTALISM */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2rem;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    display: block;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 600px;
    margin-bottom: 3rem;
    color: #94a3b8;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1.25rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: white;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--text-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    position: absolute;
    right: 5%;
    width: 45%;
    opacity: 0.6;
    mix-blend-mode: luminosity;
    filter: grayscale(1);
    z-index: 1;
}

/* Sections */
section {
    padding: 150px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* Sobre */
.sobre-grid {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    padding: 5rem;
}

#about-description {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 4rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    list-style: none;
}

.skills-list li {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(190, 242, 100, 0.05);
}

/* Projetos */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.project-card:nth-child(even) {
    grid-template-columns: 0.8fr 1.2fr;
}

.project-card:nth-child(even) .project-img {
    order: 2;
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    filter: grayscale(1) contrast(1.2);
    transition: var(--transition);
}

.project-card:hover .project-img img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.02);
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.project-info p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Contacto */
.contacto-wrapper {
    max-width: 800px;
}

.contacto-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contacto-form textarea {
    grid-column: span 2;
}

.contacto-form input,
.contacto-form textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 0;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-bottom-color: var(--primary-color);
}

.contacto-form button {
    grid-column: span 2;
    margin-top: 2rem;
}

/* Footer */
footer {
    padding: 5rem 4rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .project-card {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .project-img {
        order: -1 !important;
    }

    .hero h1 {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .contacto-form {
        grid-template-columns: 1fr;
    }

    .contacto-form textarea {
        grid-column: span 1;
    }

    .contacto-form button {
        grid-column: span 1;
    }
}