/* Professional Section - Reimagined */

.professional-new {
    max-width: 1400px;
}

/* Hero */
.pro-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #17203A 0%, #312E81 55%, #7C3AED 100%);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #F3F0FF;
}

.hero-statement {
    font-size: 1.8rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #E0DDF7;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #C4B5FD;
}

.meta-divider {
    opacity: 0.5;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Impact Section */
.impact-section {
    margin-bottom: 8rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.impact-card.large {
    grid-column: span 3;
}

.impact-card.small {
    grid-column: span 2;
}

.impact-metric {
    white-space: nowrap;
    text-align: center;
}

.impact-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: #6366F1;
    display: inline-block;
    text-align: center;
}

.impact-unit {
    font-size: 4rem;
    font-weight: 800;
    color: #6366F1;
    display: inline-block;
    text-align: center;
}

.impact-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.impact-stat .before {
    font-size: 2.5rem;
    font-weight: 600;
    color: #999;
    text-decoration: line-through;
}

.impact-stat .arrow {
    font-size: 2rem;
    color: #6366F1;
}

.impact-stat .after {
    font-size: 3rem;
    font-weight: 800;
    color: #6366F1;
}

.impact-stat .impact-big {
    font-size: 4rem;
    font-weight: 800;
    color: #6366F1;
}

.impact-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    text-align: center;
}

