/* =============================================
   Jorgito CTO - Custom Styles
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    --jcto-navy: #0f172a;
    --jcto-slate: #1e293b;
    --jcto-blue: #3b82f6;
    --jcto-cyan: #06b6d4;
    --jcto-text: #f8fafc;
    --jcto-muted: #94a3b8;
    --jcto-radius-card: 8px;
    --jcto-radius-btn: 12px;
    --jcto-radius-badge: 9999px;
    --jcto-shadow-card: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --jcto-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
    --jcto-shadow-glow: 0 0 20px rgba(59,130,246,0.3);
    --jcto-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Mode --- */
body.light-mode {
    --jcto-navy: #f1f5f9;
    --jcto-slate: #ffffff;
    --jcto-text: #1e293b;
    --jcto-muted: #64748b;
    --jcto-shadow-card: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --jcto-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}

body.light-mode .wp-block-heading,
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 {
    color: #0f172a !important;
}

body.light-mode .jcto-section {
    background-color: var(--jcto-navy) !important;
    color: var(--jcto-text) !important;
}

body.light-mode .jcto-card {
    background-color: var(--jcto-slate) !important;
    color: var(--jcto-text) !important;
    border: 1px solid #e2e8f0;
}

body.light-mode .jcto-badge {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

body.light-mode .jcto-muted {
    color: var(--jcto-muted) !important;
}

body.light-mode .site-header {
    background-color: rgba(241,245,249,0.85) !important;
}

body.light-mode .site-footer {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Sticky Header --- */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color var(--jcto-transition), box-shadow var(--jcto-transition);
    padding: 16px 0;
}

.site-header.scrolled {
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.light-mode .site-header.scrolled {
    background-color: rgba(241,245,249,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Header layout */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* Header nav */
.header-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: var(--jcto-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--jcto-transition);
    font-family: 'Inter', sans-serif;
}

.header-nav a:hover {
    color: var(--jcto-blue);
}

/* Dark/light toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--jcto-muted);
    border-radius: var(--jcto-radius-badge);
    color: var(--jcto-muted);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 1.1rem;
    transition: all var(--jcto-transition);
    line-height: 1;
}

.theme-toggle:hover {
    border-color: var(--jcto-blue);
    color: var(--jcto-blue);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--jcto-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Body offset for fixed header */
body {
    padding-top: 72px;
}

/* --- Sections --- */
.jcto-section {
    padding: 96px 24px;
    transition: background-color var(--jcto-transition), color var(--jcto-transition);
}

.jcto-section-alt {
    background-color: var(--jcto-slate);
}

/* --- Hero --- */
.jcto-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 64px 24px;
}

body.light-mode .jcto-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.jcto-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 1;
}

.hero-pretitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--jcto-cyan);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--jcto-blue) !important;
    margin: 0 0 24px;
    font-weight: 600;
}

.hero-tagline {
    color: var(--jcto-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.jcto-badge {
    display: inline-block;
    background-color: rgba(59,130,246,0.15);
    color: var(--jcto-blue);
    padding: 6px 16px;
    border-radius: var(--jcto-radius-badge);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.jcto-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: var(--jcto-radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--jcto-transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.jcto-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--jcto-shadow-glow);
}

.jcto-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--jcto-text) !important;
    padding: 14px 32px;
    border: 2px solid var(--jcto-muted);
    border-radius: var(--jcto-radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--jcto-transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.jcto-btn-secondary:hover {
    border-color: var(--jcto-blue);
    color: var(--jcto-blue) !important;
    transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 60px rgba(59,130,246,0.2);
    position: relative;
}

.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(59,130,246,0.2);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--jcto-muted);
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Cards --- */
.jcto-card {
    background-color: var(--jcto-slate);
    border-radius: var(--jcto-radius-card);
    padding: 32px;
    box-shadow: var(--jcto-shadow-card);
    transition: all var(--jcto-transition);
}

.jcto-card:hover {
    box-shadow: var(--jcto-shadow-hover);
    transform: translateY(-4px);
}

/* --- Section titles --- */
.jcto-section-title {
    text-align: center;
    margin-bottom: 16px;
}

.jcto-section-subtitle {
    text-align: center;
    color: var(--jcto-muted);
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Skills grid --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.skill-tag {
    background: rgba(59,130,246,0.1);
    color: var(--jcto-blue);
    padding: 4px 12px;
    border-radius: var(--jcto-radius-badge);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Timeline (Experience) --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #06b6d4);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--jcto-blue);
    box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--jcto-cyan);
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    color: var(--jcto-blue);
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-desc {
    color: var(--jcto-muted);
    line-height: 1.7;
}

/* --- Projects grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-card-desc {
    color: var(--jcto-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- Contact --- */
.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jcto-text) !important;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: var(--jcto-radius-btn);
    transition: all var(--jcto-transition);
    font-family: 'Inter', sans-serif;
}

