* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030014;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body * {
    -webkit-tap-highlight-color: transparent;
}


.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(10, 5, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 60px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.2);
    animation: menuGlow 3s infinite alternate;
}

@keyframes menuGlow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.2);
        border-color: rgba(138, 43, 226, 0.3);
    }
    100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(138, 43, 226, 0.4);
        border-color: rgba(138, 43, 226, 0.6);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo .logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text-nav {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #c77dff, #8a2be2, #b86eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    transition: all 0.3s ease;
}

.logo-text-nav:hover {
    text-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1.1rem;
    color: #8a2be2;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.nav-link:hover i {
    color: #c77dff;
    transform: scale(1.1);
}

.nav-link.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.nav-link.active i {
    color: #c77dff;
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: #8a2be2;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.1);
}

.nav-toggle:hover {
    color: #c77dff;
    background: rgba(138, 43, 226, 0.2);
    transform: scale(1.1);
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 5, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.mobile-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c77dff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-close {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: rgba(138, 43, 226, 0.4);
    transform: rotate(90deg);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-link i {
    font-size: 1.4rem;
    color: #8a2be2;
    width: 30px;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
    color: #fff;
    transform: translateX(10px);
}

.mobile-link.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
    color: #fff;
}

.mobile-link.active i {
    color: #c77dff;
}


.container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
}


.setor {
    width: 100%;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    min-height: 100vh;
    height: auto;
}

#setor1 {
    background-color: #000000;
}

#setor2 {
    background-color: #020005;
}

#setor3 {
    background-color: #000000;
    min-height: 100vh;
    position: relative;
}


.setor canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    touch-action: none;
}

#canvas2 {
    filter: blur(20px) contrast(1.3);
}


.content-overlay {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.content-overlay > * {
    pointer-events: auto;
}

#setor2 .content-overlay {
    justify-content: flex-start;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

#setor3 .content-overlay {
    display: none;
}


.setor1-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 60px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #c77dff, #8a2be2, #4b0082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.setor1-phrase {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #b8a9d4;
    max-width: 600px;
    line-height: 1.4;
    font-weight: 400;
    border-left: 3px solid #8a2be2;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}


.buttons-container {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.base-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.zoom-btn {
    background: rgba(120, 80, 200, 0.25);
    border: 1px solid rgba(160, 120, 255, 0.5);
    box-shadow: 0 4px 20px rgba(120, 80, 200, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.zoom-btn:hover {
    background: rgba(140, 100, 220, 0.35);
    border-color: rgba(180, 140, 255, 0.8);
    box-shadow: 0 6px 25px rgba(140, 100, 220, 0.3);
    transform: translateY(-2px);
}

.zoom-btn.active {
    background: rgba(200, 80, 120, 0.25);
    border-color: rgba(255, 120, 160, 0.6);
    box-shadow: 0 4px 20px rgba(200, 80, 120, 0.2);
}

.play-btn {
    background: rgba(80, 180, 220, 0.2);
    border: 1px solid rgba(120, 200, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 160, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.play-btn:hover {
    background: rgba(100, 200, 250, 0.25);
    border-color: rgba(150, 220, 255, 0.6);
    box-shadow: 0 6px 25px rgba(0, 180, 255, 0.2);
    transform: translateY(-2px);
}


.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    background-color: #000;
}

.game-container.active {
    display: block;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.back-btn {
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 2001;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    color: white;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px);
}

.back-btn.active {
    display: flex;
}


.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: #8a2be2;
    transform: scale(1.2);
}

.nav-dot.active {
    background: #8a2be2;
    box-shadow: 0 0 20px #8a2be2;
    transform: scale(1.2);
}


.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    margin-bottom: 8rem;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpGlow 1s ease forwards;
    animation-play-state: paused;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    transition: text-shadow 0.3s ease;
}

.section.visible .animated-text {
    animation-play-state: running;
}

.animated-text-delay-1 {
    animation-delay: 0.2s;
}

.animated-text-delay-2 {
    animation-delay: 0.4s;
}

.animated-text-delay-3 {
    animation-delay: 0.6s;
}

.animated-text-delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUpGlow {
    0% {
        opacity: 0;
        transform: translateY(20px);
        text-shadow: 0 0 0 rgba(138, 43, 226, 0);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    }
}


.subtitle {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #8a2be2;
    margin-bottom: 1.5rem;
    position: relative;
    font-family: 'Orbitron', sans-serif;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.highlight {
    color: #8a2be2;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8a2be2, transparent);
    animation: line-glow 2s infinite;
}

@keyframes line-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: rgba(20, 10, 40, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #8a2be2;
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
}

.card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 2.5rem;
    color: #8a2be2;
    margin-bottom: 1.5rem;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    color: #b8a9d4;
    line-height: 1.6;
}


.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #8a2be2, #c77dff, #8a2be2, transparent);
    animation: timeline-pulse 3s infinite;
}

@keyframes timeline-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px #8a2be2;
    text-stroke: 2px #8a2be2;
    animation: year-glow 2s infinite;
    font-family: 'Orbitron', sans-serif;
}

@keyframes year-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
    }
}

.timeline-content {
    width: 45%;
    background: rgba(20, 10, 40, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #8a2be2;
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #c77dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-content p {
    color: #b8a9d4;
    line-height: 1.6;
}

.description-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 900px;
    margin: 4rem auto 0;
    text-align: center;
    color: #b8a9d4;
    line-height: 1.8;
}


@media (max-width: 768px) {
    .main-nav {
        top: 10px;
        padding: 0.3rem 1rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-logo .logo-text-nav {
        font-size: 1.2rem;
    }

    .setor1-content {
        padding-top: 80px;
    }

    .content-overlay {
        padding: 2rem 1rem;
    }

    #setor2 .content-overlay {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }

    .timeline-year {
        margin-bottom: 1rem;
        font-size: 2rem;
    }

    .timeline-content {
        width: 100%;
    }

    .nav-dots {
        display: none;
    }

    .buttons-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .base-btn {
        padding: 12px 20px;
        min-width: 140px;
        font-size: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .back-btn {
        top: 80px;
        left: 15px;
        padding: 10px 18px;
        font-size: 14px;
    }
}


@media (max-width: 480px) {
    .main-nav {
        width: 95%;
    }

    .setor1-phrase {
        max-width: 100%;
        padding-left: 1rem;
        margin-left: 0;
    }

    .buttons-container {
        bottom: 15px;
        right: 15px;
    }

    .base-btn {
        padding: 10px 16px;
        min-width: 120px;
        font-size: 12px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }
}


@media (max-height: 600px) and (orientation: landscape) {
    .setor1-content {
        padding-top: 70px;
    }

    .logo-text {
        font-size: 3rem;
    }

    .buttons-container {
        bottom: 10px;
        right: 10px;
    }

    .content-overlay {
        padding: 2rem 1rem;
    }

    .grid {
        margin: 2rem 0;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }
}


.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 10, 40, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c77dff, #8a2be2);
}