.impact-detail {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.impact-scope {
    margin-bottom: 1rem;
}

.scope-viz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scope-from, .scope-to {
    font-size: 1.5rem;
    font-weight: 700;
}

.scope-from {
    color: #999;
}

.scope-to {
    color: #6366F1;
}

.scope-arrow {
    font-size: 2rem;
    color: #6366F1;
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Journey Section */
.journey-section {
    margin-bottom: 8rem;
}

.timeline-interactive {
    position: relative;
    padding: 4rem 0;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366F1 0%, #8B5CF6 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-node {
    position: relative;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.timeline-node:nth-child(1) { animation-delay: 0.1s; }
.timeline-node:nth-child(2) { animation-delay: 0.2s; }
.timeline-node:nth-child(3) { animation-delay: 0.3s; }
.timeline-node:nth-child(4) { animation-delay: 0.4s; }
.timeline-node:nth-child(5) { animation-delay: 0.5s; }

/* Alternate cards left and right */
.timeline-node:nth-child(even) .node-card {
    grid-column: 1;
    justify-self: end;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.node-marker {
    grid-column: 2;
    align-self: start;
    margin-top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6366F1;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #6366F1, 0 1px 2px rgba(0,0,0,0.08);
    z-index: 2;
}

.node-marker.current {
    width: 16px;
    height: 16px;
    background: #8B5CF6;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #8B5CF6, 0 2px 4px rgba(139, 92, 246, 0.2);
    animation: pulse 2s infinite;
}

.node-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    grid-column: 3;
    justify-self: start;
}

.node-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.node-card.collapsed {
    max-width: 300px;
    padding: 1.5rem;
    opacity: 0.7;
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.node-company {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.node-dates {
    font-size: 0.9rem;
    color: #888;
}

.node-role {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #6366F1;
}

.node-scope {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.node-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-tag {
    background: #f0f0f0;
    color: #555;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.scope-progression {
    margin-top: 4rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
}

.progression-label {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1.5rem;
}

.progression-viz {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.prog-step {
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
}

.prog-step.highlight {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #F3F0FF;
    transform: scale(1.1);
}

.prog-arrow {
    color: #6366F1;
    font-size: 1.5rem;
}

/* Career Transition */
.timeline-transition {
    position: relative;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.5s;
}

.transition-marker {
    grid-column: 2;
    align-self: start;
    margin-top: 2rem;
    z-index: 2;
}

.transition-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(240, 147, 251, 0.4), 0 2px 4px rgba(240, 147, 251, 0.25);
    border: 2px solid white;
}

.transition-card {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border: 2px solid #f093fb;
    border-radius: 16px;
    padding: 3rem;
    max-width: 700px;
    grid-column: 1 / 4;
    justify-self: center;
}

.transition-label {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f5576c;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.transition-story {
    color: #2c3e50;
}

.transition-lead {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.transition-story p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.transition-insight {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(240, 147, 251, 0.3);
    font-style: italic;
    color: #555;
}

/* Dark mode transition */
body.dark-mode .transition-card {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15) 0%, rgba(245, 87, 108, 0.15) 100%);
    border-color: #f093fb;
}

body.dark-mode .transition-story,
body.dark-mode .transition-lead {
    color: #eee;
}

body.dark-mode .transition-insight {
    color: #bbb;
    border-top-color: rgba(240, 147, 251, 0.3);
}

/* Capability Map */
.capability-section {
    margin-bottom: 8rem;
}

.capability-map {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.capability-center {
    position: absolute;
    z-index: 10;
}

.center-node {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #F3F0FF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    padding: 1.5rem;
    line-height: 1.3;
}

.capability-ring {
    position: relative;
    width: 100%;
    height: 600px;
}

.capability-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-250px) rotate(calc(-1 * var(--angle)));
    width: 180px;
}

.capability-node:hover .cap-label {
    color: #6366F1;
}

.cap-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    transition: color 0.3s;
}

.cap-detail {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Stories Section */
.stories-section {
    margin-bottom: 8rem;
}

.story-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.story-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.story-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.story-tag {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.story-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.story-phase {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.phase-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366F1;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.story-phase p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.story-arrow {
    font-size: 2rem;
    color: #6366F1;
    align-self: center;
}

/* Tech Section */
.tech-section {
    margin-bottom: 8rem;
}

.tech-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-group {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.tech-group-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s;
}

.tech-item:hover {
    background: #6366F1;
    color: white;
}

.tech-item.primary {
    background: #6366F1;
    color: white;
}

/* CTA Section */
.cv-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 4rem;
}

.cta-label {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.cta-btn.primary {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #F3F0FF;
}

.cta-btn.secondary {
    background: white;
    color: #6366F1;
    border: 2px solid #6366F1;
}

.btn-icon {
    font-size: 1.3rem;
}

/* Dark Mode */
body.dark-mode .hero-statement {
    color: #bbb;
}

body.dark-mode .hero-meta {
    color: #888;
}

body.dark-mode .impact-card,
body.dark-mode .node-card,
body.dark-mode .story-card,
body.dark-mode .tech-group {
    background: #16213e;
}

body.dark-mode .impact-label,
body.dark-mode .node-company,
body.dark-mode .node-role,
body.dark-mode .story-header h3,
body.dark-mode .tech-group-label,
body.dark-mode .cap-label {
    color: #eee;
}

body.dark-mode .impact-detail,
body.dark-mode .node-scope,
body.dark-mode .story-phase p,
body.dark-mode .cap-detail {
    color: #bbb;
}

body.dark-mode .story-phase {
    background: #0f3460;
}

body.dark-mode .scope-progression {
    background: #0f3460;
}

body.dark-mode .prog-step {
    background: #16213e;
    color: #eee;
}

body.dark-mode .cv-cta {
    background: #0f3460;
}

body.dark-mode .tech-item {
    background: #0f3460;
    color: #bbb;
}

body.dark-mode .tech-item:hover {
    background: #6366F1;
    color: white;
}

body.dark-mode .highlight-tag {
    background: #1E1B4B;
    color: #C4B5FD;
}

body.dark-mode .cta-btn.secondary {
    background: #16213e;
    border-color: #6366F1;
}

/* Responsive */
@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-card.large,
    .impact-card.small {
        grid-column: span 1;
    }

    .story-flow {
        grid-template-columns: 1fr;
    }

    .story-arrow {
        display: none;
    }

    .capability-node {
        position: static;
        transform: none;
        margin-bottom: 2rem;
    }

    .capability-map {
        flex-direction: column;
        min-height: auto;
    }

    .capability-center {
        position: static;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-card.large,
    .impact-card.small {
        grid-column: span 1;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-statement {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .impact-number {
        font-size: 4rem;
    }

    .impact-unit {
        font-size: 3rem;
    }
}
