:root {
    --bg-deep: #050508;
    --bg-body: #07060f;
    --bg-elevated: #0c0a18;
    --bg-card: rgba(12, 8, 28, 0.85);
    --bg-card-solid: #0f0a22;
    --bg-navbar: rgba(5, 5, 14, 0.94);
    --bg-footer: #06040f;
    --bg-transition: #08061a;

    --neon-cyan: #00e5ff;
    --neon-cyan-soft: rgba(0, 229, 255, 0.14);
    --neon-cyan-border: rgba(0, 229, 255, 0.35);
    --neon-blue: #3b82f6;
    --neon-purple: #a855f7;
    --neon-purple-soft: rgba(168, 85, 247, 0.18);
    --neon-purple-border: rgba(168, 85, 247, 0.45);
    --neon-magenta: #d946ef;

    --gradient-hero: linear-gradient(135deg, #050508 0%, #0d0824 38%, #1a0a3d 72%, #0a0618 100%);
    --gradient-brand: linear-gradient(90deg, #00e5ff 0%, #7c3aed 55%, #d946ef 100%);
    --gradient-button: linear-gradient(90deg, #2563eb, #9333ea);

    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-body: #cbd5e1;

    --glow-hover: 0 0 18px rgba(0, 229, 255, 0.28), 0 0 36px rgba(168, 85, 247, 0.22);
    --glow-logo: 0 0 14px rgba(0, 229, 255, 0.45), 0 0 28px rgba(168, 85, 247, 0.35);
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-body);
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.navbar-custom a:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 32px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(var(--glow-logo));
    letter-spacing: 0.5px;
}

/* Select estilizado */
#languageSwitcher {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--neon-purple-border) !important;
}

.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    width: 100%;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.14), transparent 38%),
        radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.16), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(217, 70, 239, 0.08), transparent 45%),
        var(--gradient-hero);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    opacity: 0.55;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--neon-purple-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.08);
}

.hero-title,
.hero-description,
.hero-tag,
.hero-tags,
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-tag {
    color: var(--neon-purple);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 14px;
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
    background: var(--neon-cyan-soft);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan-border);
    font-weight: 500;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
}

/* Links estilo tag: mesma cor em todos os estados (evita :visited do navegador/Bootstrap) */
.hero-tags a.tag,
.hero-tags a.tag:link,
.hero-tags a.tag:visited,
.hero-tags a.tag:hover,
.hero-tags a.tag:active,
.hero-tags a.tag:focus {
    color: var(--neon-cyan);
    text-decoration: none;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 0;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: min(100%, 380px);
    max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 229, 255, 0.25), 0 0 50px rgba(168, 85, 247, 0.2);
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box,
        var(--gradient-brand) border-box;
}

.hero-buttons .btn {
    padding: 12px 22px;
    font-weight: 600;
    border-radius: 12px;
}

.hero-buttons .btn-primary {
    background: var(--gradient-button);
    border: none;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.hero-buttons .btn-primary:hover {
    opacity: 0.92;
}

.hero-buttons .btn-outline-light:hover {
    color: #111827;
}

@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }

    .hero-text {
        margin: 0 auto 40px auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-image {
        max-width: 280px;
    }
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.experience-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--neon-purple-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(124, 58, 237, 0.06);
}

.experience-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.experience-period {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.experience-description {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.6;
}

.experience-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.experience-tags span {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
    background: var(--neon-cyan-soft);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan-border);
}

.experience-section {
    color: var(--text-primary);
}

.main-content > main {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 6, 24, 0.6) 8%, var(--bg-body) 100%);
}

.experience-wrapper {
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.experience-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(124, 58, 237, 0.07);
    border: 1px solid var(--neon-purple-border);
    backdrop-filter: blur(12px);
}

.experience-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.experience-period {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.project-block + .project-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-block h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.project-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 0;
}

.footer {
    background: var(--bg-footer);
    color: var(--text-muted);
    padding: 30px 0;
    border-top: 1px solid var(--neon-purple-border);
    box-shadow: 0 -8px 32px rgba(124, 58, 237, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-contact,
.footer-copy {
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-policy-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-contact,
.footer-copy {
    gap: 6px;
}

.footer-contact a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.link-contact{
    color: var(--neon-cyan);
    text-decoration: none;
}

.link-contact:hover {
    text-decoration: underline;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copy a {
    color: var(--neon-purple);
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

.footer-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--neon-cyan);
}

.card-hover {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease !important;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple-border);
    box-shadow: var(--glow-hover);
}

.card-hover-black {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.8) !important;
    transition: all 0.25s ease !important;
}

.card-hover-black:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple-border) !important;
    box-shadow: var(--glow-hover);
}

