/* CSS Design System & Global Styles
   Project: Portfólio Cauan Ferreira Santos - AI & Data Developer
   Aesthetic: Premium Light Lime-Green & Off-white (Awwwards Style)
*/

:root {
    /* Color Palette */
    --color-bg-base: #FAFBF9;       /* Designer soft off-white with lime tint */
    --color-bg-surface: #FFFFFF;    /* Pure white for cards */
    --color-bg-nav: rgba(250, 251, 249, 0.85);
    
    --color-accent-lime: #8CE93C;   /* Main Lime Accent */
    --color-accent-green: #1AD253;  /* Forest/Medium green for high contrast text/borders */
    --color-accent-glow: rgba(140, 233, 60, 0.15);
    --color-accent-glow-dark: rgba(26, 210, 83, 0.08);

    --color-text-main: #111111;     /* Dark Charcoal for headings */
    --color-text-body: #2D312E;     /* Soft dark green-tinted charcoal for body text */
    --color-text-muted: #6B726E;    /* Slate gray for secondary text */
    --color-text-dim: #9CA3AF;      /* Light gray for deactivated states */
    
    --border-color: rgba(0, 0, 0, 0.06);
    --border-color-hover: rgba(26, 210, 83, 0.25);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Variables */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(26, 210, 83, 0.2);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-green);
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Base Layout Structure */
section {
    padding: 120px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Minimalist Section Header */
.section-header-minimal {
    margin-bottom: 60px;
    text-align: left;
}

.section-sub-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.section-main-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-bg-nav);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent-green);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(26, 210, 83, 0.35);
    background: rgba(26, 210, 83, 0.04);
    box-shadow: 0 0 10px rgba(26, 210, 83, 0.08);
    transition: var(--transition-spring);
    white-space: nowrap;
}

.ai-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent-green);
    animation: pulse-glow 2s infinite;
}

.header-ai-link:hover {
    color: var(--color-bg-surface);
    background-color: var(--color-accent-green);
    border-color: var(--color-accent-green);
    box-shadow: 0 0 20px rgba(26, 210, 83, 0.3);
    transform: translateY(-1px);
}

.header-ai-link:hover .ai-status-dot {
    background-color: var(--color-bg-surface);
    box-shadow: 0 0 8px var(--color-bg-surface);
}

/* Custom Range Input Sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 5px;
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    outline: none;
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(26, 210, 83, 0.4);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #8CE93C;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(26, 210, 83, 0.4);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #8CE93C;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-green);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-text-main);
    font-weight: 600;
}

.btn-contact-nav {
    background: var(--color-text-main);
    color: var(--color-bg-surface) !important;
    padding: 8px 18px !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-contact-nav:hover {
    transform: scale(1.05);
    background: var(--color-accent-green);
}

.btn-contact-nav::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.mobile-toggle:hover {
    background: rgba(26, 210, 83, 0.05);
    border-color: var(--color-accent-green);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 70vh;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.hero-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--color-bg-surface);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.award-emoji {
    font-size: 1.1rem;
}

.award-text {
    color: var(--color-text-muted);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 40px;
}

.serif-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(
        120deg,
        #111111 30%,
        var(--color-accent-green) 45%,
        #8CE93C 50%,
        var(--color-accent-green) 55%,
        #111111 70%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: metallic-shimmer 6s linear infinite;
    display: inline;
    padding-right: 0.15em;
}

@keyframes metallic-shimmer {
    0% {
        background-position: 100% center;
    }
    100% {
        background-position: -100% center;
    }
}

.hero-profile-container {
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 400px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    transition: var(--transition-smooth);
}

/* Glowing aura effect behind the photo */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--color-accent-lime) 0%, var(--color-accent-green) 50%, transparent 70%);
    opacity: 0.22;
    filter: blur(35px);
    z-index: 1;
    transition: opacity 0.5s var(--transition-spring), transform 0.5s var(--transition-spring);
    pointer-events: none;
}

html[data-theme="dark"] .hero-image-wrapper::before {
    opacity: 0.35;
    filter: blur(45px);
}

.hero-image-wrapper:hover::before {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.2);
}

