@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Montserrat:wght@300;400;600;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body, html {
    width: 100%;
    overflow-x: hidden;
    background-color: #050508;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: #a881ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

.scroll-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10001;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff81e6, #a881ff, #6b33ff);
    box-shadow: 0 0 15px #a881ff;
}

#webgl-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Fundo mais transparente para a galáxia brilhar intensamente */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(5,5,8,0.4) 0%, rgba(15,10,25,0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Botão Flutuante do WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.static-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
}

.brand-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.brand-logo-icon {
    height: 45px;
    width: auto;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glitch-text-logo {
    color: #000;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    line-height: 1;
    position: relative;
}

.chromatic-subtext {
    color: #555;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2px;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Tamanho dinâmico clamp() e quebra de palavra para não cortar no Android */
.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, #a881ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: center;
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 150px;
    min-height: 100vh;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.name-designer {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #a881ff, #ff81e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: block;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    line-height: 1.1;
    word-break: break-word;
}

.glitch-hero {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 300;
    color: #ddd;
    margin-bottom: 10px;
}

.typing-container {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: #bbb;
    margin: 20px 0 50px 0;
    min-height: 60px;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.profile-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.9));
    transform: translateZ(50px);
}

/* Ícone Animado do Mouse */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid #a881ff;
    border-radius: 20px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #ff81e6;
    border-radius: 4px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Estrutura do Novo Dual Marquee */
.marquee-wrapper {
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: rotate(-2deg) scale(1.05);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
}

.about-topics {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.topic-box {
    padding: 40px;
    border-radius: 20px;
}

.topic-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Syne', sans-serif;
}

.skills-grid {
    display: grid;
    /* Ajuste para não espremer no celular */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skill-card {
    padding: 50px 40px;
    border-radius: 30px;
}

@media (max-width: 1024px) {
    .hero-section {
        gap: 30px;
    }
    .profile-img {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
    }
    .btn-group {
        justify-content: center;
    }
    .profile-img {
        max-width: 350px;
        margin-top: 30px;
    }
    .brand-container {
        padding: 10px 25px;
    }
    .glitch-text-logo {
        font-size: 1.2rem;
    }
    .custom-cursor {
        display: none;
    }
    * {
        cursor: auto !important;
    }
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .scroll-indicator {
        display: none; /* Esconde no celular para focar no conteúdo */
    }
}