/* ===== PÁGINAS ===== */
.page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding-top: 120px;
}

/* ===== BACKGROUND ===== */
.background {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 120px);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg {
    opacity: 0.15;
    user-select: none;
    pointer-events: none;
    animation: floatBg 8s ease-in-out infinite;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== HOME - Duas imagens lado a lado ===== */
.home .background {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.home .bg-left {
    width: 35%;
    height: auto;
    animation: floatBg 8s ease-in-out infinite;
}

.home .bg-right {
    width: 54%;
    height: auto;
    animation: floatBg 6s ease-in-out infinite reverse;
}

/* ===== CONTEÚDO HOME ===== */
.content {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    gap: 80px;
}

.home-text {
    flex: 1;
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.home-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #7BE760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(123, 231, 96, 0.3);
}

.home-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.home-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.green-border {
    width: 350px;
    height: 350px;
    border: 3px solid #7BE760;
    border-radius: 20px;
    background: #001313;
    box-shadow:
        0 0 30px rgba(123, 231, 96, 0.3),
        inset 0 0 30px rgba(123, 231, 96, 0.15);
    animation: boxGlow 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.terminal-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #001313;
    border-radius: 15px;
    padding: 20px;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #7BE760;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.5px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
}

.typing-text {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 24px;
    background: #7BE760;
    margin-left: 2px;
    animation: blink 1s infinite;
    box-shadow: 0 0 10px rgba(123, 231, 96, 0.8);
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes boxGlow {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(123, 231, 96, 0.3),
            inset 0 0 30px rgba(123, 231, 96, 0.15);
    }

    50% {
        box-shadow:
            0 0 50px rgba(123, 231, 96, 0.5),
            inset 0 0 50px rgba(123, 231, 96, 0.25);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== ABOUT, PROJECTS, CONTACT - Imagem centralizada ===== */
.about .background,
.projects .background,
.contact .background {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .bg-center,
.projects .bg-center,
.contact .bg-center {
    width: 60%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-hint svg {
    width: 30px;
    height: 30px;
    stroke: #7BE760;
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(123, 231, 96, 0.5));
}

/* ===== ABOUT PAGE ===== */
.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    gap: 100px;
}

.about-skills {
    flex: 0 0 auto;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.skills-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #7BE760;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.skills-image {
    width: 350px;
    height: auto;
    border: 3px solid #7BE760;
    border-radius: 20px;
    padding: 20px;
    background: rgba(123, 231, 96, 0.05);
    box-shadow:
        0 0 30px rgba(123, 231, 96, 0.3),
        inset 0 0 30px rgba(123, 231, 96, 0.1);
}

.about-text {
    flex: 1;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.about-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.about-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #7BE760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    letter-spacing: 3px;
    line-height: 1.1;
}

.about-description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: justify;
    text-transform: uppercase;
    max-width: 100%;
}

.about-description .typing-text {
    display: inline;
    color: rgba(255, 255, 255, 0.8);
}

.about-description .cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #7BE760;
    margin-left: 2px;
    animation: blink 1s infinite;
    box-shadow: 0 0 10px rgba(123, 231, 96, 0.8);
}

/* ===== ABOUT GIF ===== */
.about-gif {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

.lego-gif {
    width: 100%;
    max-width: 30vw;
    height: auto;
    object-fit: contain;
}

/* ===== ABOUT GIF ===== */
.about-gif {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

.lego-gif {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* ===== PROJECTS PAGE ===== */
.projects-layout {
    display: flex;
    gap: 60px;
    width: 100%;
    height: 100%;
    align-items: center;
}

/* ===== CAROUSEL SECTION À ESQUERDA ===== */
.projects-carousel-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.carousel-container {
    overflow: hidden;
    width: 500px;
}

.projects-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== PROJECT CARD ===== */
.project-card {
    flex: 0 0 500px;
    width: 500px;
    height: 580px;
    border: 3px solid #7BE760;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(123, 231, 96, 0.08), rgba(0, 210, 160, 0.03));
    box-shadow:
        0 0 40px rgba(123, 231, 96, 0.3),
        inset 0 0 40px rgba(123, 231, 96, 0.1);
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    box-shadow:
        0 0 60px rgba(123, 231, 96, 0.5),
        inset 0 0 60px rgba(123, 231, 96, 0.2);
}

.project-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #7BE760;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(123, 231, 96, 0.3);
}

.project-card-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    flex: 1;
}

.project-card-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.tech-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #001313;
    background: linear-gradient(135deg, #7BE760, #00D2A0);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ===== CAROUSEL BUTTONS ===== */
.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #7BE760;
    background: rgba(123, 231, 96, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.carousel-btn:hover {
    background: rgba(123, 231, 96, 0.3);
    box-shadow: 0 0 10px rgba(123, 231, 96, 0.6);
    transform: scale(1.1);
}

.carousel-btn img {
    width: 35px;
    height: 35px;
}

/* ===== TEXTOS À DIREITA ===== */
.projects-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.projects-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #7BE760;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.projects-description {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 500px;
}

/* ===== BOTÃO DO PROJETO ===== */
.project-card-actions {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.project-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #7BE760, #00D2A0);
    color: #001313;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(123, 231, 96, 0.3);
    white-space: nowrap;
}

.project-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px rgba(123, 231, 96, 0.6);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.project-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== CONTACT PAGE ===== */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 120px;
}

.contact-container {
    display: flex;
    gap: 80px;
    align-items: stretch;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px 40px;
    height: fit-content;
}

/* ===== LADO ESQUERDO - TEXTOS E REDES SOCIAIS ===== */
.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: flex-start;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.contact-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #7BE760, #00D2A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* ===== REDES SOCIAIS ===== */
.social-networks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 260px;
}

.social-icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #7BE760;
    border-radius: 50%;
    background: rgba(123, 231, 96, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(123, 231, 96, 0.2);
    cursor: pointer;
    text-decoration: none;
}

.social-icon img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1) translateY(-8px);
    background: rgba(123, 231, 96, 0.15);
    box-shadow: 0 0 40px rgba(123, 231, 96, 0.4);
}

.social-icon:active {
    transform: scale(1.05);
}

/* ===== LADO DIREITO - FORMULÁRIO ===== */
.contact-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    border: 3px solid #7BE760;
    border-radius: 20px;
    background: rgba(123, 231, 96, 0.03);
    box-shadow: 0 0 30px rgba(123, 231, 96, 0.2);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInScale 0.8s ease-out 0.4s backwards;
}

/* Customizar scrollbar do formulário */
.contact-form::-webkit-scrollbar {
    width: 8px;
}

.contact-form::-webkit-scrollbar-track {
    background: rgba(123, 231, 96, 0.05);
    border-radius: 10px;
}

.contact-form::-webkit-scrollbar-thumb {
    background: rgba(123, 231, 96, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 231, 96, 0.5);
}

.form-input,
.form-textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #001313;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 19, 19, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    background: white;
    box-shadow: 0 0 20px rgba(123, 231, 96, 0.4);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 250px;
    font-family: 'Poppins', sans-serif;
    text-transform: none;
}

.form-button {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7BE760, #00D2A0);
    color: #001313;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 30px rgba(123, 231, 96, 0.3);
    margin-top: 10px;
}

.form-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 50px rgba(123, 231, 96, 0.5);
}

.form-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}