.hero-profile-pic {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: var(--transition-spring);
    transform-origin: bottom center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
    
    /* Smooth fade to resolve the straight bottom crop cut */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
}

html[data-theme="dark"] .hero-profile-pic {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.hero-image-wrapper:hover .hero-profile-pic {
    transform: scale(1.05) translateY(-8px);
    filter: drop-shadow(0 20px 40px rgba(26, 210, 83, 0.15));
}

.hero-details-row {
    max-width: 900px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent-green);
    animation: pulse-glow 2s infinite;
}

.hero-cta-wrapper {
    text-align: center;
}

.btn-get-in-touch {
    background-color: var(--color-text-main);
    color: var(--color-bg-surface);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    display: inline-block;
    transition: var(--transition-spring);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-get-in-touch:hover {
    background-color: var(--color-accent-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 210, 83, 0.25);
}

.hero-bio-brief {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.hero-logos-row {
    max-width: 900px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.logo-item {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-dim);
    transition: var(--transition-smooth);
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-item i,
.logo-item svg {
    font-size: 1.3rem;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    color: inherit;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.logo-item:hover {
    color: var(--color-accent-green);
}

/* About Section */
.about {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-intro-wrapper {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-hello {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.2rem;
    color: var(--color-accent-green);
    display: block;
    margin-bottom: 16px;
}

.about-focus-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.about-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.about-tag-bubble {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.about-tag-bubble:hover {
    border-color: var(--color-accent-green);
    background: var(--color-bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 210, 83, 0.05);
}

.tag-icon {
    font-size: 0.6rem;
}
.tag-icon.orange { color: #f97316; }
.tag-icon.blue { color: #3b82f6; }
.tag-icon.gray { color: #6b7280; }
.tag-icon.yellow { color: #eab308; }
.tag-icon.pink { color: #ec4899; }
.tag-icon.green { color: #10b981; }

/* Process Section */
.process {
    background: var(--color-bg-base);
    overflow: hidden;
}

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-connector-svg {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.process-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    transition: var(--transition-spring);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-green);
    box-shadow: 0 15px 35px rgba(26, 210, 83, 0.06);
}

.process-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-accent-lime);
    line-height: 1;
    margin-bottom: 20px;
}

.process-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* History Section */
.history {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.history-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--color-text-body);
    line-height: 1.7;
}

.quote-symbol {
    font-size: 2.5rem;
    color: var(--color-accent-green);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.65rem;
    line-height: 1.4;
    color: var(--color-text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: block;
}

.author-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Stats Row */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
}

.about-stats-row .stat-card {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.about-stats-row .stat-card:hover {
    border-color: var(--color-accent-green);
    background: var(--color-bg-surface);
    box-shadow: 0 10px 25px rgba(26, 210, 83, 0.04);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent-green);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Dados Por Todos */
.dpt-section {
    background: var(--color-bg-base);
}

.dpt-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.dpt-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 24px;
    font-weight: 500;
}

.dpt-main-content p {
    margin-bottom: 20px;
    color: var(--color-text-body);
}

.dpt-pillars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.pillar-tag {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-dpt-link {
    background: var(--color-text-main);
    color: var(--color-bg-surface);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.btn-dpt-link:hover {
    background: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(26, 210, 83, 0.2);
}

.dpt-side-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.side-card-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.founder-item {
    margin-bottom: 16px;
}

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

.founder-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.founder-item span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.highlight-card {
    background: #5E26D4;
    color: #FFFFFF;
    border: none;
}

.highlight-card .side-card-title {
    border-color: rgba(255,255,255,0.15);
    color: #FFFFFF;
}

.highlight-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.skills-category-card {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    transition: var(--transition-spring);
}

.skills-category-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent-green);
    box-shadow: 0 12px 25px rgba(26, 210, 83, 0.04);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-green);
}

.skills-category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.category-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.skill-name span:first-child {
    color: var(--color-text-main);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-green), #8CE93C);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.2, 1);
}

.skills-category-card.active .progress-fill {
    transform: scaleX(1);
}

/* Playground / Simulator Section */
.playground {
    background: var(--color-bg-base);
}

.playground-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.pipeline-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.pipeline-btn {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.pipeline-btn:hover {
    border-color: var(--color-accent-green);
    box-shadow: 0 4px 15px rgba(26, 210, 83, 0.04);
}

.pipeline-btn.active {
    border-color: var(--color-accent-green);
    background: var(--color-bg-surface);
    box-shadow: 0 10px 25px rgba(26, 210, 83, 0.06);
}

.btn-info {
    width: 100%;
}

.pipeline-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
}

.pipeline-title i {
    width: 18px;
    height: 18px;
    color: var(--color-text-dim);
}

.pipeline-btn.active .pipeline-title i {
    color: var(--color-accent-green);
}

.pipeline-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.btn-run {
    width: 100%;
    background: var(--color-text-main);
    color: var(--color-bg-surface);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: var(--transition-spring);
}

.btn-run:hover {
    background: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(26, 210, 83, 0.2);
}

.playground-console {
    background: #0D0F12; /* Sleek dark terminal background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.flow-visualization {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

.flow-icon i {
    width: 16px;
    height: 16px;
}

.flow-step.processing {
    color: var(--color-accent-lime);
}

.flow-step.processing .flow-icon {
    border-color: var(--color-accent-lime);
    color: var(--color-accent-lime);
    box-shadow: 0 0 12px rgba(140, 233, 60, 0.3);
    animation: pulse-border 1.5s infinite;
}

.flow-step.completed {
    color: var(--color-accent-green);
}

.flow-step.completed .flow-icon {
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
    background: rgba(26, 210, 83, 0.1);
}

.flow-arrow {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.1rem;
}

.flow-arrow.active {
    color: var(--color-accent-lime);
    animation: pulse-opacity 1s infinite alternate;
}

.terminal-window {
    height: 260px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: #ef4444; }
.terminal-dot.yellow { background-color: #f59e0b; }
.terminal-dot.green { background-color: #10b981; }

.terminal-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
}

.terminal-body {
    padding: 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #080A0C;
}

.terminal-welcome {
    color: rgba(255, 255, 255, 0.35);
}

.terminal-log {
    margin: 0;
    line-height: 1.4;
}

.terminal-log.info { color: #93C5FD; }
.terminal-log.success { color: #86EFAC; }
.terminal-log.warning { color: #FDE047; }

/* Projects Section */
.projects {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.projects-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
}

.filter-btn:hover {
    border-color: var(--color-accent-green);
    color: var(--color-text-main);
}

.filter-btn.active {
    background: var(--color-text-main);
    color: var(--color-bg-surface);
    border-color: var(--color-text-main);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-spring);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-green);
    box-shadow: 0 15px 35px rgba(26, 210, 83, 0.05);
}

.project-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.project-tag-card {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-green);
}

.project-img-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-green);
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 80%);
}

.project-img-placeholder i {
    width: 48px;
    height: 48px;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--color-text-main);
}

.project-links {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.project-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    color: var(--color-accent-green);
}

.project-link i {
    width: 14px;
    height: 14px;
}

/* Bookshelf Section */
.bookshelf {
    background: var(--color-bg-base);
}

.section-desc {
    max-width: 650px;
    margin-bottom: 50px;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.book-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    transition: var(--transition-spring);
    perspective: 1200px;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent-green);
    box-shadow: 0 12px 25px rgba(26, 210, 83, 0.05);
}

.book-cover-img-wrapper {
    width: 130px;
    height: 190px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    box-shadow: -8px 8px 18px rgba(0, 0, 0, 0.15);
    
    /* 3D rotation start state (spine facing the reader) */
    transform-origin: left center;
    transform: rotateY(-75deg) translateZ(10px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease, box-shadow 1.2s ease;
}

/* When active, flatten rotation */
.book-card.active .book-cover-img-wrapper {
    transform: rotateY(0deg) translateZ(0);
    opacity: 1;
    box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.06);
}

/* Hover tilt effect */
.book-card:hover .book-cover-img-wrapper {
    transform: rotateY(-18deg) translateZ(15px);
    box-shadow: -8px 8px 20px rgba(26, 210, 83, 0.12);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.book-card:hover .book-cover-img {
    transform: scale(1.05);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-main);
}

.book-tag {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent-green);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.book-review {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Book Card layout */
@media (max-width: 992px) {
    .book-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .book-cover-img-wrapper {
        align-self: center;
        width: 100%;
        max-width: 130px;
    }
}

/* Contact Section */
.contact {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-green);
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--color-accent-green);
    color: var(--color-bg-surface);
    border-color: var(--color-accent-green);
}

.contact-icon i {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.contact-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.contact-form-card {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 10px rgba(26, 210, 83, 0.08);
}

.btn-submit {
    background: var(--color-text-main);
    color: var(--color-bg-surface);
    border-radius: 50px;
    padding: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-spring);
}

.btn-submit:hover {
    background: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 210, 83, 0.2);
}

.btn-submit i {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    background: var(--color-bg-base);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-container strong {
    color: var(--color-text-main);
}

.hosted-by a {
    color: var(--color-accent-green);
    font-weight: 600;
}

/* Keyframes and Animations */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px var(--color-accent-green);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 16px var(--color-accent-green);
        opacity: 0.7;
    }
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 8px rgba(140, 233, 60, 0.2);
    }
    50% {
        box-shadow: 0 0 16px rgba(140, 233, 60, 0.4);
    }
}

@keyframes pulse-opacity {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Responsive Design Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.2rem;
    }
    .process-grid,
    .skills-grid,
    .bookshelf-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-connector-svg {
        display: none;
    }
    .dpt-layout,
    .contact-grid,
    .playground-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .history-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Mobile menu logic in JS handles active menu drawer class */
    }
    
    .nav.open {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-bg-nav);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 99;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 30px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-details-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .hero-status-pill {
        margin: 0 auto;
    }
    
    .process-grid,
    .skills-grid,
    .bookshelf-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Meta-Dashboard SPA Styles */
