/* ============================================
   SERGIO RICARDO — WEBSITE
   Dark Mode Modern Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #14141e;
    --bg-card-hover: #1c1c2a;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    
    --text-primary: #e8e8ed;
    --text-secondary: #9a9aad;
    --text-muted: #5a5a6e;
    
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    
    --green: #00e676;
    --green-glow: rgba(0, 230, 118, 0.15);
    
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 87.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 106px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(108, 92, 231, 0.18), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(0, 230, 118, 0.1), transparent 18%),
        radial-gradient(circle at 70% 78%, rgba(162, 155, 254, 0.12), transparent 24%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Particle Canvas --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 26px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.site-brand-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border: 1px solid rgba(162, 155, 254, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.site-brand-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.site-brand-title {
    font-family: var(--font-mono);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.site-brand-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(162, 155, 254, 0.08));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: start;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero::before {
    width: 340px;
    height: 340px;
    top: 80px;
    right: -40px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.22), transparent 70%);
}

.hero::after {
    width: 240px;
    height: 240px;
    bottom: 20px;
    left: -30px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1), transparent 70%);
}

.hero-content {
    min-width: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: fadeInUp 0.6s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--green-glow);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-name {
    font-size: clamp(1.95rem, 4.1vw, 3rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 0.96rem;
    color: var(--accent-light);
    min-height: 1.5em;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-role::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

.hero-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 32px;
    line-height: 1.9;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-description strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-market-scope {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
    animation: fadeInUp 0.6s ease 0.55s both;
}

.hero-market-pill {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(162, 155, 254, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.hero-market-pill strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.hero-market-pill span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.hero-ti-focus {
    width: 100%;
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(162, 155, 254, 0.22);
    background:
        radial-gradient(circle at top right, rgba(0, 230, 118, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(108, 92, 231, 0.16), rgba(20, 20, 30, 0.96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    animation: fadeInUp 0.6s ease 0.55s both;
}

.hero-ti-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-ti-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-ti-copy h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-ti-copy p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
}

.hero-ti-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-ti-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hero-ti-point {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ti-point strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.hero-ti-point span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.7;
}

.hero-ti-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.45s both;
}

.hero-signal {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.hero-proof-card {
    min-height: 100%;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.hero-proof-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-proof-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.98rem;
    line-height: 1.45;
}

.hero-proof-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-light);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.8s ease 0.3s both;
    min-width: 0;
}

/* Profile Photo */
.hero-profile {
    position: relative;
    margin-bottom: 16px;
}

.hero-orbit {
    position: absolute;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.hero-orbit-top {
    top: -10px;
    right: -22px;
}

.hero-orbit-right {
    top: 54%;
    right: -86px;
}

.hero-orbit-bottom {
    bottom: 4px;
    left: -42px;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(108, 92, 231, 0.15);
    transition: all var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(108, 92, 231, 0.2);
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(108, 92, 231, 0.3);
    animation: spin 20s linear infinite;
}

/* Code Window */
.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}

.impact-strip {
    padding-top: 0;
    margin-top: -8px;
}

.impact-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.impact-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(162, 155, 254, 0.28);
    box-shadow: var(--shadow-md);
}

