/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll suave + esconde scrollbar */
html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-wrap {
    white-space: nowrap;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'ss01', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s, color 0.3s;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none; /* cliques passam por onde não há elementos */
}

/* Logo <GP/> */
.nav-logo {
    pointer-events: all;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    background: rgba(0, 60, 130, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 8px 16px;
    transition: background 0.25s, border-color 0.25s;
}

.nav-logo:hover {
    background: rgba(0, 25, 75, 0.88);
    border-color: rgba(0, 229, 255, 0.5);
}

.nav-logo-bracket {
    color: rgba(0, 229, 255, 0.85);
    font-weight: 400;
}

/* Pílula central com links */
nav ul {
    pointer-events: all;
    list-style: none;
    display: flex;
    gap: 2px;
    background: rgba(0, 60, 130, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    padding: 6px 14px;
    border-radius: 14px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: white;
    background: rgba(255,255,255,0.12);
}

nav ul a.nav-active {
    color: white;
    background: rgba(255,255,255,0.14);
    box-shadow: inset 0 -2px 0 rgba(0, 229, 255, 0.8);
}

/* Toggle isolado à direita */
.nav-actions {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 60, 130, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 8px 12px;
}

/* ── Toggle pill slider ──────────────────────────────────── */
#dark-mode-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.38);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.4s, border-color 0.4s;
}

#dark-mode-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.dark-mode #dark-mode-toggle {
    background: rgba(80, 150, 255, 0.35);
    border-color: rgba(130, 190, 255, 0.50);
}

.dark-mode #dark-mode-toggle::after {
    transform: translateX(20px);
}

/* ── Hambúrguer (mobile) ─────────────────────────────────── */
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: opacity 0.3s, transform 0.3s;
}

/* ============================================================
   HEADER — SUPERFÍCIE (Céu)
   ============================================================ */
header {
    position: relative;
    height: 100vh;  /* fallback navegadores antigos */
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #c9e8f5 0%, #87CEEB 35%, #4ab8d8 65%, #00BFFF 100%);
    color: white;
    padding-top: 60px;
    padding-bottom: 220px;
}


.intro-greeting {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 4px;
    animation: fadeIn 1.6s;
    text-shadow: 0 1px 3px rgba(0, 30, 80, 0.50), 0 3px 12px rgba(0, 20, 60, 0.25);
}

h1 {
    font-size: 3rem;
    animation: fadeIn 2s;
    text-shadow:
        0 1px 3px rgba(0, 30, 80, 0.55),
        0 3px 14px rgba(0, 20, 60, 0.30);
}

.intro-role {
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 0.5px;
    animation: fadeIn 2.2s;
    text-shadow: 0 1px 3px rgba(0, 30, 80, 0.50), 0 3px 12px rgba(0, 20, 60, 0.25);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero CTA buttons */
.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    animation: fadeIn 2.6s;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    background: rgba(255, 255, 255, 0.95);
    color: #1a5580;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.btn-hero--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: none;
}

.btn-hero--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    box-shadow: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: color 0.2s, border-color 0.2s;
}

.scroll-indicator:hover {
    color: #fff;
    border-color: #fff;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}


.inner-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 0 7%;
    font-size: 1.5rem;
}

#profile {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-pic {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 300px;
    border-radius: 62% 38% 55% 45% / 55% 45% 60% 40%;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: transform 0.3s, border-radius 0.6s ease;
    flex-shrink: 0;
    object-fit: cover;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-radius: 45% 55% 40% 60% / 40% 60% 45% 55%;
}

/* Transições sem flash no carregamento */
.no-transition * {
    transition: none !important;
}

/* Overlay de transição do céu */
#sky-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, #020810 0%, #041428 35%, #062038 65%, #062038 100%);
    opacity: 0;
    transition: opacity 1.8s ease;
}

.dark-mode #sky-overlay {
    opacity: 1;
}

/* Céu diurno */
#day-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.8s ease;
}

.dark-mode #day-sky {
    opacity: 0;
}