.dashboard-view {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--color-bg-base);
    min-height: 100vh;
}

.dashboard-header-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-back-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent-green);
    width: fit-content;
    transition: var(--transition-smooth);
}

.btn-back-portfolio:hover {
    transform: translateX(-4px);
    color: var(--color-text-main);
}

.btn-back-portfolio i {
    width: 16px;
    height: 16px;
}

.dashboard-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.meta-kpi-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: var(--transition-spring);
}

.meta-kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-green);
    box-shadow: 0 10px 25px rgba(26, 210, 83, 0.05);
}

.meta-kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-green);
}

.meta-kpi-card .kpi-icon i {
    width: 20px;
    height: 20px;
}

.kpi-data {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.dashboard-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-details-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.details-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.details-card-title i {
    width: 20px;
    height: 20px;
    color: var(--color-accent-green);
}

.team-collaboration-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team-member {
    display: flex;
    gap: 20px;
    align-items: start;
}

.member-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent-green);
    flex-shrink: 0;
}

.member-info strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: block;
}

.member-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent-green);
    background: rgba(26, 210, 83, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 4px 0 8px;
}

.member-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Prompt history logs timeline */
.prompt-logs-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 20px;
}

.prompt-logs-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 4px;
    width: 1px;
    height: calc(100% - 10px);
    background: var(--border-color);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent-green);
    border: 2px solid var(--color-bg-surface);
    z-index: 2;
}

