:root {
    --primary: #000000;
    --text-main: #1d1d1f;
    --text-light: #86868b;
    --bg-main: #ffffff;
    --bg-sec: #f5f5f7;
    --border: #e5e5ea;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s;
    transition-timing-function: ease-out;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    font-style: italic;
    font-weight: 300;
    color: var(--text-light);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--bg-main);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: pointer;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    color: white;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* For parallax */
}

/* Overlay sutil para manter legibilidade */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content p {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

/* About */
.about {
    padding: 10rem 5%;
    background: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-img img {
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

/* Portfolio */
.portfolio {
    padding: 10rem 5%;
    background: var(--bg-sec);
}

.section-header {
    margin-bottom: 5rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: none;
    background: #e0e0e0;
}

.project-card:nth-child(even) {
    transform: translateY(3rem);
}

.project-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

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

.project-info span {
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: var(--font-body);
}

/* Contact */
.contact {
    padding: 10rem 5%;
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 5rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
    color: var(--text-main);
}

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

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-light);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    filter: grayscale(100%) opacity(0.8);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: grayscale(0%) opacity(1);
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
    background: var(--bg-main);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-card:nth-child(even) {
        transform: translateY(0);
    }
    
    .navbar {
        mix-blend-mode: normal;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        color: var(--text-main);
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none; /* Em versão real usaria um menu hamburguer */
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}