.sun {
    position: absolute;
    width: 72px;
    height: 72px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
    background: radial-gradient(circle, #FFE55C 0%, #FFD000 55%, #FFA800 100%);
    box-shadow:
        0 0 22px 8px rgba(255, 210, 50, 0.55),
        0 0 70px 25px rgba(255, 185, 0, 0.28),
        0 0 120px 50px rgba(255, 160, 0, 0.12);
    animation: sunPulse 5s ease-in-out infinite alternate;
}

@keyframes sunPulse {
    from {
        box-shadow:
            0 0 22px 8px rgba(255, 210, 50, 0.55),
            0 0 70px 25px rgba(255, 185, 0, 0.28),
            0 0 120px 50px rgba(255, 160, 0, 0.12);
    }
    to {
        box-shadow:
            0 0 35px 14px rgba(255, 210, 50, 0.7),
            0 0 100px 40px rgba(255, 185, 0, 0.4),
            0 0 160px 70px rgba(255, 160, 0, 0.2);
    }
}

.cloud {
    position: absolute;
    animation: driftCloud linear forwards;
    overflow: visible;
}

@keyframes driftCloud {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(100vw + 400px)); }
}

/* Céu noturno */
#night-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.dark-mode #night-sky {
    opacity: 1;
}

.moon {
    position: absolute;
    width: 64px;
    height: 64px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #fffef0, #fff9c4 45%, #f0d840 100%);
    box-shadow:
        0 0 18px 6px rgba(255, 248, 120, 0.35),
        0 0 60px 20px rgba(255, 248, 120, 0.15);
    animation: moonGlow 4s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    from {
        box-shadow:
            0 0 18px 6px rgba(255, 248, 120, 0.35),
            0 0 60px 20px rgba(255, 248, 120, 0.15);
    }
    to {
        box-shadow:
            0 0 28px 10px rgba(255, 248, 120, 0.5),
            0 0 90px 35px rgba(255, 248, 120, 0.25);
    }
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.15; transform: scale(0.7); }
    to   { opacity: 1;    transform: scale(1.3); }
}

/* Wave containers no header */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.wave-back {
    z-index: 0;
    animation: bobWave 6s ease-in-out infinite alternate;
}

.wave-front {
    z-index: 2;
}

@keyframes bobWave {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

.waves {
    display: block;
    width: 200%;
}


.wave-0 { animation: moveWaveR 15s 0.5s ease-in-out infinite alternate; }
.wave-1 { animation: moveWave  10s           ease-in-out infinite alternate; }
.wave-2 { animation: moveWaveR  7s 1.2s      ease-in-out infinite alternate; }
.wave-3 { animation: moveWave   5s 0.7s      ease-in-out infinite alternate; }

@keyframes moveWave {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes moveWaveR {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ============================================================
   SECTIONS — PROFUNDIDADE PROGRESSIVA
   ============================================================ */
main {
    background: linear-gradient(to bottom, #00BFFF 0%, #0074A8 20%, #004f7a 50%, #010d1a 80%, #000508 100%);
}

section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 110px 20px 160px;
    color: white;
}

/* Tecnologias mantém centralização vertical — o tank é absoluto e precisa do centro */
#tecnologias {
    justify-content: center;
}

#tecnologias {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 20px 60px;
}

#contato {
    padding: 100px 20px 100px;
}

#jornada {
    padding: 100px 20px 100px;
}


.container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ---- RASO: Sobre mim ---- */

.sobre-intro {
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.sobre-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 8px;
}

.sobre-card {
    flex: 1;
    min-width: 0;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 32px 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 8px 32px rgba(0, 30, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

/* Marca decorativa no topo — vira âncora visual */
.sobre-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 4px 4px;
    transition: background 0.3s, width 0.3s;
}

.sobre-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow:
        0 16px 44px rgba(0, 30, 80, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sobre-card:hover::before {
    background: white;
    width: 48px;
}

.sobre-card strong {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.3;
    color: white;
    text-wrap: balance;
}

.sobre-card span {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    text-wrap: pretty;
}

@media (max-width: 600px) {
    .sobre-cards {
        flex-direction: column;
    }
}

/* ---- MÉDIA PROFUNDIDADE: Jornada ---- */

.timeline {
    position: relative;
    max-width: 680px;
    margin: 48px auto 0;
    padding-left: 80px;
}

/* linha desenhada por cada item, de dot a dot */

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Linha de baixo: do dot atual até o topo do próximo dot */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -49px;
    top: 50%;
    height: calc(50% + 36px);
    width: 2px;
    transform: translateX(-50%);
    background: rgba(0, 191, 255, 0.5);
}

/* Linha de cima: do topo do item até o dot */
.timeline-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 0;
    height: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(0, 191, 255, 0.5);
}

