:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-1: #00f0ff;
    --accent-2: #7000ff;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Esconde o cursor padrão para usar o customizado */
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover .cursor {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Background Blob */
.bg-gradient-blob {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(112,0,255,0.15) 0%, rgba(0,240,255,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%; /* Ajuste fino de padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.navbar-logo {
    height: 45px; /* Define altura fixa para o logotipo */
    width: auto;
    object-fit: contain;
}

.menu-links {
    display: flex;
    align-items: center;
}

.menu-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-btn {
    border: 1px solid var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-1);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 500px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-1);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    to { left: 100%; }
}

/* Portfolio Work */
.work {
    padding: 10rem 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.project-card {
    position: relative;
}

.project-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .mockup-placeholder {
    transform: scale(1.05);
}

.mockup-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tech-stack span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    color: #ccc;
}

/* Marquee */
.expertise {
    padding: 5rem 0;
    background: var(--text-primary);
    color: var(--bg-color);
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
footer {
    padding: 10rem 5% 2rem;
    text-align: center;
}

footer h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.big-mail {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 6rem;
    transition: color 0.3s;
}

.big-mail:hover {
    color: var(--accent-1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card[style] {
        margin-top: 0 !important;
    }
    .cursor, .cursor-follower {
        display: none; /* Desativa cursor customizado em mobile */
    }
    * { cursor: auto; }
    .navbar { flex-direction: column; gap: 1rem; }
    .menu-links { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .menu-links a { margin: 0 0.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}