.card-hover-2 {
    position: relative;
    transition: all 0.25s ease !important;
    border-radius: 10px;
}

.card-hover-2:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple-border);
    box-shadow: var(--glow-hover);
}

.card-hover-3 {
    display: inline-block;
    position: relative;
    transition: all 0.25s ease !important;
    border-radius: 10px;
}

.card-hover-3:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple-border);
    box-shadow: var(--glow-hover);
    color: var(--neon-cyan) !important;
}

.card-hover-4 {
    display: inline-flex;
    position: relative;
    align-items: center;
    transition: all 0.25s ease !important;
    border-radius: 10px;
    gap: 6px;
}

.card-hover-4:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple-border);
    box-shadow: var(--glow-hover);
}

.i18n-fade {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.i18n-fade-out {
    opacity: 0;
    transform: translateY(6px);
}

.i18n-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: 1px solid var(--neon-cyan-border);
    border-radius: 50%;
    background: var(--gradient-button);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.35);
    z-index: 1100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
    box-shadow: var(--glow-hover);
    transform: translateY(0);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

/* =========================
   NAVBAR MELHORADA
========================= */

.navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-navbar);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--neon-purple-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(124, 58, 237, 0.06);
    z-index: 1000;
}

.navbar-custom .navbar {
    min-height: 78px;
}

.nav-links-wrapper {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar-custom .nav-link {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.navbar-custom .nav-link.text-decoration-underline {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.language-wrapper,
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 78px;
}

#languageSwitcher {
    border-radius: 10px;
    border: 1px solid var(--neon-purple-border);
}

.mouse-effects-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.mouse-effects-icon {
    font-size: 18px;
    color: var(--neon-cyan);
    opacity: 0.85;
}

.mouse-effects-switch {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mouse-effects-slider {
    position: relative;
    width: 38px;
    height: 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--neon-purple-border);
    border-radius: 20px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mouse-effects-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: #64748b;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.mouse-effects-switch:checked + .mouse-effects-slider {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.mouse-effects-switch:checked + .mouse-effects-slider::before {
    transform: translateY(-50%) translateX(18px);
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.mouse-effects-toggle:hover .mouse-effects-slider {
    border-color: var(--neon-cyan);
}

@media (prefers-reduced-motion: reduce) {
    .mouse-effects-toggle {
        display: none;
    }
}

.custom-toggler {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 10px;
    color: var(--neon-cyan);
    box-shadow: none;
}

.custom-toggler:focus {
    box-shadow: none;
}

.form-select,
.form-control {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--neon-purple-border);
}

.form-select:focus,
.form-control:focus {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.15), 0 0 16px rgba(168, 85, 247, 0.2);
}

.form-label {
    color: var(--text-body);
}

.form-text {
    color: var(--text-muted) !important;
}

/* =========================
   AJUSTES GERAIS MOBILE
========================= */