.impact-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.impact-card h2 {
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.impact-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-body code {
    font-family: inherit;
}

.code-keyword { color: #c792ea; }
.code-class { color: #ffcb6b; }
.code-func { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-comment { color: #546e7a; }

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-light);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.55rem, 3.1vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.96rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.highlight:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.highlight svg {
    width: 22px;
    height: 22px;
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.highlight span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* About Terminal */
.about-terminal {
    position: sticky;
    top: 100px;
}

.terminal-window {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 2;
}

.terminal-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-prompt {
    color: var(--accent-light);
    font-weight: 700;
}

.terminal-cmd {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 20px;
    margin-bottom: 8px;
}

.typing {
    border-right: 2px solid var(--accent);
    animation: blink 1s step-end infinite;
    padding-right: 2px;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.project-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
}

.project-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.project-links {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent-light);
    transition: color var(--transition);
}

.project-link:hover {
    color: var(--accent);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skill-category-title svg {
    width: 20px;
    height: 20px;
    color: var(--accent-light);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.skill-info span:last-child {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.skill-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 50px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- TI Services Section --- */
.ti-services-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.ti-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ti-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.ti-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.ti-service-card-featured {
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.14), rgba(108, 92, 231, 0.05));
    border-color: rgba(108, 92, 231, 0.35);
}

.ti-service-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 18px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-light);
}

.ti-service-icon svg {
    width: 24px;
    height: 24px;
}

.ti-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.ti-service-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.7;
}

.ti-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ti-service-list li {
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.ti-service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.ti-card-preview {
    position: sticky;
    top: 110px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ti-card-label {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.28);
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.ti-card-image {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ti-card-preview p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.ti-card-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ti-card-points span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.22);
    color: var(--text-secondary);
    font-size: 0.78rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-badge {
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-card svg {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.contact-card a {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contact-card a:hover {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.social-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent-light) 50%), linear-gradient(135deg, var(--accent-light) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-brand-avatar-footer {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 520px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #20bd5a;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.whatsapp-tooltip {
    position: absolute;
    left: 68px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all var(--transition);
    border: 1px solid var(--border);
    pointer-events: none;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--bg-secondary);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }

    .hero-signals,
    .hero-actions,
    .hero-market-scope,
    .hero-stats,
    .hero-ti-actions {
        justify-content: center;
    }

    .hero-ti-grid {
        display: flex;
    }

    .hero-ti-copy {
        text-align: center;
    }

    .hero-ti-points {
        grid-template-columns: 1fr;
    }

    .hero-proof-grid,
    .impact-strip-grid {
        grid-template-columns: 1fr;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-ti-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .about-terminal {
        position: static;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ti-services-layout {
        grid-template-columns: 1fr;
    }

    .ti-services-grid {
        grid-template-columns: 1fr;
    }

    .ti-card-preview {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-brand-avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .site-brand-title {
        font-size: 0.88rem;
    }

    .site-brand-subtitle {
        font-size: 0.66rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 80px 24px 24px;
        transition: right var(--transition);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-orbit {
        position: static;
        margin-top: 10px;
    }

    .hero-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .ti-service-card {
        padding: 24px;
    }

    .ti-card-preview {
        padding: 20px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .profile-photo {
        width: 170px;
        height: 170px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-brand-subtitle {
        display: none;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-name {
        font-size: 1.45rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-market-scope {
        grid-template-columns: 1fr;
    }

    .hero-ti-actions {
        flex-direction: column;
    }

    .hero-signals {
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-proof-card,
    .impact-card {
        text-align: left;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }


@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;
        scroll-behavior: auto !important;
    }

    .profile-ring,
    .badge-dot,
    .jt-pulse,
    .hero-role::after,
    .typing {
        animation: none !important;
    }
}
    .project-card {
        padding: 24px;
    }
}

/* ============================================
   VISITOR BAR
   ============================================ */

.visitor-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 24px;
    background: var(--accent-gradient);
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
}

.vb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: vbPulse 2s ease-in-out infinite;
}

@keyframes vbPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.vb-name {
    color: #fff;
    font-weight: 700;
    display: inline-block;
}

.vb-info {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

@media (max-width: 600px) {
    .visitor-bar { display: none; }

    html {
        scroll-padding-top: 80px;
    }

    .navbar {
        top: 0;
    }
}

/* ============================================
   LIGHT MODE
   ============================================ */
body.light-mode {
    --bg-primary: #f5f5fa;
    --bg-secondary: #ededf5;
    --bg-tertiary: #e4e4ef;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f8;
    --bg-elevated: rgba(255, 255, 255, 0.7);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888aa;

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.13);
}

body.light-mode #particles { opacity: 0.25; }

body.light-mode .navbar.scrolled {
    background: rgba(245, 245, 250, 0.9);
}

body.light-mode .hero-orbit,
body.light-mode .hero-proof-card,
body.light-mode .impact-card,
body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.78);
}

body.light-mode .hero-signal,
body.light-mode .hero-eyebrow {
    background: rgba(255, 255, 255, 0.72);
}

body.light-mode .terminal-window,
body.light-mode .code-window {
    background: var(--bg-secondary);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-right: 8px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background 0.3s, transform 0.1s;
    will-change: left, top;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0.6;
    will-change: left, top;
}

.cursor-dot.clicking { transform: translate(-50%, -50%) scale(0.5); }
.cursor-ring.clicking { width: 24px; height: 24px; }

.cursor-dot.hovering { transform: translate(-50%, -50%) scale(0); }
.cursor-ring.hovering { width: 54px; height: 54px; border-color: var(--accent); opacity: 0.9; }

@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   JOURNEY GRID
   ============================================ */
/* ============================================
   JOURNEY TIMELINE — CARD + TEXT ALTERNADO
   ============================================ */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
}

/* Linha vertical central (decorativa) */
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent,
        var(--accent) 15%,
        var(--accent) 85%,
        transparent);
    opacity: 0.15;
    transform: translateX(-50%);
}

/* Cada row: card + texto lado a lado */
.jt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

/* Dot na linha central */
.jt-row::before {
    content: attr(data-step);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--jc, var(--accent));
    color: var(--jc, var(--accent));
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px color-mix(in srgb, var(--jc, var(--accent)) 30%, transparent);
    transition: transform 0.4s, box-shadow 0.4s;
}

.jt-row:hover::before {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px color-mix(in srgb, var(--jc, var(--accent)) 50%, transparent);
}

/* Reverse: texto esquerda, card direita */
.jt-row--reverse {
    direction: rtl;
}
.jt-row--reverse > * {
    direction: ltr;
}

/* ---- CARD TERMINAL ---- */
.jt-card {
    position: relative;
    perspective: 800px;
}

.jt-card__screen {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.jt-row:hover .jt-card__screen {
    transform: rotateY(-3deg) rotateX(2deg) translateY(-8px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px color-mix(in srgb, var(--jc, var(--accent)) 15%, transparent);
}

.jt-row--reverse:hover .jt-card__screen {
    transform: rotateY(3deg) rotateX(2deg) translateY(-8px);
}

/* Glow atrás do card */
.jt-card__glow {
    position: absolute;
    inset: -20px;
    border-radius: 24px;
    background: radial-gradient(ellipse at center,
        color-mix(in srgb, var(--jc, var(--accent)) 12%, transparent),
        transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
    filter: blur(30px);
}

.jt-row:hover .jt-card__glow {
    opacity: 1;
}

/* Número watermark no card */
.jt-card__num {
    position: absolute;
    bottom: -10px;
    right: 16px;
    font-size: 6rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--jc, var(--accent));
    opacity: 0.04;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Terminal bar */
.jt-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border);
}

.jt-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.jt-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.jt-dots span:nth-child(1) { background: #ff5f57; }
.jt-dots span:nth-child(2) { background: #febc2e; }
.jt-dots span:nth-child(3) { background: #28c840; }

.jt-file {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    flex: 1;
}

.jt-badge {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    padding: 2px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

.jt-complete {
    background: rgba(0, 230, 118, 0.08);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.jt-running {
    background: rgba(0, 230, 118, 0.12);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.jt-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e676;
    flex-shrink: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Terminal code area */
.jt-code {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 180px;
}

.jt-line {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre;
}

.jt-kw { color: #c678dd; }
.jt-fn { color: #61afef; }
.jt-str { color: #98c379; }
.jt-cm { color: #5c6370; font-style: italic; }

.jt-cursor-line {
    background: rgba(108, 92, 231, 0.06);
    margin: 0 -20px;
    padding: 0 20px;
    border-left: 2px solid var(--jc, var(--accent));
}

.jt-cursor {
    color: var(--jc, var(--accent));
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- TEXT CONTENT SIDE ---- */
.jt-content {
    padding: 10px 0;
}

.jt-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--jc, #6c5ce7) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--jc, #6c5ce7) 22%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.jt-row:hover .jt-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--jc, var(--accent)) 25%, transparent);
}

.jt-phase {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jc, #6c5ce7);
    background: color-mix(in srgb, var(--jc, #6c5ce7) 11%, transparent);
    border: 1px solid color-mix(in srgb, var(--jc, #6c5ce7) 20%, transparent);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.jt-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 14px;
    line-height: 1.3;
}

.jt-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.jt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.jt-tags span {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--jc, #6c5ce7);
    background: color-mix(in srgb, var(--jc, #6c5ce7) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--jc, #6c5ce7) 18%, transparent);
    padding: 3px 10px;
    border-radius: 6px;
    transition: background 0.3s, transform 0.3s;
}

.jt-tags span:hover {
    background: color-mix(in srgb, var(--jc, #6c5ce7) 20%, transparent);
    transform: translateY(-2px);
}

/* Active row (último, "em execução") */
.jt-row--active .jt-card__screen {
    border-color: color-mix(in srgb, var(--jc, #00e676) 35%, transparent);
}

.jt-row--active .jt-card__glow {
    opacity: 0.6;
}

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.jt-row .jt-card,
.jt-row .jt-content {
    opacity: 1;
    transform: translateX(0) translateZ(0);
}

html.journey-enhanced .jt-row .jt-card {
    opacity: 0;
    transform: translateX(-40px) translateZ(0);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

html.journey-enhanced .jt-row .jt-content {
    opacity: 0;
    transform: translateX(40px) translateZ(0);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s,
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

/* Reverse rows: animations flip */
html.journey-enhanced .jt-row--reverse .jt-card {
    transform: translateX(40px) translateZ(0);
}

html.journey-enhanced .jt-row--reverse .jt-content {
    transform: translateX(-40px) translateZ(0);
}

/* When visible */
html.journey-enhanced .jt-row.visible .jt-card,
html.journey-enhanced .jt-row.visible .jt-content {
    opacity: 1;
    transform: translateX(0) translateZ(0);
}

/* Connector line between dot and text -- pulse animation */
.jt-row::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--jc, var(--accent));
    transform: translate(-50%, -50%) scale(0);
    z-index: 1;
    transition: transform 0.4s;
}

.jt-row.visible::after {
    animation: dotPop 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.3s;
}

@keyframes dotPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    60% { transform: translate(-50%, -50%) scale(1.5); }
    100% { transform: translate(-50%, -50%) scale(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .journey-timeline::before {
        left: 24px;
    }
    .jt-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 60px;
    }
    .jt-row::before {
        left: 24px;
        top: 0;
        transform: translateX(-50%) translateY(0);
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
    }
    .jt-row::after {
        left: 24px;
        top: 0;
    }
    .jt-row--reverse {
        direction: ltr;
    }
    html.journey-enhanced .jt-row .jt-card,
    html.journey-enhanced .jt-row--reverse .jt-card {
        transform: translateY(30px) translateZ(0);
    }
    html.journey-enhanced .jt-row .jt-content,
    html.journey-enhanced .jt-row--reverse .jt-content {
        transform: translateY(20px) translateZ(0);
    }
    html.journey-enhanced .jt-row.visible .jt-card,
    html.journey-enhanced .jt-row.visible .jt-content {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* ============================================
   PROJECT FILTERS
   ============================================ */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-main);
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.project-card.hidden {
    display: none !important;
}

.blog-card.hidden {
    display: none !important;
}

/* ============================================
   FOLLOWERS / COMMUNITY
   ============================================ */
.followers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.follower-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition);
}

.follower-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.follower-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.follower-icon svg { width: 26px; height: 26px; }
.follower-icon.youtube  { background: rgba(255,0,0,0.1);     color: #ff0000; }
.follower-icon.instagram{ background: rgba(225,48,108,0.1);  color: #e1306c; }
.follower-icon.telegram { background: rgba(0,136,204,0.1);   color: #0088cc; }

.follower-count {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.follower-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.follower-card a {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.follower-card a:hover { color: var(--accent-light); }

@media (max-width: 768px) {
    .followers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   VIDEOS SECTION
   ============================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumb-1 { background: linear-gradient(135deg, #1a1a3e 0%, #3d2c8d 100%); }
.video-thumb-2 { background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%); }
.video-thumb-3 { background: linear-gradient(135deg, #1e1e2d 0%, #6c5ce7 100%); }

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 0, 0, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.video-play-btn svg { width: 22px; height: 22px; color: white; margin-left: 3px; }
.video-card:hover .video-play-btn { background: #ff0000; transform: translate(-50%, -50%) scale(1.12); }

.video-info { padding: 16px 18px; }

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.videos-cta { text-align: center; }

@media (max-width: 1024px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .videos-grid { grid-template-columns: 1fr; } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: #fbbf24;
}

.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }

.testimonial-text {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.testimonial-name  { font-weight: 600; font-size: 0.9rem; }
.testimonial-role  { font-size: 0.77rem; color: var(--text-muted); }

@media (max-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section { background: var(--bg-secondary); }

.newsletter-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 52px;
}

.newsletter-text { flex: 1; }

.newsletter-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-text p { color: var(--text-secondary); font-size: 1rem; }

.newsletter-form-wrapper { flex: 1; }

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition);
}

.newsletter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-input::placeholder { color: var(--text-muted); }

.newsletter-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--green-glow);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: var(--radius-md);
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-success svg { width: 18px; height: 18px; stroke: var(--green); }

.newsletter-note {
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-top: 6px;
}

@media (max-width: 1024px) {
    .newsletter-wrapper {
        flex-direction: column;
        gap: 28px;
        padding: 32px;
    }
}

/* ============================================
   AYRA CHAT WIDGET
   ============================================ */
.ayra-widget {
    position: fixed;
    bottom: 100px;
    right: 32px;
    z-index: 1000;
}

.ayra-toggle {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all var(--transition);
    position: relative;
}

.ayra-toggle svg { width: 24px; height: 24px; }

.ayra-toggle:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.ayra-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--green);
    color: white;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.ayra-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.85) translateY(16px);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.ayra-panel.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.ayra-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--accent-gradient);
    color: white;
}

.ayra-info { display: flex; align-items: center; gap: 12px; }

.ayra-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.ayra-header strong { display: block; font-weight: 700; font-size: 0.95rem; }
.ayra-header span    { font-size: 0.72rem; opacity: 0.85; }

.ayra-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
    line-height: 1;
    padding: 4px;
}

.ayra-close:hover { opacity: 1; }

.ayra-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ayra-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.ayra-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ayra-message-user {
    align-items: flex-end;
}

.ayra-message-user p {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-primary);
}

.ayra-message-bot {
    align-items: flex-start;
}

.ayra-message p {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.ayra-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ayra-chip {
    border: 1px solid rgba(108, 92, 231, 0.28);
    background: rgba(108, 92, 231, 0.08);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}

.ayra-chip:hover {
    border-color: rgba(108, 92, 231, 0.6);
    transform: translateY(-1px);
}

.ayra-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.ayra-input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font: inherit;
}

.ayra-input:focus {
    outline: none;
    border-color: rgba(108, 92, 231, 0.65);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.ayra-send {
    border: none;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.ayra-send:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ayra-footer-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.5;
}