.contact-link:hover {
    border-color: var(--jcto-blue);
    box-shadow: var(--jcto-shadow-glow);
    transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
    background-color: #0c1322;
    padding: 48px 24px;
    text-align: center;
    transition: background-color var(--jcto-transition);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--jcto-muted);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color var(--jcto-transition);
}

.footer-social a:hover {
    color: var(--jcto-blue);
}

.footer-copy {
    color: var(--jcto-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.back-to-top {
    display: inline-block;
    color: var(--jcto-muted) !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--jcto-transition);
}

.back-to-top:hover {
    color: var(--jcto-blue) !important;
}

/* --- Scroll animations --- */
.jcto-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        padding: 24px;
        gap: 16px;
        text-align: center;
    }

    body.light-mode .header-nav {
        background-color: rgba(241,245,249,0.98);
    }

    .header-nav.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .jcto-section {
        padding: 64px 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    body {
        padding-top: 64px;
    }
}

/* --- Project Cards (Enhanced) --- */
.project-card {
    border: 1px solid transparent;
    transition: all var(--jcto-transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--jcto-blue);
    box-shadow: var(--jcto-shadow-hover), 0 0 20px rgba(59,130,246,0.1);
    transform: translateY(-6px);
}

body.light-mode .project-card:hover {
    border-color: var(--jcto-blue);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 0 20px rgba(59,130,246,0.08);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.project-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.project-card-header .project-card-title {
    margin-bottom: 0;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    margin-top: auto;
    padding-top: 12px;
}

.project-metric {
    display: inline-flex;
    align-items: center;
    background: rgba(6,182,212,0.1);
    color: var(--jcto-cyan);
    padding: 4px 12px;
    border-radius: var(--jcto-radius-badge);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.project-metric strong {
    color: var(--jcto-text);
    margin-right: 4px;
    font-weight: 700;
}

body.light-mode .project-metric {
    background: rgba(6,182,212,0.08);
}

body.light-mode .project-metric strong {
    color: #0f172a;
}

.project-card .project-tech {
    margin-top: 4px;
}

/* --- Contact Section (Enhanced) --- */
.jcto-contact-section {
    background: linear-gradient(180deg, var(--jcto-navy) 0%, #0c1322 100%);
    position: relative;
    overflow: hidden;
}

.jcto-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Contact info cards grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.contact-card {
    background-color: var(--jcto-slate);
    border-radius: var(--jcto-radius-card);
    padding: 28px 20px;
    box-shadow: var(--jcto-shadow-card);
    transition: all var(--jcto-transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid transparent;
}

.contact-card:hover {
    box-shadow: var(--jcto-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.3);
}

a.contact-card {
    cursor: pointer;
}

.contact-card-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.contact-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--jcto-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.contact-card-value {
    color: var(--jcto-text);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Social section */
.contact-social-section {
    margin-bottom: 48px;
}

.contact-social-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jcto-text);
    margin-bottom: 24px;
}

.contact-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: var(--jcto-radius-card);
    text-decoration: none;
    color: var(--jcto-text);
    transition: all var(--jcto-transition);
    background: rgba(30,41,59,0.5);
}

.contact-social-card:hover {
    border-color: var(--jcto-blue);
    box-shadow: var(--jcto-shadow-glow);
    transform: translateY(-3px);
    background: rgba(30,41,59,0.8);
}

.contact-social-icon {
    color: var(--jcto-blue);
    transition: color var(--jcto-transition);
}

.contact-social-card:hover .contact-social-icon {
    color: var(--jcto-cyan);
}

.contact-social-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-social-handle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--jcto-muted);
}

/* CTA button */
.contact-cta {
    margin-top: 8px;
}

.contact-cta-btn {
    padding: 16px 48px;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

/* Light mode overrides */
body.light-mode .jcto-contact-section {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
}

body.light-mode .contact-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

body.light-mode .contact-card:hover {
    border-color: var(--jcto-blue);
}

body.light-mode .contact-social-card {
    background: rgba(255,255,255,0.7);
    border-color: #e2e8f0;
}

body.light-mode .contact-social-card:hover {
    background: #ffffff;
    border-color: var(--jcto-blue);
}

body.light-mode .contact-card-value {
    color: var(--jcto-text);
}

/* Responsive contact */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-social-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-cta-btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Timeline V2 (Experience - Alternating) --- */
.timeline-v2 {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Central vertical line (desktop) */
.timeline-v2::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--jcto-blue), var(--jcto-cyan));
    transform: translateX(-50%);
}