.timeline-date {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 4px;
}

.timeline-content strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: block;
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Tech Grid List */
.tech-stack-card {
    margin-top: 30px;
}

.tech-grid-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-badge-item {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.tech-badge-item:hover {
    border-color: var(--color-accent-green);
    background: var(--color-bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 210, 83, 0.04);
}

.tech-badge-item i {
    font-size: 1.15rem;
    color: var(--color-accent-green);
}

/* Highlight Dashboard nav link specifically */
.btn-dashboard-nav {
    border: 1px solid rgba(26, 210, 83, 0.2);
    background: rgba(26, 210, 83, 0.05);
    color: var(--color-accent-green) !important;
    padding: 6px 14px !important;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.btn-dashboard-nav:hover,
.btn-dashboard-nav.active {
    background: var(--color-accent-green);
    color: var(--color-bg-surface) !important;
    border-color: var(--color-accent-green);
}

.btn-dashboard-nav::after {
    display: none !important;
}

/* Responsive fixes for Dashboard */
@media (max-width: 1024px) {
    .dashboard-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-kpis-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-details-card {
        padding: 24px;
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-up {
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0);
}

/* Delay modifiers for staggered entrance */
.delay-1 {
    transition-delay: 150ms;
}

.delay-2 {
    transition-delay: 300ms;
}

.delay-3 {
    transition-delay: 450ms;
}

.delay-4 {
    transition-delay: 600ms;
}

/* Project Detail View Styles (SPA) */
.project-detail-view {
    padding: 120px 0 80px;
    min-height: 100vh;
    background-color: var(--color-bg-base);
}

.project-stack-sources-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Sources List */
.sources-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.source-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.source-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.source-value {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.source-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent-green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
}

.source-link:hover {
    color: var(--color-text-main);
    border-bottom-color: var(--color-text-main);
}

.source-link i {
    width: 16px;
    height: 16px;
}

/* CAR Method Layout */
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.car-block {
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
}

.car-block:hover {
    border-color: var(--color-accent-green);
    background: var(--color-bg-surface);
    box-shadow: 0 10px 25px rgba(26, 210, 83, 0.04);
}

.car-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
}

.car-badge i {
    width: 14px;
    height: 14px;
}

.car-block.context .car-badge {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.car-block.action .car-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.car-block.result .car-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.car-block p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

/* Task Flow Diagram Styles */
.task-flow-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    padding: 20px 0;
}

.task-node {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 650px;
    width: 100%;
    background: var(--color-bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px 24px;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.task-node:hover {
    border-color: var(--color-accent-green);
    background: var(--color-bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 210, 83, 0.04);
}

.node-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-text-main);
    color: var(--color-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.task-node:hover .node-number {
    background: var(--color-accent-green);
}

.node-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.node-env {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.task-node:hover .node-env {
    background: var(--color-bg-base);
    border-color: rgba(26, 210, 83, 0.2);
    color: var(--color-accent-green);
}

.node-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.node-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.flow-arrow-down {
    color: var(--color-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin: 4px 0;
    opacity: 0.8;
}

.flow-arrow-down svg {
    width: 20px;
    height: 20px;
    animation: bounce-slow 2s infinite;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* Responsive detail page fixes */
@media (max-width: 900px) {
    .project-stack-sources-grid {
        grid-template-columns: 1fr;
    }
    .car-grid {
        grid-template-columns: 1fr;
    }
}

/* Stretched Link to make project cards clickable */
.project-card {
    position: relative;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.project-links a:not(.stretched-link) {
    position: relative;
    z-index: 2;
}

/* Language Switcher Component */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--color-bg-base), 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: var(--border-radius-md);
    margin-left: 15px;
    z-index: 10;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--color-text-main);
}

.lang-btn.active {
    background: var(--color-text-main);
    color: var(--color-bg-base);
}

/* Language conditional visibility */
html[data-lang="pt"] [data-i18n-en] {
    display: none !important;
}

html[data-lang="en"] [data-i18n-pt] {
    display: none !important;
}

@media (max-width: 768px) {
    .header-actions {
        margin-left: 0;
        margin-right: 15px;
    }
}

/* Header actions layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: rgba(var(--color-bg-base), 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
    transform: scale(1.05);
}

.theme-toggle-btn i {
    width: 15px;
    height: 15px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth page transitioning effect class (prevents layout/hover janks during load) */
.theme-transitioning,
.theme-transitioning * {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* -----------------------------------------
   Dark Theme Style Definitions
   ----------------------------------------- */
html[data-theme="dark"] {
    --color-bg-base: #0B0D0C;       /* Designer dark charcoal-green */
    --color-bg-surface: #121514;    /* Pure dark surface cards */
    --color-bg-nav: rgba(11, 13, 12, 0.85);
    
    --color-text-main: #FAFBF9;     /* Soft white headings */
    --color-text-body: #CFD3D1;     /* High contrast body text */
    --color-text-muted: #8E9592;    /* Dimmed captions */
    --color-text-dim: #545C58;      /* Borders/Icons off-states */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(26, 210, 83, 0.4);
    
    --color-accent-glow: rgba(140, 233, 60, 0.08);
    --color-accent-glow-dark: rgba(26, 210, 83, 0.03);
}

/* Dark mode custom adaptations */
html[data-theme="dark"] .serif-title {
    background: linear-gradient(
        120deg,
        var(--color-text-main) 30%,
        var(--color-accent-lime) 45%,
        #E1FFA8 50%,
        var(--color-accent-lime) 55%,
        var(--color-text-main) 70%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
}

html[data-theme="dark"] .simulator-console {
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .book-card {
    background: var(--color-bg-base);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-main);
}

/* Contact Form AJAX Success State Styles */
.form-success-message {
    text-align: center;
    padding: 50px 20px;
    animation: fadeIn 0.4s ease forwards;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(26, 210, 83, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(26, 210, 83, 0.15);
}

.success-icon-emoji {
    font-size: 2.5rem;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.success-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 320px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-reset {
    background: var(--color-text-main);
    color: var(--color-bg-surface);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-spring);
}

.btn-reset:hover {
    background: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 210, 83, 0.2);
}

/* -----------------------------------------
   Dashboard Charts Layout
   ----------------------------------------- */
.dashboard-charts-grid,
.dashboard-charts-grid-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

@media (max-width: 900px) {
    .dashboard-charts-grid,
    .dashboard-charts-grid-secondary {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    display: flex;
    flex-direction: column;
}

.chart-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    justify-content: flex-start;
}

/* Complexity Card Layout Styles */
.complexity-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

html[data-theme="dark"] .complexity-row {
    background: rgba(255, 255, 255, 0.015);
}

.complexity-row:hover {
    border-color: var(--color-accent-green);
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .complexity-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.complexity-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.complexity-proj-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.complexity-proj-score {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.complexity-proj-score strong {
    color: var(--color-accent-green);
    font-size: 1.05rem;
}

.complexity-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.complexity-breakdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.breakdown-dot {
    color: var(--color-accent-green);
    font-weight: bold;
}

/* Dynamic Bar Chart Styles */
.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-bar-label {
    width: 110px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.chart-bar-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

html[data-theme="dark"] .chart-bar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-green), var(--color-accent-lime));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.2, 1);
}

.dashboard-view.active .chart-bar-fill {
    transform: scaleX(var(--chart-scale, 0));
}

.chart-bar-value {
    width: 35px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: right;
    font-family: var(--font-body);
}

/* Loading Speed Gauge Styles */
.gauge-chart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
}

.gauge-bar-track {
    height: 8px;
    border-radius: 4px;
    display: flex;
    position: relative;
    overflow: visible;
}

.gauge-bar-marker {
    height: 100%;
}

.gauge-bar-marker.excellent {
    background: #1AD253;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    width: 35%;
}

.gauge-bar-marker.good {
    background: #FFCD29;
    width: 45%;
}

.gauge-bar-marker.average {
    background: #F34E4E;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    width: 20%;
}

.gauge-pointer {
    width: 14px;
    height: 14px;
    background: var(--color-text-main);
    border: 2px solid var(--color-bg-surface);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: left 1.5s cubic-bezier(0.25, 1, 0.2, 1);
}

.gauge-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.gauge-lbl.excellent-lbl { color: #1AD253; }
.gauge-lbl.good-lbl { color: #DDAA00; }
html[data-theme="dark"] .gauge-lbl.good-lbl { color: #FFCD29; }
.gauge-lbl.avg-lbl { color: #F34E4E; }

.gauge-text-result {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 10px;
    font-family: var(--font-heading);
}

/* Timeline Trend SVG Styles */
.timeline-trend-chart-wrapper {
    position: relative;
    height: 80px;
    margin-top: 20px;
}

.trend-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.trend-line-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.2, 1);
}

.dashboard-view.active .trend-line-path {
    stroke-dashoffset: 0;
}

.trend-points-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trend-pt {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--color-bg-surface);
    border: 2px solid var(--color-accent-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--color-text-main);
    cursor: help;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s var(--transition-spring), background-color 0.3s;
    opacity: 0;
}

.dashboard-view.active .trend-pt {
    opacity: 1;
    transition-delay: 0.5s;
}

.trend-pt:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background: var(--color-accent-green);
    color: var(--color-bg-surface);
}

/* -----------------------------------------
   Interactive Metrics Tooltips
   ----------------------------------------- */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    cursor: help;
    vertical-align: middle;
}

.tooltip-icon {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.tooltip-wrapper:hover .tooltip-icon {
    color: var(--color-accent-green);
    transform: scale(1.15);
}

.tooltip-box {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    width: 250px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    text-align: left;
}

/* Tooltip Arrow */
.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-bg-surface) transparent transparent transparent;
}

.tooltip-box::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
    z-index: -1;
}

.tooltip-wrapper:hover .tooltip-box {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Adjustments for rightmost elements to prevent horizontal screen overflow */
.meta-kpi-card:nth-child(4) .tooltip-box,
.dashboard-kpis-grid > div:nth-child(4) .tooltip-box {
    left: auto;
    right: 0;
    transform: translateX(10px) translateY(10px);
}

.meta-kpi-card:nth-child(4) .tooltip-wrapper:hover .tooltip-box,
.dashboard-kpis-grid > div:nth-child(4) .tooltip-wrapper:hover .tooltip-box {
    transform: translateX(10px) translateY(0);
}

.meta-kpi-card:nth-child(4) .tooltip-box::after,
.meta-kpi-card:nth-child(4) .tooltip-box::before {
    left: auto;
    right: 15px;
    transform: none;
}

/* -----------------------------------------
   Shopify-inspired Scroll-Drawing & Lenis Styles
   ----------------------------------------- */
html.lenis, html.lenis body {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* Hero Tech SVG Lines styling */
.hero-profile-container {
    position: relative;
}

.hero-tech-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    pointer-events: none;
    z-index: 1;
}

.hero-image-wrapper {
    z-index: 2;
}

/* Minimal Title Underline styling */
.section-header-minimal {
    position: relative;
    display: inline-block;
}

.title-underline-svg {
    display: block;
    width: 160px;
    height: 10px;
    margin-top: 10px;
    overflow: visible;
}

.title-underline-svg path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-header-minimal.active .title-underline-svg path {
    stroke-dashoffset: 0;
}

/* Cyber Paint Interactive display overlays */
.cyber-paint-display {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s;
    transform-style: preserve-3d;
}

.wires-overlay {
    transform: translateZ(25px);
    transform-style: preserve-3d;
}

.eye-glow {
    transform: translateZ(20px);
}

#interactive-light-canvas {
    transform: translateZ(35px);
}

.cyber-paint-display:hover .neural-wire {
    opacity: 0.75;
}

.cyber-paint-display:hover .eye-glow {
    opacity: 1;
}

.cyber-paint-display:hover .scanner-bar {
    opacity: 1;
    animation: scan-effect 4s ease-in-out infinite;
}

.neural-wire {
    transition: opacity 0.4s ease;
}



@keyframes scan-effect {
    0% {
        left: -10px;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -10px;
    }
}

.hud-blink-dot {
    animation: hud-blink 1.2s infinite;
}

@keyframes hud-blink {
    0%, 100% {
        opacity: 0.2;
        box-shadow: none;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 8px var(--color-accent-green);
    }
}

@media (max-width: 1024px) {
    #ai-diagnostic-hud {
        display: none !important;
    }
}

/* -----------------------------------------
   Modern Scroll Reveal Features
   ----------------------------------------- */

/* 1. Text Glow-on-Scroll */
.glow-word {
    opacity: 0.25;
    transition: opacity 0.3s ease, color 0.3s ease;
    color: var(--color-text-muted);
    display: inline-block;
}
.glow-word.active {
    opacity: 1;
    color: var(--color-text-main);
    text-shadow: 0 0 8px rgba(26,210,83,0.3);
}

/* 2. Bento Grid Assembly 3D perspective */
.skills-grid {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.skills-category-card {
    transform-style: preserve-3d;
}

/* 3. Clip Path Morphing */
.cyber-paint-display img {
    clip-path: circle(100% at 50% 50%);
    transition: clip-path 0.3s ease-out;
}

/* 4. Sticky Horizontal Scroll Timeline */
@media (min-width: 993px) {
    .process {
        position: relative;
        height: 250vh; /* space for scrolling */
    }

    .process .horizontal-scroll-sticky-wrapper {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .process-grid-viewport {
        width: 100%;
        overflow: visible;
    }

    .process-grid {
        display: flex;
        flex-direction: row;
        gap: 40px;
        width: max-content;
        will-change: transform;
        grid-template-columns: none !important;
        padding-left: 20px;
    }

    .process-card {
        width: 340px;
        flex-shrink: 0;
    }
    
    .process-connector-svg {
        display: none !important; /* Hide connector in horizontal scroll mode */
    }
}

/* 5. Global SVG Connector Path positioning */
#global-neural-connector {
    display: block;
}

@media (max-width: 1024px) {
    #global-neural-connector {
        display: none !important;
    }
}

/* 6. Neural Creativity Board Custom Styling */
.color-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.2s;
}

