/* REFINED AURA DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* CURSOR GLOW SYSTEM */
.cursor-glow-entity {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120, 120, 120, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    mix-blend-mode: multiply;
}

body.cursor-active .cursor-glow-entity {
    opacity: 1;
}

body.cursor-hovering .cursor-glow-entity {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.6);
}

@media (max-width: 768px) {
    .cursor-glow-entity {
        display: none !important;
    }
}

:root {
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #4b5563;
    --text-secondary: #636366;
    --text-muted: #8e8e93;
    --border-soft: rgba(0, 0, 0, 0.05);

    /* Design Tokens */
    --radius-full: 3rem;
    --radius-lg: 2rem;
    --radius-md: 1.25rem;
    --radius-sm: 0.75rem;
    --shadow-subtle: 0 10px 40px -10px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 60px -15px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Grainy Noise */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* The "Aura" Blob - Fixed Position */
.aura-blob {
    position: absolute;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
    filter: blur(100px);
    top: -10vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* Work Tracks Configuration */
.work-track-divider {
    margin: 4rem 0 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.track-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.track-title i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.work-track-divider p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Global Layout Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-text-col {
    grid-column: span 12;
}

.hero-img-col {
    grid-column: span 12;
}

@media (min-width: 1024px) {
    .hero-text-col {
        grid-column: span 7;
    }

    .hero-img-col {
        grid-column: span 5;
    }
}

.header-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

@media (min-width: 640px) {
    .header-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.nav-aura {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    letter-spacing: -0.025em;
    font-size: 1rem;
}

.nav-links-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
    }
}

.nav-links-desktop a {
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-links-desktop a:hover {
    color: #111;
}

.btn-resume-aura {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    color: #111;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.025em;
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #4b5563;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-social-link:hover {
    color: #111;
    background: #f9fafb;
    transform: translateY(-2px);
}

.nav-social-link i,
.nav-social-link svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #4b5563 !important;
    stroke-width: 2px;
    fill: none;
    display: block;
}

.nav-social-link:hover i,
.nav-social-link:hover svg {
    stroke: #111 !important;
}

.btn-resume-aura i,
.btn-resume-aura svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #111 !important;
    stroke-width: 2px;
    fill: none;
    display: block;
}

/* Hero Container & Grid */
.hero-container-main {
    max-width: 80rem;
    margin: 2.5rem auto 2rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .hero-container-main {
        margin-top: 4rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.hero-grid-aura {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid-aura {
        grid-template-columns: repeat(12, 1fr);
    }
}

.hero-content-left {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .hero-content-left {
        grid-column: span 7;
    }
}

.hero-title-aura {
    color: #111;
    letter-spacing: -0.025em;
    line-height: 0.7; /* Extreme compact */
    overflow: hidden;
}

.title-line {
    display: block;
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    padding-bottom: 0.12em; /* Minimal safe space */
    transform: translateY(110%);
    animation: revealTitle 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes revealTitle {
    to {
        transform: translateY(0);
    }
}

/* Stagger for Hero Content */
.hero-content-left .reveal:nth-child(2) {
    transition-delay: 0.3s;
}

.hero-content-left .reveal:nth-child(3) {
    transition-delay: 0.45s;
}

.hero-content-left .reveal:nth-child(4) {
    transition-delay: 0.6s;
}

.hero-content-left .reveal:nth-child(5) {
    transition-delay: 0.75s;
}

/* Photo reveal delay */
.hero-visuals-right.reveal {
    transition-delay: 0.5s;
}

.hero-paragraph-aura {
    margin-top: 2rem;
    font-size: 1.125rem;
    line-height: 1.5;
    color: #4b5563;
    max-width: 35rem;
    letter-spacing: -0.01em;
    font-weight: 500;
}

.hero-subtitle-details {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 38rem;
}

@media (min-width: 1024px) {
    .hero-paragraph-aura {
        font-size: 1.35rem;
    }

    .hero-subtitle-details {
        font-size: 1.125rem;
    }
}

.hero-buttons-aura {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .hero-buttons-aura {
        flex-direction: row;
    }
}

.btn-aura-black,
.btn-aura-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-aura-black {
    background: #111;
    color: white;
    border: 1px solid #111;
}

.btn-aura-white {
    background: white;
    color: #111;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-aura-black:hover,
.btn-aura-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-aura-black:active,
.btn-aura-white:active {
    transform: scale(0.96);
}

.hero-footer-stats-aura {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-footer-stats-aura {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item-aura {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.stat-item-aura i {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    margin-top: 0.125rem;
}

.stat-item-aura p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111;
    letter-spacing: -0.025em;
}

.stat-item-aura span {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
    display: block;
}

/* Right Visuals */
.hero-visuals-right {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .hero-visuals-right {
        grid-column: span 5;
    }
}

.portrait-wrapper-aura {
    position: relative;
    aspect-ratio: 4/5;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .portrait-wrapper-aura {
        aspect-ratio: 5/6;
    }
}

.portrait-wrapper-aura img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) saturate(0) contrast(1.05);
}

.visual-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.2), transparent, transparent);
}

.floating-data-cards {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.data-card-aura {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
}

.data-card-aura strong {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: white;
}

.data-card-aura p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Extended About Section Styles */
.about-aura-section {
    max-width: 80rem;
    margin: 4rem auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.label-pill {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
}

.aura-toggle-container {
    display: flex;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 9999px;
}

.aura-toggle-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.aura-toggle-btn.active {
    background: white;
    color: #111;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-view-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.about-view-content.active {
    display: block;
}

.about-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid-2col {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.about-h3-aura {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, #111, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-desc-aura {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2.5rem;
}

/* Strategic Cards */
.strategic-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.s-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
}

.s-card i {
    color: #111;
    margin-bottom: 1rem;
}

.s-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.s-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Comparison Visual */
.comparison-aura {
    background: white;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.comp-box {
    margin-bottom: 2rem;
}

.comp-box span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.progress-bar-comp {
    height: 8px;
    border-radius: 4px;
    margin: 0.75rem 0;
    position: relative;
    background: #f3f4f6;
}

.progress-bar-comp::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
}

.progress-bar-comp.red::after {
    width: 90%;
    background: #ef4444;
}

.progress-bar-comp.green::after {
    width: 15%;
    background: #22c55e;
}

.comp-box p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111;
}

.comp-arrow {
    display: flex;
    justify-content: center;
    color: #d1d5db;
    margin: -1rem 0 1rem;
}

.comp-label-overlay {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #111;
    margin-top: 1rem;
}

/* Technical Stuff */
.tech-stack-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-pill-aura {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111;
}

.timeline-aura-compact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 1rem;
    border-left: 1px solid #f3f4f6;
}

.tm-item {
    position: relative;
    padding-left: 1.5rem;
}

.tm-dot {
    position: absolute;
    left: -1.35rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #111;
    border: 2px solid white;
    border-radius: 50%;
}

.tm-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.tm-info span {
    font-size: 0.875rem;
    color: #6b7280;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Impact Dashboard Styles */
.impact-aura-section {
    max-width: 80rem;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 4rem;
}

.section-h2-aura {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-top: 1rem;
    letter-spacing: -0.03em;
}

.impact-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (min-width: 640px) {
    .impact-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .impact-dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Unified Card Style */
.card-aura {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
}

.card-aura:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

/* Metric cards — estilos específicos (herança visual via seletor agrupado abaixo) */
.metric-card-aura {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.metric-header i {
    width: 18px;
    height: 18px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.impact-bar-bg {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.impact-bar-fill {
    height: 100%;
    background: #111;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-bar-fill.green {
    background: #22c55e;
}

.metric-footer p {
    font-size: 0.8rem;
    color: #9ca3af;
}

.impact-mini-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.impact-mini-trend.positive {
    color: #22c55e;
}

.impact-status-chip {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Trusted Logos Compact */
.trusted-compact {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 3rem;
}

.trusted-compact p {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111;
    margin-bottom: 2.5rem;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    gap: 3rem;
    animation: scrollMarquee 30s linear infinite;
    width: max-content;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
    opacity: 0.65;
}

.dot-sep {
    font-size: 0.5rem;
    opacity: 0.5;
}

/* Portrait Box */
.portrait-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #ebebeb;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.portrait-box:hover .portrait-img {
    filter: grayscale(0%);
}

.floating-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 1.25rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Global Section Standards */
section {
    max-width: 80rem;
    margin: 0 auto;
    padding: 8rem 1.5rem;
}

.section-header-aura {
    text-align: left;
    margin-bottom: 5rem;
}

.label-pill {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.section-h2-aura {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Card Unification & Micro-interactions */
.card-aura,
.metric-card-aura,
.case-card-aura,
.skill-card-ref,
.cert-card-aura {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.card-aura:hover,
.metric-card-aura:hover,
.case-card-aura:hover,
.skill-card-ref:hover,
.cert-card-aura:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08), 0 18px 36px -18px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.card-aura:active,
.metric-card-aura:active,
.case-card-aura:active,
.skill-card-ref:active,
.cert-card-aura:active {
    transform: scale(0.98) translateY(-4px);
}

/* Update Specific Components */
.metric-card-aura,
.case-card-aura,
.skill-card-ref {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-soft) !important;
}

.n8n-node {
    border-radius: var(--radius-sm) !important;
}

/* Dark Card (Aura Style) */
.dark-card {
    background: #000;
    border-radius: var(--radius-full);
    padding: 6rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.dark-card-title {
    font-size: clamp(2.5rem, 8vw, 6vw);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

/* Buttons */
.btn-aura {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-aura:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-aura:active {
    transform: scale(0.95);
}

.btn-black {
    background: #000;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #000;
    border: 1px solid var(--border-soft);
}

/* Reveal Animation */
.reveal,
.metric-card-aura,
.editorial-case,
.cert-clean-item,
.n8n-node,
.skill-strategy-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active,
.metric-card-aura.active,
.editorial-case.active,
.cert-clean-item.active,
.n8n-node.active,
.skill-strategy-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay Sequential for items in rows */
.reveal-item {
    transition-delay: calc(var(--item-index, 0) * 0.1s);
}

/* Case Studies Base */
.case-studies-aura {
    max-width: 80rem;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.section-subtitle-aura {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 1rem 0 3rem;
    text-align: left;
}

.cases-grid-aura {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cases-grid-aura {
        grid-template-columns: 1fr 1fr;
    }
}

.case-card-aura {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card-aura:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.case-card-aura.expanded {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .case-card-aura.expanded {
        grid-column: span 2;
    }
}

.case-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

@media (min-width: 640px) {
    .case-preview {
        grid-template-columns: 200px 1fr;
        align-items: center;
    }
}

/* Editorial Case Stack */
.impact-editorial-stack {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    margin-top: 4rem;
}

.editorial-case {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .editorial-case {
        grid-template-columns: 42% 58%;
        gap: 6rem;
    }

    .editorial-case:nth-child(even) .case-visual {
        order: 2;
    }
}

.case-visual {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.device-mockup {
    width: 100%;
    max-width: 380px;
    background: white;
    border-radius: 2.5rem;
    border: 8px solid #111;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* WhatsApp Professional Simulation Refined */
.wa-screen {
    background: #e5ddd5 url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png') repeat;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wa-header {
    background: #075e54;
    color: white;
    padding: 3rem 1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.wa-header-icons {
    margin-left: auto;
    display: flex;
    gap: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.wa-header-icons i {
    width: 18px;
    height: 18px;
}

.wa-avatar {
    width: 34px;
    height: 34px;
    background: #ece5dd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wa-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.wa-meta span {
    font-size: 0.85rem;
    font-weight: 600;
    width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-meta small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.wa-chat-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    z-index: 5;
    overflow-y: auto;
    max-height: 480px;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
}

.wa-chat-body::-webkit-scrollbar {
    display: none;
}

.wa-msg-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wa-pop-in {
    animation: waPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes waPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bot-type-1 {
    display: none;
    /* Handled by JS now */
}

.tw-js-text {
    font-size: 0.8rem;
    color: #111;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    display: inline;
}

.tw-js-text.typing-active::after {
    content: '|';
    color: #075e54;
    animation: waCursorBlink 0.7s step-end infinite;
    margin-left: 2px;
}

@keyframes waCursorBlink {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.wa-date-divider {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

.wa-date-divider span {
    background: #d4eaf4;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #5c6c74;
    text-transform: uppercase;
}

.wa-bubble {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.wa-bubble p {
    line-height: 1.4;
    margin: 0;
}

.wa-bubble.user::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #dcf8c6;
    border-right: 0;
    border-top: 0;
    top: 0;
    right: -8px;
}

.wa-bubble.bot::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: white;
    border-left: 0;
    border-top: 0;
    top: 0;
    left: -8px;
}

.wa-bubble.user {
    background: #dcf8c6;
    align-self: flex-end;
    color: #111;
}

.wa-bubble.bot {
    background: white;
    align-self: flex-start;
    color: #111;
}

.wa-bubble-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    font-size: 0.6rem;
    color: rgba(0, 0, 0, 0.45);
    margin-top: 2px;
}

.wa-ticks {
    width: 14px;
    height: 14px;
    color: #34b7f1;
}

.wa-bubble.user.typing-sim {
    background: linear-gradient(135deg, #dcf8c6, #c7e9af);
    overflow: visible;
    width: fit-content;
    max-width: fit-content;
    margin-left: auto;
    border-right: none;
    animation: waAppear 0.5s ease-out forwards;
}

.typewriter-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #075e54;
    width: 0;
    animation:
        waTypingFixed 3s steps(60, end) forwards,
        waCursorBlink 0.7s step-end infinite,
        waHideCursor 0.1s forwards 3s;
}

@keyframes waTypingFixed {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes waCursorBlink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #075e54;
    }
}

@keyframes waHideCursor {
    to {
        border-right-color: transparent;
    }
}

.wa-attachment-preview {
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 12px;
    margin-left: auto;
    width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.9);
    animation: waPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 3.2s;
}

@keyframes waPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wa-img-placeholder {
    height: 90px;
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=400');
    background-size: cover;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.65rem;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.typing-indicator {
    padding: 10px 15px !important;
    display: flex;
    gap: 4px;
    opacity: 0;
    animation:
        waAppear 0.3s ease-out forwards 4.2s,
        waDisappear 0.3s ease-in forwards 6s;
}

@keyframes waAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waDisappear {
    to {
        opacity: 0;
        transform: translateY(-5px);
        visibility: hidden;
        height: 0;
        margin: 0;
        padding: 0;
    }
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: waBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes waBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.final-response {
    opacity: 0;
    animation: waAppear 0.5s ease-out forwards;
    animation-delay: 6.3s;
}

.bot-msg-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #075e54;
    margin-bottom: 0.25rem;
}

/* Fix Editorial Spacing */
.metric-val {
    font-size: 2.5rem;
    color: #111;
}

/* Slack Animation & Layout Refined */
.slack-window {
    max-width: 500px;
    border: 1px solid #eef2f6;
    border-radius: 1.25rem;
    height: 380px;
    display: flex;
    overflow: hidden;
    background: white;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
}

.slack-sidebar {
    width: 56px;
    background: #4a154b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1rem;
}

.slack-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.slack-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    background: #fff;
}

.slack-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.slack-avatar-mock,
.slack-avatar-bot {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.slack-avatar-mock {
    background: #e8912d;
    color: white;
}

.slack-avatar-bot {
    background: #f8f8f8;
    border: 1px solid #e5e7eb;
    font-size: 1.1rem;
}

.msg-content strong {
    font-size: 0.85rem;
    color: #1d1c21;
    font-weight: 900;
}

.msg-content small {
    font-size: 0.7rem;
    color: #616061;
    margin-left: 6px;
    font-weight: 400;
}

.msg-content p {
    font-size: 0.9rem;
    color: #1d1c1d;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* 14s Global Cycle for Slack - Fixed Visiblity */
.chat-track {
    position: absolute;
    inset: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ct-1 {
    animation: trackVisibility1 14s infinite;
    z-index: 10;
}

.ct-2 {
    animation: trackVisibility2 14s infinite;
    z-index: 20;
    opacity: 0;
}

@keyframes trackVisibility1 {

    0%,
    48% {
        opacity: 1;
        visibility: visible;
    }

    50%,
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes trackVisibility2 {

    0%,
    50% {
        opacity: 0;
        visibility: hidden;
    }

    52%,
    98% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Time-Slot Strategy for 14s Cycle */
/* Chat 1 (Lucas) Slot: 0% - 48% */
.ct-1 .user-msg-anim {
    animation: entranceLucas 14s infinite 0.5s;
}

.ct-1 .bot-reply-anim {
    animation: entranceLucas 14s infinite 1.5s;
}

.ct-1 .reveal-card {
    animation: entranceLucas 14s infinite 2.5s;
}

.ct-1 .slack-typing-dots {
    animation: typingLucas 14s infinite 1.2s;
}

/* Combined Sequential Strategy for 14s Cycle */
/* We use a universal 5-second visibility window (approx 35% of 14s) */
@keyframes slackTimeWindow {
    0% {
        opacity: 0;
        transform: translateY(8px);
        visibility: visible;
    }

    5%,
    35% {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    40%,
    100% {
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
    }
}

/* Chat 1 (Lucas) - Starts at 0s-2s range */
.ct-1 .user-msg-anim {
    animation: slackTimeWindow 14s infinite 0.5s;
}

.ct-1 .bot-reply-anim {
    animation: slackTimeWindow 14s infinite 1.5s;
}

.ct-1 .reveal-card {
    animation: slackTimeWindow 14s infinite 2.5s;
}

.ct-1 .slack-typing-dots {
    animation: slackTypingOnly 14s infinite 1.2s;
}

/* Chat 2 (Sofia) - Starts at 7s-9s range */
.ct-2 .user-msg-anim {
    animation: slackTimeWindow 14s infinite 7.5s;
}

.ct-2 .bot-reply-anim {
    animation: slackTimeWindow 14s infinite 8.5s;
}

.ct-2 .reveal-card {
    animation: slackTimeWindow 14s infinite 9.5s;
}

.ct-2 .slack-typing-dots {
    animation: slackTypingOnly 14s infinite 8.2s;
}

@keyframes slackTypingOnly {

    0%,
    2% {
        opacity: 1;
    }

    5%,
    100% {
        opacity: 0;
    }
}

.reveal-card {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #2eb67d;
    opacity: 0;
    transform: scale(0.98);
}

@keyframes slackTyping {

    0%,
    2% {
        opacity: 1;
    }

    8%,
    100% {
        opacity: 0;
    }
}

.slack-typing-dots span {
    width: 4px;
    height: 4px;
    background: #abb4be;
    border-radius: 50%;
    animation: slackBounce 1.4s infinite;
}

.slack-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.slack-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slackBounce {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Remove additional redundant reveal-card declarations */

.slack-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.slack-btn:hover {
    background: #f8f8f8;
    border-color: #bbb;
}

/* Modern Integrated Pipeline UI */
.modern-pipeline-dashboard {
    width: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 2rem;
    color: #111;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1);
}

/* Step 1: Commit Header */
.pipe-header-commit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 2rem;
    opacity: 0;
    animation: pipeFadeInLoop 14s infinite;
}

@keyframes pipeFadeInLoop {

    0%,
    5% {
        opacity: 0;
        transform: translateY(-10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateY(0);
    }

    95%,
    100% {
        opacity: 0;
    }
}

/* Step 2: Pipeline Nodes */
.pipe-stage-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.stage-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    position: relative;
}

.stage-node i {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 8px;
    background: #f3f4f6;
    transition: all 0.3s;
}

.stage-node small {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stage-node.passed i {
    background: #dcfce7;
    color: #16a34a;
}

.stage-node.active-test i {
    background: #f3f4f6;
    color: #9ca3af;
    animation: nodeTestLoop 14s infinite;
}

.stage-node.deploy-node i {
    background: #f3f4f6;
    color: #9ca3af;
    animation: nodeDeployLoop 14s infinite;
}

@keyframes nodeTestLoop {

    0%,
    15% {
        background: #f3f4f6;
        color: #9ca3af;
    }

    20%,
    75% {
        background: #dbeafe;
        color: #2563eb;
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    }

    80%,
    92% {
        background: #dcfce7;
        color: #16a34a;
        transform: scale(1);
    }

    95%,
    100% {
        background: #f3f4f6;
        color: #9ca3af;
    }
}

@keyframes nodeDeployLoop {

    0%,
    80% {
        background: #f3f4f6;
        color: #9ca3af;
    }

    85%,
    92% {
        background: #dcfce7;
        color: #16a34a;
        transform: scale(1.1);
    }

    95%,
    100% {
        background: #f3f4f6;
        color: #9ca3af;
    }
}

.stage-line {
    flex-grow: 1;
    height: 2px;
    background: #f3f4f6;
    margin: 0 10px;
    margin-top: -15px;
    position: relative;
    overflow: hidden;
}

.stage-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #2563eb;
}

.stage-line.active-1::after {
    animation: flowLine1Loop 14s infinite;
}

.stage-line.active-2::after {
    animation: flowLine2Loop 14s infinite;
}

@keyframes flowLine1Loop {

    0%,
    15% {
        width: 0;
    }

    20%,
    92% {
        width: 100%;
    }

    95%,
    100% {
        width: 0;
    }
}

@keyframes flowLine2Loop {

    0%,
    80% {
        width: 0;
    }

    85%,
    92% {
        width: 100%;
        background: #16a34a;
    }

    95%,
    100% {
        width: 0;
    }
}

/* Step 3: Test Grid */
.pipe-test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.test-item {
    padding: 0.75rem 1rem;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    font-size: 0.7rem;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
}

.test-item i {
    width: 14px;
    height: 14px;
    color: #16a34a;
}

.t1 {
    animation: testItemLoop 14s infinite 3s;
}

.t2 {
    animation: testItemLoop 14s infinite 4s;
}

.t3 {
    animation: testItemLoop 14s infinite 5s;
}

.test-item.t4 {
    animation: testItemLoop 14s infinite 6s;
}

@keyframes testItemLoop {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    10%,
    80% {
        opacity: 1;
        transform: translateX(0);
        border-color: #dcfce7;
        background: #f0fdf4;
    }

    90%,
    100% {
        opacity: 0;
    }
}

/* Step 4: Notification */
.slack-mini-notify {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #4a154b;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: notifyPopLoop 14s infinite 8s;
}

.slack-icon-bg {
    width: 20px;
    height: 20px;
    background: white;
    color: #4a154b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.6rem;
}

@keyframes notifyPopLoop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10%,
    80% {
        opacity: 1;
        transform: translateY(0);
    }

    90%,
    100% {
        opacity: 0;
    }
}

/* Step 5: Deploy Button */
.btn-ci-deploy {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f3f4f6;
    border: none;
    border-radius: 12px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s;
    animation: deployBtnLoop 14s infinite 11s;
}

@keyframes deployBtnLoop {
    0% {
        background: #f3f4f6;
        color: #9ca3af;
    }

    10%,
    80% {
        background: #16a34a;
        color: white;
        box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
    }

    90%,
    100% {
        background: #f3f4f6;
        color: #9ca3af;
    }
}


/* Observer Dashboard Theme Unified */
.visual-glow-stable {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
}

/* VR Theme (Legacy for reference) */
.dashboard-aura {
    max-width: 450px;
    background: #111;
    border: 1px solid #333;
    height: 350px;
    padding: 2rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-card-mini {
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.dash-card-mini small {
    font-size: 0.65rem;
    color: #71717a;
    display: block;
    margin-bottom: 0.5rem;
}

.dash-card-mini .val {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
    margin-top: 10px;
}

.mini-chart .bar {
    width: 4px;
    background: #333;
    border-radius: 2px;
}

.mini-chart .bar.animate {
    background: #22c55e;
    height: 80%;
    animation: barGrow 2s infinite;
}

/* Content Styles */
.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-content-editorial h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    line-height: 1;
}

.case-summary-big {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 3rem;
}

.par-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .par-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
        /* More space between the 2 columns */
    }
}

.par-item {
    position: relative;
}

.par-item strong {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    color: #111;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 900;
}

.par-item:nth-child(1) strong::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #ef4444;
    border-radius: 2px;
}

/* Red for Problem */
.par-item:nth-child(2) strong::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

/* Blue for Action */

.par-item p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.par-item.result {
    padding: 2rem;
    background: #f0fdf4;
    /* Light success green */
    border-radius: 1.5rem;
    border: 1px solid #dcfce7;
    transition: transform 0.3s ease;
}

.par-item.result:hover {
    transform: scale(1.02);
}

.par-item.result strong {
    color: #166534;
}

.par-item.result strong::before {
    background: #22c55e;
    width: 32px;
    height: 2px;
}

.metric-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    display: block;
    letter-spacing: -0.05em;
    margin: 0.5rem 0;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
}

/* Animations */
@keyframes barGrow {

    0%,
    100% {
        height: 30%;
    }

    50% {
        height: 90%;
    }
}

.path-animate {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: dash 3s ease-in-out forwards infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.dot-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #075e54;
    border-radius: 50%;
    animation: pulse 1s infinite;
    margin-right: 4px;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

/* Expanded Content */
.case-details-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f9fafb;
}

.case-card-aura.expanded .case-details-expanded {
    max-height: 1000px;
    padding: 3rem 2.5rem;
    border-top: 1px solid #f3f4f6;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.detail-block strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-block p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

.detail-block.result {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
}

.detail-block.result ul {
    list-style: none;
    margin-top: 0.5rem;
}

.detail-block.result li {
    font-size: 0.95rem;
    color: #111;
    font-weight: 500;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.detail-block.result li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* Second Sim */
.sim-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
}

.node {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.node.green {
    background: #22c55e;
}

.node.orange {
    background: #f59e0b;
}

.line {
    width: 40px;
    height: 2px;
    background: #333;
}

/* Skills Section Base */
.skills-aura-section {
    max-width: 80rem;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.skills-content-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

/* N8N Workflow Engine UI Refined */
.n8n-workflow-wrapper {
    background: #fdfdfd;
    background-image: radial-gradient(#e5e7eb 0.75px, transparent 0.75px);
    background-size: 24px 24px;
    border: 1px solid #eef2f6;
    border-radius: 1.5rem;
    padding: 3rem 1rem;
    margin: 3rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.n8n-workflow-container {
    width: 1000px;
    height: 450px;
    position: relative;
    margin: 0 auto;
}

.workflow-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1024px) {
    .n8n-workflow-container {
        transform: scale(0.85);
        transform-origin: center center;
    }
}

@media (max-width: 768px) {
    .n8n-workflow-container {
        transform: scale(0.6);
    }
}

@media (max-width: 480px) {
    .n8n-workflow-container {
        transform: scale(0.35);
    }
}

.workflow-path {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke 0.3s;
}

.data-packet {
    fill: #4a154b;
    filter: drop-shadow(0 0 5px rgba(74, 21, 75, 0.4));
}

.n8n-node {
    position: absolute;
    min-height: 70px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.node-icon {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
}

.node-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.node-content strong {
    display: block;
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.node-content span {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
}

.node-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border: 2.5px solid white;
    border-radius: 50%;
}

.node-dot.in {
    left: -5px;
}

.node-dot.out {
    right: -5px;
}

.core-node {
    border-left: 4px solid #4a154b;
}

.app-node {
    border-left: 4px solid #2eb67d;
}

.alert-node {
    border-left: 4px solid #e01e5a;
    background: #fffcfd;
}

.success-node {
    border-left: 4px solid #2eb67d;
    background: #f0fdf4;
}

.t-pulse {
    animation: nodePulse 3s infinite;
}

@keyframes nodePulse {

    0%,
    100% {
        border-left-color: #4a154b;
    }

    50% {
        border-left-color: #ec4899;
    }
}

.node-status {
    margin-left: auto;
    color: #2eb67d;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.node-status i {
    width: 16px;
    height: 16px;
}

.node-status.loading-spinner {
    animation: spin 2s linear infinite;
    color: #94a3b8;
}

.path-success {
    stroke: #2eb67d;
    stroke-dasharray: 6;
    animation: flowDash 30s linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -100;
    }
}

/* End of n8n block */


/* Grid Reference Style */
/* STRATEGIC SKILLS GRID */
.strategic-skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .strategic-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-strategy-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-strategy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}

.card-icon-aura {
    width: 48px;
    height: 48px;
    background: #f9fafb;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.skill-strategy-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
}

.skill-impact-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e5e7eb;
}

.skill-card-ref strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
}

.skill-card-ref span {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: capitalize;
}

/* ==========================================================================
   Holographic Certifications (Midnight Exhibition)
   ========================================================================== */
.certs-holoshow {
    background: #0a0a0c;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.hologram-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 21, 75, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.certs-expo-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

@media (min-width: 1200px) {
    .certs-expo-area {
        grid-template-columns: 1.2fr 0.9fr 0.9fr;
        align-items: center;
    }
}

.holo-cert-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.holo-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.cert-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cert-header-context {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.holo-issuer {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.holo-icon-orb {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cert-badge-main {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.holo-cert-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.holo-cert-card:hover .cert-badge-main {
    transform: translateZ(30px) scale(1.05);
}

.cert-main-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 0.75rem;
}

.holo-id {
    font-size: 0.8rem;
    font-family: monospace;
    color: #a78bfa;
    margin-bottom: 2rem;
}

.holo-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.holo-tags {
    display: flex;
    gap: 0.5rem;
}

.holo-tags span {
    font-size: 0.6rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.holo-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-holo .holo-btn {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 2rem;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.holo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.featured-holo {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
}

/* Clean Premium Education & Certs */
.edu-clean-card {
    max-width: 1000px;
    margin: 4rem auto;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.edu-clean-grid {
    display: grid;
    grid-template-columns: 100px 1fr 150px;
    gap: 3rem;
    align-items: center;
}

.edu-clean-badge {
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.edu-clean-badge img {
    width: 100%;
    height: auto;
}

.edu-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4a154b;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.edu-clean-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.edu-inst {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.edu-summary-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.edu-summary-list li {
    font-size: 0.9rem;
    color: #475569;
}

.edu-clean-meta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-left: 1px solid #f1f5f9;
    padding-left: 2.5rem;
}

.meta-item strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.meta-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Certs Clean Grid */
.certs-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-clean-item {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.cert-icon-box {
    width: 60px;
    height: 60px;
}

.cert-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-icon-mini {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4a154b;
    transition: all 0.3s ease;
}

.cert-icon-mini i {
    width: 28px;
    height: 28px;
}

.cert-clean-item:hover .cert-icon-mini {
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.cert-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-details h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.cert-id-code {
    font-size: 0.75rem;
    font-family: monospace;
    color: #4a154b;
    margin-bottom: 1.25rem;
}

.cert-doc-btn {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .edu-clean-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .edu-clean-badge {
        margin: 0 auto;
    }

    .edu-clean-meta {
        flex-direction: row;
        justify-content: center;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 2rem;
    }

}

/* Chat Indicator Styles */
.typing-indicator.user-type {
    align-self: flex-end !important;
    background: #dcf8c6 !important;
}

.typing-indicator.user-type span {
    background: #60a860 !important;
}

/* ==========================================================================
   Acessibilidade — Foco visível para navegação por teclado
   ========================================================================== */
:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove outline apenas quando o usuário usa mouse (mantém para teclado) */
:focus:not(:focus-visible) {
    outline: none;
}

/* Classe utilitária para texto visível apenas para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   prefers-reduced-motion — respeita preferência do SO por menos animações
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Elementos de reveal: mostrar diretamente sem animação */
    .reveal,
    .metric-card-aura,
    .editorial-case,
    .cert-clean-item,
    .n8n-node,
    .skill-strategy-card {
        opacity: 1;
        transform: none;
    }

    /* Título hero: sem animação de entrada */
    .title-line {
        transform: none;
        animation: none;
    }

    /* Marquee: pausar rolagem automática */
    .marquee-content {
        animation-play-state: paused;
    }
}