.timeline-marker {
    position: absolute;
    left: -49px;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    z-index: 2;
}

.timeline-year {
    font-size: 0.68rem;
    font-weight: 700;
    color: #00e5ff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1;
    min-width: 30px;
}

.timeline-year:first-child {
    text-align: right;
}

.timeline-year:last-child {
    text-align: left;
}

.timeline-year--atual {
    color: rgba(0, 229, 255, 0.55);
    font-style: italic;
}

.timeline-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #00BFFF;
    border: 2px solid rgba(255,255,255,0.75);
    box-shadow: 0 0 10px rgba(0,191,255,0.9);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-dot--active {
    background: #00e5ff;
    box-shadow: 0 0 0 0 rgba(0,229,255,0.6);
    animation: dotPulse 2s ease-out infinite;
}

@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,229,255,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

.timeline-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid rgba(0,191,255,0.4);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: left;
    transition: background 0.3s, border-color 0.3s, transform 0.25s;
}

.timeline-card:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: rgba(0,229,255,0.8);
    transform: translateX(4px);
}

.timeline-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.timeline-badge--edu {
    background: rgba(100, 200, 255, 0.15);
    color: #80d8ff;
    border: 1px solid rgba(100,200,255,0.3);
}

.timeline-badge--work {
    background: rgba(100, 255, 180, 0.12);
    color: #80ffca;
    border: 1px solid rgba(100,255,180,0.3);
}

.timeline-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 0.85rem;
    color: rgba(0, 229, 255, 0.8);
    margin-bottom: 10px !important;
    font-weight: 500;
}

.timeline-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.65;
    margin: 0;
    text-align: left;
}

.timeline-card p + p,
.timeline-card p + ul,
.timeline-card ul + p {
    margin-top: 14px;
}

.timeline-highlight {
    position: relative;
    background: rgba(0, 191, 255, 0.08);
    border-left: 2px solid rgba(0, 229, 255, 0.55);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px 12px 16px;
    color: rgba(255,255,255,0.82) !important;
}

.timeline-highlight strong {
    color: #80f0ff;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.timeline-card p + .timeline-highlight,
.timeline-card .timeline-highlight + p {
    margin-top: 18px;
}

.timeline-card p strong {
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}

.timeline-card p.timeline-eyebrow,
.timeline-card > p:has(+ .timeline-list) {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.4px;
    color: rgba(0, 229, 255, 0.75);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-card > p:has(+ .timeline-list) strong {
    color: inherit;
    font-weight: 600;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
}

.timeline-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.65);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.timeline-list li strong {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}

.timeline-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.timeline-stack span {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(0, 229, 255, 0.8);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 3px 10px;
    letter-spacing: 0.3px;
}

.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ---- MEIA PROFUNDIDADE: Tecnologias ---- */

/* ── Águas-vivas SVG (Tecnologias) ───────────────────────── */
.jellyfish-tank {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
}

.jf-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
}

.jellyfish {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    animation: jfFloat ease-in-out infinite alternate;
    transition: filter 0.35s;
}

.jellyfish:hover { filter: brightness(1.5) saturate(1.3); }

/* Wrapper com label sobreposto ao SVG */
.jf-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.jf-svg { display: block; overflow: visible; }

/* Tamanhos (viewBox 1:1 → quadrado) */
.jf--xl .jf-svg { width: 230px; height: 230px; }
.jf--lg .jf-svg { width: 175px; height: 175px; }
.jf--md .jf-svg { width: 145px; height: 145px; }
.jf--sm .jf-svg { width: 118px; height: 118px; }

/* Label centrado no sino — cy=80 em 200px = 40% */
.jf-label {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.7);
    width: 92%;
}

.jf--xl .jf-label { font-size: 2.4rem; }
.jf--lg .jf-label { font-size: 2.2rem; }
.jf--md .jf-label { font-size: 2rem; }
.jf--sm .jf-label { font-size: 1.8rem; }


.jf-text {
    fill: white;
    font-family: inherit;
    font-weight: 700;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
    pointer-events: none;
}

