/* Peak Productions — shared styles across all pages */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts/Bricolage_Grotesque/BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --accent: #00ff88;
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-main: 'Manrope', sans-serif;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-ui: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* Logo (header + footer) */
.logo-container { cursor: pointer; display: flex; align-items: center; }
.main-logo, .footer-logo {
    height: 25px; width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.main-logo:hover, .footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 8px rgba(0, 255, 136, 0.8));
}

/* Project-page navigation (project-1/2/3) */
.project-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 20px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-back-btn {
    font-family: var(--font-ui);
    border: 1px solid #ffffff; padding: 8px 24px; border-radius: 30px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.2px; transition: all 0.3s ease;
}
.nav-back-btn:hover { background: var(--accent); border-color: var(--accent); color: #000000; }

/* Footer */
footer {
    background: #050505; padding: 60px 5vw;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #111;
}
footer p { color: var(--text-muted); font-size: 0.9rem; }

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

/* Próximo Projeto — bottom of each project page */
.next-project {
    padding: 100px 5vw;
    text-align: center;
    border-top: 1px solid #111;
    background: var(--bg-card);
}
.next-project .label {
    display: block;
    font-family: var(--font-ui);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.next-project a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -1px;
    transition: color 0.3s ease;
    display: inline-block;
    font-variation-settings: "opsz" 64;
}
.next-project a:hover { color: var(--accent); }
.next-project a::after {
    content: " →";
    display: inline-block;
    transition: transform 0.3s ease;
}
.next-project a:hover::after { transform: translateX(10px); }

/* Back-to-top floating button */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 998;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25);
    font-family: var(--font-main);
    font-weight: 700;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.5);
}

@media (max-width: 600px) {
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
    .next-project { padding: 70px 5vw; }
}