.color-btn:hover {
    transform: scale(1.2);
}

.color-btn.active {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.lousa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-spring);
    border: 1px solid var(--border-color);
}

.lousa-btn-secondary {
    background: var(--color-bg-base);
    color: var(--color-text-main);
}

.lousa-btn-secondary:hover {
    background: var(--color-bg-surface);
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 210, 83, 0.08);
}

.lousa-btn-eraser.active {
    background: rgba(26, 210, 83, 0.1) !important;
    color: var(--color-accent-green) !important;
    border-color: var(--color-accent-green) !important;
    box-shadow: 0 0 15px rgba(26, 210, 83, 0.2) !important;
    transform: translateY(-1px);
}

.lousa-btn-analyze {
    background-color: var(--color-text-main);
    color: var(--color-bg-surface);
    border: 1px solid var(--color-text-main);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lousa-btn-analyze:hover {
    background-color: var(--color-accent-green);
    border-color: var(--color-accent-green);
    color: var(--color-bg-surface);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 210, 83, 0.3);
}

.lousa-btn-analyze:active {
    transform: translateY(0px);
}

/* 7. Co-Authored Antigravity Gallery Cards Custom Styling */
.gallery-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    will-change: transform;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-green) !important;
    box-shadow: 0 12px 30px rgba(26, 210, 83, 0.06);
    background-color: rgba(26, 210, 83, 0.01) !important;
}