/* Tamanhos compensam a escala do viewBox (200) → garante mínimo visual */
.jf--sm .jf-text { font-size: 24px; }   /* 118/200 → ~14.2px renderizados */
.jf--md .jf-text { font-size: 22px; }   /* 145/200 → ~16px renderizados */
.jf--lg .jf-text { font-size: 19px; }   /* 175/200 → ~16.6px renderizados */
.jf--xl .jf-text { font-size: 16px; }   /* 230/200 → ~18.4px renderizados */

/* SVG internos via currentColor */
.jf-body           { fill: currentColor; }
.jf-skirt          { fill: currentColor; }
.jf-tentacles path { stroke: currentColor; }

/* Cores bioluminescentes — agrupadas por categoria de stack */
.jellyfish.jf--py  { color: rgb(230,80,220);  filter: drop-shadow(0 0 10px rgba(230,80,220,0.7));  } /* Python ecosystem */
.jellyfish.jf--web { color: rgb(0,200,255);   filter: drop-shadow(0 0 10px rgba(0,200,255,0.7));   } /* Web base / front */
.jellyfish.jf--jvm { color: rgb(160,100,255); filter: drop-shadow(0 0 10px rgba(160,100,255,0.7)); } /* JVM */
.jellyfish.jf--js  { color: rgb(80,145,255);  filter: drop-shadow(0 0 10px rgba(80,145,255,0.7));  } /* JavaScript stack */
.jellyfish.jf--ops { color: rgb(0,220,175);   filter: drop-shadow(0 0 10px rgba(0,220,175,0.7));   } /* DevOps & Dados */


@keyframes jfFloat {
    from { transform: translateY(0)                 rotate(0deg); }
    to   { transform: translateY(var(--jf-y,-12px)) rotate(var(--jf-r, 2deg)); }
}

/* ---- FUNDO: Projetos ---- */

.projetos-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.projeto-card {
    position: relative;
    background: rgba(0, 20, 50, 0.55);
    border: 1px solid rgba(0, 180, 255, 0.15);
    border-left: 3px solid rgba(0, 229, 255, 0.5);
    border-radius: 16px;
    padding: 28px 28px 24px;
    text-align: left;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-left-color 0.3s, transform 0.25s, background 0.3s;
}

.projeto-card:hover {
    border-left-color: #00e5ff;
    background: rgba(0, 30, 65, 0.7);
    transform: translateX(5px);
}

/* Círculo decorativo de sonar no fundo */
.projeto-ping {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.07);
    pointer-events: none;
}

.projeto-ping::before,
.projeto-ping::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.05);
}

.projeto-ping::after {
    inset: 50px;
    border-color: rgba(0, 229, 255, 0.04);
}

.projeto-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.projeto-id {
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(0, 229, 255, 0.5);
    letter-spacing: 1px;
}

.projeto-tipo {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(0, 229, 255, 0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.projeto-ano {
    margin-left: auto;
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(0, 229, 255, 0.45);
    letter-spacing: 1px;
}

.projeto-thumb {
    display: block;
    position: relative;
    margin: 4px 0 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.18);
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(0, 60, 110, 0.6), rgba(0, 30, 70, 0.8));
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.projeto-thumb:hover {
    border-color: rgba(0, 229, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 180, 255, 0.18);
}

.projeto-thumb picture,
.projeto-thumb img {
    display: block;
    width: 100%;
    height: 100%;
}

.projeto-thumb img {
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
    /* Esconde o alt-text quando a imagem falha — gradient do container fica visível */
    color: transparent;
    font-size: 0;
}

.projeto-thumb:hover img {
    transform: scale(1.02);
}

.projetos-footer {
    max-width: 680px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(200, 235, 255, 0.5);
}

.projetos-footer a {
    color: rgba(0, 229, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.projetos-footer a:hover {
    color: #00e5ff;
}

section[id] {
    scroll-margin-top: 0;
}

.projeto-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8f7ff;
    margin-bottom: 10px;
}

.projeto-card p {
    font-size: 0.88rem;
    color: rgba(200, 235, 255, 0.7);
    line-height: 1.65;
    margin-bottom: 18px;
}

.projeto-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.projeto-stack span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 229, 255, 0.8);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 3px 12px;
    letter-spacing: 0.3px;
}