@media (max-width: 991px) {
    .navbar-custom .navbar {
        min-height: 72px;
    }

    .navbar-custom .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 24px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 16px;
        border-radius: 18px;
        background: var(--bg-card);
        border: 1px solid var(--neon-purple-border);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), var(--glow-hover);
    }

    .nav-links-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .navbar-custom .nav-link {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    .language-wrapper,
    .navbar-controls {
        width: 100%;
        justify-content: flex-end;
    }

    #languageSwitcher {
        width: auto;
        min-width: 78px;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .hero-text {
        margin: 0 auto 28px auto;
    }

    .hero-title {
        font-size: 38px;
        line-height: 1.08;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-tags {
        justify-content: center;
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-image {
        max-width: 260px;
    }

    .experience-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .experience-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .experience-title {
        font-size: 21px;
    }

    .project-block h5 {
        font-size: 17px;
    }

    .project-block p {
        font-size: 15px;
        line-height: 1.65;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-policy-links {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 108px;
        padding-bottom: 48px;
    }

    .hero-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .hero-image {
        max-width: 220px;
    }

    .section-title {
        font-size: 24px;
    }

    .experience-card {
        padding: 22px 16px;
    }

    .experience-title {
        font-size: 19px;
    }

    .project-block h5 {
        font-size: 16px;
    }

    .project-block p {
        font-size: 14px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-contact,
    .footer-copy {
        font-size: 14px;
    }
}

.professional-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(8px);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.professional-period {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.professional-description {
    font-size: 18px;
    line-height: 1.7;
    color: #d1d5db;
}

.professional-description-2 {
    font-size: 16px;
    line-height: 1.7;
    color: #d1d5db;
}

.professional-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neon-purple);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.professional-list,
.technology-list {
    font-size: 16px;
    padding-left: 1.2rem;
    margin: 0;
}

.professional-list li,
.technology-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #d1d5db;
}

.shake:hover {
    animation: shake-elegant 0.4s ease;
}

@keyframes shake-elegant {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.icon-container {
    display: flex;
    align-items: stretch;
    margin-right: 15px;
}

.icon-big {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Aqui está o segredo */
    height: 100%;
    font-size: clamp(3rem, 8vw, 6rem);
}

/* Faz o texto ocupar o espaço */
.text-container {
    flex: 1;
}

.img-certificado {
    height: 180px;
    object-fit: cover;
}

#app-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#app-content.loaded {
    opacity: 1;
}

#particles-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    background: var(--bg-deep);
}

#mouse-effects-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

@media (prefers-reduced-motion: reduce) {
    #mouse-effects-canvas {
        display: none;
    }
}

/* =========================
   PAGE TRANSITION SYSTEM
========================= */

html.page-transition-preload::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg-transition);
}

html.page-transition-preload body::before {
    content: "Ultra Knight Climax";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 20px));
    z-index: 100001;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    filter: drop-shadow(var(--glow-logo));
    white-space: nowrap;
    pointer-events: none;
}

html.page-transition-preload body::after {
    content: var(--page-transition-subtitle, "");
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 40px));
    z-index: 100001;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.6vw, 18px);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
}

.page-transition-solid {
    position: absolute;
    inset: 0;
    background: var(--bg-transition);
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.page-transition-circles {
    position: absolute;
    inset: 0;
}

.page-transition-circles .circle-node {
    position: absolute;
    border-radius: 50%;
    background: var(--bg-transition);
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    transition:
        transform var(--circle-duration, 1300ms) cubic-bezier(0.22, 1, 0.36, 1) var(--circle-delay, 0ms);
    will-change: transform;
}

.page-transition-overlay.is-revealing .page-transition-circles .circle-node {
    transition-delay: var(--circle-delay-reverse, 0ms);
}

.page-transition-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 20px));
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    filter: drop-shadow(var(--glow-logo));
    white-space: nowrap;
}

.page-transition-subtitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 40px));
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(12px, 1.6vw, 18px);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
    text-align: center;
    white-space: nowrap;
    min-height: 1.2em;
}

.page-transition-center {
    position: fixed;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: opacity;
    backface-visibility: hidden;
}

.page-transition-dots {
    position: fixed;
    top: calc(50% + 78px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-transition-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.55), 0 0 20px rgba(168, 85, 247, 0.35);
    animation: transition-dot-pulse 1.1s ease-in-out infinite;
}

.page-transition-dots .dot-2 {
    animation-delay: 0.14s;
}

.page-transition-dots .dot-3 {
    animation-delay: 0.28s;
}

.page-transition-overlay.is-closed .page-transition-circles .circle-node {
    transform: translate(-50%, -50%) scale(1.6);
}

.page-transition-overlay.is-closed .page-transition-solid {
    opacity: 1;
}

.page-transition-overlay.is-revealing .page-transition-solid {
    transition-delay: 0s;
}

.page-transition-overlay.is-closed .page-transition-center {
    opacity: 1;
    transition-delay: 0s;
}

.page-transition-overlay:not(.is-closed) .page-transition-center {
    opacity: 0;
    transition-delay: 0s;
}

.page-transition-overlay.is-revealing .page-transition-center {
    transition: opacity 3.0s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition-overlay.is-no-transition,
.page-transition-overlay.is-no-transition * {
    transition: none !important;
}

.page-transition-overlay.is-hidden {
    visibility: hidden;
    transition: visibility 0s linear 2.3s;
}

@keyframes transition-dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.9);
        opacity: 0.45;
    }
    40% {
        transform: scale(1.18);
        opacity: 1;
    }
}