.gallery-card:hover .project-mockup-img {
    transform: scale(1.05);
}

/* 8. Mobile-first and Webmobile Design optimizations */
@media (max-width: 768px) {
    /* Main wrappers paddings for mobile comfort */
    .creativity-board-container,
    .antigravity-gallery-container,
    .prompt-to-reality-container,
    .neural-pipeline-container {
        padding: 24px 16px !important;
        margin-bottom: 40px !important;
    }

    .creativity-board-container h3,
    .antigravity-gallery-container h3,
    .prompt-to-reality-container h3,
    .neural-pipeline-container h3 {
        font-size: 1.45rem !important;
    }

    /* Drawing lousa layout stacking and margins */
    .creativity-layout {
        gap: 25px !important;
    }
    
    .creativity-results-wrapper {
        padding: 20px !important;
    }

    /* Controls wrapping styling */
    .creativity-controls-wrapper {
        padding: 12px 14px !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .lousa-btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    /* Project Cards Mobile view */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .gallery-card {
        padding: 20px !important;
    }

    .gallery-card h4 {
        font-size: 1.15rem !important;
    }

    /* Terminal Mockup on mobile */
    .terminal-mockup pre {
        font-size: 0.72rem !important;
        white-space: pre-wrap !important;
        word-break: break-all !important;
    }
    
    .terminal-mockup div {
        padding: 16px !important;
    }

    /* Neural Connection steps */
    .neural-steps-grid {
        gap: 24px !important;
    }

    .neural-step-card {
        gap: 15px !important;
    }

    .neural-step-node {
        margin-left: 10px !important;
    }

    .neural-step-card .dashboard-details-card {
        padding: 20px !important;
    }

    /* Input ranges touch target size */
    input[type="range"] {
        height: 12px !important; /* Larger touch target */
    }
}