/* Each timeline row */
.timeline-v2-item {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: start;
    margin-bottom: 48px;
    position: relative;
}

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

/* Dot in the center */
.timeline-v2-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--jcto-blue);
    box-shadow: 0 0 14px rgba(59,130,246,0.5);
    justify-self: center;
    align-self: start;
    margin-top: 6px;
    position: relative;
    z-index: 2;
    border: 3px solid var(--jcto-navy);
}

/* Date side */
.timeline-v2-date {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.timeline-v2-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--jcto-cyan);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Card side */
.timeline-v2-card {
    background-color: var(--jcto-slate);
    border-radius: var(--jcto-radius-card);
    padding: 24px 28px;
    box-shadow: var(--jcto-shadow-card);
    transition: all var(--jcto-transition);
    border: 1px solid transparent;
}

.timeline-v2-card:hover {
    box-shadow: var(--jcto-shadow-hover);
    transform: translateY(-3px);
    border-color: rgba(59,130,246,0.2);
}

.timeline-v2-role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--jcto-text);
    margin-bottom: 4px;
}

.timeline-v2-company {
    color: var(--jcto-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.timeline-v2-desc {
    color: var(--jcto-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* --- Alternating layout: odd items (1,3,5) date left, card right --- */
.timeline-v2-item:nth-child(odd) .timeline-v2-date {
    justify-content: flex-end;
    text-align: right;
    padding-right: 0;
}

/* --- Even items (2,4) date right, card left --- */
.timeline-v2-item:nth-child(even) {
    direction: rtl;
}

.timeline-v2-item:nth-child(even) > * {
    direction: ltr;
}

.timeline-v2-item:nth-child(even) .timeline-v2-date {
    justify-content: flex-start;
    text-align: left;
    padding-left: 0;
}

/* --- Staggered fade-in animation --- */
.timeline-v2-item.jcto-fade-in:nth-child(1) { transition-delay: 0s; }
.timeline-v2-item.jcto-fade-in:nth-child(2) { transition-delay: 0.15s; }
.timeline-v2-item.jcto-fade-in:nth-child(3) { transition-delay: 0.3s; }
.timeline-v2-item.jcto-fade-in:nth-child(4) { transition-delay: 0.45s; }
.timeline-v2-item.jcto-fade-in:nth-child(5) { transition-delay: 0.6s; }

/* --- Light mode overrides for timeline v2 --- */
body.light-mode .timeline-v2-dot {
    border-color: var(--jcto-navy);
}

body.light-mode .timeline-v2-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

body.light-mode .timeline-v2-card:hover {
    border-color: rgba(59,130,246,0.3);
}

body.light-mode .timeline-v2-role {
    color: #0f172a;
}

/* --- Responsive: mobile timeline (line on left) --- */
@media (max-width: 768px) {
    .timeline-v2 {
        padding-left: 32px;
        padding-right: 0;
    }

    .timeline-v2::before {
        left: 8px;
        transform: none;
    }

    .timeline-v2-item,
    .timeline-v2-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 8px;
        margin-bottom: 36px;
    }

    .timeline-v2-dot {
        position: absolute;
        left: -32px;
        top: 6px;
        width: 14px;
        height: 14px;
        margin-top: 0;
    }

    .timeline-v2-date,
    .timeline-v2-item:nth-child(odd) .timeline-v2-date,
    .timeline-v2-item:nth-child(even) .timeline-v2-date {
        justify-content: flex-start;
        text-align: left;
        order: -1;
    }

    .timeline-v2-card {
        padding: 20px;
    }

    /* Reset stagger on mobile for faster reveal */
    .timeline-v2-item.jcto-fade-in:nth-child(n) {
        transition-delay: 0.1s;
    }
}

/* --- About CTO Section --- */
.jcto-about-section {
    background-color: var(--jcto-slate);
    position: relative;
}

.jcto-about-separator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--jcto-blue), var(--jcto-cyan));
    border-radius: 2px;
}

/* Bio + Photo layout */
.jcto-about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