.projeto-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-projeto {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00e5ff;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: letter-spacing 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s;
    opacity: 0.8;
}

.btn-projeto:hover {
    letter-spacing: 0.8px;
    opacity: 1;
}

.btn-projeto--primary {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 20px;
    padding: 6px 14px;
    opacity: 1;
}

.btn-projeto--primary:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.6);
}

/* ---- ABISSAL: Contato ---- */
#contato h2 {
    color: #80d8ff;
    text-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

#contato p {
    margin-bottom: 8px;
    color: rgba(180, 230, 255, 0.8);
}

#contato a {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 24px auto 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Esconde o badge do reCAPTCHA — o aviso de ToS abaixo cumpre a
   exigência do Google (https://developers.google.com/recaptcha/docs/faq). */
.grecaptcha-badge { visibility: hidden; }

.recaptcha-notice {
    font-size: 0.72rem;
    color: rgba(180, 220, 255, 0.55);
    margin-top: 4px;
    line-height: 1.4;
}
.recaptcha-notice a {
    color: rgba(180, 220, 255, 0.8);
    text-decoration: underline;
}

#contact-form input,
#contact-form textarea {
    padding: 12px 16px;
    background: rgba(0, 60, 100, 0.55);
    border: 1px solid rgba(0, 200, 255, 0.45);
    border-radius: 8px;
    color: #e8f7ff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(160, 220, 255, 0.75);
}

#contact-form input:focus,
#contact-form textarea:focus {
    background: rgba(0, 70, 120, 0.65);
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-abyss {
    background: transparent;
    color: #00e5ff;
    border: 1px solid #00e5ff;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-abyss:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.btn-abyss:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

#form-status {
    min-height: 1.4em;
    font-size: 0.9rem;
    text-align: center;
    transition: opacity 0.3s;
}

#form-status.success { color: #00e5ff; }
#form-status.error   { color: #ff6b6b; }

/* ============================================================
   BOLHAS
   ============================================================ */
.bubbles-container,
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* ============================================================
   PARTÍCULAS BIOLUMINESCENTES
   ============================================================ */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 6px 2px rgba(0, 229, 255, 0.6);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0%   { opacity: 0.1; transform: scale(0.8); }
    100% { opacity: 0.9; transform: scale(1.4); }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #010508;
    color: rgba(150, 210, 255, 0.6);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

footer a {
    color: #00e5ff;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Contato links */
.contato-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contato-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00e5ff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.contato-link:hover {
    opacity: 1;
}

.contato-link--email {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.contato-link--email.copied {
    color: #00ff99;
}

/* Idioma badge */
.sobre-facts {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.sobre-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    position: relative;
}

.sobre-fact + .sobre-fact::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.28);
}

.sobre-fact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.55);
}

.sobre-fact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.1px;
}

@media (max-width: 480px) {
    .sobre-facts {
        gap: 20px;
        flex-direction: column;
    }
    .sobre-fact + .sobre-fact::before {
        display: none;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
.dark-mode .nav-logo,
.dark-mode nav ul,
.dark-mode .nav-actions {
    background: rgba(5, 12, 28, 0.75);
    border-color: rgba(255,255,255,0.08);
}

.dark-mode .wave-0 { fill: #010c18; }
.dark-mode .wave-1 { fill: #011a2c; }
.dark-mode .wave-2 { fill: #022440; }
.dark-mode .wave-3 { fill: #03305a; }

.dark-mode main {
    background: linear-gradient(to bottom, #03305a 0%, #021830 20%, #010d20 50%, #010810 80%, #000305 100%); /* stops em sincronia com o JS */
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        white-space: normal;
    }

    .no-wrap {
        white-space: normal;
    }

    .inner-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 5%;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    #menu-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 16px;
        left: auto;
        transform: none;
        background: rgba(0, 15, 45, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.12);
        padding: 8px;
        border-radius: 16px;
        display: none;
        gap: 2px;
        min-width: 160px;
    }

    nav ul.open {
        display: flex;
    }

    nav li {
        margin: 4px 8px;
    }

    .porthole-ring {
        width: 240px;
        height: 240px;
    }

    section {
        padding: 80px 20px 100px;
    }

    #jornada {
        padding: 80px 20px 80px;
    }

    #tecnologias {
        padding: 80px 20px 80px;
    }
}
