:root {
    --bg-dark: #0a0a0f;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.4);
    --accent: #00f2fe;
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --emerald: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #cbd5e1; /* Alto contraste para acessibilidade WCAG */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
    touch-action: none; /* Previne zoom e scroll nativo do celular */
}

/* Respiração Prânica Profunda com Transmutação de Cores (Ciclo Lento de 18s) */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.2) 0%, transparent 35%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 40%);
    background-size: 150% 150%;
    animation: pranicBreathingCycle 30s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pranicBreathingCycle {
    0% {
        background-position: 0% 0%;
        transform: scale(1);
        opacity: 0.8;
    }
    33% {
        background-position: 100% 0%;
        transform: scale(1.05);
        opacity: 0.95;
    }
    66% {
        background-position: 100% 100%;
        transform: scale(1.02);
        opacity: 0.9;
    }
    100% {
        background-position: 0% 100%;
        transform: scale(1.08);
        opacity: 0.85;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Gradientes apenas para spans específicos de títulos, NÃO globais */
h1 span, h2 span, .text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 85px;
    object-fit: contain;
    transition: var(--transition);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.2)) brightness(0.95);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) brightness(1.15);
    }
    100% {
        filter: drop-shadow(0 0 2px rgba(0, 255, 255, 0.2)) brightness(0.95);
    }
}

.logo-img:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 100px;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

/* Controles de Acessibilidade & Harmonia */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.45rem 0.85rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.control-btn.active#calmModeBtn {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--emerald);
    color: #6ee7b7;
}

.control-btn.active#zenAudioBtn {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--gold);
    color: #fde68a;
}

/* MODO CALMARIA (Conforto Sensorial / Neurodiversidade) */
body.calm-mode::before,
body.calm-mode .logo-img,
body.calm-mode .glass-card,
body.calm-mode .team-card {
    animation: none !important;
}

body.calm-mode #ambientCanvas {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *, body::before, .logo-img, .glass-card, .team-card {
        animation: none !important;
        transition: none !important;
    }
    #ambientCanvas {
        display: none !important;
    }
}

.btn-primary {
    display: inline-block;
    color: #ffffff !important;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px var(--primary-glow);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px var(--primary-glow);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-top: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-graphics {
    flex: 1;
    position: relative;
    height: 500px;
}

.glass-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
}

.float-1 { width: 250px; height: 350px; top: 10%; right: 10%; animation: float 6s ease-in-out infinite; background-image: url('./Assets/Images/Projects/img_3.png'); }
.float-2 { width: 180px; height: 180px; bottom: 20%; left: 10%; animation: float 8s ease-in-out infinite reverse; background-image: url('./Assets/Images/Projects/img_4.png'); border-radius: 50%; }
.float-3 { width: 120px; height: 120px; top: 5%; left: 30%; animation: float 5s ease-in-out infinite 1s; background-image: url('./Assets/Images/Projects/img_5.png'); }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* PROJECTS SECTION */
.projects-section, .team-section {
    padding: 5rem 5%;
}

.projects-section h2, .team-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
}

.portal-aruanda:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.15);
}

.portal-holistic:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.15);
}

.project-img {
    height: 240px;
    background-image: url('Assets/Images/Projects/img_1.png');
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portal-aruanda:hover .project-img,
.portal-holistic:hover .project-img {
    transform: scale(1.03);
}

.placeholder-img2 { 
    background-image: url('Assets/Images/Projects/img_2.png');
}

.project-info {
    padding: 2rem;
}

/* Badges de Identidade dos Jogos */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

.badge-ancestral {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
    color: #a7f3d0 !important;
    -webkit-text-fill-color: #a7f3d0 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.badge-cosmic {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    color: #fef08a !important;
    -webkit-text-fill-color: #fef08a !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.badge-pwa {
    background: rgba(0, 242, 254, 0.2) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    color: #bae6fd !important;
    -webkit-text-fill-color: #bae6fd !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}


/* TEAM SECTION */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}
.team-card:hover::before {
    opacity: 1;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 2px solid var(--primary);
    padding: 4px;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-card h4 {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ABOUT SECTION */
.about-section {
    padding: 5rem 5%;
    text-align: center;
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}
.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.stat-item p {
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0;
}

/* CONTACT SECTION */
.contact-section {
    padding: 5rem 5%;
}
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-container p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}
.contact-form button {
    cursor: pointer;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 4%;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .control-btn .btn-text {
        display: none;
    }
    
    .control-btn {
        padding: 0.4rem 0.65rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero h1 { font-size: 2.8rem; }
    
    nav ul { display: none; }
    
    .hero-graphics { display: none; }
    
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* INITIAL INTRO OVERLAY */
.intro-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 12vh;
    pointer-events: none;
    background: transparent;
    transition: opacity 2s ease-in-out;
    touch-action: none;
}
.click-to-begin-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15rem;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.8;
}
.click-to-begin-text .en-text {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.1rem;
}
.click-to-begin-text.visible {
    opacity: 1; /* A opacidade final será controlada pelas keyframes */
    animation: fadeInText 4s forwards ease-in-out, pulseText 3s infinite alternate ease-in-out 4s;
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0.5; transform: translateY(0); }
}

@keyframes pulseText {
    0% { opacity: 0.5; transform: translateY(0); }
    100% { opacity: 0.8; transform: translateY(-3px); text-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
}

.skip-intro-btn {
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    background: none;
    border: none;
    padding: 0;
    outline: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.15rem;
    cursor: pointer;
    pointer-events: auto; /* Permite o clique independentemente do overlay */
    transition: all 0.3s ease;
    z-index: 10000;
}
.skip-intro-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

/* BADGES SECTION */
.badges-section {
    width: 100%;
    padding: 3rem 0 1rem 0;
    display: flex;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 10;
    opacity: 0; /* Para a animação de scroll reveal */
}
.badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1000px;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    cursor: default;
}
.badge-item svg {
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 0 rgba(0, 242, 254, 0));
}
.badge-item span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    opacity: 0.7;
}
.badge-item:hover {
    color: rgba(255, 255, 255, 0.9);
}
.badge-item:hover svg {
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
    transform: translateY(-5px);
}
.badge-item:nth-child(even):hover svg {
    color: var(--primary-gold);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

@media (max-width: 768px) {
    .badges-container {
        gap: 2rem;
        padding: 1.5rem;
    }
    .badge-item svg {
        width: 30px;
        height: 30px;
    }
    .badge-item span {
        font-size: 0.65rem;
    }
}