/* Photo placeholder */
.jcto-about-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jcto-about-photo-placeholder {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(6,182,212,0.1) 100%);
    border-radius: var(--jcto-radius-card);
    border: 2px dashed rgba(59,130,246,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.jcto-about-photo-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--jcto-blue), var(--jcto-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 40px rgba(59,130,246,0.2);
}

.jcto-about-photo-label {
    color: var(--jcto-muted);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

/* Metrics grid */
.jcto-about-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.jcto-metric-card {
    text-align: center;
    padding: 28px 16px;
}

.jcto-metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
    margin-bottom: 8px;
}

.jcto-metric-label {
    color: var(--jcto-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Light mode overrides for about */
body.light-mode .jcto-about-section {
    background-color: #e2e8f0 !important;
}

body.light-mode .jcto-about-photo-placeholder {
    background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(6,182,212,0.06) 100%);
    border-color: rgba(59,130,246,0.2);
}

/* Responsive about */
@media (max-width: 768px) {
    .jcto-about-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jcto-about-photo {
        order: -1;
    }

    .jcto-about-photo-placeholder {
        max-width: 260px;
        aspect-ratio: 1 / 1;
    }

    .jcto-about-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jcto-metric-number {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .jcto-about-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Skill Pills (badges) --- */
.skill-pill {
    display: inline-block;
    background: rgba(59,130,246,0.15);
    color: var(--jcto-blue);
    padding: 6px 16px;
    border-radius: var(--jcto-radius-badge);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all var(--jcto-transition);
    border: 1px solid rgba(59,130,246,0.2);
    cursor: default;
}

.skill-pill:hover {
    background: rgba(59,130,246,0.25);
    border-color: rgba(59,130,246,0.4);
    transform: translateY(-1px);
}

.skill-pill[data-level="expert"] {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.3);
}

.skill-pill[data-level="advanced"] {
    background: rgba(6,182,212,0.15);
    color: var(--jcto-cyan);
    border-color: rgba(6,182,212,0.25);
}

.skill-pill[data-level="advanced"]:hover {
    background: rgba(6,182,212,0.25);
    border-color: rgba(6,182,212,0.4);
}

.skill-pill[data-level="intermediate"] {
    background: rgba(148,163,184,0.15);
    color: var(--jcto-muted);
    border-color: rgba(148,163,184,0.25);
}

.skill-pill[data-level="intermediate"]:hover {
    background: rgba(148,163,184,0.25);
    border-color: rgba(148,163,184,0.4);
}

/* --- Skill Level Bars --- */
.skill-levels {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-bar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--jcto-muted);
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: rgba(148,163,184,0.15);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--jcto-blue), var(--jcto-cyan));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.skill-bar-fill.skill-bar-advanced {
    background: linear-gradient(90deg, var(--jcto-cyan), #22d3ee);
}

.skill-bar-fill.skill-bar-intermediate {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

/* Skill category card enhancements */
.skill-category-card {
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.skill-category-card:hover {
    border-color: rgba(59,130,246,0.2);
}

/* Light mode overrides for skills */
body.light-mode .skill-pill {
    background: rgba(59,130,246,0.1);
    color: #2563eb;
    border-color: rgba(59,130,246,0.2);
}

body.light-mode .skill-pill[data-level="advanced"] {
    background: rgba(6,182,212,0.1);
    color: #0891b2;
    border-color: rgba(6,182,212,0.2);
}

body.light-mode .skill-pill[data-level="intermediate"] {
    background: rgba(100,116,139,0.1);
    color: #475569;
    border-color: rgba(100,116,139,0.2);
}

body.light-mode .skill-bar {
    background: rgba(148,163,184,0.2);
}

body.light-mode .skill-category-card {
    border: 1px solid #e2e8f0;
}

body.light-mode .skill-category-card:hover {
    border-color: rgba(59,130,246,0.3);
}

/* Responsive skills adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-bar-label {
        min-width: 70px;
        font-size: 0.65rem;
    }

    .skill-levels {
        margin-top: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Staggered fade-in for skill cards */
.skill-category-card.jcto-fade-in:nth-child(1) { transition-delay: 0s; }
.skill-category-card.jcto-fade-in:nth-child(2) { transition-delay: 0.1s; }
.skill-category-card.jcto-fade-in:nth-child(3) { transition-delay: 0.2s; }
.skill-category-card.jcto-fade-in:nth-child(4) { transition-delay: 0.3s; }
.skill-category-card.jcto-fade-in:nth-child(5) { transition-delay: 0.4s; }
.skill-category-card.jcto-fade-in:nth-child(6) { transition-delay: 0.5s; }
