/* Portfolio Discovery Features Styles */

.discovery-feature {
    margin: 3rem 0;
    padding: 0;
}

.discovery-feature:first-child {
    margin-top: 2rem;
}

/* Portfolio Quiz Styles */
.portfolio-quiz {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.quiz-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #ffffff);
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-description {
    color: var(--text-secondary, #cccccc);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.quiz-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    transition: width 0.5s ease;
    border-radius: 3px;
}

.quiz-question {
    margin-bottom: 2.5rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary, #ffffff);
    line-height: 1.4;
}

.question-answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-answer {
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.quiz-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.quiz-answer:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateX(8px);
}

.quiz-answer:hover::before {
    left: 100%;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.quiz-nav-btn {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.quiz-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.question-counter {
    color: var(--text-secondary, #cccccc);
    font-weight: 600;
    font-size: 1rem;
}

/* Quiz Results Styles */
.quiz-results {
    text-align: center;
    padding: 3rem 2rem;
}

.results-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary, #ffffff);
}

.top-recommendation {
    margin-bottom: 3rem;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

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

.recommendation-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #ffffff);
}

.recommendation-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #ffffff);
}

.recommendation-description {
    color: var(--text-secondary, #cccccc);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.recommendation-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.recommendation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.other-recommendations {
    margin-bottom: 3rem;
}

.other-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #ffffff);
}

.other-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.other-recommendation {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.other-recommendation:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quiz-restart,
.quiz-explore-all {
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ffffff);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.quiz-restart:hover,
.quiz-explore-all:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Skill Explorer Styles */
.skill-explorer {
    padding: 3rem;
    background: rgba(15, 15, 25, 0.95);
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.explorer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-primary, #ffffff);
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.explorer-description {
    text-align: center;
    color: var(--text-secondary, #cccccc);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.skill-connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.skill-connection-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-connection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #ffffff);
    text-align: center;
}

.skill-explorer .portfolio-connections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
}

/* Scoped to skill explorer only to avoid conflicts with global .content */
.skill-explorer .portfolio-connection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backface-visibility: visible;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

.skill-explorer .portfolio-connection:hover {
    transform: translateZ(0) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.skill-explorer .connection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
}

.skill-explorer .connection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-explorer .connection-list li {
    font-size: 0.85rem;
    color: var(--text-secondary, #cccccc);
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid rgba(212, 175, 55, 0.4);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Professional Journey Styles */
.professional-journey {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.journey-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-primary, #ffffff);
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-description {
    text-align: center;
    color: var(--text-secondary, #cccccc);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.journey-phase {
    display: flex;
    gap: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-phase:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.phase-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.phase-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.phase-line {
    width: 3px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.phase-line.active {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.8), rgba(255, 140, 66, 0.4));
}

.phase-content {
    flex: 1;
}

.phase-header {
    margin-bottom: 1.5rem;
}

.phase-period {
    font-size: 1rem;
    color: var(--text-secondary, #cccccc);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.phase-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0.5rem 0;
}

.phase-description {
    color: var(--text-secondary, #cccccc);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.phase-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.phase-highlights li {
    color: var(--text-secondary, #cccccc);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.phase-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-size: 1.2rem;
}

.phase-explore-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.phase-explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.phase-explore-btn i {
    transition: transform 0.3s ease;
}

.phase-explore-btn:hover i {
    transform: translateX(5px);
}

/* Cross-Portfolio Connections Styles */
.cross-portfolio-connections {
    margin: 3rem 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.connections-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary, #ffffff);
    text-align: center;
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.connection-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.connection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.connection-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.connection-header i {
    font-size: 1.4rem;
}

.connection-content {
    padding: 2rem;
}

.connection-description {
    color: var(--text-secondary, #cccccc);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.connection-items {
    margin-bottom: 2rem;
}

.connection-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.connection-item:last-child {
    border-bottom: none;
}

.connection-reason {
    font-size: 0.9rem;
    color: var(--text-secondary, #cccccc);
    font-style: italic;
    line-height: 1.5;
}

.connection-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #D4AF37, #FF8C42);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.connection-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.connection-button i {
    transition: transform 0.3s ease;
}

.connection-button:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skill-connections-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .portfolio-connections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .portfolio-quiz,
    .skill-explorer,
    .professional-journey,
    .cross-portfolio-connections {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .quiz-title,
    .explorer-title,
    .journey-title {
        font-size: 1.6rem;
    }
    
    .skill-connections-grid,
    .connections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .journey-phase {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .phase-line {
        display: none;
    }
    
    .quiz-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .other-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .portfolio-quiz,
    .skill-explorer,
    .professional-journey,
    .cross-portfolio-connections {
        padding: 1.5rem 1rem;
    }
    
    .quiz-answer {
        padding: 1rem 1.25rem;
    }
    
    .recommendation-card {
        padding: 2rem 1.5rem;
    }
    
    .phase-explore-btn,
    .recommendation-button,
    .connection-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}


/* Improved Skill Explorer Responsive Design */
@media (max-width: 1200px) {
    .skill-connections-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .portfolio-connections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-connection {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .skill-connections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-explorer {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .explorer-title {
        font-size: 1.75rem;
    }
    
    .explorer-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .skill-connection-card {
        padding: 1.5rem;
    }
    
    .skill-name {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-connection {
        padding: 1rem;
    }
    
    .connection-header {
        font-size: 0.95rem;
    }
    
    .connection-list li {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .skill-explorer {
        padding: 1.5rem 1rem;
    }
    
    .explorer-title {
        font-size: 1.5rem;
    }
    
    .skill-connection-card {
        padding: 1.25rem;
    }
}
