:root {
    --bg: #0a0a0a;
    --text: #f0f0f0;
    --muted: #555;
    --sans: 'Inter Tight', sans-serif;
    --mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Base link styles */
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Utility classes */
.mono {
    font-family: var(--mono);
}

.muted {
    color: var(--muted);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 48px;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo a {
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 300;
    transition: color 0.3s ease;
}

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

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 48px;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

#hero h1 {
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 24px;
}

.tagline {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 48px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* Reveal Animations (Etapa 4) */
.reveal-text,
.reveal-text-delay,
.scroll-hint {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible .reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.is-visible .reveal-text-delay {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.is-visible .scroll-hint {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* About Section (Etapa 6) */
#about {
    padding: 120px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.label {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.facts {
    list-style: none;
    line-height: 2;
    font-size: 13px;
}

.about-right p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 800px;
}

/* Access Section (Etapa 7) */
#access {
    padding: 120px 48px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.access-container {
    max-width: 400px;
    margin: 0 auto;
}

.access-input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--muted);
    margin-top: 32px;
    transition: border-color 0.3s ease;
}

.access-input-group:focus-within {
    border-color: var(--text);
}

#accessCode {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    padding: 12px 0;
    width: 100%;
    font-size: 18px;
}

#accessBtn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    padding: 0 12px;
    transition: transform 0.3s ease;
}

#accessBtn:hover {
    transform: translateX(5px);
}

#accessError {
    font-size: 12px;
    margin-top: 12px;
    height: 18px;
    color: #ff4444;
}

/* Projects Section (Etapa 9) */
#projects {
    padding: 120px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 48px;
    margin-top: 48px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border-radius: 2px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-info h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    line-height: 1;
}

.project-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 440px;
}

.view-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.project-card:hover .view-link {
    border-color: var(--text);
}

.projects-footer {
    margin-top: 100px;
    text-align: center;
}

.btn-ver-todos {
    font-size: 13px;
    letter-spacing: 3px;
    padding: 20px 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ver-todos:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Footer Section (Etapa 8) */
#footer {
    padding: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-right {
    display: flex;
    gap: 32px;
}

.footer-right a {
    font-size: 12px;
    letter-spacing: 1px;
}

/* Scroll Animation Helper */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* RESPONSIVIDADE (Etapa 8) */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    #hero h1 {
        font-size: 15vw;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 24px;
    }
    
    #hero, #about, #access, #footer {
        padding: 80px 24px;
    }
    
    .nav-links {
        display: none; /* Simplificação mobile */
    }
    
    .footer-container {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .btn-ver-todos {
        padding: 16px 32px;
        font-size: 11px;
        width: 100%;
        display: block;
    }
}

/* Shake Animation */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
